Groundhogs can destroy a garden in a single night. These burrowing rodents (Marmota monax) eat through vegetable patches, dig under fences, and damage root systems. This guide covers the most effective fencing, repellents, and protection strategies to keep groundhogs out of your garden for good.
Key Takeaways
- Fencing is the gold standard: A buried L-shaped fence of 1/2 inch hardware cloth stops digging.
- Exclusion works best: Combine underground barriers with motion-activated sprinklers for full protection.
- Repellents have limits: Natural repellents like capsaicin and predator urine work temporarily but require reapplication.
- Trapping may be necessary: Persistent groundhogs require live trapping followed by exclusion repairs.
- Seasonal timing matters: Early spring, before breeding season, is the best time to groundhog-proof your garden.
In This Guide
Why Groundhogs Target Gardens
Groundhogs are herbivores with a strong preference for tender garden vegetables. They target beans, peas, carrots, lettuce, broccoli, and squash first. A single groundhog can eat up to 1.5 pounds of vegetation daily.
Groundhogs are most active during early morning and late afternoon. They feed near their burrow entrances and rarely venture more than 150 feet from cover. Understanding this behavior is key to effective garden protection.
These animals are excellent climbers and diggers. They can scale wooden fences up to 4 feet high and dig tunnels up to 5 feet deep. A comprehensive protection plan must address both climbing and digging behaviors.
Fencing Strategies That Work
L-Shaped Fence Installation
The L-shaped fence is the most effective groundhog barrier. Install 1/2 inch hardware cloth (galvanized wire mesh) at least 3 feet high. At the bottom, bend 12 to 18 inches outward in an L-shape, then bury it 6 inches below the soil surface.
This design stops groundhogs from digging under the fence. When they hit buried wire, they encounter the outward bend and give up. Standard chicken wire is not adequate, groundhogs can chew through or push under it.
Electric Fence Options
A two-wire electric fence at 4 to 6 inches and 8 to 10 inches above ground delivers a memorable shock. Use a low-impedance charger rated for small animals. This works well for large garden plots where buried fencing is impractical.
Check local regulations before installing electric fencing. Some areas require signage and restrict placement near sidewalks. Battery-powered solar units work well for remote garden locations.
Overhang Barriers for Climbers
Groundhogs can climb woven wire fences. Add a 12 to 18 inch outward overhang at the top of the fence at a 45-degree angle. This prevents them from pulling themselves over. PVC pipe sleeves on top strands also make climbing difficult.
Natural Repellents and Deterrents
Capsaicin-Based Repellents
Capsaicin, the compound that makes chili peppers hot, activates the TRPV1 receptor in mammals. Groundhogs find the burning sensation unpleasant and avoid treated areas. Spray capsaicin-based repellents on plant leaves and around garden borders.
Reapply after rain or heavy dew. Most capsaicin sprays last 3 to 5 days. Look for EPA-registered wildlife repellents containing capsaicin as the active ingredient. Some products combine capsaicin with putrescent egg solids for dual action.
Predator Urine
Granular coyote or fox urine creates a predator scent cue. Groundhogs rely on their Jacobson’s organ for scent detection and will avoid areas that smell like predators. Apply granules around the garden perimeter every 2 to 3 weeks.
Effectiveness varies. Groundhogs that are well-established may ignore predator scents if they have not encountered actual predators. Rotate repellent types to prevent habituation.
Ammonia and Garlic Soaks
Ammonia-soaked rags placed near burrow entrances create an irritating odor. Garlic oil sprays also deter groundhogs. These DIY solutions are inexpensive but short-lived. Replace ammonia rags every 3 to 4 days and after rain.
Motion-Activated Devices
Motion-activated sprinklers are among the most effective non-lethal deterrents. A passive infrared (PIR) motion sensor detects groundhog movement and triggers a sudden burst of water. The surprise element conditions groundhogs to avoid the area.
Place sprinklers at garden entry points and near known burrows. Move them every few days to prevent habituation. Battery-operated units with adjustable sensitivity work best for small to medium gardens.
Ultrasonic repellents (20,000 to 60,000 Hz) are less reliable. Groundhogs may habituate to the sound, and the devices do not penetrate dense vegetation. Combine ultrasonics with physical barriers for better results.
Habitat Modification
Groundhogs prefer gardens with nearby cover. Remove brush piles, tall grass, and rock piles within 50 feet of the garden. Keep grass mowed short around the perimeter. These changes eliminate hiding spots and make groundhogs feel exposed.
Trim lower branches on trees and shrubs near the garden. Groundhogs use these as lookouts. A clear sight line discourages them from approaching. Install gravel borders around the garden edge, groundhogs dislike walking on unstable surfaces.
Trapping and Removal
When fencing and repellents fail, live trapping is the next step. Use a 32 by 10 by 12 inch live trap or larger. Place the trap near the burrow entrance or along travel paths. Bait with cantaloupe, sweet corn, or apple slices.
Check traps at least twice daily. Groundhogs can die from heat stress or dehydration in a few hours. Wear thick gloves when handling traps. Relocate trapped groundhogs at least 10 miles away in suitable habitat, where permitted by law.
After removal, repair all fence gaps and reinforce vulnerable areas. If the exclusion measures are not fixed, new groundhogs will move in within weeks. Seal the former burrow with gravel and topsoil, then monitor for reopening.
Frequently Asked Questions
What is the best fence to keep groundhogs out?
An L-shaped fence made from 1/2 inch hardware cloth is the most effective. Install it 3 feet high with 12 to 18 inches buried outward at the base. This prevents both climbing and digging.
Do ultrasonic pest repellers work on groundhogs?
Ultrasonic repellers have limited effectiveness. Groundhogs can habituate to the sound, and vegetation blocks the ultrasonic frequencies (20,000 to 60,000 Hz). Motion-activated sprinklers are a better investment.
How deep do groundhogs dig under fences?
Groundhogs can dig tunnels up to 5 feet deep. They typically dig under fence lines at the base, creating an angled tunnel that bypasses standard surface-level barriers.
Will mothballs keep groundhogs away?
Mothballs are not registered for wildlife repellent use and are ineffective against groundhogs. They also pose environmental and health risks. Use EPA-registered repellents instead.
How long does it take to groundhog-proof a garden?
A typical garden can be fully protected in a weekend. Fencing takes the longest (4 to 8 hours). Repellents and motion-activated devices can be installed in under an hour.
Related Resources
Related Guides:
- Groundhog Removal Cost Guide — Compare DIY and professional removal costs.
- Groundhog vs Woodchuck vs Marmot — Identification guide for these similar rodents.
- Complete Wildlife Removal Cost Guide — Costs for all common wildlife problems.
- DIY vs Professional Wildlife Removal — When to handle it yourself.
Why Trust WildAnimalsCentral
WildAnimalsCentral has been providing wildlife control guidance since 2019. Our team includes wildlife biologists, licensed nuisance wildlife trappers, and pest control professionals. Every guide is based on current best practices from state wildlife agencies and the National Wildlife Control Operators Association.
We test products and methods in real-world conditions. Our recommendations are reviewed annually against new research and product releases. This guide was last updated in August 2026.








