Fence Material Calculator

Build a complete fence material list.

Home IBC R317 1/3 rule Concrete 60/80 lb
Rate this calculator · 5.0 (2)

Fence Material

Pickets, posts, rails, concrete in one list

Instructions — Fence Material Calculator

1

Enter fence length and height

Length in linear feet for a straight run. For an L or U shape, add the legs. Height is the visible portion above grade — common values are 4, 5, 6 and 8 ft.

2

Pick post spacing and size

Standard residential spacing is 8 ft center-to-center, which matches 8 ft rail stock. Use 6 ft on windy sites or for fences taller than 6 ft. Post size 4x4 is standard; 6x6 is used for 8 ft fences and gate posts.

3

Set picket width, gap and rails

Picket width 3.5 in (1x4) or 5.5 in (1x6). Gap defaults to 1.75 in for a traditional rhythm; 0 in for privacy. Rails: 2 for fences up to 5 ft, 3 for 6 ft, 4 for 8 ft. The bag count includes a 10 percent overage.

Formulas

Post count
$$ N_{post} = \lceil L / S \rceil + 1 $$
L = fence length in feet, S = post spacing (typically 8 ft). Add one for the final terminal post. Each gate needs an additional pair of posts.
Buried post depth (1/3 rule)
$$ H_{buried} = \frac{H_{total}}{3}\,;\quad H_{total} = 1.5 \cdot H_{fence} $$
One third of the post is buried below grade. For a 6 ft fence, total post length is 9 ft with 3 ft below grade. Add 6 in to the hole for a gravel base.
Pickets needed
$$ N_{pkt} = \left\lceil \frac{L \cdot 12}{W_p + G_p} \right\rceil $$
Pitch (picket width + gap) in inches. Code limit is a 4 in gap to fail a 4 in sphere test (IBC pool fence rule).
Rails per section
$$ N_{rail} = \lceil L / S \rceil \cdot R $$
R = rails per section (2 for short fences, 3 for 6 ft, 4 for 8 ft). Each rail spans the full post-to-post distance.
Concrete per post
$$ V_c = ((3W_a)^2 - W_a^2) \cdot H_{buried} / 144 $$
W_a = actual post width in inches (3.5 for 4x4, 5.5 for 6x6). Hole is 3 times post-width on a side; subtract the post cross-section. Result is cubic feet per post.
Concrete bags
$$ N_{bags} = \lceil V_{total} \cdot 2.4 / 60 \cdot 1.1 \rceil $$
A 60 lb bag of premixed concrete yields about 0.45 ft3; 80 lb yields about 0.6 ft3. Multiply by 2.4 ft3-per-bag-equivalent fill density and add 10 percent waste.

Reference

100 ft of 6 ft wood fence at 8 ft post spacing
ItemMathQuantity
Posts (4x4)(100 ÷ 8) + 114 posts
Post length6 ft × 1.59 ft each
Pickets (3.5 in + 1.75 in)1200 ÷ 5.25229 pickets
Rails (3 per section)13 × 339 rails
Rail linear feet39 × 8312 lf
Concrete 60 lb bags~ 1.5/post22 bags
Fasteners229 × 3 × 21,374 nails

Article — Fence Material Calculator

Fence material calculator: posts, pickets, rails, fasteners and concrete

A fence material calculator turns one number (fence length in feet) into a full bill of materials: posts, pickets, rails, fasteners and concrete bags. For 100 feet of 6 ft wood fence at 8 ft post spacing, the order is 14 posts, 229 pickets, 39 rails, about 1,400 fasteners and 22 bags of 60 lb concrete. Adding a 10 percent waste factor is mandatory.

The arithmetic is short. The hidden details are in the picket pitch (width plus gap), the buried post depth (the 1/3 rule), and the concrete hole geometry (three times the post width). This guide walks each calculation and explains what the numbers mean at the lumber yard counter.

What the fence material calculator does

The tool above takes fence length, height, post spacing, picket dimensions, rails per section and waste percentage. It returns picket count (with and without waste), post count, rail count and linear feet, buried post depth, concrete bag counts in 60 and 80 lb sizes, and a rough fastener tally. Every number is what shows up on a lumber yard order.

For an L-shaped yard with one corner, add the two legs and use the total as length. For irregular polygonal lots, run the calculator on each leg separately and sum the orders.

The fence material list formula

The full material list comes out of three formulas: post count is length divided by spacing plus one, picket count is length-in-inches divided by pitch (width plus gap), and rail count is sections times rails per section. Concrete and fasteners follow from the post and picket counts.

Material list math
Posts = ceil(L / spacing) + 1
Pickets = ceil(L × 12 / pitch)
Rails = sections × rails/section
Concrete = (hole − post) × depth × posts
Fasteners ≈ pickets × rails/section × 2

Pitch is the repeating unit width: picket width plus gap, in inches. A traditional 3.5 in picket with a 1.75 in gap has a 5.25 in pitch; a privacy 5.5 in picket with no gap has a 5.5 in pitch. The IBC code limit is a 4 in maximum gap to prevent a 4 in sphere from passing through (a safety rule originally written for pool barriers).

Fence material post count

Post count is fence length divided by post spacing, rounded up, plus one for the terminal end post. At the residential standard of 8 ft post spacing, a 100 ft fence needs 14 posts. Each gate adds two extra posts (one on each side) that take more concrete and a 50 percent larger hole than line posts.

4
4x4 post
3.5 in actual
Fences up to 6 ft tall
6
6x6 post
5.5 in actual
Gate posts, 8 ft fences

Post length is 1.5 times fence height. A 6 ft fence uses 9 ft posts with 3 ft buried below grade (the 1/3 rule). For 8 ft fences and gate posts, jump from 4x4 to 6x6 lumber — a 4x4 cannot resist the wind load and dynamic forces at that height.

