Fence Calculator

Estimate the number of posts, pickets, and rails for your fence.

Total Fence Length ft
Post Spacing
Number of Gates
Picket Width (Actual)

Estimated Materials (Includes 10% Waste)
—

How to Estimate Fence Materials

Building a wooden fence is a great DIY project that adds privacy and value to your home. However, buying materials on the fly can lead to multiple trips to the hardware store and wasted money. This calculator takes the guesswork out of the process by estimating your posts, pickets, and rails in seconds.

To get an accurate estimate, you need to account for the standard spacing between posts (usually 8 feet), the width of your pickets, and a waste factor for cuts and mistakes.

How this Calculator Works

  1. Posts: We divide your total fence length by your chosen post spacing, round it up to the nearest whole number, and add 1 for the end post. We also account for gate posts.
  2. Pickets: We calculate how many pickets fit in one section (accounting for a small gap between them) and multiply by the total number of sections. A standard 1x6 picket is actually 5.5" wide.
  3. Rails: We assume 2 horizontal rails per section (standard for a 4ft to 6ft high privacy fence). Each section requires 2 rails.
  4. Waste Factor: We add a 10% waste factor to all materials to account for cuts, defective wood, and errors.

Real-World Example

Let's say you are building a 100-foot privacy fence using standard 8-foot post spacing, 1x6 pickets, and 1 gate (usually 4 feet wide).

Material Calculation Logic Total (with 10% waste)
Fence Posts (100 ÷ 8) = 12.5 → 13 posts + 1 end post = 14 posts 16 Posts (includes gate posts)
Pickets (1x6) 100 ft = 1,200 inches. 1,200 ÷ 5.625" (width + gap) = 214 pickets 236 Pickets
Rails (2x4) 13 sections × 2 rails = 26 rails 29 Rails

Tips for Building a Fence

Related Construction Tools

Planning a full backyard project? Check out our other tools:

Frequently Asked Questions

What is the best wood for a fence?

Cedar and pressure-treated pine are the most popular choices. Cedar is naturally rot-resistant and looks beautiful, while pressure-treated pine is more affordable and chemically treated to resist rot and insects.

Should I leave a gap between pickets?

Yes, a small gap (usually 1/8" to 1/4") is recommended. It allows the wood to expand and contract with the weather without warping, and it allows wind to pass through (which prevents the fence from blowing over in a storm).

How high can a fence be?

This depends on your local city ordinances. In many residential areas, front yard fences are limited to 4 feet, and backyard fences to 6 feet. Always check your local zoning laws before building.