How to Build a Garden Fence to Keep Animals Out
In this article
Building a garden fence is the most reliable way to keep deer, rabbits, groundhogs, and other critters from eating your plants. A well-built fence not only protects your harvest but also saves you from the frustration of finding half-eaten tomatoes or dug-up bulbs. Before you start, check local zoning laws and utility lines (call 811 in the U.S. to mark underground lines). You’ll also need to decide which animals you’re fencing against—this determines fence height and mesh size.
What You'll Need
- Fence posts (wood, metal T-posts, or U-posts)
- Fence fabric (welded wire, chicken wire, or hardware cloth)
- Post hole digger or auger
- Level
- Tape measure
- Hammer or mallet (for T-posts)
- Wire cutters
- Staples or zip ties (for attaching fence to posts)
- Gravel or concrete (for setting posts, optional)
- Gate hardware (if you need a gate)
Step-by-Step
- Plan the perimeter. Measure the garden area and mark the corners with stakes. Decide on the fence height: 4–5 feet for deer (or 8 feet if deer are persistent), 2–3 feet for rabbits, and 1–2 feet for groundhogs. For a multi-purpose fence, go at least 4 feet high.
- Choose your fence material. For rabbits and groundhogs, use 1-inch or smaller mesh (chicken wire or hardware cloth). For deer, use welded wire with 2x4-inch mesh or a taller woven wire. Avoid plastic netting—it’s flimsy and animals can push through.
- Set corner posts first. Dig holes at least 18–24 inches deep (or below frost line in cold climates). Place the post, fill with gravel for drainage, then backfill with soil or concrete. Ensure the post is plumb using a level. Let concrete set for 24 hours if used.
- Install line posts. Space line posts 6–8 feet apart along the perimeter. Use T-posts for quick installation (hammer them in) or wood posts for a more permanent look. Keep the top of all posts level.
- Attach the fence fabric. Starting at one corner, unroll the fence along the posts. Use staples (for wood) or zip ties (for metal) to secure the top edge first, then the bottom. Overlap seams by at least 2 inches and tie them together.
- Bury the bottom edge. To stop diggers like groundhogs and skunks, dig a 6–12 inch trench along the fence line, tuck the bottom of the fence into it, and backfill with soil. Alternatively, bend the bottom 12 inches outward in an L-shape and bury it—this creates a barrier that animals can’t dig under.
- Add a gate. If you need access, install a gate using the same fence material. Use sturdy hinges and a latch that animals can’t open. Ensure the gate fits snugly with no gaps.
- Check for gaps. Walk the entire fence line, looking for any openings, sagging sections, or loose attachments. Pay special attention to corners and the gate.
Common Mistakes
- Fence too low: Deer can easily jump a 3-foot fence. Go at least 4–5 feet.
- Mesh too large: Rabbits can squeeze through 2-inch mesh. Use 1-inch or smaller.
- Not burying the bottom: Groundhogs and rabbits will dig under a fence that isn’t buried or bent outward.
- Leaving gaps at corners: Animals find and exploit any small opening.
- Using flimsy materials: Plastic netting and thin wire won’t hold up to pressure or weather.
Tips
- For deer, add a second, lower fence about 3 feet inside the main fence—this confuses their depth perception and makes jumping harder.
- Use metal T-posts for quick and easy installation; they’re cheaper and easier to remove than wood.
- If you have a large garden, consider using electric fencing as a supplement—a single hot wire at 3 feet high can deter deer without a full fence.
- Paint wood posts with a weatherproof sealant to extend their life.
- Check the fence monthly for damage from weather or animals.
Troubleshooting
Animals are still getting in. Look for holes under the fence, gaps at corners, or areas where the fence has sagged. Re-bury the bottom and tighten any loose sections.
Deer are jumping over. Raise the fence height or add an angled extension at the top (a 45-degree outward bend). You can also add a second fence line.
Rabbits are squeezing through the mesh. Replace with smaller mesh (1/2-inch hardware cloth) or double-layer the fence.
Groundhogs are digging under. Dig a deeper trench and bury the fence at least 12 inches down, or lay a horizontal skirt of wire on the ground.
Posts are leaning. This usually means they weren’t set deep enough. Re-set the posts with concrete, ensuring they’re plumb.
Frequently Asked Questions
How tall should a garden fence be to keep deer out?
For most deer, a 5-foot fence is sufficient. If deer are persistent or if you live in an area with high deer pressure, go 8 feet or add an angled top extension.
Will a chicken wire fence keep rabbits out?
Yes, chicken wire with 1-inch mesh works well for rabbits, provided the fence is at least 2 feet high and the bottom is buried or bent outward to prevent digging.
Do I need to bury the fence?
If you have diggers like groundhogs, skunks, or rabbits, yes. Bury the bottom 6–12 inches or bend it outward in an L-shape and cover with soil.
Can I use plastic netting to keep animals out?
Plastic netting is not recommended—it’s weak, can tear easily, and animals can push through or get tangled. Use metal wire mesh for durability.
What is the best fence for a vegetable garden?
A 4–5 foot tall welded wire fence with 1-inch mesh, buried 6 inches deep, is a good all-around choice for most small to medium animals. For deer, add height or a second fence.
How much does it cost to build a garden fence?
Cost varies widely by material and area. A basic chicken wire fence can cost $1–$2 per foot, while a taller welded wire or wood fence may cost $5–$10 per foot. DIY installation saves labor costs.