How Many Fence Posts Do You Need? Spacing and Counting Guide

Updated October 7, 2026 · 5 min read · Fencing

Counting fence posts sounds trivial until you are standing in the yard with three posts too few. The error usually comes from dividing the fence length by the spacing and forgetting the extra post at the end, the corners, or the gate. This guide gives a reliable counting method and works through a real layout.

Typical post spacing by fence type

Maximum spacing is set by how far the rails or panels can span without sagging, and by wind load. These are common rules of thumb; your fence manufacturer’s instructions and local code take priority.

Fence type Typical on-center spacing What limits it
Wood privacy (6 ft tall) 6–8 ft (1.8–2.4 m) Rail length and wind load on solid boards
Wood picket (3–4 ft tall) 6–8 ft (1.8–2.4 m) Rail length
Vinyl (panel system) Set by panel width, commonly 6 or 8 ft Panels are fixed-width; follow the manufacturer’s on-center spacing
Chain-link Up to 10 ft (3 m) between line posts Fabric tension and top rail span
Split rail Equal to rail length Rails slot directly into posts

For a solid wood privacy fence in a windy spot, many builders use 6 ft spacing even though 8 ft is common. A tight spacing costs a few more posts and adds stiffness.

The counting rule

  1. Split the fence into straight runs. A run ends at a corner, a gate, or the end of the fence.
  2. Sections per run = run length ÷ maximum spacing, rounded up.
  3. Posts in an isolated straight run = sections + 1.
  4. Connected runs share their corner posts. For a fence that starts and ends at different points (for example, both ends at the house), total posts = total sections + 1. For a fence that closes a full loop, total posts = total sections.
  5. A gate is its own section with a post on each side.

Rounding up the section count means your real spacing is slightly less than the maximum, which is fine. Divide the run length by the number of sections to find the actual spacing you will lay out.

Worked example: a three-sided backyard fence

A 6 ft wood privacy fence running from the back corner of the house: 60 ft along one side, 100 ft across the back, and 60 ft back to the house on the other side. There is a 4 ft gate in the first side run. Maximum spacing: 8 ft.

Run A (60 ft with gate): 28 ft of fence, the 4 ft gate, then 28 ft of fence. - 28 ÷ 8 = 3.5 → 4 sections at 7 ft each, on both sides of the gate. - Gate: 1 section. - Run A total: 9 sections.

Run B (100 ft): 100 ÷ 8 = 12.5 → 13 sections at about 7 ft 8 in (7.69 ft).

Run C (60 ft): 60 ÷ 8 = 7.5 → 8 sections at 7 ft 6 in.

Total sections: 9 + 13 + 8 = 30. The fence starts and ends at the house, so it does not close a loop:

Total posts = 30 + 1 = 31.

Post type Count Why it matters
End posts (at the house) 2 Carry the fence end; often fastened to or set near the wall
Corner posts 2 Take load from two directions
Gate posts 2 Carry the swinging gate; often 6×6 or set deeper
Line posts 25 Everything in between
Total 31

In metric terms the runs are about 18.3 m, 30.5 m and 18.3 m, with a 1.2 m gate and a maximum spacing of 2.44 m. The counts are identical.

A shortcut that would have gone wrong: 220 ft ÷ 8 = 27.5 → 28 posts. That misses the gate section and the rounding on each separate run, leaving you three posts short.

Spacing your posts evenly

Equal spacing looks better and avoids one odd short section. Once you know the section count, lay out from both ends of each run:

  1. Set the corner, end and gate posts first.
  2. Run a string line between them at post height.
  3. Measure the actual spacing (run length ÷ sections) along the string and mark each line post.

For vinyl panels, spacing is not flexible: posts must land exactly where the panels need them. Set one post, attach or dry-fit a panel, and position the next post to that panel rather than relying only on a tape measure.

Post length and depth

A common rule is to bury roughly one-third of the post’s total length, or at least one-third to one-half of the above-ground height, and to go below the local frost line where your building department requires it. Examples:

Fence height Typical post length In ground
4 ft (1.2 m) 6 ft (1.8 m) about 2 ft (0.6 m)
6 ft (1.8 m) 8 ft (2.4 m) about 2 ft (0.6 m); longer posts are trimmed to set deeper where needed

Corner and gate posts often go deeper than line posts. Check local code, utility locates (call 811 in the US before digging), and any HOA rules before you buy.

Common mistakes

Count posts automatically

The fence calculator takes your total length, spacing, corners and gates and returns post, rail and panel counts. Use it to check your hand count, especially on longer fences with several runs.

FAQ

How far apart should fence posts be?

Wood fences are commonly built with posts 6–8 ft apart, chain-link up to 10 ft, and vinyl at whatever spacing its panels require. Closer spacing makes a stiffer fence.

How many posts do I need for a 100 ft fence?

For one straight 100 ft run at 8 ft maximum spacing: 100 ÷ 8 = 12.5, round up to 13 sections, plus one = 14 posts. At 6 ft spacing: 17 sections, 18 posts.

Do gate posts need to be bigger?

They carry more load than line posts, so many builders use a heavier post (for example 6×6 instead of 4×4 in wood), set it deeper, and use more concrete.

Should corner posts be set differently?

Corner posts take pull from two directions, so they are commonly set deeper or with a larger hole than line posts. On chain-link fences, corner posts are the larger-diameter terminal posts.