Skip to content
DIY and installation

Building a Fence Near Trees and Roots

Trees and fences often share boundaries. Get it wrong and you damage the tree's roots or watch the trunk slowly push the fence over. Get it right and both last for years.

Updated October 2026 · 3 min read

Illustration of a fence line stepping around a mature tree, with a bridged section over roots and a gap left for trunk growth

The short answer

When fencing near a tree, dig post holes by hand, move posts to avoid roots thicker than about 25mm, and bridge over large roots with a rail or longer panel. Leave a generous gap around the trunk for growth. Check whether the tree has a Tree Preservation Order or is in a conservation area before cutting any roots or branches.

Most of a tree's roots are in the top 600mm of soil and spread well beyond the canopy. That's exactly where fence post holes go. Cutting a large root can damage or destabilise a tree; ignoring a tree can leave you with a post that can't be set properly or a fence that's shoved out of line as the trunk grows.

Check the rules first

Many mature trees are protected. A Tree Preservation Order (TPO) makes it an offence to cut down, top, lop, uproot or wilfully damage the tree – including its roots – without consent. Trees in conservation areas have similar protection, and you must give the council six weeks' notice of most work. Fines can be substantial.

Your council can tell you whether a tree has a TPO. If the tree belongs to a neighbour, you can only cut overhanging branches or encroaching roots up to the boundary, and you shouldn't do anything that kills or destabilises the tree.

Windswept tree bent by the prevailing wind on open ground

Setting posts among roots

Closeboard and post and rail fences are more flexible than panels here, because bays can be built to any width. See types of garden fence.

  • Dig post holes by hand with a spade and trowel – never with an auger near trees
  • If you hit a root thicker than about 25mm, move the hole rather than cutting the root
  • Adjust post spacing, use a shorter panel or a closeboard section that can span further
  • Use bolt-down or spike post supports only where the ground is too rooty to dig, and keep panels low
  • Avoid pouring large amounts of concrete over root zones

Bridging roots

Where large surface roots cross the fence line, the fence can bridge over them. A gravel board can be cut to sit above the root, or a rail can run across with boards fixed above it. Leave a gap of a few centimetres above the root so it can grow without lifting the fence.

Leaving room for the trunk

Trees get wider every year. A fence built tight against a trunk will eventually be pushed over or embedded in the bark. Leave a generous gap – often 150mm or more – around young trunks, and step the fence line around larger trees rather than fixing to them. Never nail or screw fence parts into a tree. It damages the tree and creates rot.

If you have a leaning fence near a tree already, see how to fix a leaning fence.

Hedges and young trees

If you're planting new trees, keep them back from the fence line so you have room to maintain the fence later. Native hedging along a boundary can be a lovely alternative to fencing near trees – see hedge vs fence.

Typical costs for fencing near trees

Typical costs for fencing near trees
JobTypical UK price
Extra labour for hand-digging among roots+£10–£30 per post
Bespoke closeboard bay to bridge roots£150–£350 per bay
Arboricultural advice (small domestic visit)£150–£400
TPO or conservation area applicationUsually free to apply

Indicative UK prices for 2026.

Rather leave it to a professional?

Describe your fence once – the length, height and style, or just the problem – and compare quotes from fencing contractors near you.

Get free fencing quotes

Describe your job once and compare quotes from local tradespeople who cover your area.

  • Free to use
  • No obligation
  • Compare local tradespeople
  • Quick online form
Get Free Quotes

You'll continue to our quotes partner, MyJobQuote, to describe your job.

Fencing near trees: common questions

Can I cut tree roots to put in a fence post?

Avoid cutting roots thicker than about 25mm, and never cut roots of a protected tree without consent.

How do I know if a tree has a TPO?

Ask your local council. Many councils have an online map of Tree Preservation Orders.

Can I fix a fence to a tree?

No. It damages the tree and the fence will be pushed out as the trunk grows.

How far should a fence be from a tree?

Leave at least 150mm around young trunks, more for larger trees, and step the fence round mature trunks.

Can I use metal post spikes near trees?

Only for low fences, and only where roots prevent digging. They're less stable than concreted posts.

Ready to compare fencing quotes?

Free, no-obligation quotes from local fencing contractors.

Get Free Quotes