How it works
Enter the fence run length and the greatest spacing you want between posts. The calculator rounds the number of spans up to a whole number, then divides the run evenly so no gap exceeds your target.
Worked example
A 100 ft run with a maximum 8 ft spacing needs 13 spans and 14 posts, spaced about 7.69 ft apart.
Scope and local notes
The inputs use feet, which are common for US residential fence layout. Measure the actual straight run between endpoints and account separately for corners, gate posts, and changes in elevation.
Frequently asked questions
Does the post count include end posts?
Yes. The result includes both endpoints, so the number of posts is one more than the number of spans.
Should I use the spacing as a structural rule?
Treat this as a layout estimate; fence material, wind exposure, gates, corners, and local requirements may call for closer posts.