Electric fencing is one of the most effective ways to keep groundhogs out of a garden. University of New Hampshire Extension calls it “probably the most effective material” for groundhog exclusion, precisely because groundhogs can both climb and burrow, and a low electric wire defeats both behaviors at once. A simple two-wire setup, costing well under $100, can protect a garden plot entirely from groundhog damage when installed correctly.
Why Electric Fencing Works Better Than Standard Fencing
Groundhogs are surprisingly athletic. They can climb 3 to 4 feet above ground level and dig burrows well over a foot deep. A standard chicken-wire or welded-wire fence has to be tall enough to prevent climbing, angled outward at the top, and buried at least a foot underground to stop digging. That’s a lot of work and material for a garden fence.
Electric fencing shortcuts all of that. A groundhog approaching a garden touches the low wire with its nose or chest, gets a sharp but harmless shock, and learns to avoid the area. Because the deterrent is behavioral rather than purely physical, you don’t need height or buried barriers. UNH Extension has documented research plots kept “entirely free of woodchuck damage” using electric wire alone.
Wire Height and Spacing
The standard recommendation for groundhogs is two strands of electric wire: one at 4 inches off the ground and a second at 8 to 9 inches. The low first wire is critical. Groundhogs are stocky, low-to-the-ground animals, and a wire at 4 inches catches them right at nose or shoulder height before they can start digging or climbing.
If squirrels are also raiding your garden, add a third strand about 6 to 8 inches above the second. Squirrels easily jump over a two-wire setup designed for groundhogs, so that extra wire closes the gap. For rabbits, which are even lower to the ground, the 4-inch bottom wire already covers you.
Equipment You Need
A basic groundhog electric fence requires five components: a fence energizer (charger), electric fence wire, insulated step-in posts, a ground rod, and hookup wire to connect the energizer to the fence. Garden electric fence kits bundle all of these together and are sized for small plots. You can also buy components separately if you want specific options like solar-powered chargers or polytape (a flat, ribbon-style wire that’s more visible than standard wire).
For a small garden, a low-output energizer designed for garden or small-animal use is sufficient. You don’t need the high-joule chargers built for livestock pastures. Look for a UL-approved label, which confirms the unit meets federal safety standards for the low amperage that delivers a memorable sting without causing injury to people, pets, or wildlife.
Solar vs. Plug-In Chargers
Plug-in chargers are the simplest option if your garden is near an outlet. They deliver consistent power and you never worry about battery life. Solar chargers work well for remote garden plots or situations where running an extension cord isn’t practical. Modern solar units with built-in batteries maintain charge through cloudy days, but they do cost a bit more upfront.
Installation Tips
Place your insulated posts around the garden perimeter, spacing them about 10 to 12 feet apart. Thread your wire through the insulators at the correct heights (4 inches and 8 to 9 inches). Drive the ground rod into moist soil near the energizer, since dry soil conducts electricity poorly and weakens the shock. Connect the energizer to both the fence wire and the ground rod using the hookup wire.
The single most important maintenance task is keeping vegetation trimmed away from the wire. Weeds, tall grass, or garden plants touching the fence create a “short,” draining power from the line and weakening or eliminating the shock. Mow or trim a clear strip along the fence line regularly throughout the growing season. This is the most common reason electric fences stop working.
Position the fence about 6 inches to a foot outside the actual garden bed or planting area. You want the groundhog to encounter the wire while it’s still approaching, not when it’s already pressed against your plants.
Combining Electric Wire With Physical Barriers
Some gardeners prefer a hybrid approach, especially in areas with heavy groundhog pressure. The combination works like this: install a standard wire mesh fence (hardware cloth or welded wire) as the main barrier, then run a single strand of electric wire 4 inches off the ground and about 6 inches in front of the mesh fence. The electric wire prevents digging at the fence base, while the mesh provides a physical backup.
If you go this route with a physical fence, use half-inch galvanized hardware cloth for the mesh. Bury the bottom of the fence at least 12 inches deep, or bend it outward at the base into an L-shaped footer extending about 18 inches from the fence. Some wildlife control experts recommend even wider footers for groundhogs, since they’re persistent diggers. The L-footer can also be laid flat on the ground surface and pinned down rather than buried, which saves significant digging effort. The top of a non-electric fence should either be left unsecured and wobbly (groundhogs struggle to climb a fence that sways under their weight) or bent outward at a 45-degree angle for the top 10 to 15 inches.
For most backyard gardens, though, a standalone two-wire electric fence is simpler, cheaper, and easier to set up and take down seasonally.
Safety Around Kids and Pets
Garden-grade electric fences deliver a very low current. The shock is startling and uncomfortable but not dangerous to adults, children, or pets. That said, a few precautions make sense. Post visible warning signs on the fence so visitors and neighbors know it’s electrified. If young children play near the garden, consider using polytape or electrified plastic mesh instead of thin wire. These are much easier to see and less likely to be accidentally walked into.
Teach children not to touch the fence and show them how the gate works. Dogs and cats generally learn to avoid the fence after one contact, much like groundhogs do. Never run electric fencing through standing water, streams, or waterlogged areas. Water conducts electricity, and an animal or person standing in water while touching the wire could receive repeated shocks rather than a single pulse.
What to Expect After Setup
Groundhogs are creatures of habit. If they’ve been feeding in your garden, they’ll return and encounter the fence within a day or two. Most learn to avoid the area after one or two shocks. You may still see groundhogs on your property (they live in burrows nearby and forage across a home range), but they’ll redirect their feeding away from the fenced area.
Check your fence weekly during the growing season. Test the charge with an electric fence tester (a small, inexpensive handheld tool) to confirm the wire is delivering adequate voltage. Clear any vegetation touching the wire. If you notice new groundhog digging near the fence line, it likely means the charge has been weakened by a short or a dead battery, not that the groundhog has outsmarted the system. Fix the power issue and the fence will resume working.