Enter the length of the fence, the post spacing and the board size to get the posts, the boards, the rails, the screws and the concrete for the post holes.
What this fence calculator counts
A wooden or board fence looks simple until you stand in a shop with a list. This calculator turns the length of the fence into the things you actually buy: posts, boards, horizontal rails, screws and the concrete for the post holes. Thirty metres with posts every 2.5 metres and 100 mm boards with a 20 mm gap means 13 posts, 12 sections, about 263 boards, 63 metres of rail, around a thousand screws and nearly a cubic metre of concrete.
Posts: one more than the sections
The number of posts is the length divided by the spacing, rounded up, plus one, because every section has a post at both ends. Spacing of 2 to 2.5 metres suits timber rails; steel profile and heavy boards may need less. Add extra posts for gates, corners and every place where the ground changes slope, and read how to choose the type, height and foundation in the article on a fence around a building.
Boards, gaps and allowance
The boards are counted by the width of one board plus one gap along the whole length. A gap lets the wood move with moisture and lets the wind through, which is why a solid fence at full wind load is harder on its posts than a fence with gaps. The allowance covers cut-offs, split ends and boards you reject, five percent for straight runs and more for a fence with many angles. For choosing timber and sheet materials see the guide to timber and sheet materials.
Rails and screws
Two horizontal rails are enough for a low fence, three are better above about 1.5 metres so that the boards cannot twist. The rail length is the fence length times the number of rails, with the same allowance. Each board is fixed to every rail with two screws, which is how the screw count is found; use exterior-grade fasteners, because ordinary screws rust and stain the wood within a season.
Concrete for the post holes
The calculator assumes a hole about 30 by 30 centimetres and the depth you enter. A common planning rule is to set a post to at least a third of its length in the ground and below the frost depth of your region, because frozen soil heaves shallow posts. Concrete for post holes is a small job but the mix still matters; read about cement, sand and water in the mix, and for larger foundations use the concrete calculator. The volume shown is the hole volume and the post itself displaces part of it, so it is a safe upper figure.
Setting out and keeping it straight
Stretch a string line between the end posts, set the first and last posts first and the rest to the string. Use a spirit level to keep every post plumb, and for long runs or sloping ground a laser level helps to hold the top line. Let the concrete cure before loading the posts with rails and boards.
Slopes and steps
On a slope the fence is built in steps or follows the ground. Stepped sections need posts on every step and rails cut square, and following the ground needs the boards trimmed. In both cases count the posts by the horizontal length and add one for each step, and check the wind load, since a fence on an exposed slope works like a sail.
Worked example
A 30 metre fence, posts every 2.5 metres, 100 mm boards with a 20 mm gap, two rails, a hole depth of 0.8 metres and a 5 percent allowance gives 13 posts, 12 sections, 263 boards, 63 metres of rail, 1052 screws and 0.94 cubic metres of concrete.
Common mistakes
- Forgetting the extra post at the end of the run.
- Setting posts shallower than the frost depth.
- Using ordinary screws instead of exterior-grade fasteners.
- Leaving no gap between boards and no drainage under the bottom board.
- Burying wooden posts in soil without protection or a post base.
- Not counting gates, corners and steps.
What to read next
Choosing a fence material? Read our comparison of seven fence materials for a house, then use this calculator to estimate posts, rails and concrete.
Look at the section on fences and gates and the wider Construlator knowledge base, and open the list of calculators for the rest of the tools. This page is a planning estimate: confirm the foundation, the post depth and the fence height against local rules and your site conditions.
Frequently asked questions
Why is there one more post than sections?
A straight run needs a post at both ends. The calculator rounds the number of sections up and adds one post.
What does the concrete volume include?
It is the gross volume of rectangular 30 × 30 cm holes at the depth entered. The post volume is not subtracted.
How are screws counted?
Each board is assigned two screws per horizontal rail. Board count includes the entered waste allowance.
Can I enter a negative gap or allowance?
No. Use zero for boards without a gap or for no extra allowance. Confirm the actual arrangement with the product instructions.