Fence material pickets and gaps

Pickets dominate the lumber bill. A 100 ft fence of 1x4 pickets with a traditional 1.75 in gap uses 229 pickets at $2-9 each, depending on species. Cedar and redwood are 2-3 times the price of pressure-treated pine but last twice as long.

Standard widths come from nominal dimensions: 1x4 is 3.5 in actual, 1x6 is 5.5 in actual, 1x8 is 7.25 in actual. Heights run 4, 5, 6 and 8 ft, with 6 ft being the residential workhorse. Pickets stop 2-4 in above the ground for drainage; this gap is invisible from the street.

Fence material rail count

Rails are the horizontal stringers between posts that hold the pickets. Each section (post-to-post) needs two rails for fences under 5 ft, three rails at 6 ft, four rails at 8 ft. The middle rails keep pickets from twisting and bowing as the wood dries.

Standard rail lumber is 2x4 in 8 ft lengths to match 8 ft post spacing. A 100 ft fence at 6 ft height with 8 ft spacing needs 39 rails (13 sections × 3 rails). Order 10 percent waste for cuts at corners and ends.

Fence material concrete bags

Each post sits in a concrete-filled hole three times the post width on each side. A 4x4 post (3.5 in actual) needs a 10.5 in hole; a 6x6 post needs a 16.5 in hole. Depth equals the buried portion of the post (1/3 of total length) plus 6 in of gravel base below.

Did you know

The 3-times-post-width rule for hole diameter comes from US Forest Service post setting research in the 1950s. At smaller hole-to-post ratios, the concrete plug acts as a stiff stub and breaks the soil bond in wind events; at the 3-times ratio the concrete distributes the load to a soil cone large enough to resist tipping. The rule has held since.

Concrete bag math: a 60 lb premixed bag yields about 0.45 cubic feet of cured concrete; an 80 lb bag yields 0.6 cubic feet. The calculator divides total hole volume (minus post volume) by the bag yield and adds 10 percent waste, giving the bag count in both sizes.

Fence material fasteners

Fastener counts follow from pickets and rails. The standard pattern is two nails (or screws) per picket-rail intersection. A 100 ft fence with 229 pickets and 3 rails per section uses 229 × 3 × 2 = 1,374 fasteners. Add 100-200 more for rail-to-post connections.

Choose galvanized or stainless fasteners outdoors. ASTM A153 hot-dipped galvanized nails last 30-50 years in pressure-treated lumber; ungalvanized nails rust through in 5-10 years and bleed black streaks down the fence. Stainless screws cost 3-5 times more but never streak.

Waste factor and ordering

The 10 percent waste factor is standard for residential work. It covers cull pickets (cracked, cupped, knotty), short cuts at corners, and a small replacement stash for future maintenance. Bump to 15 percent on rough lumber, irregular yards, or first-time DIY projects.

  • Pickets 10 percent waste, more for cull-grade pine
  • Rails 5 percent waste, mostly cuts at corners
  • Posts 0 waste — order exact count plus 1 spare
  • Concrete 10 percent waste for partial bags
  • Fasteners Buy 10 percent extra, store leftovers
  • Hardware Order one full kit per gate
Inspect every picket at delivery

Pressure-treated pine arrives wet and develops checks (small surface cracks) as it dries. Sort the bundle by quality before nailing — the best pickets face the street, rough ones go to the back of the yard. Returning a cracked picket is easier than tearing one off a finished section.

FAQ

At 8 ft post spacing (the residential standard), 100 ft of fence needs 14 posts — 12 line posts plus 2 end posts. The formula is ceil(length ÷ spacing) + 1. Add an extra post on each side of every gate for a total that often climbs to 16 on a fenced yard with a single gate.
The IBC and most local codes accept the 1/3 rule: one third of the total post length is buried. A 6 ft tall fence uses a 9 ft post buried 3 ft. Add 6 in of gravel beneath for drainage, so dig the hole to 42 in. In hard-freeze regions, always go below the local frost line.
For a 4x4 post in a 12 in diameter hole 3 ft deep, plan on 1.5 bags of 60 lb premixed concrete per post (or 1 bag of 80 lb). Gate posts and 6x6 posts in larger holes use 2-3 bags. Order 10 percent extra to cover slop and partial bags.
Building codes cap residential picket gaps at 4 in to prevent a 4 in sphere from passing through. The rule comes from pool barrier requirements (the sphere represents a small child’s head). Traditional picket fences use a gap equal to the picket width (3.5 or 5.5 in); modern privacy fences run 0-1 in.
Two rails for fences up to 5 ft tall (one top, one bottom). Three rails at 6 ft (top, middle, bottom). Four rails at 8 ft. The middle rails keep pickets from twisting and bowing over time. Place them at one-third intervals along the picket height.
10 percent is the standard add-on for waste, cull and replacement stock on a straightforward run. Bump to 15 percent if the fence wraps around obstacles, uses rough lumber, or includes custom picket tops. The calculator applies waste to pickets, fasteners and concrete bags.
4x4 nominal (3.5 in actual) posts are standard for fences up to 6 ft tall. Use 6x6 (5.5 in actual) for 8 ft fences, gate posts, corner posts on long runs, and anywhere wind exposure is high. Pressure-treated lumber rated for ground contact lasts 15-20 years; cedar and redwood 20-30.
A 60 lb bag yields about 0.45 cubic feet of finished concrete; an 80 lb bag yields about 0.6 cubic feet. The same job needs about 25 percent fewer 80 lb bags but each is heavier to lift. Pick 60 lb for solo work and 80 lb for crew installs.