How Many Fence Posts Do I Need? Formula and Examples
Count terminal posts first: ends, corners and two per gate. Then fill each segment with line posts so no bay exceeds your spacing.
Use this guide to: Count posts for a specific layout with ends, corners, gates or a closed loop.
Use the fence post calculator →A shortcut that only works for a straight open run with no gates
Posts = ceil(length ÷ maximum spacing) + 1. For 100 ft at 8 ft maximum spacing, round 12.5 up to 13 bays and add the last end post: 14 total (18 at 6 ft). This includes both end posts and no spares. Don't use this shortcut when there are gates, corners or a closed loop.
The general method
- Terminal posts = end posts (2 for an open run, 0 for a closed loop) + 1 per corner + 2 per gate.
- Subtract gate widths from the total length to get net fence.
- For each segment between terminal posts:
line posts = ceil(segment ÷ spacing) − 1. Add these to the terminal posts.
Worked cases (checked against the calculator)
- 100 ft straight, 8 ft spacing, no gates: 2 end posts; 100 ÷ 8 → 13 bays → 12 line posts. Total 14.
- 180 ft straight, 8 ft spacing, two 4 ft gates: 172 ft net in 3 assumed equal segments (about 57.3 ft each) → 8 bays each → 21 line posts + 6 terminal posts = 27.
- U-shape of 50 + 100 + 30 ft, 8 ft spacing, no gates: 2 end + 2 corner = 4 terminal posts; line posts 6 + 12 + 3 = 21. Total 25.
- Closed square loop, four 40 ft sides, no gates: 4 corner posts and no end posts; 4 line posts per side. Total 20.
Edge cases that change the count
- Gate position: the calculator assumes gates sit mid-run. A gate next to a corner or end can share a terminal post in real life. Count a layout like that by hand from your sketch.
- Unequal runs: without exact run lengths, the calculator splits the total equally between corners and labels the result "estimated." Enter each run for an exact count.
- Very short segments: a short piece between a corner and a gate still needs its own terminal posts. That's why two fences of the same length can need different counts.
- Spares: the count doesn't include extra posts. Many buyers add one or two in case some are crooked or split.
Next, size concrete with the concrete calculator.
Checklist
- Sketch the layout and label every end, corner and gate.
- Measure each run between corners and enter them for an exact count.
- Subtract gate openings before counting line posts.
- Count by hand any gate that sits right at a corner or end.
- Decide whether to buy spare posts.
References and data status
Worked numbers on this page come from this site's calculator engine and its internally authored national U.S. baseline (us-baseline-1.0.0). That baseline is not live, not ZIP-localized and not externally reviewed. This guide relies only on the calculator's own formulas. See the methodology.
All figures are estimates based on baseline U.S. assumptions, not contractor quotes.