How to Calculate Fence Post Spacing
Getting post spacing right determines how strong your fence stands and how professional it looks. Space posts too far apart and rails sag; too close and you waste material. Here's how to work it out precisely.
Step 1 — Choose your post spacing
Post spacing depends on fence type, height, and wind exposure. These are the industry-standard spacings used by professional fencing contractors:
Step 2 — Calculate number of posts
The formula for a straight fence run is:
The ⌈ ⌉ symbol means round up to the nearest whole number. Always round up — never down — or your last section will be too wide.
Example: 100 ft fence, 8 ft spacing:
If your fence includes gates, add 2 posts per gate opening — one on each side.
Step 3 — Adjust to even bay spacing
After calculating post count, work backwards to get perfectly even spacing. This prevents an awkward short bay at the end of your run.
Example: 100 ft fence, 14 posts:
Step 4 — Calculate post length and burial depth
Every post needs to be buried deep enough to stay rigid. The rule is:
So a 6 ft fence needs posts buried at least 2 ft (6 ÷ 3 = 2). Total post length = fence height + burial depth. A 6 ft fence uses 8 ft posts.
In cold climates, burial depth must go below the local frost line regardless of the 1/3 rule. Frost lines range from 24 inches in mild regions to 48+ inches in northern states and Canada. Check your local building code.
Step 5 — Count rails
Rails are the horizontal boards that run between posts. The number you need per section depends on fence height:
Step 6 — Estimate concrete
Each post needs a concrete footing. For a standard 4×4 post in a 12-inch diameter hole about 24 inches deep, use 2 bags of 80 lb quick-setting concrete per post. Deeper holes (36+ inches) need 3–4 bags.
Skip the manual calculation
Enter your fence length, height, and spacing to get posts, rails, concrete, and pickets in one step.
Use the Fence Calculator →FAQ
How many fence posts do I need for 100 feet?
For 100 ft with standard 8 ft spacing: divide 100 by 8 (= 12.5), round up to 13 sections, then add 1 post = 14 posts total. Add 2 extra posts per gate opening.
How far apart should fence posts be?
8 feet on centre is standard for most wood and vinyl fences. Use 6 ft for fences over 6 ft tall or in high-wind areas. Chain-link fences typically use 10 ft spacing.
How deep should fence posts be set?
At least 1/3 of the total post length — so a 6 ft fence needs 8 ft posts with 2 ft buried. In cold climates, always go below the local frost line (36–48 inches in northern regions).
Why do I get an uneven last bay?
Because fence length rarely divides evenly by your desired spacing. Fix it by using adjusted spacing: divide your total length by the number of bays (posts minus 1). This spreads the difference evenly across all sections.
How many rails do I need per section?
Use 2 rails for fences under 5 ft, 3 rails for 5–7 ft fences, and 4 rails for 8 ft fences. Rails run horizontally between posts and carry the pickets or boards.