Hardscape
Fence Calculator
Enter your fence run and style to get post count, rail count, picket count, and the concrete for setting posts, plus how deep the holes need to be.
Updated
Fence run
Add up every side you are fencing.
Above grade. Many municipalities cap front-yard fences at 4 ft.
8 ft is standard; 6 ft makes a noticeably stiffer fence for tall privacy panels.
Each unbroken straight or cornered line needs one extra end post.
Style and materials
3 rails per section · $18–38 per ft installed
A nominal 1×6 board actually measures 5.5 in.
0 for solid privacy; 2–3 in for a spaced picket fence.
A nominal 4×4 measures 3.5 in, but 4 is close enough for the concrete estimate.
Posts needed
19 sections at 8 ft (2.44 m) spacing
- Rails
57
- Pickets
328
- Concrete
60bags
60 lb (27.2 kg) bags
Material list
Posts
Rails
Pickets / boards
Concrete
Post hole depth
Hole diameter
| Item | Quantity |
|---|---|
| Posts | 20 × 8 ft (2.44 m) |
| Rails | 57 |
| Pickets / boards | 328 |
| Concrete | 60 bags (60 lb (27.2 kg)) |
| Post hole depth | 2 ft (0.61 m) |
| Hole diameter | 12 in (30.5 cm) |
Installed cost estimate
Wood privacy (solid board) at 150 ft (45.7 m)
| Range | |
|---|---|
| Wood privacy (solid board) at 150 ft (45.7 m) | $2,700–$5,700 |
Buy 8 ft (2.44 m) posts, 6 ft (1.83 m) above grade plus 2 ft (0.61 m) buried. Put a few inches of gravel in the bottom of each hole so water drains away from the end grain.
Call 811 before digging, confirm your property line with a survey rather than a neighbour's assumption, and check local height limits and setback rules. Fence disputes are expensive to unwind.
In hard-freeze regions set posts below the local frost line even if that is deeper than 2 ft (0.61 m), otherwise frost heave will lift them.
How this is calculated
Posts and sections
Sections are your total length divided by post spacing, rounded up. Post count is sections plus one for each separate straight run, a single straight fence needs one more post than it has sections, because both ends need one.
Standard spacing is 6 to 8 ft. Eight feet is common because lumber comes in 8 ft lengths, but 6 ft spacing makes a noticeably more rigid fence and is worth it for tall privacy panels that catch wind.
posts = ⌈length ÷ spacing⌉ + number of runs
Post depth and concrete
Set posts one third of their above-grade height into the ground, with a 2 ft minimum. A 6 ft privacy fence wants 2 ft in the ground, so buy 8 ft posts. In regions with deep frost, go below the frost line regardless of what the one-third rule says, or the fence will heave.
Hole diameter should be about three times the post width, a 4 × 4 post wants a 10 to 12 inch hole. Concrete volume per post is the hole volume minus the post itself.
Put a few inches of gravel in the bottom of each hole before the post. It lets water drain away from the end grain instead of pooling around it, which is where wood posts almost always start rotting.
| Fence height | Post depth | Post length to buy |
|---|---|---|
| 3 ft picket | 2 ft | 5 ft |
| 4 ft | 2 ft | 6 ft |
| 6 ft privacy | 2 ft | 8 ft |
| 8 ft privacy | 2.7 ft | 10–11 ft |
Picket count
Picket count depends on the board width plus the gap between boards, together, the pitch. A solid privacy fence has no gap, so pitch equals board width and a 5.5 inch board gives about 2.2 boards per foot.
A spaced picket fence with 3.5 inch boards and 2 inch gaps has a 5.5 inch pitch, so it needs less than half the boards of a solid fence over the same run.
Worked example
A 6 ft privacy fence
150 linear feet in one continuous run, 6 ft tall, 8 ft post spacing, 5.5 inch solid boards, 4 × 4 posts.
- Sections
- 150 ÷ 8 = 18.75 → 19
- Posts
- 19 + 1 = 20
- Rails (3 per section)
- 19 × 3 = 57
- Pickets
- 150 × 12 ÷ 5.5 = 328
- Post depth
- 6 ÷ 3 = 2 ft, so 8 ft posts
- Concrete
- ~1.0 cu ft per post × 20 = 20 cu ft ≈ 45 bags of 60 lb
20 posts, 57 rails, 328 pickets, and about 45 sixty-pound bags of concrete. At $18–38 per linear foot installed, the full job runs roughly $2,700–5,700.
Frequently asked questions
Related calculators
Concrete Calculator
Get cubic yards and exact bag counts for slabs, footings, cylindrical piers, and stairs, plus whether mixing bags or ordering ready-mix makes sense at your volume.
OpenLandscaping Cost Calculator
Pick a project, enter its size, and set your market. You'll get a DIY material cost and an installed cost range, with the drivers behind the spread spelled out.
OpenPlant Spacing Calculator
Find out how many plants a bed needs at your chosen spacing, and how many fewer you need if you offset the rows. Triangular spacing fits about 15% more plants into the same ground.
OpenGuides that go deeper
- Privacy Plants That Work: Fast, Dense, and Right for Your YardChoosing privacy plants is about more than speed. Get real advice on spacing, climate fit, and which hedges actually work for small yards or tough spots.
- Pergola Types, Costs, and How to Avoid RegretsNot all pergolas are the same. Get the facts on types, costs, and planning so you don’t waste money or end up with a sunburn trap.