Fence Calculator: Posts, Rails, Pickets and Cost
Count the posts, rails, pickets and bags of concrete for a wood fence, with gates, and get a materials estimate before you buy or call a contractor.
Loading the fence calculator...
A wood fence is a long run of the same few parts repeated: posts set in concrete, two or three rails between them, and pickets nailed to the rails. Once you know the length, the post spacing and the board width, the rest is counting. The calculator does that counting for you, adds gate posts and concrete, and gives you a materials total with prices you can change.
How the calculator counts
- Fence run = total length minus gate openings (4 ft per gate)
- Sections = run ÷ post spacing, rounded up
- Posts = sections + 1, plus one more for each gate, since a gate needs a post on both sides
- Rails = sections × 2 for fences up to 5 ft, or × 3 for taller fences
- Pickets = run in inches ÷ (picket width + gap)
- Concrete = posts × bags per post
A worked example: a 120 ft privacy fence
A 6 ft tall privacy fence, 120 ft long, with one gate, posts 8 ft apart, 1x6 pickets (5.5 in wide) butted tight:
- Run: 120 − 4 = 116 ft
- Sections: 116 ÷ 8 = 14.5, so 15 sections
- Posts: 15 + 1 + 1 = 17 posts
- Rails: 15 × 3 = 45 rails
- Pickets: 116 × 12 ÷ 5.5 = 253.1, so 254 pickets
- Concrete at 2 bags per post: 34 bags
At $20 per post, $9 per rail, $3.50 per picket and $7 per bag, the materials come to about $1,872. Gate hardware, screws or nails and any stain are extra.
How far apart should fence posts be?
Decks.com gives these common on-center spacings:
| Fence type | Post spacing |
|---|---|
| Wood privacy | 6 to 8 ft |
| Vinyl | 8 to 10 ft, per the manufacturer |
| Chain link | 10 to 12 ft |
Eight feet is common for wood because rails are commonly sold in 8 ft lengths. A solid 6 ft panel also catches a lot of wind, so do not stretch the spacing further. Use 6 ft spacing in windy spots, on slopes or with heavy board-on-board styles.
How deep should the posts go?
The usual rule is to set the post at least one third to one half as deep as its height above ground. A 6 ft fence post would go about 2 to 3 ft into the ground, so you buy 8 or 10 ft posts. In cold climates, go below the frost line so the ground does not heave the posts in winter. Your local building department can tell you the frost depth.
To work out the concrete for each hole exactly, use our fence post concrete calculator. It accounts for the hole size, the post size and a gravel layer at the bottom.
What a fence costs in 2026
Angi's 2026 data puts the average fence installation at $3,276, with most homeowners paying $1,860 to $4,844. Installed price per linear foot by material:
| Material | Installed, per linear foot |
|---|---|
| Chain link | $8 to $40 |
| Wood | $10 to $45 |
| Composite | $11 to $45 |
| Vinyl | $15 to $40 |
| Aluminum | $17 to $90 |
Labor is about half of the total. Gates add $150 to $2,000 each. Angi also notes that fences taller than 6 ft usually cost 20% to 30% more than standard heights.
Before you build
- Find the property line. A survey or your plat map shows it. Building a few inches onto a neighbor's land is a common and expensive mistake.
- Check local rules. Many towns limit fence height, especially in front yards, and some require a permit. HOAs often have their own style rules.
- Call 811 in the US before you dig, so buried utility lines get marked for free.
- Talk to the neighbor. Agree on which side faces them, and whether they will share the cost.
Privacy, picket or board-on-board?
- Privacy: pickets butted together. Set the gap to 0.
- Spaced picket: a gap of 2 to 3 inches between pickets uses fewer boards and lets wind through.
- Board-on-board: two overlapping layers with no see-through gaps. Depending on how much the boards overlap, it takes roughly 1.5 to 2 times the pickets of a privacy fence, so multiply the calculator's picket count by that.
Frequently asked questions
How many fence posts do I need for 100 feet?
With 8 ft spacing and no gates, 100 ÷ 8 = 12.5, so 13 sections and 14 posts. With 6 ft spacing, 17 sections and 18 posts.
How many pickets for an 8 ft section?
With 5.5 in pickets butted tight, 96 ÷ 5.5 = 17.5, so 18 pickets per 8 ft section.
How many bags of concrete per fence post?
For a 4x4 post in a 10 in hole, 30 in deep with 4 in of gravel, it is about 2.7 bags of 50 lb, so plan on 3, or about 1.7 bags of 80 lb. The post concrete calculator works it out for your sizes.
Is it cheaper to build a fence yourself?
On materials alone, often half or less of an installed price, since labor is about half the cost. You will need a post-hole digger or auger, a level and a helper.
Next step
Work out the concrete with the fence post concrete calculator. Planning a deck too? The deck board calculator counts boards and screws.
Material prices vary by region and season. Check with your lumber yard before ordering.


