Fence Calculator
Posts, rails, pickets or panels, concrete and gates for wood, chain-link, vinyl or split-rail fences.
How this is calculated
Sections = (fence length − gate widths) ÷ post spacing. Posts = sections + 1 (open run) or sections (closed loop) + 1 per gate. Boards: privacy 5.5 in wide, picket 5 in pitch. Post length = height + 2 ft below ground.
Choose your fence style, total length, height and post spacing. Add gates and the calculator works out sections, posts, rails, boards or panels, concrete bags, fasteners and a total material cost.
Results are estimates for planning purposes only. Real-world quantities depend on site conditions, materials and workmanship. Always verify measurements, follow local building codes and confirm quantities with your supplier or a qualified professional before ordering or building.
About the Fence Calculator
A fence project lives or dies on the materials list: too few pickets and the crew stands idle, too many and you store lumber for years. This calculator turns linear footage into a complete shopping list — posts, pickets or panels, horizontal rails and concrete bags — for wood privacy, picket, vinyl and chain-link fences, including gates.
How to use
- Enter the length of each fence run in feet, measured along the ground where the fence will stand.
- Choose your style: privacy (tight pickets), picket (spaced boards), pre-built panels or chain-link.
- Set post spacing — 8 feet is standard for wood, 6 feet for high-wind areas or tall fences.
- Enter picket width and the gap between pickets (zero for a privacy fence).
- Add gates: each needs two sturdier gate posts, and its opening comes out of the picket count.
Understanding your results
The post count includes line posts plus one extra per run, with gate posts listed separately since they should be larger and set deeper. The picket or panel count is your lumber order including cutting waste. Rails run two per section for 4-foot fences, three for 6-foot. Concrete is in bags per post hole.
How the calculation works
Posts are run length divided by spacing, plus one per run, rounded up. Pickets are run length in inches divided by picket width plus gap — a 100-foot run with 5.5-inch pickets and a half-inch gap needs 200 pickets. Rails are two or three per 8-foot section by height. Concrete runs about one 50 lb bag per standard post hole, doubled for gates and corners.
Fence Calculator FAQs
How far apart should fence posts be?
How deep should fence posts be set?
How many bags of concrete do I need per fence post?
How do I plan for a gate in my fence run?
Wood vs vinyl fence — which costs less long term?

Written by
Nabil Sharif
Founder of CalcDune — a free library of 137 online calculators for finance, health and everyday math. Every calculator shows the formula behind its result, so you can see exactly how your numbers are worked out.
More articles by Nabil →