Fence Post Calculator

Calculate the number of fence posts needed.

Last updated 2026-08-21

What Is a Fence Post Calculator?

The fence post calculator tells you how many posts you need for a fence line. Enter the fence length, post spacing, and the number of gates, and it adds the extra hinge and latch posts each gate requires.

How It Works

Posts = ceil(Length ÷ Spacing) + 1 + Number of gates.

Example

A 100 ft fence at 8 ft spacing with 2 gates: 14 + 2 = 16 posts.

How to Calculate

  1. Measure the total fence length in feet. A 100 ft fence is typical.
  2. Choose a post spacing, usually 6 to 8 ft on center for wood fences.
  3. Enter the length, spacing, and number of gates. At 100 ft, 8 ft spacing, and 2 gates, you get 14 posts plus 2 more, for 16 total.
  4. Decide on post size. Use 4×4 posts for most residential fences and 6×6 for tall or wind-loaded fences and gates.
  5. Set posts about one-third of their height deep, typically 24 to 30 in for a 6 ft fence.

Fence Posts Needed by Length and Spacing

Fence Length6 ft Spacing8 ft Spacing
50 ft10 posts8 posts
100 ft18 posts14 posts
150 ft26 posts20 posts
200 ft34 posts26 posts
300 ft51 posts39 posts

Sources

Frequently Asked Questions

Why does each gate add a post?

A gate needs its own hinge and latch posts, even when it lines up with the regular spacing.

What size posts should I use?

4×4 posts suit most residential fences; 6×6 for tall or wind-loaded fences and gates.

How deep should posts be set?

About one-third of the post height, typically 24–30 in for a 6 ft fence.

Mason ReidFounder and Lead Estimator at MeasureThen

Mason Reid founded MeasureThen after two decades of hands-on work in construction and estimating. Across residential and light commercial projects, he sized concrete pours, framed walls, hung drywall, and priced out roofing, fencing, and deck work — learning the exact math that every job depends on. At MeasureThen he writes the formulas, checks every calculator against real-world assumptions, and makes sure each one is simple enough for a homeowner to trust and a contractor to use. When he is not measuring twice, he is helping projects stay on budget.

Every MeasureThen calculator uses simple, transparent formulas and standard industry assumptions drawn from common construction practice. We show the math behind each result and include worked examples so you can follow along and double-check the numbers. Results are estimates: materials, labor, and pricing vary by region and market, so always confirm important figures with a licensed professional and your local building codes.