🚧
Home & DIY

Fence Calculator

Your fence length in — exact panels, posts, and the concrete needed for every post hole, out.

✓ Free to use ✓ Standard panel width ✓ Post hole concrete built in ✓ Shareable results
Google AdSense — 728×90 Leaderboard
▸ Post hole size
Panels Needed
Posts Needed
Actual Fence Length
Total Concrete Needed
25kg Bags (concrete mix)

✨ More for the job

📌 Add this calculator to your website

Why your fence length rarely divides evenly

Standard UK fence panels come in 1.83m (6ft) widths. A 20m run divided by 1.83m gives 10.9 panels — since you can't buy a fraction of a panel, you round up to 11, which actually covers 20.13m, slightly more than your original measurement. This is completely normal and why fence runs are almost never buildable to an exact metre figure.

Posts always outnumber panels by one

Every panel needs a post on each side, and adjacent panels share a post — so a straight run of N panels needs N+1 posts, not N×2. An 11-panel fence needs 12 posts, not 22.

Worked example

A 20m fence with standard 1.83m panels needs 11 panels and 12 posts, covering an actual 20.13m. Each 300mm-diameter, 600mm-deep post hole needs about 0.042 m³ of concrete — across 12 posts that's 0.51 m³ total, roughly 43 bags of 25kg concrete mix.

Post hole depth should be roughly a third of the post's above-ground height, with a practical minimum around 450-600mm for standard garden fencing — deeper for taller fences or exposed sites. Check your specific panel/post system's manufacturer guidance.

How this is calculated

Inputs: fence length in metres, panel width in metres (1.83 m is the standard 6 ft UK panel), post hole diameter in metres and post hole depth in millimetres. The run is assumed to be straight.

Panels = fence length ÷ panel width, rounded up

Posts = panels + 1

Actual fence length (m) = panels × panel width — the run you end up with once the panels are whole, which is normally longer than the run you measured.

Post-hole concrete reuses the same circular volume arithmetic as the concrete calculator:

Volume per hole (m³) = π × (hole diameter ÷ 2)² × (hole depth in mm ÷ 1,000)

Total concrete (m³) = volume per hole × posts

Bags = total concrete ÷ 0.012, rounded up, where 0.012 m³ is what a 25 kg bag of concrete mix is assumed to make. No waste allowance is applied to the concrete on this page.

Worked example

A 20 m straight run of 1.83 m panels, with post holes 0.3 m across and 600 mm deep.

  • Panels = 20 ÷ 1.83 = 10.93, rounded up = 11 panels
  • Posts = 11 + 1 = 12 posts — ten between the panels and one at each end
  • Actual length = 11 × 1.83 = 20.13 m, so 0.13 m more fence than the 20 m measured
  • Volume per hole = π × 0.15² × 0.6 = 3.14159 × 0.0225 × 0.6 = 0.042412 m³
  • Total concrete = 0.042412 × 12 = 0.509 m³
  • Bags = 0.508938 ÷ 0.012 = 42.41, rounded up = 43 bags, which is 1,075 kg

The page displays 11 panels, 12 posts, 20.13 m, 0.509 m³ and 43 bags. Forty-three bags is over a tonne of post mix for a garden fence, which is the point at which most people stop looking at bags and start looking at a delivery or a ballast-and-cement mix.

Where this estimate goes wrong

Rounding up panels makes the run longer than the garden

Twenty metres does not divide into 1.83 m panels, so the calculator rounds up and reports a 20.13 m fence. That 0.13 m has to be dealt with on site: either the last panel gets cut down, or the run is spaced so the difference is spread across the joints, or the gravel board runs long at one end. It is small here, but a 10 m run rounds to six panels and 10.98 m — almost a metre of extra fence that has to go somewhere.

No waste on the concrete at all

Forty-three bags is 0.516 m³ against 0.509 m³ needed — 1.4% spare. One slightly over-dug hole eats that. A hole dug to 350 mm across instead of 300 mm holds π × 0.175² × 0.6 = 0.0577 m³, which is 36% more than the 0.0424 m³ assumed, and if all twelve are like that the job needs 58 bags instead of 43.

Straight run only

Corners, returns and stepped ground are not modelled. A corner adds a post without adding any fence length to the panels figure, and a step in the ground needs either longer posts or a cut-down panel. If your run turns a corner, add one post per corner to the count and expect to cut panels.

Every hole is assumed identical, and every post the same size

End posts and corner posts take more load than intermediate ones, and gate posts take the most — a hung gate needs a heavier section and a bigger, deeper hole than the 0.3 m × 600 mm default. The calculator has no way to treat one post differently from another.

600 mm deep may not be enough

Depth is your input, and the concrete volume follows it directly. A 1.8 m panel in exposed ground or on soft fill usually wants a deeper hole than 600 mm, and the calculator will happily price whatever you type. The concrete figure is only as good as the depth you believe in.

Related: the concrete calculator handles slab and footing shapes this page does not, and the decking calculator is the equivalent for a timber deck's boards and joists.

Frequently Asked Questions

Why does the calculator add one to the post count?+
Because panels sit between posts. Eleven panels in a straight run need a post at each end and one between every pair, which is twelve. The formula is panels plus one for any straight run with no corners; add one more post for every corner or return, since a corner is a post with panels arriving from two directions.
How much concrete does one post hole need?+
A 0.3 m diameter hole 600 mm deep holds 0.042412 m³, which is 3.53 bags of 25 kg mix, so four bags. Round up per hole rather than across the job if you are mixing as you go, because a part-bag does not keep. On a twelve-post run that is 42.4 bags before rounding, and the calculator returns 43.
What if my run is 19 m rather than 20 m?+
19 ÷ 1.83 = 10.38, so still 11 panels and 12 posts, but the actual length is 20.13 m — more than a metre of overrun on the fence you measured. Below 18.3 m the count drops to ten panels and eleven posts. The panel count only changes at exact multiples of the panel width, which is why fence runs are usually set out from the post positions rather than the total length.
Does this include gravel boards, rails or trellis?+
No. The calculator returns panels, posts and post-hole concrete only. Gravel boards are one per panel length, arris rails usually come with the panel, and trellis or decorative tops are additional. Fixings, post caps, fence paint or stain and the removal of the old fence are also outside it.
What if my fence has corners, not just a straight run?+
Calculate each straight section separately using this tool, then add the results together — corner posts are shared between two sections, so subtract one post per corner from your combined total to avoid double-counting. See why a 20m fence never comes out to exactly 20m →
Should I use post mix instead of standard concrete?+
Fast-setting post mix (like Postcrete) is convenient since it needs no mixing and sets in minutes, which is ideal for the small number of holes in a typical garden fence — see our Concrete Calculator for the bag comparison either way.
Do I need gravel boards too?+
Gravel boards (which sit below the panels, against the ground) typically match the same panel width and post spacing, so the same panel/post count from this calculator applies — just add the gravel board cost per panel separately.