Practical guide · By LimeLime Labs
Fence post spacing calculator: count posts for each run
Calculate fence bays, posts, and equal spacing for a straight run, with worked examples and a checklist for corners and gates.
For a straight fence run, divide its length by the maximum post spacing, round up to get the number of bays, then add one for the posts. Divide the length by the bay count to find equal spacing. Treat gates and changes of direction as separate parts of the layout.
Try a straight-run estimate
This calculator uses feet and center-to-center spacing. It assumes posts at both ends, no gates, and equal bays. Use your fence system’s approved maximum spacing.
Worked example: 100 feet at an 8-foot maximum
- 100 ÷ 8 = 12.5. Round up to 13 bays.
- 13 bays + 1 = 14 posts for this independent run.
- 100 ÷ 13 = about 7.69 feet between centers for equal bays.
Rounding down would leave some bays longer than the chosen maximum. With fixed-width panels, use the manufacturer’s panel dimensions and installation method instead of assuming every panel can be cut to any width.
Count corners and gates separately
Sketch each straight run and label its endpoints before adding totals. For two joined runs, count their shared corner post once. Four 40-foot sides at an 8-foot maximum make 20 bays and 20 distinct posts in a closed loop, rather than 24 posts from counting each side independently.
A gate opening replaces part of the fence, but its support posts still belong in the plan. Gate posts may need different dimensions or foundations. Do not simply subtract the gate width from a perimeter and apply one formula across all corners.
Before you order materials
- Confirm the boundary, local requirements, underground utility marking, and any required permission before work.
- Check the fence manufacturer’s spacing, post size, foundation, and wind-load requirements.
- Measure slopes and changes of direction. A map is a planning aid; it does not establish a legal boundary.
- List end posts, line posts, corner posts, gate posts, rails, panels, fasteners, and concrete separately.
Keep the layout with your estimate
Fence Calculator Pro brings post counts, custom layouts, satellite map planning, material estimates, project notes, and PDF reports together. Use the calculation above for a quick check, then keep the full project in the app.