Home & Construction
Fence Post Calculator
Enter one open straight run and a positive maximum spacing chosen for your design. Both end posts are included; no structural or local-rule check is performed.
Let’s calculate.
Usage estimateCount posts for one open, straight fence run.
Formula and worked example
Posts = ceiling(length / maximum spacing) + 1
Reference example
20 m with spacing no greater than 2.5 m needs 9 posts.
When this calculation applies
This is one open straight run. Both ends are counted. Corners shared by runs, gates and closed loops require their own adjustment. The spacing is chosen by you, not checked for structural adequacy.
Background reference: OpenStax. References explain the method or units; they do not certify this calculator.
Source scope: The ratios-and-rates chapter supports the division used in the displayed derivation. Counting end posts, equal gaps, treads and risers follows CalcuAll’s explicit geometric assumptions; no permitted spacing or building compliance is supplied.
For the derivation, input conventions and numerical limits, open .
How to use this result
A 20 m run with maximum spacing 2.5 m needs 8 spans and 9 posts. A 20.1 m run needs 9 spans and 10 posts. Spacing those 9 spans evenly gives approximately 2.233 m each, below the selected maximum.
Why is there one more post than spans?
Each span lies between two posts and adjacent spans share a post. One open run with n spans therefore has n + 1 posts. A closed loop has different end conditions; do not automatically use the open-run count.
Can I add the results for several sides?
Check shared corner posts first. Two connected runs calculated separately each include the shared corner, so adding both results counts that corner twice. Gates and special supports also need a separate plan.
Does the calculator choose a safe spacing?
No. You supply the maximum. Height, wind, ground, post sections, fixings and product requirements affect the design. A correct count does not establish adequate strength or a permitted construction.