Few things test a dog owner’s patience quite like heading into the garden to find a fresh crater at the base of the fence. It is muddy, it is frustrating, and if your dog is genuinely trying to tunnel their way out, it can be downright dangerous.
The good news is that digging under a fence is a very solvable problem once you understand what is driving it. Below we cover why dogs do it, then walk through the physical barriers and humane training fixes that actually work in a typical UK garden.
To stop a dog digging under a fence, first work out the cause (boredom, escaping, chasing prey, seeking a mate, anxiety or cooling off), then block access by burying wire, an L-footer or paving along the fence line. Pair that with more exercise, enrichment, a dedicated digging pit and positive training. Never punish the digging.
Key Takeaways
- Digging under a fence is a symptom, so identify the cause before you fix it.
- Common causes include boredom, escape and prey drive, seeking a mate, anxiety and simply cooling off on a hot day.
- Physical barriers such as a buried L-footer, chicken wire, paving slabs or gravel along the fence base stop tunnelling fast.
- Behavioural fixes (more exercise, enrichment and a digging pit of their own) tackle the reason your dog started in the first place.
- Neutering can help where the escaping is driven by the urge to find a mate.
- Positive, reward-based methods work. Punishment does not, and often makes anxiety-driven digging worse.
- Terriers and other working breeds are natural diggers, so channel the instinct rather than trying to suppress it.
Why Do Dogs Dig Under Fences?
Digging is completely normal dog behaviour. Their ancestors dug to bury food, make dens and stay cool, so the instinct runs deep. The trick is figuring out which particular itch your dog is scratching, because the right solution depends entirely on the cause. UK welfare charities including the RSPCA and the PDSA all stress the same thing: address the reason, not just the hole.
Boredom and Too Much Energy
This is the most common culprit by a mile. A dog left alone in the garden with nothing to do will invent their own entertainment, and digging is brilliant fun. Under-exercised, intelligent and high-energy dogs are especially prone to it. If your dog is a bundle of unspent energy, digging is often just a release valve.
Escaping and Prey Drive
Some dogs dig with a clear destination in mind: out. They might be chasing next door’s cat, following the scent of rabbits or rats along the fence line, or simply exploring. Terriers were bred to go to ground after vermin, so a hole near an old burrow or tree root often means they have scented something worth pursuing.
Seeking a Mate
An unneutered dog that catches the scent of a nearby dog in season can become remarkably determined to escape. If your dog only started tunnelling recently and is entire, hormones may well be the driver. Neutering can significantly reduce this roaming urge, and your vet is the best person to advise whether it is right for your dog.
Anxiety and Separation Distress
Frantic digging, particularly when you have just left, can be a sign of distress rather than mischief. Dogs struggling with separation anxiety may try to dig their way out to follow you or to escape something that frightens them, such as fireworks or building work next door. This type of digging needs a gentle, supportive approach rather than any kind of telling-off.
Keeping Cool or Comfortable
On a warm day, freshly dug soil is delightfully cool. Dogs will often scrape out a shallow pit in a shady spot to lie in, and the base of a fence is a favourite because it is usually shaded. If the holes appear in summer and your dog curls up in them, temperature is likely the answer.
Breed Tendencies
Some dogs are simply hardwired to dig. Terriers (Jack Russells, Border Terriers, Cairns), Dachshunds and many working breeds have generations of digging behind them. You will not train this instinct away entirely, so with these breeds the goal is to give them a legitimate outlet.
Physical and Barrier Solutions
If your dog is actively trying to escape, you need to make the fence line dig-proof while you work on the behaviour. These barriers are humane, effective and suit most UK gardens.
Bury Chicken Wire or an L-Footer
An “L-footer” is the go-to fix. Take galvanised chicken wire or weld mesh, bend it into an L-shape, and lay the foot of the L flat along the ground at the base of the fence, pointing back into your garden. Bury it a few inches under the soil or pin it down with landscaping staples and cover it with turf. When your dog digs, they hit wire instead of soft earth and quickly give up. Fold over any sharp edges so there is no risk of scratched paws.
Extend the Fence Below Ground
For committed diggers, sink the barrier deeper. Digging a trench roughly 30cm deep along the fence and running mesh or fence panels down into it makes tunnelling under nearly impossible. It is more effort up front, but it is a permanent fix.
Paving Slabs, Concrete or Gravel
Laying paving slabs or a strip of concrete along the base of the fence gives your dog nothing to dig into. A cheaper alternative is a band of large, chunky gravel or rocks along the fence line, since gravel is uncomfortable to dig through and most dogs won’t bother. Large rocks or bricks part-buried against the fence work well for spot-fixing a favourite hole.
Invest in Solid Fencing
Flimsy panels invite escape attempts. If your fencing is old or wobbly, upgrading to something sturdier, ideally metal or well-sunk timber, removes the temptation and holds up to a determined dog. Good fencing is not cheap, but it is worth budgeting for as part of the wider cost of owning a dog, especially if you have an escape artist on your hands.
Behavioural and Training Solutions
Barriers stop the digging today. Tackling the underlying cause stops it for good. This is where the real, lasting progress happens.
More Exercise and Enrichment
A tired dog is a well-behaved dog. Make sure your dog is getting enough physical exercise for their breed and age, plus plenty of sniffing time on walks to tire out their brain. If getting your dog out of the door is a battle in itself, our guide on how to walk a stubborn dog can help. High energy is also just part of life with a young dog, and if you are wondering when puppies calm down, the honest answer is that consistent exercise and training speed things along.
Beat the Boredom
Never leave your dog alone in the garden for long stretches with nothing to occupy them. Scatter feeding, puzzle feeders and a few tough, long-lasting toys give them something better to do than excavate the borders. Rotating the toys keeps them interesting.
Create a Dedicated Digging Pit
You cannot switch off a terrier’s need to dig, so give them a legal place to do it. A children’s sandpit or a marked-off corner of the garden filled with sand or loose soil makes a perfect digging pit. Bury a few toys or treats in it to show your dog this is where the fun happens, and praise them warmly when they use it. Redirect them to the pit whenever they start digging elsewhere. Many owners are amazed how quickly a dog takes to having their own spot.
Positive Training and Supervision
Spend time in the garden with your dog, especially early on, so you can gently interrupt digging at the fence and redirect them to their pit or a toy the moment they start. Reward every good choice with praise or a treat. This kind of reward-based, “catch them being good” approach is exactly what the natural chewing and foraging behaviours respond to as well. Consistency and patience win here.
Address Anxiety and Consider Neutering
If the digging is rooted in anxiety, focus on building your dog’s confidence, keeping departures low-key and never punishing the behaviour. Serious cases are worth discussing with your vet or an accredited behaviourist. And where escaping is driven by the urge to find a mate, ask your vet whether neutering could take the edge off that roaming instinct.
What NOT to Do
Whatever you try, do not punish your dog for digging. Shouting, telling them off after the event, or filling holes with water or unpleasant substances simply does not work, because your dog cannot connect the punishment to something they did earlier. Worse, it can increase anxiety and make the digging more intense, and it damages the trust between you. Reward-based methods are recommended by every reputable UK source, from the Dogs Trust to the Blue Cross, for good reason. Kindness and consistency get results; punishment gets you a more stressed dog and, usually, more holes.
Frequently Asked Questions
What can I put at the bottom of my fence to stop digging?
The most effective options are a buried L-footer made from galvanised chicken wire or weld mesh, paving slabs or concrete laid along the fence line, or a strip of chunky gravel or large rocks. Each one gives your dog something hard or uncomfortable to hit instead of soft soil, which quickly discourages digging.
Why has my dog suddenly started digging under the fence?
A sudden change usually points to a new trigger. Common ones are a nearby dog in season (particularly if your dog is unneutered), the arrival of rats or other wildlife along the fence, a new source of noise or stress, or hot weather prompting them to dig a cool spot. Work out what has changed and you will usually find your answer.
Do dogs grow out of digging?
Some do, especially if the digging was linked to puppy energy that fades with maturity and training. But for breeds hardwired to dig, such as terriers, it tends to be a lifelong instinct. Rather than waiting for them to grow out of it, give them a digging pit and plenty of enrichment.
Is it cruel to stop a dog digging?
Not at all, provided you do it kindly. Blocking the fence line keeps your dog safe from escaping onto roads, while a dedicated digging pit lets them enjoy the behaviour in a safe spot. What would be unfair is punishing a natural instinct without giving your dog any acceptable outlet for it.
Will neutering stop my dog escaping?
If your dog is escaping to find a mate, neutering can noticeably reduce that urge to roam. It is not a magic fix for every cause of digging, though, so it works best alongside secure fencing and good enrichment. Speak to your vet about whether it is the right move for your dog.
The Bottom Line
Stopping a dog digging under a fence comes down to two things working together: block the escape route with a humane physical barrier, and address the reason your dog started digging in the first place. Give them more exercise, beat the boredom, offer a digging pit of their own, and reward the behaviour you want to see. Skip the punishment entirely. Stick with it, and that muddy patch by the fence will soon be a thing of the past.


