Fence calculator

Enter the fence’s total length and how you want it built. You’ll get a materials list for posts, rails and pickets.

Measuring in meters? Use the metric version

8 ft is typical, and the most you should use for most wood fences.

0 for a privacy fence.

Pickets

219 pickets

Posts
14 posts
Rails
39 8 ft rails
Sections
13 sections

Shop for this project

As an Amazon Associate, Measure the Dream earns from qualifying purchases.

How it works

Sections are the fence length divided by post spacing, rounded up. A straight run needs one more post than it has sections. Rails are sections × rails per section. Pickets are the fence length in inches divided by picket width plus gap.

This assumes a single straight run. Each corner or gate usually adds an extra post. Run each side of an L or U shape separately and add the results.

Example

With total fence length 100 ft, post spacing 8 ft, rails per section: 3 rails (6 ft privacy fences), picket width 5.5 in, gap between pickets 0 in, the answer is 219 pickets.

How to measure

Measure the full run of the fence along the line where the posts will go, and note where each corner, end and gate sits. Corners and gates each need their own post, and gates usually need sturdier posts.

Before you measure, confirm where your property line is. A survey or the plat map from your county is more reliable than an old fence. Call 811 a few days before you dig so buried utility lines are marked.

Posts, rails and pickets by fence length

A straight run with posts 8 ft apart, 3 rails per section and 5½ inch pickets with no gap.

Fence lengthPosts8 ft railsPickets
50 ft821110
100 ft1439219
150 ft2057328
200 ft2675437
300 ft39114655

Common mistakes

  • Forgetting gate and corner posts. The calculator counts a straight run, so add a post for each corner and an extra one for each gate.
  • Spacing posts farther than the rails are long. With 8 ft rails, posts need to be no more than 8 ft apart, measured center to center.
  • Skipping the permit and HOA check. Many towns limit fence height, especially in front yards, and some require the finished side to face out.
  • Setting posts too shallow. A common rule is to bury about a third of the post’s length, and below the frost line in cold climates.

Tips before you buy

  • Call 811 before you dig. It’s free, and they’ll mark buried utility lines.
  • Check property lines and any HOA or city rules on height and which side faces out before you build.
  • Buy 5–10% extra pickets for warped or split boards.
  • Use the fence post concrete calculator to figure out how many bags to set the posts.

Common questions

How many pickets are in an 8-foot fence section?

With 5½ inch pickets and no gap, 18 per section (17.45, rounded up).

How far apart should fence posts be?

Usually 6 to 8 feet. 8 feet is common for wood fences, and spacing them closer makes a sturdier fence.

How many posts for a 100-foot fence?

With 8-foot spacing, 13 sections and 14 posts for a straight run.

Add this calculator to your website

Free for any site or blog. Paste this code where you want the calculator to appear. The short script makes it resize to fit; if your site doesn’t allow scripts, the calculator still works without it.