The most reliable fix is a physical barrier at the fence base, either buried mesh or a concrete footer, paired with daily exercise and a designated digging spot. Quick, low-cost patches like weighted chicken wire or rocks buy time while you install something permanent. For owners who want a no-dig option, a wireless GPS boundary like HAVEN Freedom offers containment without touching a shovel.
TL;DR:
- Installing a buried mesh barrier or concrete footer provides a long-term, effective solution for preventing dogs from digging under fences, with concrete lasting longer but requiring more effort.
- Temporary fixes like weighted chicken wire, rocks, or decorative borders can buy time but require regular checks to ensure they remain in place and effective.
- Combining physical barriers with behavioral training, a designated digging zone, and increased exercise reduces the motivation to dig in unwanted areas.
- Avoid using unsafe or ineffective deterrents like coffee grounds, and instead focus on enriching the yard environment to minimize scent trails attracting wildlife and rodents.
- For renters or those seeking a non-invasive option, wireless GPS boundaries like HAVEN Freedom offer a portable containment solution without any digging or yard modifications.
Table of Contents
- Bury mesh or pour a footer to block the escape route
- Fast, low-cost options that don’t require digging
- Give your dog a reason to stop digging there
- Skip the coffee grounds and other risky deterrents
- Check the rest of the yard before you call it done
- A GPS boundary as a no-dig alternative: HAVEN Freedom
- Training techniques that target digging specifically
- Keep the yard from smelling interesting to dig into
- Picking the right mix of fixes for your dog and budget
- A no-dig option worth considering: HAVEN Freedom
- FAQ
- Sources
Bury mesh or pour a footer to block the escape route
A buried barrier stops digging at the source instead of just discouraging it. The two standard methods are an L-footer and a concrete footer, and the right one depends on how determined your dog is and how much labor you want to put in.
For an L-footer, dig a trench a foot or more deep along the fence line, then bend galvanized hardware cloth or chicken wire into an L shape so part of it lies flat under the ground, pointing into the yard. Anchor it with landscape stakes every foot or two, then backfill. This method is recommended by the American Kennel Club as one of the most dependable ways to prevent dogs from tunneling under a fence, since the dog hits solid mesh a foot or two into the dig and gives up.
A concrete footer takes more effort but lasts longer. You pour a shallow trench of concrete along the fence base and set the bottom rail or mesh directly into the wet mix, creating a permanent barrier that cannot shift with weather.
- L-footer: a weekend project for most yards, moderate materials cost, effective against most diggers.
- Concrete footer: a full day or more, higher materials and possibly labor cost, best for severe or repeat offenders.
- Professional installation: worth considering for long fence lines or when excavation around utility lines is involved.
Fast, low-cost options that don’t require digging
If you need something working this afternoon, flat solutions buy time while a permanent fix gets planned. Lay a strip of hardware cloth or chicken wire flat along the fence base, inside the yard, and weigh it down with pavers, bricks, or heavy planters. Dogs generally avoid pawing at something solid under their feet, even without it being buried.
Landscape edging, stacked rocks, or a row of large pots along the fence line work the same way and double as decoration. Mulch or low plantings can hide the mesh or edging while keeping it in place, as long as the covering doesn’t give the dog something soft to dig through to reach the barrier underneath.
- Lay mesh flat and secure every corner with a paver or brick.
- Use planters or rock borders to block the base while adding curb appeal.
- Check monthly that nothing has shifted after rain or wind.
Pro Tip: Skip loose mulch directly over wire mesh. A determined dog will dig through the mulch first and may get a paw caught in the mesh underneath.
Give your dog a reason to stop digging there
Removing the motivation to dig matters as much as blocking the spot. UC Davis veterinary behaviorists note that digging is a natural canine instinct, so the most effective long-term plan combines a designated digging area, more exercise, mental enrichment, and supervision rather than punishment.
- Pick a corner of the yard, loosen the soil, and bury a few toys or treats to teach your dog that spot is the approved place to dig.
- Reward any digging in that zone immediately, and redirect your dog there calmly whenever you catch digging elsewhere.
- Add daily physical exercise and a puzzle feeder or scent game to burn off the energy that often drives fence-line digging.
- Watch for signs the digging is escape or anxiety driven, like digging right when you leave or pacing along the fence, and treat those cases as a behavior issue first.
If digging is sudden, severe, or paired with other anxious behaviors, a veterinary evaluation can rule out medical causes, according to the ASPCA.
Skip the coffee grounds and other risky deterrents
Several popular home remedies do more harm than good. Coffee grounds are a common suggestion for keeping dogs away from garden beds, but caffeine is toxic to dogs. The Pet Poison Helpline warns that caffeine ingestion can cause vomiting, tremors, seizures, and a racing heart, with symptoms appearing within 1 to 2 hours.
Physical punishment is equally counterproductive. UC Davis behaviorists point out that punishment is ineffective and can worsen the anxiety or frustration that drives digging in the first place.
- Avoid coffee grounds, mothballs, or other DIY “repellents” placed where a dog can eat them.
- Try motion-activated sprinklers or a privacy screen to reduce contact with digging triggers.
- Never physically correct or scare a dog for digging.
- Call your vet if digging is new, worsening, or tied to other health changes.
Check the rest of the yard before you call it done
A secure fence base does little good if your dog can slip out somewhere else. Walk the whole perimeter and look for weak points before assuming the digging fix solved everything.
- Check every gate latch and hinge, and confirm gaps under gates match the rest of the fence line.
- Look for furniture, woodpiles, or planters near the fence that double as a boost to climb over.
- Re-inspect buried barriers after heavy rain or a freeze-thaw cycle, since shifting soil can expose gaps.
- Call a professional for structural fence repair, large-scale excavation, or any concrete footer work beyond basic DIY skill.
A GPS boundary as a no-dig alternative: HAVEN Freedom
For renters, dogs that move between properties, or anyone who would rather skip excavation entirely, a wireless GPS boundary solves the same containment problem without touching the fence. A wireless GPS collar uses dual-band positioning to create a customizable boundary stored on the collar itself, with no buried wires required, plus escape alerts and a dog finder for faster recovery if a dog does get loose.
- Set up a working boundary in under two hours in most yards.
- Complete basic app setup in about 30 minutes.
- Follow a 14-day training plan to teach a dog to respect the new boundary.
This approach fits best for temporary setups, multiple locations, or yards where fencing isn’t an option, though it works best alongside the same supervision and training habits that make any containment method succeed.
Training techniques that target digging specifically
Beyond the digging pit, a few focused techniques help a dog generalize “don’t dig there” faster. Interrupt digging the moment it starts with a neutral sound, not a scolding tone, then immediately redirect to the approved digging zone and reward the switch. Consistency matters more than intensity here: a calm, predictable interruption works better than an occasional loud correction.
Teaching a dig-on-cue behavior gives a dog a controlled outlet instead of just suppressing the instinct. The American Kennel Club’s digging-on-cue method starts by rewarding a dog for pawing at a treat hidden under a blanket, then adding a verbal cue and gradually moving the exercise to an outdoor sand pit. Once a dog reliably digs on cue in the right spot, that same cue can redirect digging attempts anywhere else in the yard.
Short, frequent training sessions beat long ones. Five minutes twice a day teaching the digging-zone habit will generally outperform one 30-minute session on a weekend, since dogs retain redirected behaviors better with repetition spread across days. Pairing training with enrichment toys and interactive play, like the options covered in this guide to enriching a dog’s playtime, reduces the boredom that often restarts digging between sessions.

