Fence Post Spacing Calculator
Quick answer an 80 ft fence with an 8 ft maximum post spacing needs 11 posts (10 bays). A 100 ft fence needs 14 posts at 8 ft or 18 at 6 ft.
Fence post spacing
See how total fence length and maximum post spacing work together, with spacing measured center-to-center between posts.

Enter your project measurements to see the estimate.

Explore the project, then start with your measurements and customize your plan.
Fence posts by length and maximum spacing
| Fence length | 6 ft maximum | 8 ft maximum |
|---|---|---|
| 40 ft | 8 posts | 6 posts |
| 60 ft | 11 posts | 9 posts |
| 80 ft | 15 posts | 11 posts |
| 100 ft | 18 posts | 14 posts |
| 150 ft | 26 posts | 20 posts |
| 200 ft | 35 posts | 26 posts |
Straight run with no gates or corners. Each count is the number of bays (rounded up) plus one end post.
Examples and related project steps
Check the worked examples or continue with the next part of your material plan.
Check the method or common questions
Method, formula & assumptions
Fence post spacing and post count
Formula: PlanDIYBuild divides the fence length by your maximum post spacing and rounds up to a whole number of bays, so no bay is longer than your maximum. Posts = bays + 1 for a straight run, and the actual spacing is the fence length divided by the number of bays.
Worked example: Example: an 80 ft fence with an 8 ft maximum spacing has 10 bays and needs 11 posts, spaced exactly 8.00 ft apart. A 100 ft fence at the same maximum needs 13 bays and 14 posts, so the actual spacing is 7.69 ft.
Before you buy: Maximum spacing depends on the fence material, wind exposure, local rules, gates and the manufacturer’s instructions. This calculator treats one straight run; corners, gates and separate runs need additional posts, which the full Fence Calculator accounts for.
Fence Post Spacing Calculator FAQ
How far apart should fence posts be?
Decks.com (a Trex site) says wood fences typically use posts 6 to 8 feet apart, vinyl often 8 to 10 feet and chain-link usually 10 to 12 feet. Wind, local rules, gates and the manufacturer’s requirements can change that.
How many fence posts do I need for 100 feet?
With an 8 ft maximum spacing, 100 ft needs 13 bays and 14 posts. With a 6 ft maximum it needs 17 bays and 18 posts.
Why is my actual spacing less than the maximum I entered?
The bay count is rounded up so that no bay is longer than your maximum, which makes every bay slightly shorter. A 100 ft fence at an 8 ft maximum has 13 bays of 7.69 ft each.
Does post spacing affect the lumber I buy?
It can. Decks.com notes that spacing slightly under 8 ft lets you cut rails from 8-ft boards instead of buying 10-ft ones.
Should posts be closer together in windy areas?
Usually yes. Decks.com points out that a 6-ft panel handles gusts better than an 8-ft panel, so windy sites call for closer spacing.
How deep should fence posts be set?
QUIKRETE’s setting-posts guidance is a hole depth of one-third the overall post length plus 6 in for a gravel base, with a hole diameter about three times the post width. Frost depth and local rules can require more.
Does this include gates and corners?
No. It counts a straight run only. Use the Fence Calculator to add gates, corners, rails, pickets and concrete.
Continue your Fence project
Use the Fence planning hub for related calculators and quick-reference guides.