BuildCalc
Fence Calculator
Project Calculators

Fence Calculator

Calculate fence posts, pickets, rails, and total material cost.

Sponsored
Lowe'sIn-store pickup available
Fence pickets, posts, rails & hardware — everything for your fence project.
Shop Fencing at Lowe's

How to calculate fence materials

  1. Enter the total fence run in feet. Walk the perimeter or measure on a plot plan — include all sides.

  2. Set your post spacing. Eight feet on center is standard for most privacy fences; 6 feet works better for tall or heavy styles.

  3. Enter picket width and gap. A 3.5-inch picket with a 0.5-inch gap is common for a standard privacy look.

  4. Add gates and enter per-item prices to get a complete material cost estimate.

Common uses

  • Planning a backyard privacy fence or dog run
  • Estimating materials for a ranch or split-rail fence
  • Getting a materials list before pulling a permit

Frequently asked questions

How many fence posts do I need for 100 feet of fence?
At 8-foot spacing, 100 feet needs 13 posts (100 ÷ 8 = 12.5, rounded up to 13, plus one end post). Always add 1 to the section count.
How deep should fence posts be set?
A general rule is one-third of the total post length in the ground. A 6-foot-tall fence needs posts set at least 2 feet deep, or deeper in frost-prone areas.
How many rails does a standard fence need?
Most fences up to 6 feet tall use 2 horizontal rails — one near the top, one near the bottom. Taller fences and those in high-wind zones benefit from a third middle rail.

Not sure whether to DIY this project?

Read our project-by-project guide on when to hire a contractor vs. do it yourself.

Read the guide →

About this calculator

Enter your total fence length, post spacing, picket width, and gap to get exact counts for posts, pickets, and rails. Add optional gate count and per-item pricing for a cost estimate.

All results are estimates. Verify quantities with your local supplier and confirm measurements before purchasing materials. Requirements vary by region and project type.

← All Calculators

Runs entirely in your browser - no data is sent anywhere