A typical wood fence has posts every 6–8 ft, two or three horizontal rails between them and vertical pickets nailed to the rails. Privacy fences use pickets butted together (no gap); picket fences have gaps of 2–3 in. Every post is set in concrete, usually with one to two bags per hole.
How to use the Fence Calculator
- Fence length
- Post spacing
- Gates
- Gate width
- Rails per section
- Picket width
- Gap between pickets
- Concrete bags per post
- Price per post
- Price per rail
- Price per picket
- Price per bag of concrete
Results update as you type, and every field accepts the units shown in its menu.
How it works
Enter the fence length, post spacing, number and width of gates, rails per section, picket width and gap, bags of concrete per post and prices. The calculator counts every component and totals the material cost.
Inputs explained
| Field | What to enter |
|---|---|
| Fence length | Units: ft, m, in, yd, cm |
| Post spacing | Choose one: 6 ft, 8 ft, 2.4 m, 1.8 m |
| Gates | A number |
| Gate width | Units: ft, m, in, yd, cm |
| Rails per section | A number |
| Picket width | Units: in, cm, mm, ft, m |
| Gap between pickets | Units: in, cm, mm, ft, m |
| Concrete bags per post | A number |
| Price per post | Units: /piece |
| Price per rail | Units: /piece |
| Price per picket | Units: /piece |
| Price per bag of concrete | Units: /piece |
What each result means
- Fence run (excluding gates) = max([Fence length] – [Gates]×[Gate width], 0)
- Sections = ceil([Fence run (excluding gates)]÷[Post spacing] – 0.000001)
- Posts = [Sections] + 1 + [Gates]
- Rails = [Sections]×[Rails per section]
- Pickets = ceil([Fence run (excluding gates)]÷([Picket width] + [Gap between pickets]) – 0.000001)
- Bags of concrete = [Posts]×[Concrete bags per post]
- Material cost = [Posts]×[Price per post] + [Rails]×[Price per rail] + [Pickets]×[Price per picket] + [Bags of concrete]×[Price per bag of concrete]
- Cost per length = [Material cost]÷[Fence length]
Example values
How the main result changes when Fence length changes and everything else stays at the example values above:
| Fence length (ft) | Pickets |
|---|---|
| 75 | 155 |
| 112.5 | 237 |
| 150 | 319 |
| 187.5 | 401 |
| 225 | 483 |
| 300 | 646 |
Formula
Sections = ceil((length − gates) ÷ post spacing)
Posts = sections + 1 + gates; rails = sections × rails per section
Pickets = ceil((length − gates) ÷ (picket width + gap))
Worked example
Inputs: Fence length: 150 ft; Post spacing: 8 ft; Gates: 1; Gate width: 4 ft; Rails per section: 3; Picket width: 5.5 in; Gap between pickets: 0 in; Concrete bags per post: 2; Price per post: $18 /piece; Price per rail: $9 /piece; Price per picket: $3 /piece; Price per bag of concrete: $6.5 /piece.
Results: Fence run (excluding gates) = 146 ft; Sections = 19; Posts = 21; Rails = 57; Pickets = 319; Bags of concrete = 42; Material cost = $2,121.00; Cost per length = $14.14 /ft.
Frequently asked questions
How many pickets do I need for 100 ft of fence?
With 5½ in pickets and no gap, 219 pickets; with a 2½ in gap, 150.
How far apart should fence posts be?
6–8 ft; 8 ft is standard for wood, 6 ft for heavier privacy panels or windy sites.
How many rails does a fence need?
Two for fences up to 4 ft, three for 6 ft privacy fences.
How deep should fence posts be?
About one-third of the post length (2–3 ft for a 6 ft fence), and below the frost line.