Fence calculator
Count material for one straight fence run without gates.
Formula
Bays = ceil(L/s); posts = bays + 1; pickets = ceil((L+g)/(w+g))
Run length: 60 ft · Maximum post spacing: 8 ft · Picket width: 5.5 in · Picket gap: 0.5 in · Posts ≈ ceil(((60 ft × 0.3048 m/ft)÷(8 ft × 0.3048 m/ft))×(1-8.881784197001252e-16))+1 · Rail pieces ≈ ((9)-1)×(3) · Pickets ≈ ceil((((60 ft × 0.3048 m/ft)+(0.5 in × 0.0254 m/in))÷((5.5 in × 0.0254 m/in)+(0.5 in × 0.0254 m/in)))×(1-8.881784197001252e-16))
How to use
- Enter the run and maximum post spacing.
- Enter picket width, gap and rails per bay.
- Read counts; add separate gates and corners.
Examples
- A 24 ft run at 8 ft spacing has 4 posts and 9 rails with 3 rails per bay.
Frequently asked questions
Is post spacing prescribed?
No. Enter spacing from your fence design; the example is not a structural rule.
How are pickets placed?
Across post faces, with no end gap. The last picket may be cut; post widths are not deducted.
Does this include waste?
No. Add spares, fasteners and footings separately.
Sources
Updated: