HomeConstruction › Fence

Fence Calculator

ft
ft
ft
Posts Needed
Rails (2 rails)
Pickets (5.5" width)
Gate Posts
Show the math
Enter values to see the worked formula.

What Your Result Means

How This Calculator Works

You enter total fence length, height, and spacing between posts (8 feet is typical). The tool divides total length by post spacing to find how many sections you need, adds one more post for the end, and includes two gate posts. It multiplies sections by two for rails and estimates pickets at 5.5 inches wide across the full length.

Quick Questions

What post spacing should I use?

8 feet is standard for most residential wood fences. Windy areas or fence heights over 6 feet may call for 6-foot spacing.

Does this include corner posts?

Corners and end posts are counted as regular line posts. If your fence has multiple corners, the total post count should still be accurate since each corner sits at a section boundary.

What about picket gaps?

This calculator assumes no gap between pickets (a privacy fence). For a spaced picket fence, you'll need fewer pickets — roughly 50% fewer for equal gap-and-picket spacing.

How deep should post holes be?

A common rule is one-third of the total post length underground. For a 6-foot fence, use 8-foot posts set 2 feet deep in concrete.

Sources

Method & review

MethodologyHow we calculate this Reviewed & Updated2026-04 Next review2027-04

Estimate only. Results reflect your inputs and standard formulas. Double-check important decisions independently.