Depends on the hole.
That's not a dodge. Digging is normal dog behavior, most dogs do some version of it, and the shape and location of the hole tells you most of what you need to know. So before anything else, go look at where she's digging, how deep, and what she does once she's down there. That's the diagnosis. The fix follows from it.
Read the hole
A shallow, wide scrape in the shade, up against the house or under a bush, with the dog lying in it afterward: she's hot. Soil a few inches down is noticeably cooler than the surface, and dogs figure that out quickly. Huskies and other thick-coated dogs do this a lot, but any dog will on a warm afternoon. You'll see it more in July than in March. Heat explains this kind of hole, but a dog who loves to dig anyway may enjoy dog toys for digging.
Several deep, narrow holes clustered in one area, often along a fence line or in one patch of lawn, dirt thrown out behind her, nose jammed in the hole, and she keeps going back to the same spots: there's something living under there. Moles, voles, gophers, chipmunks, sometimes ground-nesting bees. Terriers and dachshunds were bred for exactly this and they're very good at it, but plenty of labs and mixes will do it too if the smell is strong enough. The clue is the intensity. A dog hunting is not casual about it. The next step once you know prey is the cause is learning how to stop a dog from digging in those spots.
Random holes scattered across the yard, no pattern, dog spends hours out there alone: this is a dog with nothing to do. The yard is not entertainment. Most dogs left outside by themselves don't run laps, they lie down, and when lying down gets old, they dig. This one has nothing to do with the hole and everything to do with the rest of her day.
One hole under the fence, sometimes with gouging on the boards: she wants out. Intact males who can smell a female, dogs who hear kids or other dogs on the other side, dogs who got out once and found it was great. Also sometimes a dog who is panicking when left alone and is trying to get back to you.
A hole with a chew or a bone in it, or you catch her nosing dirt back over something: caching. Normal, mild, usually not worth fighting. She'll dig it up later.
Digging that happens only when you're in the yard and stops when you go inside: she's learned it brings you over. Even "hey, knock it off" counts as a response.
Sand at the beach is its own thing. It's loose, it moves, it's cool a few inches down, and there's nothing to fix. Let her.
What actually works
Filling the holes and scolding doesn't. The dog isn't digging to annoy you and doesn't connect the hole from this morning with your mood this evening.
For the hot dog: shade that's still shade at 3 pm, not just at 9 am, a water bowl that doesn't tip, and either bring her in during the heat or give her a spot she's allowed to cool off in. A kiddie pool with a few inches of water works for some dogs. A shaded pit she's allowed to use works for others.
For the hunter: you're going to have to deal with the rodents, or accept the holes. We've never seen a dog talked out of a vole. Humane trapping or a pest service, then fill the holes once the smell fades. Pack the soil down and lay a square of chicken wire or hardware cloth over the top under an inch of dirt or mulch. Most dogs hit the wire once and quit bothering with that spot.
For the bored dog: she needs more than the yard. Walks where she's allowed to sniff. Food in puzzles or scattered in the grass instead of a bowl. Ten or fifteen minutes of training in the morning. Shorter stretches outside, and not alone. If you want help laying out the week, our enrichment planner is free: https://calmdoglibrary.com/tools/enrichment-planner
For the escape digger: fix the fence first, then ask why. Hardware cloth bent into an L, one leg stapled to the bottom of the fence and the other laid flat on the ground 18 to 24 inches into the yard, held down with landscape staples or pavers. Grass grows through it in a season and you stop seeing it. Then figure out what she wants out there. If the digging only happens when you leave the house, that's separation distress and you want to work on that directly, not just block the exit.
For almost all of them, give her a place to dig. We mean a real one. A hard-sided plastic kiddie pool 4 or 5 feet across, or a 4 by 4 frame of boards, filled at least 12 inches deep with play sand or a half-and-half mix of sand and topsoil. Loose, not packed. Put it near where she already digs, or in the shade if she's a cooler. Then, with her watching, half-bury something good: a bully stick, a stuffed food toy, a handful of kibble. Let her dig it out. Do that daily for the first week or two, burying things deeper as she gets the idea. When she starts in the flowerbed, call her over, walk to the pit, scratch at the sand with your own hand, and let her take over. It isn't fast, but it holds, and dogs who have a pit mostly leave the rest of the yard alone.
Digging indoors
Scratching at a bed or a couch cushion before lying down is normal. Give her a bed with a loose blanket she can rearrange and ignore it.
Scratching at one spot on a hard floor or a rug, over and over, when nothing has been spilled there, is worth paying attention to. Sometimes it's a mouse in the wall. Sometimes it's a dog who only does it when alone, which is a different problem. Prop up a phone to record and watch what happens in the minute before she starts. If the digging is new, frantic, happens mostly when she's left, or you've got a female who's digging at bedding and carrying toys around, check with your vet, because pseudopregnancy, pain, and some compulsive patterns look like plain digging from the outside.
If the digging comes with a dog who can't settle in general, our guide Calm Mind in 21 Days walks through a daily routine for that.

Calm Mind in 21 Days
The 21-day enrichment plan for a dog who chews, digs, shreds or cannot settle: the daily needs budget, legal outlets, 15 brain games, and an off switch. Reward-based, 6 printable tools.
See the plan →Not sure yet? Take the free 2-minute quiz
Educational content from the CalmBusy team. Not veterinary or behavioral advice for your specific dog. If your dog has bitten, or behavior changed suddenly, see your veterinarian and a certified professional.











