Fence Materials Calculator

Enter your fence length, height and post spacing to get a complete shopping list for a wood fence. You get the number of posts, rails, pickets and screws, plus an estimated total cost if you add prices.

Your measurements

Units
Total length, including gates.

On center. 8 ft is standard.2.4 m is standard.

Each gate opening.

Auto: 3 for this height.

0 for a privacy fence.

Prices (optional)

Add your store's prices, each, to see the total cost.

Results update as you type.

Results

Enter your measurements to see results.

Front view of one fence section with its dimensions.

How to use this calculator

  1. Measure the total fence length, including gate openings, and choose the height.
  2. Set the post spacing, measured center to center. 8 ft is standard; use 6 ft for tall fences or windy sites.
  3. Enter the number of gates, their width and the number of corners.
  4. Check rails per section. It fills in automatically for the height, but you can change it.
  5. Pick the picket width and the gap between pickets (0 for privacy).
  6. Optionally, add prices to see the total cost. Results update as you type.
  7. Use How much concrete for these posts? to carry your post count to the concrete calculator.

Worked example

A 100 ft, 6 ft tall privacy fence with posts 8 ft apart, one 4 ft gate, 2 corners and 1×6 pickets (5.5 in) with no gap, plus 10% extra pickets:

  1. Sections: 100 ÷ 8 = 12.5, rounded up to 13
  2. Posts: 13 + 1 = 14, plus 1 for the gate and 2 for the corners = 17 posts
  3. Rails: 13 sections × 3 rails = 39 rails
  4. Pickets: (100 − 4) × 12 = 1,152 in ÷ 5.5 = 209.5, rounded up to 210; plus 10% = 231 pickets
  5. Screws: 231 pickets × 3 rails × 2 = 1,386 screws

At $15 per post, $8 per rail and $3.50 per picket, that comes to $255 + $312 + $808.50 = $1,375.50 before tax.

Frequently asked questions

How far apart should fence posts be?

Most wood fences use posts 8 feet apart, measured center to center, which matches common 8 and 16 ft rail lengths. Use 6 feet for fences taller than 6 ft, heavy boards, soft soil or windy sites. Check your local building code before you build.

How many rails does a 6 ft fence need?

Three per section: top, middle and bottom. The middle rail keeps tall boards from bowing and warping. Fences 4 ft and shorter usually need only two rails, and some builders add a fourth rail on 8 ft fences.

Should I build a privacy fence or leave gaps between pickets?

A privacy fence butts the pickets together with no gap, so enter 0. Wood shrinks as it dries, so small gaps can open over time. A spaced picket fence leaves a gap, often 1 to 3 inches, which uses fewer pickets and lets wind and light through.

How many extra posts do I need for gates?

Every gate needs a solid post on each side. This calculator adds one extra post per gate, because the post on the other side usually lands on a line post you already counted. It also adds one per corner. Gate posts carry more load, so many builders use 6x6 posts or set them deeper.

How many screws do I need per fence picket?

Two fasteners at every rail is standard: 4 per picket on a 2-rail fence and 6 per picket on a 3-rail fence. Use exterior-rated screws or ring-shank nails about 1-1/4 to 2 inches long. In high-wind areas, local codes may call for three per rail.