Fence Calculator

Estimate fence length, posts, panels or pickets, rails, gates and optional concrete.

Planning note

Confirm structural requirements before building

Post spacing, footing depth, fence height and local code requirements vary. DIYSum estimates quantities from the assumptions you enter; it does not provide structural design.

Real-world project example

How many fence posts for a 100 ft fence?

For a straight 100 ft fence with a maximum 8 ft interval, divide 100 by 8 to get 12.5 spans, then round up to 13 spans. That means 14 posts if the fence is one continuous straight run with a post at each end. Corners, gates and layout breaks can change the post count.

Before you buy materials

Post depth, wind load, local code, ground conditions and gate hardware affect materials. Panel and picket counts depend on actual product spacing and dimensions.

Adjust the measurements, waste allowance and purchase options in the calculator above to estimate your own project; examples are for planning only.