DIY Projects How-To April 4, 2026 12 min read

Garden Fence Options: How to Keep Deer, Rabbits, and Groundhogs Out

Complete guide to garden fencing that actually stops deer, rabbits, and groundhogs. Covers 8-foot deer fence, buried hardware cloth for rabbits, L-footer groundhog barriers, electric fence, bed cages, material comparison, and cost per linear foot.

You can build the most beautiful raised bed garden in the neighborhood, fill it with perfect soil, and plant every seed at exactly the right depth and spacing — and then watch a deer walk through at dusk and eat every bean plant down to a stub in under ten minutes. Or discover that rabbits have tunneled under your bed walls and mowed your lettuce to the ground overnight. Or find that a groundhog has chewed through your chicken wire fence like it was made of paper towels and is now sitting in the middle of your garden eating your broccoli while making eye contact with you.

Garden fencing is not optional if you have wildlife pressure. It is the most important infrastructure investment after the beds themselves. But the specific fence you need depends entirely on which animals you are dealing with, because deer, rabbits, and groundhogs each require different strategies. A fence that stops deer will not stop rabbits. A fence that stops rabbits will not stop groundhogs. And a fence marketed as a general-purpose garden fence usually stops none of them effectively.

This guide breaks down exactly what works for each pest species, the materials that perform and the ones that fail, cost per linear foot, and combination strategies when you are dealing with multiple animals — which, if you are reading this article, you almost certainly are. If you are not sure which animals are causing your damage, the nocturnal garden pest identification guide can help you figure out what is visiting your garden after dark.

Deer Fencing

Deer are the most destructive large garden pest in most of North America. A single adult deer eats 6 to 10 pounds of vegetation per day, and they do not just nibble — they strip plants to the stem, break branches, and trample beds. Deer can clear a 5-foot fence from a standing jump and a 6-foot fence with a running start. An effective deer fence needs to be either tall enough that they will not jump it or designed to exploit their depth perception limitations.

Standard 8-Foot Deer Fence

The gold standard for deer exclusion is an 8-foot fence. Deer rarely attempt to jump anything over 7.5 feet, and an 8-foot fence provides a small margin of safety. The fence does not need to be solid — deer are deterred by height, not opacity. In fact, a deer can see a solid fence more clearly and may be more likely to try jumping a 6-foot solid fence than an 8-foot mesh fence because the solid fence gives them a clear visual target for the landing zone beyond it.

Materials: Polypropylene deer netting (the black mesh kind) on metal T-posts or wooden posts is the most common and cost-effective system. Drive T-posts every 8 to 10 feet, then stretch the netting between them. Use zip ties or hog rings to attach the netting to the posts. For a more permanent installation, use welded wire fencing (2x4-inch mesh) on wooden posts — more expensive but lasts much longer and looks more finished.

Cost per linear foot: Deer netting on T-posts runs $2 to $4 per linear foot installed. Welded wire on wooden posts runs $6 to $12 per linear foot. For a 50x50-foot garden perimeter (200 linear feet), expect $400 to $800 for netting or $1,200 to $2,400 for welded wire.

Double 4-Foot Fence System

If an 8-foot fence is not practical due to HOA restrictions, aesthetics, or cost, the double-fence system exploits deer vision. Deer have poor depth perception — they can judge height fairly well but struggle to gauge depth. Two parallel 4-foot fences spaced 4 to 5 feet apart create a barrier that deer will not jump because they cannot see a clear landing zone between or beyond the two fences.

How it works: Install two separate 4-foot fences with a 4 to 5-foot gap between them. The gap can be planted as a buffer zone (ornamental grasses, herbs, or flowers that deer avoid), left as a maintenance path, or filled with a wide bed of deterrent plantings. The deer see two obstacles with an unclear landing zone and choose to go elsewhere.

Cost per linear foot: Two 4-foot fences cost roughly the same total materials as one 8-foot fence, but require more posts and more ground space. Budget $4 to $8 per linear foot for both fences combined using welded wire on wooden posts.

Rabbit Fencing

Rabbits do not jump over garden fences — they squeeze through or dig under them. An adult cottontail can fit through any opening larger than 2 inches, and they instinctively dig when they encounter a barrier. This means that the mesh size and burial depth of your fence matter far more than its height.

Hardware Cloth Barrier

Half-inch hardware cloth (1/2-inch galvanized welded wire mesh) is the only reliable rabbit-proof fencing material. Chicken wire (1-inch hexagonal mesh) works for adult rabbits but young rabbits and baby cottontails can squeeze through the 1-inch hexagonal openings. The cost difference between chicken wire and hardware cloth is marginal for a garden-sized installation, and hardware cloth lasts three to four times longer because the welded joints do not unravel the way chicken wire does.