Keep the yard from smelling interesting to dig into
A lot of fence-line digging traces back to what’s happening underground, not just boredom. Rodents, moles, and grubs leave scent trails that draw a dog’s nose straight to a burrow, and a yard that smells like prey is a yard that gets dug up repeatedly no matter how good the training is.
Keep grass trimmed and remove woodpiles, dense brush, or compost piles near the fence line, since these are common rodent habitats. Store pet food, bird seed, and trash in sealed containers rather than open bins, and clean up fallen fruit or seed from feeders promptly, since all of these attract the small animals that trigger digging.
Check for mole or vole tunnels periodically, especially after rain, and treat an active infestation rather than only patching the holes a dog has already started. Compost should be turned regularly and kept away from the fence perimeter, both to reduce rodent activity and to avoid giving a dog loose, easy-to-dig soil.
Seasonal shifts play a role too. Many dogs dig more in hot weather to reach cooler soil, so a shaded rest area or a kiddie pool can reduce digging driven by heat rather than instinct. In fall, rodent activity often increases as animals seek shelter, which can spike digging right when the ground is also softer and easier to excavate.

Picking the right mix of fixes for your dog and budget
Match the fix to the dog, not the trend. A determined, escape-motivated digger needs a buried barrier and real supervision, while a bored but contained dog may respond to a digging pit and more exercise alone. Renters or anyone unsure about permanent changes should lean on surface fixes or a GPS boundary instead.
Start this weekend with the cheap, fast options: flat mesh, a digging pit, more playtime. Save concrete or professional excavation for after you’ve confirmed the dog’s exact digging pattern, and always loop in a vet if the behavior looks anxious rather than just curious.
— Haven
A no-dig option worth considering: HAVEN Freedom
If digging under the fence keeps happening no matter what you try, or if you’re renting and can’t dig into the yard at all, a wireless boundary skips the excavation problem entirely. The HAVEN Freedom GPS dog fence and tracking collar creates a portable boundary with no buried wires and no required monthly subscription for the fence itself.
- Works without digging, fencing, or permanent yard changes.
- Setup can be completed relatively quickly through an app.
- Can be paired with a training plan to help a dog learn the new boundary.
Browse the full HAVEN Freedom collection to see which setup fits your yard.
FAQ
What spray can I use to prevent my dog from digging under my fence?
Commercial pet-safe deterrent sprays made for yards can reduce digging by making the area taste or smell unpleasant, but check the label for pet safety before applying near a fence line. Avoid homemade mixes with caffeine, essential oils in concentrated form, or anything not labeled safe for dogs, since ingestion risks are easy to underestimate.
What to put under a fence to keep a dog in?
Bury galvanized hardware cloth or chicken wire bent into an L-footer, or pour a concrete footer along the base, both recommended by the American Kennel Club as effective barriers against digging. A GPS boundary collar is a non-digging alternative when altering the fence isn’t possible.
How can I prevent animals from burrowing under my fence?
The same buried mesh or concrete footer methods that stop a dog from digging out also block most wildlife from digging in, since both rely on a solid barrier a few inches below the surface. Keeping the yard free of rodent habitat, like woodpiles and open compost, reduces the scent trails that attract burrowing animals in the first place.
Do coffee grounds stop dogs from digging?
Coffee grounds are not a safe deterrent. Caffeine is toxic to dogs, and the Pet Poison Helpline warns that ingestion can cause vomiting, tremors, seizures, and a racing heart within 1 to 2 hours.
How long does it take to stop a dog from digging under a fence?
A buried barrier can physically block digging the same day it’s installed, but changing the underlying motivation through training and enrichment typically takes a few weeks of consistent practice. UC Davis behaviorists recommend gradually increasing a dog’s unsupervised time in the yard only after several consecutive days with no digging attempts.
Sources
- Solutions for dogs that like to dig | American Kennel Club
- Why does my dog dig? | UC Davis Veterinary Medicine
- Caffeine is toxic to pets | Pet Poison Helpline
- Behavioral help for your pet | ASPCA
Recommended
Keep reading
e collar humane
Humane E Collar Training: 7 Steps, Starting With a Vet Check
See how humane e collar training starts with a vet check, conditions tone and vibration, uses rewards, and reserves static stimulation as a last...
Read the postcoyote safety for dogs
Protect Your Dog from Coyotes in 14 Days with a GPS Boundary
Keep your dog safe from coyotes with immediate steps, yard fixes, hazing, and a 14 day GPS boundary plan you can start today.
Read the postYour adventure starts here
Ready to give your dog more room to roam?
Give your dog more freedom to explore — and give yourself the reassurance of knowing they're never far away.