How fence materials add up: post spacing, gates, rails and concrete
Why fence posts are counted by bays, how corners and gates change the count, how much concrete a post hole really takes, and where waste allowances come in.
Open the Fence calculator Free, in your browser, nothing uploaded.
A fence shopping list is easy to get wrong: a post short at a corner, or half the concrete you need. This article explains the counting rules behind the fence calculator: how bays decide the posts, how runs, corners and gates change the count, and how much concrete a post hole really holds. It is for homeowners, landlords and anyone pricing a garden job. Height limits, boundary rules and frost depth are set locally, so check the official source before you build. For a second opinion on the concrete volume, use the concrete calculator; if a deck sits next to the fence, plan it with the deck calculator; and to plan cuts from long boards, try cut list.
What it is
Bays and posts. A straight run of fence is split into bays, the gaps between posts. If posts may be at most S apart, a run of length L needs:
bays = L ÷ S, rounded up, and posts = bays + 1.
Always round up: 6.25 bays means 7 bays.
Corners. Where one run ends and the next begins, one post can serve both. In a continuous line of N runs, N − 1 posts are shared; in a closed loop, N are shared. Separate runs share nothing.
Gates. A gate takes its width out of the run and splits it into two sections, each with its own end posts. So a gate usually adds a post, the one on the far side of the gap (in Kim’s fence below it does not, because the shorter sections need one bay fewer).
Rails and pickets. Rails run along every bay: rail length = rails per bay × fence length, then divided by the length of rail you buy and rounded up. Pickets cover the fence at a pitch of picket width plus gap: pickets = section length ÷ (width + gap), rounded up for each section. A waste allowance (a few percent) covers bad boards and cutting mistakes. With ready-made panels, the panel width sets the spacing and panels replace rails and pickets.
Concrete. A round hole of diameter D and depth H, with a square post of width W standing in it, holds:
concrete = (π ÷ 4 × D² − W²) × H
The post fills part of the hole.
How to use it
- Choose metric or imperial, and how the runs join: one continuous line, separate runs or a closed loop.
- Add each straight run with its length and the number of gates in it.
- Set the fence height, post spacing, gate width, rails per bay, rail length, picket width and gap, and a waste percent, or tick ready-made panels and type the panel width.
- Open Post holes and concrete to set hole size, post width and bag size.
- Open Prices and type what each item costs, if you want a total.
- Read the posts, rails, pickets or panels and concrete bags, then Copy list or Download CSV for the shop.
A worked example
Kim is fencing three sides of a back garden: 15 m, 10 m and 15 m in one continuous line, with a 1 m gate in the 10 m side. Posts at most 2.4 m apart, fence 1.8 m tall, 3 rails per bay in 2.4 m lengths, pickets 95 mm wide with 25 mm gaps, and 10% waste. Holes are 300 mm across and 600 mm deep for 100 mm posts, filled with 25 kg bags (about 12 litres each).
- 15 m sides: 15 ÷ 2.4 = 6.25, so 7 bays and 8 posts each.
- 10 m side: the gate leaves 9 m in two 4.5 m sections; each needs 2 bays and 3 posts, so 6 posts.
- 8 + 6 + 8 = 22 posts, minus 2 shared corners = 20 posts over 18 bays. Each post is 1.8 + 0.6 = 2.4 m long.
- Rails: 3 × 39 m of fence × 1.10 = 128.7 m, so 54 lengths of 2.4 m.
- Pickets at 0.12 m pitch: 125 for each 15 m side and 38 for each 4.5 m section, 326 in all; with waste, 359.
- Concrete: (π ÷ 4 × 0.3² − 0.1²) × 0.6 = 0.0364 m³, about 36.4 litres a hole; × 20 = 728 litres, or 61 bags.
With 1.83 m panels instead, the same fence needs 24 panels, 26 posts and 79 bags, because the shorter spacing adds posts.
Checked with the tools
The fence calculator does its counting inside its page script, so we copied its counting loop line for line into a Node script and ran Kim’s fence and the panel version through it. As a check on the copy, the same script reproduces the tool page’s own example exactly (10 posts, 18 rail lengths, 210 pickets, 22 bags of 80 lb premix).
Where it is used
- Quotes and budgets. A full list with prices shows whether panels or pickets cost less for your length.
- Landscaping jobs. Contractors use the same bay arithmetic to order posts and concrete for a site.
Common mistakes
- Dividing length by spacing without adding one. 7 bays need 8 posts.
- Counting corner posts twice. Shared corners are one post; choose the right layout.
- Forgetting the gate posts. A gate needs a post on each side, and gate posts often need to be stronger.
- Buying concrete for the whole hole. Subtract the post, but buy a spare bag for soft ground.
- Ignoring frost depth. In cold places posts must go below the frost line. Check the official source.
Questions people ask
How far apart should fence posts be? About 2.4 m (8 ft) is common for timber; panels set their own spacing. Wind and fence height may call for closer posts.
How deep should a post go? A common rule is a third of the post’s length, and below the frost line where the ground freezes.
Can I use gravel instead of concrete? Some fences do; this tool assumes concrete.
Sources
- Post, rail, picket and panel counts are fibub's own arithmetic from the sizes you type: bays = run length / post spacing rounded up, posts = bays + 1 for each section, pickets = length / (picket width + gap) rounded up.
- Concrete per hole = (pi/4 x hole diameter squared - post width squared) x hole depth. Premix bag yields (80 lb about 0.60 cu ft, 60 lb about 0.45 cu ft) are from Quikrete's product data (quikrete.com, checked 2026-12-05); a 25 kg bag is taken as about 12 litres. Always check the bag. 1 cu ft = 28.3168 litres.
- Common rules used as defaults: posts every 2.4 m (8 ft), a post hole about a third as deep as the post is long (and below the frost line where it freezes), hole diameter about three times the post width. Planning rules, fence height limits, boundary law and frost depth are set by your local authority, so check the official source.
If you are an author or publisher and want a credit or a passage changed or removed, tell us and we will act quickly.