Fence Calculator
Calculate fence posts, pickets, rails, and total material cost.
How to calculate fence materials
Enter the total fence run in feet. Walk the perimeter or measure on a plot plan — include all sides.
Set your post spacing. Eight feet on center is standard for most privacy fences; 6 feet works better for tall or heavy styles.
Enter picket width and gap. A 3.5-inch picket with a 0.5-inch gap is common for a standard privacy look.
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?
How deep should fence posts be set?
How many rails does a standard fence need?
Not sure whether to DIY this project?
Read our project-by-project guide on when to hire a contractor vs. do it yourself.
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.
Runs entirely in your browser - no data is sent anywhere