How to calculate fence materials
A wood fence is a row of sections. Each section runs from one post to the next and gets its own rails and pickets. Divide the fence length by the post spacing and round up to get the number of sections. You need one more post than sections, plus one extra post for each gate.
Rails run between the posts: two per section for fences up to 5 feet tall, three for 6-foot fences and four for 8-foot fences. For pickets, convert the fence length to inches and divide by the picket width plus the gap. A privacy fence has no gap, so the boards sit edge to edge. Gates are usually built from the same pickets, so we don't subtract them.
If your fence turns corners, each straight side usually ends with a short section. Add one post per corner to be safe, or run the calculator once for each side and add the results.
Worked example: a 100 ft privacy fence
Say you're fencing 100 feet of property line with a 6-foot privacy fence. Posts go 8 feet apart, there's one gate, and the pickets are 1×6 boards (5.5 inches wide) set with no gap.
- Count the sections
100 ÷ 8 = 12.5 → 13 sections - Add one post, plus one per gate
13 + 1 + 1 = 15 posts - Three rails per section at 6 ft
13 × 3 = 39 rails - Count the pickets
1,200 in ÷ 5.5 = 218.2 → 219 pickets - Three 50-lb bags per post (10-in holes, 2 ft deep)
15 × 3 = 45 bags
Rails and pickets by fence style
The style changes how many rails each section needs and how far apart the pickets sit. Wider gaps mean fewer pickets but less privacy.
| Style | Typical height | Rails per section | Picket gap |
|---|---|---|---|
| Privacy | 6–8 ft | 3 (4 at 8 ft) | None, edge to edge |
| Picket | 3–4 ft | 2 | About 2–3 in |
| Split rail | 3–4 ft | 2–3 | No pickets |
Split rails are sold to fit a set post spacing, so match the rail length to your spacing.
How long should fence posts be?
Quikrete's rule is to bury a third to a half of the post's height above ground. For a 6-foot fence that's 2 to 3 feet in the ground, so buy 8-foot posts at the very least, or 10-foot posts in loose soil and windy spots. An 8-foot fence needs 11- to 12-foot posts. In cold climates, holes often go below the frost line, which can mean deeper holes and longer posts.
Make each hole about three times the post's width: roughly 10 inches for a 4×4. For concrete, the calculator assumes a 10-inch hole dug a third of the fence height deep (at least 2 feet). That's three 50-lb bags per post for fences up to 6 feet, and four for an 8-foot fence. Deeper holes take more, so use the fence post concrete calculator for your exact hole size. Before you dig, check local codes, any HOA rules on height and style, and where buried lines run on your property.
Questions people ask
How many fence posts do I need?
Divide the fence length by the post spacing, round up, and add one. Then add one more for each gate. A 100-ft fence with posts 8 ft apart needs 14 posts, or 15 with one gate.
How far apart should fence posts be?
Six to 8 feet center to center is typical for wood fences. Closer spacing makes a stiffer fence, which helps with tall privacy fences and in windy spots.
How many pickets do I need for 100 feet of fence?
For 5.5-inch pickets set edge to edge, about 219 (1,200 inches ÷ 5.5). With a 2.5-inch gap between pickets you need about 150.
How much concrete do I need per fence post?
About three 50-lb bags for a 4×4 post in a 10-inch hole 2 feet deep (the hole should be about 3 times the post width). Deeper holes take more. The fence post concrete calculator works it out for any hole size.
Sources
The numbers in this calculator come from these manufacturer specs and public guides. Always check the label on the product you buy.
- Post holes 3× the post width, ⅓–½ of the above-ground height deep — Quikrete
- Three rails for 6-ft fences, four for 8-ft; bury ⅓ of the post — Universal Forest Products