The most reliable way to keep groundhogs away is to combine physical barriers with scent deterrents and smart plant choices. No single method works perfectly on its own, but layering two or three strategies makes your property far less appealing than your neighbor’s. Groundhogs are creatures of habit, so the earlier you act in spring (when they emerge from hibernation and start scouting for food and shelter), the better your results.
Identify the Problem First
Before you invest in repellents or fencing, confirm you’re actually dealing with a groundhog. Their burrow openings average around 8 inches wide, and the main entrance usually has a mound of excavated dirt fanned out in front of it like a small porch. Burrows don’t always have two holes, but many do, with a less obvious escape exit nearby. Groundhogs avoid wet soils, so look for holes in well-drained areas near garden edges, fence lines, or under structures like sheds and decks.
Two other clues: groundhogs are active during the day, unlike skunks and raccoons, so you may spot the culprit directly. It’s also common to see flies buzzing around the entrance of an active burrow. If you suspect a burrow under your shed but aren’t sure it’s occupied, stuff crumpled newspaper loosely into the opening. If the paper gets pushed out within a day or two, something is living there.
Fencing That Actually Works
A garden fence is the single most effective long-term deterrent, but it needs to account for the fact that groundhogs both climb and dig. Use welded wire or hardware cloth at least 3 to 4 feet tall, and bury the bottom 12 inches underground in an L-shape, with the horizontal portion extending outward from the fence. When a groundhog tries to dig at the base (their instinct is to dig right where the vertical barrier meets the soil), its claws hit the buried horizontal mesh and it gives up. Bending the top 12 inches of the fence outward at a 45-degree angle discourages climbing.
This same L-footer method is the best permanent fix for keeping groundhogs from burrowing under decks, sheds, and porches. Attach hardware cloth to the bottom edge of the structure, run it down to ground level, then bend it outward and bury it in a shallow trench. Backfill with soil or gravel. Once installed, you won’t need to think about it again.
Scent Repellents and How to Use Them
Groundhogs have sensitive noses, and strong smells can push them to forage elsewhere. Cayenne pepper, garlic, castor oil, and apple cider vinegar are the most commonly used home remedies. You can sprinkle cayenne directly around plants or mix it with water in a spray bottle. Garlic cloves crushed and scattered near burrow entrances or garden borders add another layer of discouragement.
Commercial repellents come in granular and liquid forms. Granular products are scent-based and work best when poured directly into burrow openings and around their edges. Liquid repellents target taste, making treated plants unappetizing. Both types need reapplication after rain, which is the main drawback of any scent-based approach. Plan on refreshing your repellent every week or two during the growing season, and again after any heavy downpour.
Predator Urine
Used cat litter (soaked in urine) placed near burrow openings is a surprisingly effective deterrent. If a groundhog detects the scent of a cat, fox, or coyote, it reads the area as dangerous and is more likely to relocate. You can also buy bottled predator urine at farm supply stores. Like other scent methods, it fades over time and washes away in rain, so reapply regularly. It’s inexpensive and safe for gardens.
Motion-Activated Sprinklers and Scare Devices
Motion-activated sprinklers use an infrared sensor to detect heat and movement, then fire a short burst of water. Most models detect animals up to 100 feet away and release about five seconds of spray, enough to startle a groundhog without harming it. Position the sprinkler facing your garden or the path between a burrow and your plants. These work best as part of a broader strategy, because a determined groundhog can eventually learn the sprinkler’s pattern and work around it.
Pinwheels, wind chimes, and reflective tape offer mild deterrence but tend to lose effectiveness quickly as groundhogs habituate. They’re worth adding as a cheap extra layer but shouldn’t be your primary defense.
Plants Groundhogs Tend to Avoid
Choosing the right plants won’t guarantee a groundhog-free yard, but planting unappealing species around your garden’s perimeter can redirect them away from the plants you care about most. According to Cornell Cooperative Extension, groundhogs generally avoid strong-scented herbs like lavender, thyme, chives, garlic chives, catmint, fennel, lemon balm, and sage. Planting a border of these around a vegetable garden serves double duty: you get useful herbs and a natural deterrent.
For flowers, good choices include daffodils, peonies, foxglove, blanket flower, coneflower, snapdragons, yarrow, iris, and delphinium. Ornamental options like lamb’s ears, wormwood, Russian sage, and fountain grass also tend to be left alone. The theory is simple: if a groundhog encounters an outer ring of plants it dislikes, it’s more likely to wander off than push deeper into your yard.
On the flip side, groundhogs love clover, alfalfa, dandelions, lettuce, beans, peas, and most brassicas. If these are in your garden, that’s likely what’s drawing them in, and protecting those specific plants with fencing or repellent should be your priority.
Dealing With an Existing Burrow
If a groundhog has already established a burrow on your property, deterrents alone may not be enough. Pouring granular repellent or used cat litter into the burrow entrances can encourage the animal to leave. Some people have success with fumigation cartridges (available at farm supply stores), but these only work if you can seal all exits, and they carry fire risk in dry conditions or near structures.
Live trapping might seem like an obvious solution, but it comes with legal complications. In many states, including New York, it is illegal to relocate a trapped animal off your property. The reasoning is practical: relocated animals spread diseases like rabies, stress the animal, and often just become someone else’s problem. If you need a groundhog removed, contact a licensed nuisance wildlife control operator in your area. They have the permits and equipment to handle it legally.
Putting It All Together
The most successful groundhog prevention uses at least two or three methods in combination. A buried wire fence around your garden handles the physical barrier. Scent repellents and predator urine around burrow entrances and garden edges add sensory pressure. Groundhog-resistant plantings along the perimeter make your yard less attractive in the first place. A motion-activated sprinkler covers gaps in the defense.
Timing matters. Groundhogs emerge from hibernation in late February to early March in most regions and immediately start looking for food and denning sites. Setting up your defenses before they settle in is far easier than evicting one that’s already dug a 40-foot tunnel system under your shed. If you’ve had groundhog problems in previous years, treat it as an annual spring task: refresh your repellents, inspect your fencing for gaps, and check under structures for new digging before the growing season is in full swing.