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.
Posts = ceil(L / spacing) + 1Pickets = ceil(L × 12 / pitch)Rails = sections × rails/sectionConcrete = (hole − post) × depth × postsFasteners ≈ pickets × rails/section × 2Pitch 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.
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.
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
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.