Fence a vegetable garden with wire mesh buried 6–12 inches and a height matched to pests—about 2 feet for rabbits and 8 feet for deer.
Building a fence around a kitchen plot stops nibbling before it starts. This guide shows clear choices, proven sizes, and a step-by-step plan that works for small beds or big rows. You’ll see what to buy, how deep to set the mesh, and how tall to go for the animals in your area.
Garden Fence Options At A Glance
The table below compares common materials you’ll find at farm stores and home centers. Pick for strength first, looks second. You can blend types—wood posts with wire mesh is a classic mix that lasts.
| Fence Type | Best For | Core Specs |
|---|---|---|
| Hardware Cloth (Galvanized) | Rabbits, voles, young beds | 1/4–1/2 inch openings; bury 6–10 inches |
| Welded Wire (2×4 in.) | Dogs, kids, mild deer | 3–5 feet tall; add buried apron for diggers |
| Deer Mesh (Poly Or Metal) | Deer pressure | 7.5–8 feet tall; tensioned on sturdy posts |
| Electric (1–3 Strands) | Deer or groundhogs with training | Low wire 4–6 inches off ground; keep weeds off |
| Wood And Wire Combo | Style plus security | Wood frame with 1 inch mesh liner; latchable gate |
| Livestock Panels | Fast builds, trellis use | Heavy 16 ft panels; line base with hardware cloth |
| Bed Cages/Netting | Birds, insects on small beds | Fine mesh top and sides; remove for pollination |
How To Fence Vegetable Garden: Step-By-Step
This plan builds a long-lasting barrier with parts most stores carry. If you came here asking how to fence vegetable garden for a small yard, the same steps apply—just scale the run length and gate width.
1) Map Your Perimeter
Sketch the garden on paper. Mark gate location, corners, and any slopes. Walk the line and pull up roots or debris. Straight runs build faster and tension better.
2) Choose Posts And Spacing
Use pressure-treated wood, metal T-posts, or a mix. Corners need braced wood posts; line posts can be T-posts. Common spacing is 6–8 feet on center. For tall deer mesh, tighten spacing to 6 feet in windy spots.
3) Size The Mesh
For rabbits, pick 1 inch or smaller openings. For deer, choose strong black poly mesh or woven wire rated for 8 feet. For groundhogs, add a buried “L” footer. You can stack meshes: welded wire for height with hardware cloth along the bottom.
4) Set Corners And Gates
Dig corner post holes 24–30 inches deep. Set posts plumb in tamped gravel or concrete. Hang a gate wide enough for a wheelbarrow or mower. Add diagonal braces so the latch lines up cleanly and doesn’t sag.
5) Run The Line Posts
Drive T-posts with the studs facing the garden. Keep them in line using a string pulled tight between corners. Cap exposed metal posts to keep water out.
6) Install The Mesh
Unroll mesh on the ground outside the line, then lift and tie it to posts with wire or heavy zip ties. Keep it tight but not drum-tight; a little give helps absorb bumps from tools or drifting branches.
7) Build The Dig Barrier
Trench around the edge 6–12 inches deep. Drop the lower mesh into the trench and bend the bottom outward to form an “L” that faces away from the bed. Backfill and tamp.
8) Finish The Top Edge
For deer, extend mesh to 8 feet. In tight yards, a double fence can also work: two shorter fences 3–4 feet apart confuse depth and stop jumps.
9) Seal The Gate And Gaps
Line the gate with 1 inch mesh, add a threshold board or pavers under the swing, and use a self-closing latch. Close any corner triangles and low spots with offcuts. If you needed a single phrase to search this plan later, save this page under “how to fence vegetable garden” and you’ll find it fast.
Fence Heights And Buried Depths That Stop Pests
Match your fence to the animal, not the catalog photo. The sizes below come from extension guides and field use.
Rabbits
Use 1 inch mesh, 18–24 inches high, and stake or bury the base several inches so they can’t wriggle under snow or soil. In snow country, go taller to keep the top above the drift line. These specs align with guidance from university extension services that call for a short fence with small openings and a buried edge.
Deer
Deer jump well, but an 8 foot barrier stops most herds. Black polypropylene “invisible” mesh works for many yards when tensioned on sturdy posts; woven wire is tougher where herds push hard. In small spaces you can use two lower fences a few feet apart to create a visual puzzle that deer avoid. See the Colorado State Extension deer fence guidance for common heights and layouts.
Groundhogs (Woodchucks)
They dig and they climb. A strong 4 foot fence with 1–2 inch mesh, buried 12 inches with an outward “L” footer, blocks tunnels. A low hot strand 4–5 inches off the ground, mounted a few inches outside the main fence, trains them to stay away. The University of Maryland Extension groundhog page covers that setup.
Materials And Tools Checklist
Here’s a clean list so you can shop once and build once:
- Corner posts (treated 4x4s or round posts), line posts (T-posts)
- Deer mesh roll (7.5–8 ft) or welded wire (2×4 in.)
- Hardware cloth (1/4–1/2 in.) for the lower 24 inches
- Tension wire or top rail for tall mesh
- Gate kit with hinges and self-latching hardware
- Wire ties, staples, or fencing clips
- Gravel, fast-setting concrete (for corners), shovel, spade
- Post driver, level, string line, bolt cutters or snips
Code Checks, Safety, And Neighbor-Friendly Tips
Before digging, call your utility locate service to mark lines. Some towns cap fence heights or set setbacks. Electric strands are not allowed everywhere. Keep sight lines neat at corners so drivers and kids can see.
Place compost and water inside the fence so you don’t prop the gate open. Keep vines off the mesh unless you want a living screen; added weight can slacken the run.
When To Use Electric Strands
A single low wire can boost a fence when burrowers test the edge. Keep weeds trimmed under the wire or the charge will leak away. Use proper insulators on wood or T-posts and follow the charger manual for grounding.
Pest-Specific Specs And Quick Fixes
Use this quick table to size parts and spot weak points fast.
| Animal | Height | Ground Barrier |
|---|---|---|
| Rabbits | 18–24 inches, 1 inch mesh | Bury 6–10 inches; stake edges |
| Deer | 8 feet, tensioned mesh | Close gaps; double fence in tight yards |
| Groundhogs | 3–4 feet, 1–2 inch mesh | Bury 12 inches; outward “L” footer |
| Voles | 12–18 inches bed cages | 1/4 inch hardware cloth skirt |
| Dogs | 4 feet welded wire | Stake base; add bottom rail |
| Cats | 4 feet with roller add-on | Cover gaps; add top roller |
| Birds | Bed hoops and net | Fine mesh; remove for bloom |
Maintenance That Keeps The Fence Working
Walk the line each week. Tighten loose ties, clip grass at the base, and look for fresh digs. Swap rusted clips and cap sharp cut ends so sleeves don’t snag.
After storms, check corners and the top line. Wind can pull staples, and leaning branches can stretch poly mesh. A few minutes with a driver and spare ties saves a season’s crops.
Common Mistakes To Avoid
- Skipping the buried apron. Diggers will find the one soft spot.
- Going too short on deer fences. Six feet rarely holds.
- Leaving a gap under the gate. Add a board or pavers.
- Using big openings at the base. Small mesh stops small heads.
- Letting vines load the mesh unless it’s built for that load.
Quick Sizing Recap With Sources
For deer, plan on an 8 foot barrier or a double fence. For groundhogs, bury 12 inches with an outward “L” and add a low hot wire if allowed. For rabbits, use 1 inch mesh at 18–24 inches and secure the base. These sizes match guidance from state extension services and field trials by gardeners across many regions.
Why This Build Passes The Real-World Test
The mesh sizes match animal behavior. The buried “L” stops digs, the tall span stops leaps, and a snug gate blocks the daily sneak-through. Parts are common, fixes are simple, and you can scale the same plan for raised beds or a quarter acre.
Use this plan now and your lettuce, beans, and berries stay yours. That’s the payoff for careful prep and a fence sized to the pests that share your block.
