Fence Post Calculator

Calculate the number of posts and equal spacing for a straight fence run while keeping spacing at or below your selected maximum.

The calculated equal spacing will not exceed this value.

How it works

The calculator rounds the number of fence sections up so no section exceeds the maximum spacing, adds one post for the second end, and evenly divides the run.

sections = ceil(run length ÷ maximum spacing); posts = sections + 1

Worked example

For a 100 ft straight run with a maximum spacing of 8 ft, the calculator uses 13 sections and 14 posts, spaced about 7 ft 8 5/16 in apart.

Assumptions

  • The fence is one straight run with a post at each end.
  • All sections are spaced evenly.

Limitations

  • Corners, gates, changes in grade and local construction requirements can require additional posts or different spacing.