Fence Calculator
Fence Calculator
Calculate fence posts, pickets, rails, and total material cost.
DIY difficulty
- ›Post holes must be dug below frost line and set in concrete
- ›Keeping posts plumb and in line requires patience
- ›Call 811 before digging to check for underground utilities
Must-have tools
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?
How much concrete do I need per fence post?
How deep should fence posts be for a 6-foot fence?
Common mistakes to avoid
- ✕Not calling 811 before digging — call at least 3 business days before any post hole. Hitting a buried line is a serious safety and legal issue.
- ✕Setting posts before confirming the property line — installing over the line requires removal at your expense.
- ✕Insufficient post depth in frost climates — posts must go below local frost depth, not just follow the one-third rule.
- ✕Using above-ground rated lumber for posts — posts set in soil require UC4B (ground contact) rated lumber, not standard pressure-treated.
Calculators you might also 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
