Building & DIY

Fence Materials Estimator (Posts, Pickets, Rails)

Estimate everything you need to build a residential fence. Enter the perimeter or yard dimensions, your spacing, and gate width to get posts, panels, pickets, rails, and concrete bags.

Reviewed and updated

How to use
  1. Enter the perimeter, or the length and width of a rectangular yard.
  2. Set your post spacing and picket spacing.
  3. Add the gate width.
Typical yard
Fence length to build

Posts (incl. gate)
Panels / sections
Pickets total
Rails
Rail linear feet
Concrete (50 lb)
Estimates only, allow for waste and confirm against local building codes and supplier specs.
Was this helpful?

Start from the run length, then divide by the spacings

Everything keys off the total fence length. Find your run (measure it, or use 2 × (length + width) for a rectangle), subtract the width of any gates, then divide by the post spacing for posts and by the panel length for panels. Pickets and rails come from the panels.

posts = run ÷ spacing + 1 (open run),   panels = run ÷ panel length

Worked example: a 50 × 30 ft rectangle, wood, 6 ft spacing

  • Run. 2 × (50 + 30) = 160 ft around the yard.
  • Posts. 160 ÷ 6 ≈ 27 posts (a closed loop needs about one post per section).
  • Panels / sections. 160 ÷ 6 ≈ 27 panels at 6 ft each.
  • Pickets. 4″ wide over 160 ft: 160 × 12 ÷ 4 = 480 pickets.
  • Rails. 2 per panel up to 5 ft, 3 per panel for 6 ft and taller. Here 27 × 2 = 54 rails.

Spacing and depth by fence type

Fence typePost spacingPost depth
Wood (pickets)6 ft (4–8 ft)24–36″
Vinyl6–8 ft~30″
Chain-link8–10 ft24″
Aluminum6 ft (4–8 ft)24″

Post spacing over 8 ft tends to sag and is the most common structural mistake. Chain-link is sold by the linear foot rather than in panels.

Before you order

  • Rails scale with height. Use 2 rails per panel for a 4–5 ft fence, 3 for 6 ft and up.
  • Gates replace a section. Subtract each gate's width from the run before counting panels, and keep a gate to 3–4 ft so the hinges hold.
  • Add 10–15% on materials. Cuts, uneven ground and the odd warped board eat into a tight count.

Common questions

How many posts do I need for 100 feet of fence?

At the standard 6-foot spacing, 100 divided by 6 is about 17 sections, so you need roughly 17 posts for a closed loop and 18 for a straight open run (the run needs one extra post to close the last section).

How many pickets fit on a 6-foot panel?

With 4-inch pickets and no gap, a 6-foot (72-inch) panel takes 18. Adding a small spacing gap reduces that; a picket plus a half-inch gap gives about 16 per panel.

How deep should the posts go?

About one third of the fence height, and at least 24 to 30 inches. A 6-foot fence wants roughly 24 to 36 inches of post in the ground, deeper in soft or wet soil.

From the blog

Guides & how-tos

All articles →