Home & DIY / calculator
Fence calculator
Estimate posts and pickets from a straight fence run, post spacing, picket width, gap, and waste. Enter metres or feet; gates need separate planning.
Calculator
Calculator
Enter fence length, height, and spacing.
Estimate fence area, posts, and pickets or panels from your layout assumptions.
Your result
Enter details to see the result.
Complete the inputs and calculate to see the main result and its supporting breakdown.
Example
Worked example
Example inputs
- Unit system
- Metric (m, m², m³)
- Fence length (m)
- 4
- Fence height (m)
- 2
- Post spacing (m)
- 2
- Picket or panel width (m)
- 0.1
- Gap between pickets (m) (optional)
- 0.01
- Waste and cutting loss (%) (optional)
- 10
Calculation breakdown
Bays = round up(fence length ÷ post spacing). Posts = bays + 1. Purchase pickets = round up(fence length ÷ (picket width + gap) × (1 + waste percentage ÷ 100)). Height is recorded but does not change these counts.
- Fence area
- 8.00 m²
- Geometric face area.
- Posts
- 3
- Based on spacing plus end posts.
Example result
Pickets or panels
40
Rounded for the stated width, gap, and waste.
How to interpret the result
Use the counts as a layout estimate for the entered spacing and dimensions. Corners, gates, end-post rules, terrain, and local requirements can increase the actual material list.
How to use this calculator
- Choose metres or feet and enter the straight run and uniform height.
- Enter centre-to-centre post spacing, actual picket width, and picket gap in that unit.
- Set waste and calculate; add gates, corners, rails, and footings separately.
How it works
Formula
Bays = round up(fence length ÷ post spacing). Posts = bays + 1. Purchase pickets = round up(fence length ÷ (picket width + gap) × (1 + waste percentage ÷ 100)). Height is recorded but does not change these counts.
How many fence posts and pickets do I need?
Divide fence length by maximum post spacing, round up the bays, and add one end post. Pickets use their width plus gap, then your waste allowance. Rounding bays up reduces actual spacing; gates and corners can change the post layout.
What this calculator does
Enter the planned fence run and layout spacing to create an area and component-count estimate.
Who this is useful for
DIY planners estimating posts and pickets or panels along one straight fence run.
Inputs you will need
Required or selected inputs
- Unit system
- Fence length (m)
- Fence height (m)
- Post spacing (m)
- Picket or panel width (m)
Optional inputs
- Gap between pickets (m) (optional)
- Waste and cutting loss (%) (optional)
Assumptions
- The fence run is straight and height is uniform.
- Post spacing is center-to-center.
- Gates, corners, rails, footings, and local code requirements are excluded.
Limitations
- Corners, gates, slopes, wind loads, soil conditions, and code can materially change the design and quantity.
- This is not structural or permit advice.
Useful next steps
Estimate individual rectangular or cylindrical post footings with Concrete calculator.
Estimate the volume of a separate rail or lumber list with Lumber calculator.
See how HandyChest handles units, validation, rounding, and testing, or Report a problem with this calculator.
Good to know
Frequently asked questions
Does this include gates?
No. Add gates and their posts separately.
How should I measure spacing?
Use the planned center-to-center distance between posts.
Keep going