Skip to main content
Fence Planner

Fence Post Spacing Calculator

Enter your runs and the longest bay you will allow. The calculator divides each run into equal bays, counts every post once, and lists each post’s position so you can mark them out with a tape.

Planning estimate only. Results come from the measurements and prices you enter. They are not an engineered design, code or permit advice, or a quote. See how every number is calculated.

Straight 100 ft fence

Loading saved draft…

Spacing

Maximum post spacing

The longest bay you will allow, post centre to centre. Each run is divided into equal bays no longer than this. The starting value is illustrative, not a code or manufacturer requirement.

°

A bend sharper than this between two runs counts as a corner post; a gentler bend counts as a line post.

Fence runs

  1. Run 1 (point A to point B)

    Run 1 length

Add a run

Starting from an existing point shares one post there (a corner).

New run length

Direction of travel on the diagram, away from the start point.

Points and connections (exact coordinates, closing a shape, tees)

Coordinates are in feet from the first point (x to the right, y up). Moving a point changes only the runs that end there.

Point A
ft

Negative values are allowed.

ft

Negative values are allowed.

Point B
ft

Negative values are allowed.

ft

Negative values are allowed.

Connect two points with a new run

Add a connection point along a run

Use this to attach another run part-way along a fence (a tee). Lines that merely cross are never joined automatically.

Distance from the run’s start

Gates (0)

This tool works on the same project as the other calculators on this site, so the layout you enter here is the one used everywhere.

Layout

Top-down fence layout diagram1 run, 100 ft of fence line: 100 ft solid fence and 0 in of gate openings. 14 posts in total: 2 end, 12 line. Shared corners are counted once.
  • End post
  • Corner post
  • Gate post
  • Line post
  • Junction (review) post
  • Fence
  • Gate opening

Not to survey accuracy. Letters mark layout points; small numbers are post numbers from the post schedule; grid lines are 10 ft apart.

Layout described in words
  • 1 run, 100 ft of fence line: 100 ft solid fence and 0 in of gate openings.
  • 14 posts in total: 2 end, 12 line. Shared corners are counted once.
  • Run 1 goes from point A to point B, 100 ft, heading right (→).

Spacing results

Posts
14
Bays
13
Average spacing
7 ft 8 1/4 in
7.6923 ft
Solid fence
100 ft
Bays and spacing by section
SectionLengthBaysActual spacingLine posts
Run 1, fence (point A to point B) section 1100 ft137 ft 8 1/4 in (7.692 ft)12
Posts by type
TypeCountNote
End posts2Where a fence line stops
Line posts12Placed by the spacing rule
Total posts14
Post schedule with positions (14 posts)
Post schedule (14 posts)
No.TypeRunDistance along runx (ft)y (ft)
1End · point A10 in00
2Line17 ft 8 1/4 in7.6920
3Line115 ft 4 5/8 in15.3850
4Line123 ft 7/8 in23.0770
5Line130 ft 9 1/4 in30.7690
6Line138 ft 5 1/2 in38.4620
7Line146 ft 1 7/8 in46.1540
8Line153 ft 10 1/8 in53.8460
9Line161 ft 6 1/2 in61.5380
10Line169 ft 2 3/4 in69.2310
11Line176 ft 11 1/8 in76.9230
12Line184 ft 7 3/8 in84.6150
13Line192 ft 3 3/4 in92.3080
14End · point B1100 ft1000

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.

A 40 ft run divided into five equal 8 ft baysSix posts along one straight run. The two outer posts are end posts and the four between them are line posts. The distance between neighbouring post centres is the bay, 8 ft here. Five bays make the 40 ft run.one bay: 8 ftrun length: 40 ft = 5 bays, 6 postsend postline postend post
Spacing is measured between post centres. A run of N bays has N + 1 posts when it stands alone, and shares its end posts with neighbouring runs when it does not.

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

TypeWhen it applies
Gate postEither side of a gate opening. Takes priority over every other type.
End postA 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 postTwo runs meet at an angle greater than the corner tolerance (5° unless you change it).
Line postEvery 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

Every calculator works on the same saved project, so you can move between them without re-entering your layout.