Fence Calculator
Decking & Fencing · Updated July 2026
Enter your total fence length and post spacing to find how many posts, sections, and rails your fence needs.
Your project
Results
Estimates only. Add extra for waste and confirm with your supplier.
Don't want to measure?
Coming soonSnap a photo of your space and let AI estimate the dimensions — then auto-fill this calculator and get a shopping list with real store prices.
How many fence posts do I need?
Divide the fence length by your post spacing (commonly 8 ft) to get sections, then add one for the final post.
Planning posts and sections
Divide the fence length by your post spacing (commonly 8 feet) to get sections, then add one post for the end. Corners and gates need their own posts, so mark those before ordering.
Setting posts
Set posts about one-third of their length into the ground for stability — a 6-foot fence usually uses 8-foot posts in 2-foot holes. Use the concrete calculator to estimate bags for the footings.
How to use this calculator
- 1Enter total fence length in feet.
- 2Choose post spacing (6–8 ft is common).
- 3Read posts, sections, and rails.
Frequently asked questions
What is standard fence post spacing?
6–8 feet on center is typical; closer spacing adds strength in windy areas or for heavy panels.
How far apart should fence posts be?
6–8 feet on center is typical; closer spacing adds strength in wind or for heavy panels.
How deep should fence posts be set?
About one-third of the post length — roughly 2 feet deep for a 6-foot fence.
Related calculators
Get early access to My DIY Calculator Pro
Be first to try AI photo measuring and the smart shopping list with real store prices. No spam — just the launch.