Fence Calculator

Enter your fence length, height and post spacing to count posts, rails, boards or pickets and the concrete for every post hole.

Your measurements

Measure the fence

Showing an example

Fence materials

13 posts · 220 boards

12 bays with posts every 1.67 m

Posts

Posts
13
Post length (height + depth)
2.40 m
Actual post spacing (centres)
1.67 m

Rails and boards

Rails
36 × 1.67 m
Boards before extra
200
Boards to buy
220

Concrete

Per post hole
23 litres
All post holes
305 litres

Concrete is the hole volume minus the post. Check the yield printed on your post-mix bags to see how many you need. Each extra straight run or corner needs its own count.

About the fence calculator

How the fence calculator works

Enter the length of your fence run, the post spacing and the height, and the fence calculator counts the posts, rails and boards or pickets you need, plus the concrete to set each post. It suits close-board, picket and privacy fences, in metric or imperial.

What you enter

  • Fence length: the length of one straight run. For an L-shaped or U-shaped fence, work out each run separately.
  • Maximum post spacing: the furthest apart you want the posts. Common spacings are 1.8 m (6 ft panels) in the UK and 8 ft in the US.
  • Fence height, rails per bay, and the width of each board or picket with the gap between them.
  • Post depth in the ground, post size and hole diameter, for the post length and concrete.
  • An extra percentage of boards for splits, offcuts and spares.

How the fence is counted

  • Bays = fence length ÷ maximum post spacing, rounded up. The posts are then spaced evenly, so every bay is the same width.
  • Posts = bays + 1 for a straight run.
  • Post length = fence height + depth in the ground.
  • Rails = bays × rails per bay, each about one bay long.
  • Boards = fence length ÷ (board width + gap), rounded up, plus your extra percentage.
  • Concrete per post = hole area × depth, minus the volume of the post itself.

Worked example (metric)

  1. A 20 m close-board fence, 1.8 m high, with posts no more than 1.8 m apart and 3 rails per bay.
  2. 20 ÷ 1.8 = 11.1, so 12 bays and 13 posts at about 1.67 m centres.
  3. Posts set 600 mm deep need to be 1.8 + 0.6 = 2.4 m long.
  4. Rails: 12 × 3 = 36. Boards: 20,000 ÷ 100 = 200 boards, plus 10% = 220.
  5. A 250 mm hole around a 100 mm post, 600 mm deep, takes about 23 litres of concrete, or about 305 litres for all 13 posts.

Worked example (imperial)

A 100 ft privacy fence, 6 ft high, with posts no more than 8 ft apart needs 13 bays and 14 posts at about 7 ft 8¼ in centres. With posts 2 ft in the ground, buy 8 ft posts. Three rails per bay gives 39 rails. Using 5½ in boards with no gap, 219 boards cover the run, or 241 with 10% extra. A 10 in hole around a 4×4 post (3½ in actual), 24 in deep, takes about 0.9 cu ft of concrete, or about 12.9 cu ft for the whole fence.

Corners, gates and slopes

Each straight run starts and ends with a post, and a corner post is shared between two runs. Work out each run, add the posts together and subtract one for each shared corner. Gates usually need heavier posts and bigger holes, so treat each gate as its own short bay. On a slope, measure the length along the ground and decide whether the fence will step down in level sections or follow the slope.

Frequently asked questions

How many fence posts do I need?

Divide the fence length by the post spacing, round up to get the number of bays, then add one. A 20 m fence with posts no more than 1.8 m apart has 12 bays and needs 13 posts. A 100 ft fence at 8 ft spacing needs 14.

How deep should fence posts be?

A common rule is to bury about a third of the post's total length, or at least 600 mm (2 ft) for a 1.8 m (6 ft) fence. Go deeper in soft ground or exposed sites, and below the frost line where that applies.

How much concrete do I need per fence post?

Work out the volume of the hole and subtract the post. A 250 mm hole 600 mm deep around a 100 mm post needs about 23 litres. In imperial, a 10 in hole 24 in deep around a 4×4 needs about 0.9 cu ft. Check the yield on your post-mix bags to turn that into a number of bags.

How many fence boards or pickets do I need?

Divide the fence length by the board width plus the gap, round up, then add about 10% for splits and offcuts. For a closed privacy fence, set the gap to zero.

What is the standard spacing for fence posts?

Panel fences in the UK usually have posts about 1.8 m (6 ft) apart to suit standard panels. Board and picket fences in the US are commonly built with posts up to 8 ft apart.