Materials Calculators

Fence Calculator

A fence run needs one post per section plus one to close the end. Enter the length and post spacing for the posts, sections, and rails on a straight run.

Center-to-center; 6–8 ft is typical for wood fence.

Posts

14posts

Sections (panels)
13 sections
Rails
26 rails

How it’s calculated

Sections = ⌈ length ÷ post spacing ⌉ (round up, since the last section can be short), and posts = sections + 1 — the +1 is the post that closes the far end. Rails = sections × rails per section. This is a straight run; corners, gates, and ends add posts.

Worked example

A 100 ft fence at 8 ft spacing: ⌈100 ÷ 8⌉ = 13 sections, + 1 = 14 posts. With 2 rails per section, 13 × 2 = 26 rails.

FAQs

How far apart should fence posts be?
6 to 8 feet on center is standard for wood fence — 8 ft is common, 6 ft is sturdier for tall privacy fence or windy sites. Pre-made panels fix the spacing, so match it to the panel width.
Does this count corner and gate posts?
No — it's the post count for one straight run. Add a post at each corner and on both sides of every gate, and split long runs at corners. Gates also need heavier posts.
How deep should the posts go?
Set posts about a third of their above-ground height deep, and below your local frost line, in concrete. That depth isn't part of the count here — check your local code.

Sources

  • Posts = ⌈length ÷ spacing⌉ + 1 (standard straight-run layout). Rails = sections × rails per section. Geometry only.

Related calculators