Fence calculator
Enter the total length of the fence, the spacing between posts, the rails per section and the board width and gap, and this tool works out how many posts, rails and boards you need.
Results
Enter your values to see the result.
About this tool
It adds an allowance for waste on the boards. It suits a simple fence made of posts, rails and vertical boards.
- How it is calculated
- sections = length ÷ post spacing (rounded up); posts = sections + 1; rails = sections × rails per section; boards = length ÷ (board width + gap) (rounded up), plus waste
- Worked example
- With Units: Metric (metres, litres); Total fence length: 30; Post spacing: 2.4; Rails per section: 2; Board width: 14; Gap between boards: 0.5; Extra for waste and cuts: 5 %, the result is: Sections: 13; Posts: 14; Rails: 26; Boards (with waste): 218.
- Good to know
- The sections are the length divided by the post spacing, rounded up, and the posts are the sections plus one. The rails are the sections times the rails per section, and the boards are the length divided by the board width plus the gap, rounded up, with waste added. Gates, corners and slopes change the numbers.
Frequently asked questions
Do I need an extra post for a gate or corner?
Yes. Gates need strong posts on each side, and corners usually need an extra post. Add them to the result.
How far apart should fence posts be?
Often about 1.8 to 2.4 metres, or 6 to 8 feet, depending on the fence type. Follow the advice for your material.
How deep should the posts go?
A common rule is about a third of the post's length in the ground, but the soil and the fence height matter. Ask a local supplier.