Calculate fence post spacing: the equal gap between posts for a fence length, how many posts you need for a maximum gap, or the fence length or post width.

One straight run. Length runs from the outside face of the first post to the outside face of the last.

Actual width, not nominal: a 4ร—4 is 3.5 in, a 6ร—6 is 5.5 in.

Optional settings


Related Calculators

Calculator Functions

FunctionWhat it doesWhat it requires
Clear gapFinds the equal open space between posts along a straight fenceRequires the fence length, the number of posts and the post width
Fence lengthFinds the length a row of posts coversRequires the number of posts, the post width and the clear gap
Number of posts neededFinds the fewest posts that keep every gap at or under a chosen maximumRequires the fence length, the post width and the maximum clear gap
Post widthFinds the post width that fits a given length, post count and gapRequires the fence length, the number of posts and the clear gap

Fence length is entered in ft, m, yd or cm and is measured from the outside face of the first post to the outside face of the last. Post width and gaps are entered in in, cm, mm or ft. The post width is prefilled with 3.5 in. Every result also lists the number of gaps, the clear gap and the center-to-center spacing.

Fence Post Spacing Formulas

G = (L โˆ’ N ร— T) รท (N โˆ’ 1)
GClear gap between neighbouring posts (in)
LFence length, outside face to outside face (in)
NNumber of posts, at least 2
TWidth of one post along the fence (in)

Clear gap

N posts leave N โˆ’ 1 gaps, and the gaps share whatever length the posts do not take up. A 60 ft fence is 720 in. With 45 posts that are 5 in wide, the posts take 225 in and the 44 gaps are 11.25 in each. The center-to-center spacing is the gap plus one post width, 16.25 in here.

Fence length

L = N ร— T + (N โˆ’ 1) ร— G

45 posts of 5 in with 11.25 in gaps cover 720 in, which is 60 ft.

Number of posts needed

N = (L + Gmax) รท (T + Gmax)

Gmax is the largest gap allowed. The result is rounded up to a whole number of posts, and the gaps are then made equal to fit the length, so the actual gap is at or below the maximum. A 100 ft fence with 3.5 in posts and gaps of no more than 8 ft works out to 13.025, so it needs 14 posts with gaps of 88.538 in. The maximum depends on the type of fence. For chain link, the U.S. military guide specification limits line posts to 10 ft apart [1]. A 100 ft chain link run with 2.375 in posts and a 10 ft maximum gap needs 11 posts.

Post width

T = (L โˆ’ (N โˆ’ 1) ร— G) รท N

A 60 ft fence with 45 posts and 11.25 in gaps has posts 5 in wide.

Limits of This Estimate

  • The calculation is for one straight run with a post at each end. Corners, gates and braces break a fence into separate runs that are worked out one at a time.
  • Post width is the actual width, which for sawn lumber is smaller than the nominal size.
  • The result is geometry only. The spacing a fence needs for strength depends on its type, height, wind and soil, and on local rules.

Sources