Free visual project calculator

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.

PlanDIYBuild visual guide

Fence post spacing

See how total fence length and maximum post spacing work together, with spacing measured center-to-center between posts.

PlanDIYBuild fence post spacing guide showing total fence length and maximum post spacing measured center-to-center between post centerlines
Units

Enter your project measurements to see the estimate.

Wood privacy fence project inspiration
PICTURE YOUR PROJECT

Explore the project, then start with your measurements and customize your plan.

Quick reference

Fence posts by length and maximum spacing

Fence length6 ft maximum8 ft maximum
40 ft8 posts6 posts
60 ft11 posts9 posts
80 ft15 posts11 posts
100 ft18 posts14 posts
150 ft26 posts20 posts
200 ft35 posts26 posts

Straight run with no gates or corners. Each count is the number of bays (rounded up) plus one end post.

Planning references

Examples and related project steps

Check the worked examples or continue with the next part of your material plan.

Need more detail?

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.

Keep planning

Continue your Fence project

Use the Fence planning hub for related calculators and quick-reference guides.

Open Fence Planning Hub →

PlanDIYBuild reference

Useful enough to share. Clear enough to cite.

Share this page or copy a simple citation. Calculation assumptions and source practices are documented in our methodology.

Methodology & sources