Positive reinforcement guide
How to stop a dog digging under the fence
Digging along a fence line is different from digging a random hole in the lawn. A trench beside the fence often points to something on the other side: a smell, another animal, people passing, or a dog who wants to get out. Because a finished tunnel can lead to a road, this kind of digging is a safety problem first and a training problem second.
Why dogs dig under or along fences
Watch where the holes appear and what is happening at the time. Common reasons include:
- Something interesting outside. Neighbour dogs, wildlife, cats, or passing people can make the far side of the fence the most exciting place in the yard.
- Prey and smells. Rodents and other animals often travel along fence lines, leaving scent trails right at the base.
- Boredom and frustration. A dog left outside with little to do may pace the fence and start working at the soil.
- Seeking company or a mate. Dogs who are not neutered or spayed may be strongly drawn to dogs nearby.
- Stress or fear. Some dogs dig to escape noises such as fireworks or storms, or because being alone is hard for them.
A dog who digs in one spot near a gate may be trying to follow you. A dog who digs wherever the neighbour dog runs may be reacting to that dog. The pattern tells you which fix to try first.
Deal with escape risk first
Walk the whole fence and look for loose soil, gaps under panels, and holes that have been filled but not secured. Until the yard is reliably escape proof, keep your dog on a long line or stay outside with them. Make sure your dog wears a properly fitted collar with current ID and that microchip details are up to date, in case they do get out.
Do not leave a dog who has already tunnelled out alone in the yard, even for a few minutes. Every successful escape rewards the digging and makes the next attempt more likely.
Dig guards and secure fence bases
Physical barriers stop rehearsals while you work on the reason behind the digging. Common options include an L-shaped footer of sturdy wire mesh laid flat along the inside base of the fence, concrete or buried edging along the bottom, or large flat pavers or rocks set at the fence line. Whatever you use, make it secure and free of sharp ends or loose wire where paws and claws can catch.
Avoid putting irritants, chemicals, or punishment devices in holes. They can harm your dog and teach nothing about where digging is welcome. If you are unsure what will suit your fence and your dog, ask a qualified fencing professional for a dog safe design.
Use visual barriers to lower the excitement
If your dog digs where they can see dogs, cats, or people, reduce the view. Privacy slats, screening fabric, solid panels, or a row of dense planting set back from the fence can make the boundary less exciting. You can also add a second, inner barrier a short distance from the fence so your dog cannot patrol right at the base.
Pay attention to timing. If the neighbour lets their dog out at certain times, or school runs bring crowds past the fence, plan your dog's yard time around those moments for a while.
Make yard time supervised and active
While the habit is changing, go out with your dog. Play, practise short training games, or scatter a few treats in the grass away from the fence for them to sniff out. Reward your dog for checking in with you or for choosing to move away from the fence line. If they head for the fence, calmly call them back and reward the return.
Practise recall and a simple “leave it” somewhere easy first, then in the yard. Keep sessions short and successful. A dog who has had walks, sniffing time, and attention is usually less likely to spend their energy on the fence.
Give digging a legal outlet
Some dogs really enjoy digging, so it helps to give that urge somewhere to go. Set up a digging box or a patch of loose soil or sand well away from the fence. Bury a safe toy or a few treats near the surface, encourage your dog to dig there, and praise them when they do. Refresh it often so it stays more rewarding than the fence line. Our main digging guide covers how to set up and maintain a legal digging spot in more detail.
Common mistakes
- Only filling the hole. The reason for the digging is still there, and a dog will often reopen the same spot.
- Leaving a known escape artist alone outside. One escape can undo weeks of progress and put your dog at risk.
- Scolding after the fact. Your dog cannot connect a telling off with a hole dug earlier.
- Using unsafe barriers. Loose wire, sharp edges, or chemicals can cause injuries.
- Ignoring what is outside. If the trigger on the other side of the fence stays the same, the digging is likely to continue.
Results vary from dog to dog. The aim is a safe yard and less digging over time, not a perfect fix overnight.
When to get extra help
Talk to your veterinarian if digging starts suddenly, becomes frantic, or comes with pacing, drooling, panting, or other signs of anxiety, especially when your dog is left alone or during loud noises. Contact a qualified, force-free trainer or behaviour professional if your dog keeps escaping, reacts aggressively at the fence, or could reach a road. When escape is possible, safety comes first.
Want a structured set of training games?
Our Brain Training for Dogs review explains a course built around reward based games and gradual lessons. We have not purchased that course, so the page is an honest research summary rather than a personal recommendation.