How to use the fence calculator
Enter the total length of the fence line, its height and how far apart the posts will be. Then add the picket width and any gap between pickets (zero for a privacy fence). The calculator works out the number of sections, posts, rails and pickets, and the concrete needed to fill the post holes around each post.
How the numbers are calculated
Posts = Sections + 1
Rails = Sections × Rails per section
Pickets = Fence length (in) ÷ (Picket width + Gap)
Post spacing and depth
Wood fences usually have posts 6 to 8 feet apart, measured centre to centre. Closer spacing makes a stronger fence and suits windy sites or heavy boards. A common rule is to bury at least a third of the post's above-ground height, so a 6 ft fence needs posts set about 2 ft deep and at least 8 ft long. In cold climates, go below the frost line to stop posts heaving. Your local building department can tell you the frost depth.
How many rails?
Fences up to about 4 ft tall normally use 2 rails per section. Fences 5 to 6 ft tall use 3 rails to keep pickets from warping. Taller fences may need 4.
Before you dig
- Locate buried utilities. In the US, call 811 a few days before digging; other countries have similar free services.
- Check your property line and any rules from your city or homeowners association about height and style.
- Add posts for gates and corners. Gates need strong posts on both sides, so count extra.
Frequently asked questions
How many fence posts do I need for 100 feet?
With posts every 8 feet you need 13 sections and 14 posts. With posts every 6 feet, 17 sections and 18 posts. Add extra posts for corners and gates.
How many bags of concrete per fence post?
For a 10 inch wide, 2 ft deep hole around a 4×4 post, about 0.92 cubic feet: two 80 lb bags or three 50 lb bags per post.
How many pickets do I need for a fence?
Divide the fence length in inches by the picket width plus gap. For 100 ft of 5.5 inch pickets with no gap, about 219 pickets.
How deep should fence posts be?
At least one third of the above-ground height, often 2 ft for a 6 ft fence, and below the frost line in cold areas.
Last reviewed November 11, 2026. Results are estimates. Check product labels and local codes before buying.