Use this Fence Post Spacing Calculator to divide a straight fence run into equalized post bays or keep a fixed spacing from one end and calculate the remaining final bay.
Enter one straight fence segment
For corners, gates or interruptions, calculate each uninterrupted segment separately.
Your post-spacing layout
Compare post count, bay count and the final/equalized bay length.
Spacing geometry
Equalized vs fixed fence-post spacing
Equalized bays divide the entire straight run into equal spaces without exceeding the entered maximum. Fixed spacing from one end keeps the entered spacing for full bays and places the remaining distance in the final bay.
This distinction is useful when a layout needs balanced appearance or when layout is being marked from a known end point.
Transparent math
Fence post-spacing formulas
ceil(run length ÷ target spacing)run length ÷ required baysbays + 1floor(run length ÷ target spacing)run length − full bays × spacingWorked example
Example: 100 ft run with an 8 ft target
One hundred feet cannot be divided into whole 8 ft bays. Equalized mode uses 13 bays, so each bay is about 7 ft 8 5/16 in. Fixed mode keeps twelve 8 ft bays and leaves a final 4 ft bay. Both layouts use 14 posts.
Know the limits
Spacing is an input, not a recommendation
Fence type, material, height, wind exposure, rail/panel system, soil, terminal conditions and manufacturer instructions can affect allowable post spacing. Verify the spacing before using the calculated positions for construction.
Common questions
Fence Post Spacing Calculator FAQ
Should fence posts be exactly 8 feet apart?
Not necessarily. This calculator does not prescribe 8 ft. It lets you enter a target maximum and shows how the run divides under equalized or fixed layout modes.
Do I measure post spacing on center?
This geometry tool treats the entered spacing as center-to-center post spacing. Check your fence system’s actual layout instructions.
What about a gate opening?
Calculate each uninterrupted fence segment around the gate separately, or use the broader Fence Calculator and Fence Post Calculator for project totals.
Related tools