A groundhog, also called a woodchuck or whistle pig, can wreck a vegetable garden in a single night. The rodents graze seedlings down to the stem, strip bean and squash vines, and dig burrows that collapse under lawn mowers and twist ankles. Their chisel-like incisors cut through green and woody vegetation with the same ease as a pair of pruners, and a single burrow system can extend 25 to 30 feet with several entrances.
Groundhogs are most active at dawn and dusk, which is why damage often appears overnight while the animals themselves stay out of sight. They are territorial but persistent, and they return to a reliable food source until something physically stops them. The fencing and repellent playbook that works for other large garden visitors transfers directly; the strategies in this guide to keeping deer out of your garden use the same barrier logic, scaled to a shorter, digging pest.
This article covers fencing, scare tactics, scent deterrents, live trapping, humane removal, garden restoration, and the last-resort controls that should only be used with caution.
Fence the Garden So Groundhogs Cannot Get In
Fencing is the only method that works without ongoing effort. Groundhogs both burrow and climb, so a fence must stop digging below ground and climbing above it. Done right, a fence ends the problem at the boundary instead of inside the rows.
Electric Fencing That Stops Burrowers
An electric fence with one wire 4 inches above the ground and a second wire at 8 or 9 inches delivers a memorable correction without permanent harm. Garden centers sell plug-in and battery-powered chargers that are simple to set up and take down. Keep vegetation and debris clear of the wires so nothing shorts out the charge, and because the fence sits low, no gate is needed to enter the garden.
A two-wire fence works because groundhogs test the boundary with their noses. One good contact teaches the animal to stay away for the rest of the season, and the fence keeps working through the summer with minimal upkeep.
Wire Heights and Charger Tips
The 4-inch and 8-to-9-inch wire heights match the height of a groundhog’s nose and back. Test the fence with a voltage meter after installation and again after heavy rain, since wet grass can drain the charge. Battery units need recharging every few weeks depending on output.
The buried-edge principle shows up in every serious barrier. The barrier methods that keep squirrels out of garden beds rely on a physical edge the animal cannot dig under, and groundhog fencing needs that edge in a stronger form.
Non-Electric Fence Specifications
Skip the electric route and the fence must be at least 3 feet tall above ground, built from heavy chicken wire or 2-inch woven mesh. Bury the wire 12 inches deep with the lower 6 inches bent outward at an L-shaped angle, so a groundhog digging down hits a horizontal barrier it cannot tunnel past.
Install a woven mesh fence in five steps:
- Mark the perimeter and clear a 2-foot strip of grass and debris along the line.
- Dig a 12-inch trench the full length of the fence run.
- Set the wire in the trench with the lower 6 inches bent outward at a right angle.
- Backfill and compact the trench, then staple the wire to posts at 3 feet high.
- Fold the top edge over a top rail or stiffen it with a second wire so climbers cannot bend it down.
| Fence Type | Height Above Ground | Below Ground | Best Use |
|---|---|---|---|
| Two-wire electric | 4 and 8-9 inches | None needed | Vegetable beds and borders |
| Woven mesh (2-inch) | 3 feet minimum | 12 inches, L-bend | Permanent garden perimeter |
| Heavy chicken wire | 3 feet minimum | 12 inches, L-bend | Low-cost temporary fence |
| Hardware cloth (1/4-inch) | 3 feet minimum | 12 inches, L-bend | Seedlings and small beds |
Whatever the fence type, keep the line clear of tall grass and leaning plants. Groundhogs use vegetation as a ladder and a screen, so a trimmed edge makes the fence the only route in.
Use Scare Tactics and Scent Deterrents
Scare tactics and repellents work best as a second layer on top of fencing. Groundhogs are cautious animals, and sudden motion or unfamiliar scent will push them off a garden for a while, but they habituate to any single trick within days or weeks.
Motion, Noise, and Predator Cues
Motion-activated sprinklers, wind chimes, and flashing lights startle groundhogs at the garden edge. Predator urine sold at garden centers signals danger, but rain washes it away and the scent fades, so reapplication is constant. Rotate two or three tactics on a schedule to slow habituation.
Sprinklers aimed across the garden entrance do double duty: they water the beds and startle animals at the same time. Set them to run at dawn and dusk, the hours groundhogs actually feed.
Different animals respond to different cues, and a strategy that clears one species may do nothing for another. A practical overview of how to keep animals out of the garden sorts the scare tactics, repellents, and barriers by species so you pick the right tool the first time.
Scent Repellents and Homemade Sprays
Garlic, hot pepper, and castor oil sprays make foliage taste and smell wrong to groundhogs. Apply after rain and reapply weekly. Castor oil also discourages burrowing when watered into the soil, though heavy rain dilutes it quickly.
Why Rotation Matters
A groundhog that has ignored the same scarecrow for a week will also ignore a second identical scarecrow. Changing tactics every few days, moving the sprinkler, and alternating spray scents keep the animal uncertain, which is the whole game with deterrents.
Live Trapping and Humane Removal
When fencing fails or the population is already established, live trapping removes the animal directly. It is the most reliable method for a stubborn groundhog, but it takes patience and follow-through.
Choosing the Right Trap and Bait
Use a trap roughly 32 inches long, 10 inches wide, and 12 inches tall, sized for a groundhog rather than a squirrel. Bait with cantaloupe, sweet corn, apples, or green beans, and set the trap near the burrow entrance or along a well-used runway. Set traps before the garden reaches full production, when groundhogs are hungriest and most likely to enter.
Trap Placement and Daily Checks
Place the trap on level ground with the trigger plate in the middle so the animal must step on it to reach the bait. Check traps at least twice a day, in the morning and at dusk. A trapped groundhog left in the sun or heat can die before you return, so daily checks are a legal and ethical requirement in most states.
Relocation Rules
Relocating a groundhog is not as simple as driving it to the nearest park. Many jurisdictions restrict where animals can be released, and moving a territorial animal into another groundhog’s range usually ends badly for the newcomer. Check the humane removal guidance for keeping animals out of the garden without harming wildlife before you trap, and call your state wildlife agency for release rules in your area.
Restore Damaged Beds and Replant
After the groundhog is gone, the garden needs repair before it can produce again. Burrow holes are the first priority because they are a safety hazard and a future den site.
Repair Holes and Rebuild Soil
Fill collapsed burrows with compacted soil and seed or sod the patch quickly. Rebuild beds that were stripped by working compost into the top few inches and replanting with fast-growing varieties. A repaired bed also removes the cover that attracted the animal in the first place.
Water newly replanted beds regularly for the first two weeks and hold off on fertilizer until new growth appears, so the plants put energy into roots before leaves.
Choose Plants That Recover Fast
Plant crops that outgrow damage, like squash, beans, and tomatoes on strong trellises, and mix in flowers that keep the garden productive into fall. Adding late summer flowers that keep your garden blooming through fall rebuilds color quickly after a raid and keeps pollinators working while vegetables recover.
Evict Burrows and Weigh Last-Resort Controls
Established burrows need active eviction once the resident is gone or before trapping. Groundhogs reuse burrows year after year, so an empty den will attract a new tenant by spring.
One-Way Doors and Burrow Eviction
One-way exclusion doors fit over a burrow entrance and let the groundhog leave but not return. Install the door, block the other entrances with soil and rock, and monitor for two or three days. Once the burrow is empty, fill it completely so it cannot be reopened. Timing matters: evict burrows in late summer, before the young of the year start digging their own dens nearby.
Confirm the den is active before you set a door. Look for:
- Fresh soil piled at the entrance.
- Tracks or a flattened path leading to the opening.
- Newly chewed plants within a few feet of the den.
Rodenticides and Fumigation: Know the Risks
Rodenticides and gas fumigation kill groundhogs in the burrow, but both carry real risks. Poisoned rodents can die above ground where pets and scavengers find them, and fumigants require specialized equipment and permits in most states. These tools are a last resort for a licensed professional, not a first choice for a homeowner.
Protect the Garden Through Fall and Beyond
Groundhog pressure follows the season. Activity peaks in spring and early summer, then drops as the animals fatten for winter, but late-season raids still strip fall crops, so the fence and trap line stay up through harvest.
Pre-Trip Security Checks
Before you leave for a stretch, walk the fence line, recharge the electric fence battery, and set or remove traps so nothing sits unattended. The same planning that keeps your garden thriving while you travel applies to pest control: the defenses have to run without you for a week or more.
Fall and Winter Prep
In late fall, groundhogs den up and the garden can switch to cool-season production. Planting a winter garden with cold hardy plants keeps beds productive, and a clean, tidy garden with no standing crops or brush piles gives next spring’s groundhogs far less reason to return. In mild climates groundhogs may stay active year-round, so keep the fence line clear of tall grass and brush even in winter.
