A vegetable garden fence works only when its height, mesh size, and ground barrier match the specific pest — rabbits need 3–4 foot wire buried 8 inches, while deer require taller electric or mesh setups.
The wrong fence wastes time and money. Rabbits squeeze through gaps bigger than 2 inches. Deer clear a 4-foot fence like a hurdle. Groundhogs dig under anything not buried. The fix is matching the fence to the animal you actually have, not the one you imagine. Below are the practical builds that work for each pest type, with exact heights and materials.
Fence Height And Mesh By Target Pest
Every vegetable garden fence starts with one decision: what animal are you blocking? The height, mesh size, and ground treatment all change depending on the answer.
- Rabbits and groundhogs: A fence 3–4 feet high with 1-inch or smaller wire mesh. Chicken wire works, but 1/2-inch hardware cloth is stronger and costs around $2–3 per linear foot. Bury the bottom 8–12 inches or bend it outward in an L-shape under soil.
- Deer: Minimum 7–8 feet tall for a mesh fence, or an electric setup with four to five strands.
- Burrowing animals (groundhogs, skunks, raccoons): Any mesh fence needs the bottom 12–18 inches buried or flared outward 12 inches in an L-shape and covered with soil or mulch.
For raised beds, attach chicken wire or hardware cloth directly to the frame. Most raised-bed vegetable gardens only need a 3-foot fence because the bed itself adds elevation that smaller pests struggle to climb.
Material And Post Options That Last
The fence material and post type determine how many seasons the fence will stand. Wire mesh, chicken wire, welded wire panels, and electric wire are the four common choices. Each pairs with a different post setup.
| Fence Type | Best For | Post Spacing | Install Time |
|---|---|---|---|
| 1/2-inch hardware cloth | All small pests + burrowers | 6–8 feet | 1–2 days |
| Chicken wire (3–4 ft) | Rabbits only | 6–8 feet | Half day |
| Welded stock panels (16 ft) | Deer, large animals | 4–6 feet | 1 day |
| Electric multi-strand | Deer, persistent pests | 8–12 feet | 1–2 days |
Use 4×4 or 6×6 pressure-treated wood posts or heavy-duty metal T-posts. Set corner posts at least 2 feet deep, or one-third of the post length, whichever is deeper. In cold climates, set posts 36 inches deep to stay below the frost line and avoid heaving. Backfill with concrete or packed gravel and allow concrete to cure fully before tensioning any wire.
Step-By-Step: Build A Wire Mesh Deer And Rabbit Fence
This build works for most vegetable gardens with mixed pest pressure. Adjust the height and mesh size based on your primary pest from the table above.
- Lay out the perimeter. Drive stakes at each corner, run string between them, and square the layout by measuring diagonals — they must be equal.
- Set the posts. Dig holes at the marked spots. Add 4–6 inches of gravel at the bottom for drainage. Set each post plumb with the string line and backfill with concrete or soil, tamping every 4 inches. Let concrete cure at least 24 hours.
- Attach the mesh. Start at a corner post. Unroll the wire and staple or tie it at the top, middle, and bottom of each post. Pull the mesh tight between posts to remove sag.
- Burrow-proof the bottom. Bend the bottom 12 inches of mesh outward in an L-shape away from the garden. Bury it under 2–3 inches of soil or mulch. This stops groundhogs and rabbits from digging under.
- Build the gate. Build a rectangular frame from 2×4 lumber with a diagonal brace. Hang it with heavy outdoor hinges and install a latch that opens from both sides. The gap under the gate is the most common escape route — bury a strip of mesh under the gate opening.
- Inspect and close gaps. Walk the entire fence line. Fill any gaps where mesh meets the ground, at corners, and under the gate. Use zip ties or wire to patch torn spots.
For readers ready to buy instead of build, the best garden vegetable fence options tested this year include pre-assembled panels and complete kits that skip the post-setting step.
Electric Fencing: When And How
Electric fencing works best for deer and persistent raccoon pressure where a mesh fence alone gets climbed or pushed over. Use a four- or five-strand wire setup. Three strands may work for lighter pressure, but four is more reliable for most gardens.
Critical caveats: Check local ordinances before installing electric fence — many areas require posted warning signs. Keep vegetation cleared from the wires; weed contact grounds the fence and kills its power. Warn children and neighbors about the fence location.
FAQs
FAQs
How deep should I bury fence wire to stop digging animals?
Bury the bottom edge 8–12 inches deep for rabbits and 12–18 inches for groundhogs and raccoons. An outward L-shaped bend at the bottom adds extra protection because animals hit wire when they try to tunnel under.
Can I use chicken wire for deer?
Chicken wire is too short and too weak for deer. Deer clear a 4-foot fence easily and can push through or over chicken wire. Use 7–8 foot mesh or an electric multi-strand setup for reliable deer control.
How often should I inspect my vegetable garden fence?
Inspect the fence line once a month during the growing season and after any heavy storm. Pay special attention to corners, the bottom edge, and the gate opening — those three spots account for most pest entries.
References & Sources
- Mother Earth News. “Build the Best Garden Fence.” Covers post depth, mesh attachment, gate building, and common mistakes.
- Epic Gardening. “How to Choose a Garden Fence.” Details fence height by pest type, material comparisons, and burrow-proofing methods.
- Savvy Gardening. “Fencing a Vegetable Garden.” Includes electric fence layout, deer-specific designs, and raised-bed fence attachment.
