Measure and sketch the fence before you order. This calculator works for straight runs of prefabricated timber panels. Work out each run separately, including the sections on either side of a gate, then add up your shopping list.

Check planning permission before you buy

In England and Wales, a new fence next to a highway used by vehicles, or its footpath, generally needs planning permission if it will be over 1 metre high. Elsewhere the usual threshold is over 2 metres. These are planning thresholds. Listed buildings and restrictions on permitted development can change what applies. If the ground slopes or you are adding gravel boards or trellis, show the full finished fence height to your local planning authority if you are unsure how to measure it.

Check the guidance for England, Wales, Scotland or Northern Ireland. Confirm the boundary and who owns any existing fence before taking it down. Check for buried services before digging post holes.

Fence panel and post calculator

Replace the example values with your measurements for one straight run with two new end posts and identical square post holes. Use the supplier’s bay spacing and footing dimensions. Measure gate openings separately.







Use the worked example below to calculate your materials by hand.


  1. Mark the ends, corners and gates. Measure each straight section from the centre of its first post to the centre of its last post. For a gate, use the supplier’s required opening between the posts, including the allowances for hinges and latch, to locate the gate posts before measuring the fence runs.
  2. Find the full bay spacing. Use the supplier’s specified post-centre spacing for the panel and post combination. A panel that fits between plain 100 mm posts with no extra clearance has a bay spacing equal to its actual width plus 100 mm. Slotted posts and brackets can change that spacing. Check actual dimensions, especially when choosing between 6 ft and 1.8 m panels.
  3. Divide the run length by the bay spacing. Use the same units and round up to get the number of bays. For a short last bay, subtract the length of the full bays from the run length. That leaves the last bay’s post-centre spacing. Use the fitting detail to turn that into the panel cut width. Order a narrow panel, or buy a full panel to trim and reframe if its design allows.
  4. Count the posts on your sketch. A new straight run needs one more post than bays. Count a shared corner post once. Count each gate post once, even if it also ends a fence run, and check which posts need to be rated for the gate. Deduct existing posts from the shopping list only after checking their condition and spacing.

Worked example

For a run measuring 8.00 m between the centres of the end posts, with 1.80 m panels between plain 100 mm posts and no extra fitting clearance, the bay spacing is 1.90 m. Divide 8.00 by 1.90 and round up to get five bays and six posts. Four full bays take 7.60 m. That leaves a 0.40 m bay from centre to centre, giving a 0.30 m clear panel width between the two 100 mm posts. If that last panel would be too narrow for the system, lay out two shorter bays or choose a different panel size before digging.

Long run of fence panels
The fence panel is the most popular form of fencing in the UK

How much post mix do you need?

Use the fence and post supplier’s footing dimensions for your ground, fence height and exposure. Gate and corner posts may need different footings. Estimate the volume to fill for each hole, subtract the volume taken up by the buried part of the post within that fill, then divide the total by the product’s stated yield in litres per bag. If the manufacturer specifies a bag count for your hole and post size, use that figure.

For the arithmetic, a square fill 0.25 m wide and 0.45 m deep around a square 0.10 m post takes about 23.6 litres per hole. Six identical holes take about 142 litres. At a stated yield of 10 litres per bag, that is 15 bags rounded up, before allowing for oversized or irregular holes. These dimensions illustrate the calculation. Use your supplier’s footing specification on site. Check whether opened bags can be split under the product instructions. If each hole must use whole bags, round up per hole before adding up.

Fencing guides for your next step

Before you place the order

Check panel and post sizes against the sketch, especially on a slope where stepped bays can change the post lengths you need. Add compatible gravel boards if specified, plus the brackets, exterior fixings, caps and gate hardware for your chosen system. Mark every post and dry-fit the first bay before setting the rest.

A collection of galvanised nails
Galvanised nails are the norm for fence panels