What “post spacing” means here
Post spacing is the distance from the centre of one post to the centre of the next – one bay. You rarely get to use your preferred spacing exactly, because a run’s length is seldom a whole multiple of it. This calculator treats the number you enter as a maximum: it finds the smallest number of bays that keeps every bay at or under that limit, then makes the bays in that run equal so there is no odd short panel at one end.
How the spacing is calculated
For each stretch of solid fence between two fixed posts (an end, corner, gate post or junction):
bays = run length ÷ maximum spacing, rounded up (at least 1) actual spacing = run length ÷ bays line posts = bays − 1
The fixed posts at each end are counted once for the whole layout, however many runs meet there. Total posts are therefore the unique fixed posts plus every run’s line posts.
Lengths are kept as whole micrometers internally and converted from feet and inches only when you type or read them. That matters more than it sounds: rounding an 8 ft spacing to the nearest millimetre makes five bays fall just short of 40 ft, and a naive calculator then adds a sixth bay and an extra post that the fence does not need.
Examples
A straight 100 ft run, 8 ft maximum
100 ÷ 8 = 12.5, so 13 bays are needed. The actual spacing is 100 ÷ 13 = 7.692 ft, which is 7 ft 8 1/4 in to the nearest eighth of an inch. There are 12 line posts and 2 end posts: 14 posts.
An L shape, 40 ft and 60 ft, 8 ft maximum
The 40 ft run divides into exactly 5 bays of 8 ft (4 line posts). The 60 ft run needs 8 bays of 7 ft 6 in (7 line posts). Add the two free ends and the one shared corner: 4 + 7 + 2 + 1 = 14 posts. Working out each run separately and adding the results gives 15, which counts the corner post twice.
A 100 ft run with a gate
Put a gate with posts 4 ft apart, starting 38 ft along. The run becomes a 38 ft section (5 bays of about 7 ft 7 1/4 in), the gate opening, and a 58 ft section (8 bays of 7 ft 3 in). That is 4 + 7 = 11 line posts, 2 gate posts and 2 end posts: 15 posts, with none inside the opening.
A closed rectangle, 40 ft × 20 ft, 10 ft maximum
Sides of 4, 2, 4 and 2 bays give 3 + 1 + 3 + 1 = 8 line posts, plus 4 corners: 12 posts. A closed shape has no end posts and no extra “closing” post.
Post types
| Type | When it applies |
|---|---|
| Gate post | Either side of a gate opening. Takes priority over every other type. |
| End post | A point where only one run arrives. |
| Junction (review) | Three or more runs meet. Counted once, but flagged because the post and its footing need an installer’s judgement. |
| Corner post | Two runs meet at an angle greater than the corner tolerance (5° unless you change it). |
| Line post | Every other post, including the ones placed by the spacing rule. |
What you need to enter
- The length and direction of each straight run.
- The maximum bay you will allow between post centres.
- Any gates: where the first gate post sits and the centre-to-centre distance to the second.
Assumptions and limits
- The maximum spacing is yours to choose. The 8 ft starting value is only an illustration. Use the spacing given by your fence product, your installer or your local requirements.
- Equal bays suit site-built and chain-link fences. Pre-built panels – most vinyl and many wood panels – have a fixed width. For those, set the maximum spacing to the manufacturer’s post-centre dimension and expect to cut or order a special panel wherever a bay comes out shorter.
- Ground is treated as flat and runs as straight lines between points.
- Lines that cross without a shared point are not joined; add a connection point if a post belongs there.
- Coordinates are relative to your first point. They are a layout aid, not survey data.
Common mistakes
- Measuring face to face. Spacing here is centre to centre. If you measure the clear gap between posts, add one post width.
- Counting posts as “length ÷ spacing”. That gives the number of bays. A stand-alone run always has one more post than it has bays.
- Adding runs up separately. Shared corners get counted twice. Lay the whole fence out as one connected project.
- Spacing posts through a gate. A gate opening has a post each side and none in between; the fence either side is spaced on its own.
References
- Calculation methods and sources – the full rule set, including post-type precedence and precision.
- Fence post concrete calculator – concrete for the posts counted here.