Fence height: 30 to 36 inches above ground is sufficient. Rabbits can technically jump 3 feet, but they almost never do in a garden context because they are prey animals — they prefer to stay low and hidden. A 30-inch fence is functionally rabbit-proof above grade.

Burial depth: This is the critical detail that most garden fences get wrong. You must bury the bottom of the hardware cloth at least 6 inches underground, and ideally 8 to 10 inches. Bend the bottom 6 inches of the hardware cloth outward at a 90-degree angle (an L-shape, with the foot of the L pointing away from the garden) before burying it. This L-footer prevents rabbits from digging directly at the fence base and hitting the buried horizontal mesh — they dig straight down, hit the mesh, and give up. Without the L-footer, determined rabbits will simply dig deeper until they get under the fence.

Cost per linear foot: 1/2-inch hardware cloth, 36 inches wide, runs $1.50 to $3.00 per linear foot depending on gauge and quantity. Posts and hardware add $1 to $2 per linear foot. Total installed cost is $2.50 to $5.00 per linear foot.

Groundhog Fencing

Groundhogs are the most challenging garden pest to fence out because they can climb, dig, and chew through most standard fencing materials. A groundhog will climb a 4-foot fence, dig 12 or more inches under a fence, and chew through plastic deer netting in minutes. They are also surprisingly strong — a 10-pound groundhog can bend lightweight chicken wire and push through gaps that look too small for an animal their size.

The L-Footer System

The most effective groundhog fence combines a climb barrier with a dig barrier. Use 4-foot welded wire fencing (2x4-inch mesh or smaller) with the top 12 inches bent outward at a 45-degree angle, creating an overhang that groundhogs cannot navigate. At the bottom, bury 12 inches of the fence underground with an L-footer that extends 12 inches outward from the fence base — same principle as the rabbit barrier but deeper and wider because groundhogs dig deeper than rabbits.

The math on material height: You need 4 feet above ground plus 12 inches buried vertically plus 12 inches of L-footer horizontally plus 12 inches bent over at the top. That is 7 feet of fencing material total. Use 6-foot welded wire and add a separate piece for the L-footer, or buy 7-foot material if available.

Alternative: electric wire. Adding a single strand of electric fence wire 4 inches above ground and 4 inches in front of the main fence is remarkably effective against groundhogs. They approach the fence at ground level, touch the electric wire with their nose, and retreat immediately. The wire needs to be low enough that the groundhog contacts it before attempting to climb or dig. A small solar-powered fence charger ($50 to $80) provides enough power for a garden perimeter.

Cost per linear foot: Groundhog-proof welded wire fencing with L-footer and top bend runs $5 to $10 per linear foot installed. Add $0.50 to $1.00 per linear foot for an electric wire strand.

Electric Fence

Electric fence can be a standalone solution or an enhancement to any of the barrier fences described above. A properly installed electric fence delivers a memorable but harmless shock that trains animals to avoid the area after one or two contacts.

For deer: Two strands of electric wire or polytape at 20 and 40 inches above ground, baited with peanut butter on aluminum foil flags. The deer lick the peanut butter, receive a shock on the tongue (their most sensitive area), and learn to avoid the garden. This method is surprisingly effective with just two strands and no physical barrier. It works best for small to moderate deer pressure (1 to 3 deer visiting regularly). For heavy pressure (herds of 10 or more), the physical 8-foot fence is more reliable.

For raccoons, groundhogs, and other medium-sized pests: A single strand at 4 to 6 inches above ground around the garden perimeter. These animals encounter the wire at nose height and learn quickly.

For rabbits: Electric fence is less effective because rabbits are small and fast enough to sometimes pass between wire strands without contact. Use hardware cloth for rabbits.

Power options: Solar-powered fence chargers work well for garden installations because the wire length is short (200 to 500 feet typically). A $50 to $80 solar charger provides more than enough power. Plug-in chargers are more powerful but require running an extension cord to the garden. Battery-operated chargers work but require regular battery replacement.

Individual Bed Cages

If fencing the entire garden perimeter is impractical — you rent your home, the garden is too large, or you want to protect only specific high-value beds — individual bed cages are an excellent alternative. A bed cage is a mesh enclosure that fits over a single raised bed, completely enclosing the top and sides.

Construction: Build a frame from PVC pipe, conduit, or lumber that fits over the bed. Cover the frame with hardware cloth (for rabbit and groundhog protection) or deer netting (for deer protection). A hinged or removable lid on top allows you to reach in for planting, weeding, and harvesting. For a 4x8 bed, a cage made from PVC hoops and hardware cloth costs $40 to $80 in materials and takes about two hours to build.

