A snug 2–4 ft wire fence with a buried skirt blocks rabbits, dogs, and many digging pests while staying simple to open and maintain.
A good garden fence does two jobs at once: it keeps hungry mouths out, and it keeps you from turning every harvest into a daily battle. The trick is matching the fence to what’s raiding your beds. Rabbits slip through gaps. Groundhogs dig. Deer jump. Dogs barge in like they own the place.
This build focuses on a sturdy, homeowner-friendly fence that works for the common troublemakers. You’ll get clear sizing, a clean layout, and a gate that won’t sag after a few weeks. If you’ve ever watched a rabbit nibble your lettuce down to a green haircut overnight, you’re in the right spot.
Plan The Fence Before You Buy Anything
Start with a slow lap around your garden. Watch where animals already enter. Look for tracks, droppings, nibbled stems, and little “tunnels” through grass. Those clues tell you what height and mesh size you need.
Measure The Space And Choose A Shape
Simple shapes save money and time. A rectangle with four straight runs uses fewer posts and less cutting than a wavy outline. If you can, leave a 2–3 ft path outside the fence so you can mow and weed without wrestling the wire.
Write down the perimeter. If your garden is 10 ft by 20 ft, the perimeter is 60 ft. Add 10% for overlap, corners, and a gate. That extra roll feels annoying at checkout, then feels like a gift on install day.
Pick A Gate Spot That You’ll Use
Place the gate where your feet already want to walk. Near the hose spigot. Near the compost. Near the shed. A gate in the “wrong” place becomes the gate you avoid, and that’s when you start stepping over the fence and bending it out of shape.
Call Before You Dig
If you’re setting posts, you’re digging. Before you put a shovel in the ground, request utility marking through 811 “Before You Dig”. It’s a simple step that keeps a weekend project from turning into a costly mess.
Choose Materials That Match Your Pests
A fence is only as strong as its weakest detail. One wide gap at the bottom can be an open door. One flimsy stake can turn a tight corner into a leaning shrug.
Wire Mesh: What Works And What Fails
For small animals, tight openings matter. Chicken wire is fine for many rabbit problems, yet it can bend and tear if dogs push it or if a groundhog tests it. Hardware cloth costs more, then pays you back in fewer repairs.
University extension guidance often points to physical barriers as the most reliable way to keep garden pests out, with mesh choice and height tied to the animal you’re dealing with. The University of Minnesota Extension notes fencing as the most effective approach and calls out taller fencing for deer issues. See Keeping animals out of your garden for the plain-language overview.
Posts: The Backbone Of The Build
Posts decide how straight the fence stays after rain, heat, and a few bumps from a wheelbarrow. For a typical home garden fence, metal T-posts are fast and strong. Wood corner posts cost more work, yet they hold tension better and keep corners crisp.
Fasteners And Tools You’ll Want Ready
- Fence ties or heavy-duty zip ties (UV-rated)
- Staples for wood posts, or T-post clips for metal posts
- Post driver (for T-posts) or a digging bar and shovel (for wood)
- Wire cutters and gloves
- Level, tape measure, and string line
- Gate hardware: hinges, latch, and a handle you can grab with muddy hands
If rabbits are your main issue, Iowa State University Extension points to chicken wire or hardware cloth as effective barriers, plus pinning or burying the bottom edge so rabbits can’t slip underneath. Their guidance is laid out in How do I prevent rabbits from damaging plants in the vegetable garden?.
Fence Styles Compared: Pick The One That Fits Your Yard
Before you commit to a roll of wire, match the fence style to your pests, budget, and patience for upkeep. A simple fence done well beats a complicated fence done halfway.
| Fence Type | Best For | Notes On Build |
|---|---|---|
| 2 ft chicken wire with ground pins | Rabbits in low-pressure yards | Use 1-inch (or tighter) mesh; pin bottom every 12–18 inches. |
| 2–3 ft hardware cloth “skirt” + taller wire above | Rabbits plus light digging | Run hardware cloth 12–18 inches tall at the bottom; overlap with welded wire. |
| 4 ft welded wire with buried apron | Rabbits, dogs, many groundhog problems | Bend 10–12 inches outward on the ground, then pin or bury a few inches. |
| 4–5 ft welded wire + top strand (tight) | Medium pressure, occasional climbers | Top strand keeps the fence from flexing; corners need strong bracing. |
| 6–8 ft deer fence (poly mesh or wire) | Deer pressure | Needs tall posts and solid anchoring; gates must match the full height. |
| Double fence system (two shorter fences spaced apart) | Deer when a tall fence is hard to build | More materials, more mowing, yet can work well with the right spacing. |
| Electric strand added to a wire fence | Persistent diggers and pushers | Needs routine checks; placement and grounding decide results. |
| Raised-bed “cage” or hoop cover tied into the fence | Birds and climbing pests | Best when paired with side fencing; plan access for harvest and watering. |
How To Build A Fence Around A Vegetable Garden In Clear Steps
This section walks through a solid “default” build: 4 ft welded wire (or similar) with a bottom apron that blocks digging, plus a simple gate. Adjust height and mesh as your pest pressure demands.
Step 1: Mark The Line And Square The Corners
Set stakes at the corners. Run string between them. Measure corner-to-corner diagonals. When both diagonals match, your layout is square. If you skip this, gates get tricky and fence runs look crooked even when the posts are straight.
Step 2: Set Corner Posts First
Corners take the strain. If you’re using wood, set the corner posts deeper than line posts. Many homeowners go 24–30 inches down, deeper in sandy soil. Tamp the soil firmly as you backfill. If you use gravel, keep it tight and layered.
If you’re using T-posts for corners, pick heavier ones and drive them deeper than the rest. Add a brace or a diagonal support if your fence will be pulled tight.
Step 3: Add Line Posts At Even Spacing
Spacing controls sag. For most wire fences around a garden, 6–8 ft spacing works well. In windy spots, or with dogs that lean on the fence, go closer. Drive each post with the same depth so the top line stays level.
Step 4: Roll Out The Wire And Tension It
Wear gloves. Wire loves to bite. Unroll the wire along the outside of the posts so the fence face is smooth on the garden side. That makes it harder for animals to get footholds and easier for you to weed inside the fence.
Attach the wire at one corner first. Then pull it tight toward the next corner. You don’t need it guitar-string tight, yet you do want it firm. If it waves like a flag, it will sag more after the first rain and heat cycle.
Step 5: Block Digging With A Buried Or Pinned Apron
Digging pests rarely start right at the fence line and tunnel straight down. A simple trick is an “apron” or “skirt” that extends outward from the bottom of the fence. When an animal tries to dig at the base, it hits wire and gives up.
Here are two clean options:
- Bury the bottom edge: Sink 2–6 inches of the fence into the soil, then tamp it tight.
- Make an outward apron: Bend 10–12 inches of wire outward at ground level and pin it down with landscape staples every 12 inches.
If rabbits are slipping under, tighten the bottom edge first. Pin it. Add soil. Add a board as a kick plate. Most “mystery gaps” are just a fence that wasn’t anchored well at ground level.
Step 6: Tie The Fence To Posts The Right Way
On wood posts, use fencing staples and angle them slightly so they bite without crushing the wire. On T-posts, use the clips made for that post style. Attach at the top, middle, and bottom on each post. At corners, use more ties because corners take more stress.
Step 7: Build A Gate That Won’t Sag
A simple gate can be built from a rectangular wood frame covered with the same wire mesh. The sag fix is a diagonal brace. Run the brace from the lower hinge side up to the upper latch side. That brace keeps the gate square under its own weight.
Set the gate posts wider than the gate by the hinge clearance you need. Use heavy hinges. A cheap hinge on a heavy gate turns into a weekly annoyance.
Step 8: Seal The “Easy Entry” Spots Animals Love
Animals search for the lazy opening. Walk the full perimeter on your hands and knees once. Look for:
- Gaps under the gate
- Loose mesh at corners
- Wire ends that lift off the ground
- Places where the fence meets a raised bed or a path edge
Fix those spots now, not after your seedlings vanish.
Building A Fence Around A Vegetable Garden To Stop Rabbits
If rabbits are your top problem, you can build lighter and still win, as long as you get the details right. Rabbits squeeze through surprising openings, then hug the fence line while they graze.
Use Tight Mesh Low To The Ground
A rabbit-focused fence works best with small openings near the bottom. If you’re using welded wire with larger openings, add a hardware cloth band along the lower 18–24 inches. Overlap and tie it well so there’s no “peel up” edge.
Keep The Bottom Edge Locked Down
Pin the bottom every foot or so. Add soil over the apron. If your soil is loose, a narrow trench with the bottom edge tucked in and tamped tight can stop repeated attempts to slip under.
Measurements That Make The Fence Work
These ranges are practical starting points. Your yard decides the final call. If you’ve seen deer in daylight, plan for deer. If you’ve seen groundhog holes near the garden, plan for digging pressure.
| Pest Pressure | Height And Mesh | Bottom Treatment |
|---|---|---|
| Rabbits (low to medium) | 24–36 inches; small openings near ground | Pin tight or bury 1–2 inches |
| Rabbits + dogs pushing | 36–48 inches; welded wire plus tight lower band | Outward apron 10–12 inches, pinned |
| Groundhog digging | 36–48 inches; heavier gauge wire | Apron plus extra pins; overlap seams well |
| Deer sightings near beds | 6–8 ft deer fence or proven alternative design | Keep fence tight to ground; seal gate gaps |
| Mixed pests, unknown source | 48 inches with tight lower band | Apron plus buried edge at corners |
| Climbers (squirrels, cats) | Height varies; add top netting or overhead barrier | Seal gaps; keep fence face smooth inside |
| Chicken-safe garden (poultry nearby) | 48 inches; tighter mesh to block squeeze-outs | Pin bottom so birds can’t scoot under |
Small Details That Save You From Constant Repairs
Most garden fences fail at the edges, not the middle. A few habits keep the fence working season after season.
Overlap Seams Like You Mean It
When two fence rolls meet, overlap by at least one full mesh section, then tie every 6–8 inches. A single tie at the top lets animals push the seam open like a zipper.
Cap Or Bend Sharp Wire Ends
Cut wire ends are sharp. Bend them back around the post or cap them. You’ll thank yourself the first time you brush past the fence in a hurry with an armful of tomato cages.
Keep Vegetation From Lifting The Fence
Grass and weeds can lift the bottom edge over time. Trim along the fence line and re-pin spots that rise. A neat edge does more than look tidy. It keeps the seal tight.
Check After Storms And After Harvest Rush
Wind, heavy rain, and the “I’ll just squeeze through” moments can loosen ties. Do a quick walkaround once a week during peak growing season. Tighten anything that looks tired before it turns into a gap.
Smart Upgrades If Pests Keep Winning
If you built the fence and still see damage, don’t scrap it. Upgrade the weak point.
When You See Digging At One Spot
Extend the apron there. Add more pins. Lay a strip of wire flat on the ground outside the fence and stake it down. Animals tend to return to the same “promising” spot, so targeted reinforcement works well.
When Deer Pressure Ramps Up
If deer are the issue, height and full perimeter sealing become the deciding factors. Many gardeners move to taller fencing or proven multi-fence layouts. The University of Minnesota Extension notes tall fencing as a common route when deer are a problem, along with other physical barriers. Review their notes and options at the link shared earlier so your plan matches your local pressure.
When Pets Are The Main Problem
Dogs test fences with body weight. Use heavier wire and closer post spacing. Add a tension wire along the top. If your dog paws at the base, reinforce the bottom with a board screwed to the posts, then tie the mesh to that board.
Finish Strong With A Simple End-Of-Install Checklist
Before you put the tools away, run this list. It catches the sneaky flaws that animals love:
- Gate swings freely and latches without lifting
- No visible gap under the gate at any point in its swing
- Bottom edge pinned or buried all the way around
- Corner ties tight and not sliding down the post
- Seams overlapped and tied often, not just once
- No sharp wire ends sticking out where hands will grab
Once this is done, plant with less worry. The fence won’t stop every insect or every nibble, yet it can stop the big losses that ruin a season. And that’s the goal: steady harvests, fewer surprises, and a garden that feels calm again.
References & Sources
- 811 Before You Dig.“Before You Dig.”Explains how to request utility marking before fence post digging.
- University of Minnesota Extension.“Keeping animals out of your garden.”Notes physical barriers like fencing and outlines fence options tied to animal type, including deer and small pests.
- Iowa State University Extension and Outreach.“How do I prevent rabbits from damaging plants in the vegetable garden?”Recommends chicken wire or hardware cloth and securing the bottom edge to block rabbits from slipping underneath.
