Fence Calculator
Posts, rails, pickets or panels, concrete, gates, and hardware for wood or vinyl fences.
How it's calculated
- Gates are subtracted from the run before sections are counted
- One post per section, plus ends, gates, and corners
- Wood: 3 rails at 6 ft and up, 2 below
- Pickets: 5.5" wide side by side, plus 5% waste
- Concrete: 2 bags per wood post, 3 per vinyl post
Before you buy
- Find your property line (survey or plat)
- Check HOA and city height rules
- Call 811 before digging
- Good side faces out in most towns
Estimates only. Check local building codes, span tables, and frost depth before you build. Prices are national averages and editable.
How much fence material do I need?
Start with the total length of your fence line in feet. Subtract the width of any gates, divide the rest by your post spacing to get the number of sections, then count posts, rails, and pickets (or panels) from there. The calculator above does this for wood privacy, wood picket, and vinyl fences and prices every line.
Fence material formulas
- Sections = (fence length – gate widths) / post spacing, rounded up
- Posts = sections + 1, plus 1 per gate and 1 per corner
- Rails = sections x 2 (fences under 6 ft) or x 3 (6 ft and taller)
- Privacy pickets = fence length in inches / 5.5, plus 5% waste
- Concrete = about 2 bags of 50 lb fast-setting mix per wood post
Example: 150 ft wood privacy fence
6 ft tall, posts 8 ft apart, one 4 ft walk gate, two corners:
- 146 ft of fence after the gate, which is 19 sections
- 23 posts, 4×4 x 8 ft pressure treated
- 57 rails, 2×4 x 8 ft
- 335 dog-ear pickets, 5/8 x 6 in x 6 ft
- 46 bags of 50 lb fast-setting concrete
- 3 boxes of exterior screws, 1 walk gate, and 1 gate hardware kit
How many fence posts do I need?
| Fence length | Posts at 8 ft spacing | Posts at 6 ft spacing |
|---|---|---|
| 50 ft | 8 | 10 |
| 100 ft | 14 | 18 |
| 150 ft | 20 | 26 |
| 200 ft | 26 | 35 |
Straight runs with no gates or corners. Add 1 post for each gate and corner.
How deep should fence posts be?
- A common rule is one-third of the post’s height above ground, and at least 2 ft.
- 4 to 6 ft fences: set posts about 2 ft deep. A 6 ft fence uses 8 ft posts.
- 8 ft fences: set posts about 3 ft deep and use 10 or 12 ft posts.
- In cold climates, go below the frost line so posts do not heave.
- Make the hole about 3 times the post width (10 to 12 in for a 4×4).
Wood vs vinyl fence
| Wood privacy | Vinyl privacy | |
|---|---|---|
| Material cost | Lower | About 1.5 to 2 times more |
| Upkeep | Stain or seal every 2 to 3 years | Wash occasionally |
| Lifespan | 15 to 20 years | 20 to 30+ years |
| Install | Built stick by stick | Panels slide into posts |
Before you build
- Find your property line. A survey or plat avoids disputes with neighbors.
- Check city and HOA rules. Many towns cap backyard fences at 6 ft and front yards at 3 to 4 ft.
- Call 811 at least a few days before digging.
- In most places the finished side faces out toward the neighbor or street.
Fence calculator FAQ
How many pickets do I need for 100 ft of privacy fence?
About 230 pickets. 100 ft is 1,200 in, divided by 5.5 in per picket is 219, plus 5% waste.
How many bags of concrete per fence post?
Plan on 2 bags of 50 lb fast-setting concrete per 4×4 wood post, or about 3 for larger vinyl posts.
What is the best spacing for fence posts?
8 ft on center is standard for wood, since rails come in 8 ft lengths. Vinyl panels set the spacing, usually 6 or 8 ft.
How many rails does a 6 ft fence need?
Three rails per section: top, middle, and bottom. Fences under 6 ft usually use two.
Do gates need their own posts?
Yes. Each gate needs a hinge post and a latch post, so a gate adds at least one post to the count. Use a heavier post or extra concrete on the hinge side.
🛒 Recommended Fencing Materials
1. Quikrete 50 lb. Fast-Setting Concrete Mix
Ideal for setting fence posts without mixing. Just pour dry mix into the hole and add water
View on Amazon
2. Outdoor Essentials Western Red Cedar French Gothic Fence Picket (13-Pack)
Durable and naturally resistant to decay, these cedar pickets offer a classic look for your fence
View on Amazon
3. CR Fence & Rail 6ft Wood Fence Kit
Includes 2 metal end posts with 4 channels and heavy-duty hardware, suitable for wooden fences
View on Amazon
4. Jake Sales Wood Fence Rail Bracket for 2×4 Lumber
Galvanized steel brackets designed to resist rust, perfect for securing fence rails
View on Amazon
5. Fast 2K Fence Post Mix
A lightweight and fast-setting alternative to traditional concrete, expanding to set posts quickly
View on Amazon
**Note:** The above links are affiliate links. If you choose to purchase through them, we may earn a small commission at no additional cost to you.