Pros: Protects individual beds without fencing the whole garden, removable and storable, can be tailored to specific pests (hardware cloth for everything, or just netting for deer only). Cons: Must be opened for every garden task, can be awkward to work through, limits plant height unless the cage is tall enough.

Fencing Material Comparison

MaterialMesh SizeStops DeerStops RabbitsStops GroundhogsLifespanCost per Linear Foot
Polypropylene deer netting1.75" x 1.75"Yes (at 8 ft)NoNo (chew-through)3-5 years$0.50-$1.50
Chicken wire (1" hex)1" hexagonalNoAdults onlyNo (bend/chew)3-5 years$0.75-$1.50
1/2" hardware cloth0.5" x 0.5"Yes (at 8 ft)Yes (all ages)Yes (cannot chew)10-15 years$1.50-$3.00
Welded wire (2x4")2" x 4"Yes (at 8 ft)No (squeeze)Yes (at 4 ft w/bend)15-20 years$1.00-$2.50
Welded wire (1x2")1" x 2"Yes (at 8 ft)YesYes15-20 years$2.00-$4.00
Electric polytapeN/AYes (2 strands)PartiallyYes (1 strand low)5-8 years$0.25-$0.75

Combination Strategies

Most gardens face pressure from more than one species. Here are the most effective combinations:

Deer + Rabbits

Use 8-foot welded wire fencing with 1x2-inch mesh for the bottom 36 inches and 2x4-inch mesh for the upper portion. Bury the bottom 6 inches with an L-footer. The small mesh at the bottom stops rabbits. The height stops deer. This is the most common combination fence in suburban and rural gardens.

Deer + Rabbits + Groundhogs

Same as above, but add a 12-inch L-footer at the bottom (instead of 6 inches), bend the top 12 inches of the fence outward at 45 degrees, and add a single electric wire strand 4 inches off the ground on the outside. This is the Fort Knox approach — expensive to install but virtually impenetrable. Cost runs $10 to $15 per linear foot installed, but your garden will produce without losses.

Budget Option: Electric + Minimal Barrier

If full perimeter fencing is too expensive, install a minimal 4-foot welded wire fence with an electric wire on the outside at 4 inches (groundhogs) and two electric polytape strands at 20 and 40 inches baited with peanut butter (deer). Add hardware cloth only around the bottom 12 inches for rabbit exclusion. Total cost drops to $5 to $8 per linear foot while providing effective multi-species protection.

Gate Design

The gate is the weakest point in any garden fence, and most wildlife breaches happen at or near the gate. Design your gate with the same rigor as the fence itself. The gate should be the same height as the fence — an 8-foot fence with a 4-foot gate is just a fence with a deer-sized hole in it. The bottom of the gate should clear the ground by no more than 2 inches. If your ground is uneven, add a brush strip or rubber flap to the bottom of the gate to close the gap. Use a spring-loaded hinge or self-closing latch so the gate cannot be accidentally left open.

For more garden infrastructure projects, browse the DIY projects collection for plans and guides.

Frequently Asked Questions

Will deer netting really stop deer if it is only 8 feet tall?

Yes, for most situations. Deer can physically jump higher than 8 feet, but they rarely do so into an enclosed area where they cannot see a clear escape route. The netting works as a visual and physical barrier. However, desperate deer (during severe winters with heavy snow cover, or in areas with extreme population pressure and limited food) may push through or jump lightweight netting. If you are in a high-pressure deer area, welded wire is more reliable than polypropylene netting because deer cannot push through it.

How deep do I really need to bury fence for rabbits?

Six inches with an L-footer is the minimum effective depth. Rabbits typically dig 4 to 6 inches deep when attempting to go under a barrier. The L-footer (the horizontal portion that extends outward from the fence base underground) is more important than the depth — it catches rabbits that dig straight down at the fence line and forces them to dig farther out, which they rarely do. If you skip the L-footer and just bury the fence straight down, determined rabbits will dig to 8 or 10 inches to get under it.

Is electric fence safe around children and pets?

Modern garden-rated electric fence chargers deliver a sharp but harmless shock — approximately 7,000 to 10,000 volts at extremely low amperage (less than 100 milliamps). The shock is startling and uncomfortable but causes no injury. It is comparable to a static electricity shock from touching a metal doorknob in winter, just stronger. That said, clearly mark electric fence lines with visible warning signs, and teach children that the wires are not to be touched. Dogs and cats learn to avoid electric fence after one contact, just like wildlife does.

What is the most cost-effective fence for a small garden?

For a small garden (under 200 square feet), individual bed cages are often cheaper than perimeter fencing and more effective because they completely enclose each bed with no gates, gaps, or weak points. Two cages for two 4x8 beds cost $80 to $160 total in materials versus $500 or more for perimeter fencing around the same area. The tradeoff is convenience — you have to open the cage every time you want to work in the bed.

Keep reading