Quick answer: A straight 100 ft fence with posts no more than 8 ft apart needs 14 posts: 13 spaces plus one end post. That works out to about 7.69 ft between posts. At a 6 ft maximum it takes 18 posts.
How to use this calculator
- Add each separate fence run.
- Enter the maximum desired spacing between posts.
- Calculate the whole-post count and per-run breakdown.
- Review endpoint assumptions against the real layout.
How the calculation works
Each run is divided by the entered maximum spacing and rounded upward to a whole number of spaces. One additional post supplies the second endpoint. Counts are summed without sharing corner posts between entered runs.
Formula
Spaces per run = ceil(run length ÷ maximum spacing) Posts per run = spaces + 1 Total posts = sum of posts for all runs
Worked example
A 20 ft run at an entered 8 ft maximum spacing needs 3 spaces and 4 posts. A separate 10 ft run needs 2 spaces and 3 posts, for 7 posts total.
Fence posts by fence length
Each row is one straight run with a post at both ends, so the count is the number of spaces plus one. The spacing is a maximum, and the last column shows the even spacing you get when the run is divided into equal spaces. If your fence closes back on itself, the corner posts are shared: a closed loop needs one post per space, so take one off for every run you joined at a corner.
| Straight run | Posts, 6 ft maximum | Posts, 8 ft maximum | Even spacing at 8 ft maximum |
|---|---|---|---|
| 50 ft | 10 | 8 | 7.14 ft |
| 100 ft | 18 | 14 | 7.69 ft |
| 150 ft | 26 | 20 | 7.89 ft |
| 200 ft | 35 | 26 | 8.00 ft |
- Gate posts are extra when the gate hardware calls for its own post spacing. Add them to the line count.
Posts by run length at 8 ft spacing
Each run needs one more post than it has spaces, and spaces are rounded up.
| Run length | Spaces | Posts |
|---|---|---|
| 8 ft | 1 | 2 |
| 16 ft | 2 | 3 |
| 20 ft | 3 | 4 |
| 24 ft | 3 | 4 |
| 40 ft | 5 | 6 |
| 50 ft | 7 | 8 |
A second example: a closed yard
A 60 ft by 40 ft yard fenced all around at 8 ft maximum spacing has two 60 ft runs (8 spaces, 9 posts each) and two 40 ft runs (5 spaces, 6 posts each). The calculator counts 30 posts because each run has its own end posts. The four corner posts are shared in a real closed fence, so the true count is 26, which is also the 26 spaces (8 + 5 + 8 + 5) around the loop.
Even spacing
The spacing you enter is a maximum. A 20 ft run needs 3 spaces, so the evenly divided spacing is about 6.67 ft, not 8 ft with a short leftover. Measure from the center of one post to the next, and remember that your fence panels or rails set the real limit.
Gates and ends
Gate openings, corners, and line posts can be different sizes and are often placed on their own. Gate hardware usually specifies its post spacing. Treat the calculator's count as the line post count and add gate posts separately.
Measuring a fence line
Measure each straight run from the center of one end or corner post to the center of the other, and treat a change of direction as the start of a new run. Include the gate opening in the length if the gate will hang between posts in the same line, and note the gate width separately.
Terrain also matters. On a slope the distance along the ground is longer than the horizontal distance, and fence manufacturers state whether their panel size is measured horizontally or along the slope. If your plan or product says so, follow it. The calculator does not correct for slope.
Common mistakes
- Counting posts as run length divided by spacing and forgetting the extra post at the end.
- Using panel width as the post spacing without allowing for the post itself, which depends on the fence system.
- Not adding extra posts for gates and corners where your plan calls for them.
- Measuring along the ground on a slope without checking what the fence system assumes.
Project considerations
- The spacing input is a planning assumption and must match the chosen fence system.
- Separate runs each include two endpoints; shared-corner layouts may require adjustment.
- Post size, embedment, footing design, loads, and code compliance are outside this count.
Frequently asked questions
Why round the spaces upward?
Rounding upward keeps each resulting interval at or below the maximum spacing entered.
Does this recommend post spacing?
No. The spacing is fully editable and should come from the project design or product requirements.
References
Published sources for context. They are not used in the calculation.