To fence a raised garden, use sturdy wire mesh 24–30 in tall, bury 2–6 in at the base, and add 7–8 ft deer fencing where deer are active.
If you want neat beds and intact harvests, a fence around your raised garden is the single best upgrade. This guide shows what to buy, how tall to build, how deep to bury, and the exact steps to assemble a clean, safe barrier that keeps rabbits, voles, gophers, pets, and deer out—while letting you reach in, weed, and pick with ease.
Quick Picks: Fence Types And What They Stop
Match the mesh and height to the pests you see. Use this chart to choose fast.
| Fence Type | Typical Height | Best At Stopping |
|---|---|---|
| 1/4" Hardware Cloth (galvanized) | 18–30 in above soil; bury 2–6 in | Voles, mice, young rabbits, burrowers under beds |
| 1/2" Hardware Cloth | 24–30 in; bury 2–6 in | Rabbits, chipmunks, general nibblers |
| Welded Wire 2"×4" Panels | 36–48 in | Dogs, kids, light wildlife pressure; great for gates |
| Chicken Wire (1" mesh) | 24–36 in; pin bottom | Light rabbit pressure; temporary surrounds |
| Deer Netting (Poly Or Woven Wire) | 7–8 ft | White-tailed deer where browsing is common |
| Underground Mesh L-Barrier | Bury 12–24 in, horizontal 6–12 in out | Gophers, groundhogs, persistent diggers |
| Removable Panel Frames | 24–36 in (panel height) | Seasonal access, quick cleaning, small spaces |
How To Fence A Raised Garden: Step-By-Step
This section walks you through a clean build that fits most wooden raised beds (8×4 ft is common). Adjust measurements to your bed size.
Plan The Height And Mesh
For rabbits, aim for 24–30 in above soil using hardware cloth or tight welded wire. If deer roam your yard, ring the entire garden area with a secondary 7–8 ft perimeter made from deer netting or woven wire. For burrowers, add a bottom layer under each bed or form an L-shaped barrier in the soil around the bed perimeter.
Tools And Materials
- Hardware cloth (1/4" or 1/2" mesh) for the bed fence
- Exterior screws, fender washers, or heavy-duty staples
- Four corner posts (pressure-treated or cedar), plus line posts if spanning longer than 6 ft
- Gate kit or a simple welded-wire frame for access
- Landscape staples and a trenching spade for burial at the base
- Tin snips, work gloves, safety glasses
Mark, Dig, And Set Posts
Mark a rectangle that leaves 12–18 in walkway outside your raised beds. Dig post holes about one-third the exposed post height; set posts plumb and backfill firmly. For freestanding bed wraps, fasten posts to the bed corners with structural screws.
Attach The Mesh Cleanly
- Unroll mesh, keep it tight, and start at a corner. Tack at the top, then the bottom, then fill the middle. Use fender washers with screws on wood to resist pull-through.
- Where two runs meet, overlap at least 6 in and stitch with wire or hog rings.
- Leave 2–3 in extra at the bottom to fold into a shallow trench, then backfill and tamp. This stops animals from nosing under the fence.
Build A Simple Gate
Make a rectangular frame from 1×3 or 2×2 lumber, skin it with the same mesh, then hang it with two exterior hinges. Add a latch that a raccoon can’t flip with one paw. Keep a 1–2 in ground gap so the gate swings even after heavy rain.
Add Deer Protection If Needed
If deer browse your beds, put a second, taller perimeter around the garden space. A light poly net is fine where deer only pass through; woven wire is sturdier in open yards and wind. Keep plants 12–18 in inside the tall fence so deer can’t reach through.
Why Mesh Size And Height Matter
Small animals squeeze through big openings and chew weak wire. That’s why many gardeners choose 1/4–1/2 in hardware cloth around beds. Rabbits don’t jump high, so a 24–30 in wrap works well when the bottom is pinned or buried. Deer are jumpers; a 7–8 ft barrier is the reliable choice in open yards.
Raised Bed Bottoms: Stop Diggers Before They Start
For brand-new beds, line the bottom with hardware cloth before filling with soil. Overlap seams by 6 in and staple to the inside of the bed frame. If beds are already filled, trench around the outside, attach mesh to the boards near soil level, and fold the mesh outward in an L-shape 6–12 in before backfilling. This creates a hard turn animals hate to dig under.
Post Spacing And Bracing
For low bed wraps, posts every 4–6 ft keep mesh tight. On taller deer fences, use braces at the corners and every gate post. Pre-drill screw holes to prevent splitting, and cap posts to shed water.
Gate Placement That Saves Steps
Put the gate where you naturally enter with a wheelbarrow or hose. A 36 in opening clears most carts. If you have two beds back-to-back, a gate centered on the aisle cuts walking time every time you weed or harvest.
Close Variation: Fencing A Raised Garden Bed The Smart Way
Here’s a simple rule: match fence height to animal reach, and match mesh size to animal head size. Use stronger wire where claws and teeth test the barrier; use taller netting where long-legged grazers roam. Keep edges tidy, seams overlapped, and base lines buried or pinned.
Material Choices That Last
- Galvanized hardware cloth: Long-lasting and stiff; resists chewing.
- Welded wire panels: Flat, sturdy, great for straight runs and gates.
- Poly deer net: Light and simple to hang; add extra posts in windy spots.
- Cedar or treated posts: Cedar is rot-resistant; treated lumber is budget-friendly.
Safe Electric Assist (Optional)
In heavy deer zones, a low-profile two-wire electric line in front of a tall fence adds deterrence. Keep chargers and grounds set up per local code, mount warning tags where a sidewalk or shared line is nearby, and avoid running near overhead lines. If you’re unsure, skip power and stick with tall woven wire.
How To Fence A Raised Garden Without Losing Access
Good fences protect, but they should also make gardening easier. These tweaks keep access smooth and time-saving.
Removable Panels
Build 2–3 ft tall framed panels skinned with hardware cloth. Drop them into simple cleats screwed to the bed. Pop a panel out to sit on the bed edge while you thin carrots or prune tomatoes, then set it back in seconds.
Hose-Proof Corners
Round over post edges or screw on short scraps as hose bumpers. That keeps mesh from snagging and tearing when you water.
Mulch Strip Outside The Fence
Lay a 12–18 in strip of wood chips or gravel around the fence. It suppresses weeds at the base and gives you a clean walking edge, so string trimmers don’t chew the mesh.
Field-Tested Heights, Depths, And Spacing
Use the cheat-sheet below when you’re buying materials.
| Target Pest | Above-Ground Height | Below-Ground Detail |
|---|---|---|
| Rabbits | 24–30 in (1/4–1/2 in mesh) | Bury or pin 2–6 in at base |
| Voles/Mice | 12–24 in (1/4 in mesh) | Bury 2–6 in; tight to soil |
| Gophers | Low wrap plus bed bottom | Bed bottom liner; or trench 12–24 in with 6–12 in horizontal L |
| Dogs/Kids | 36–48 in (welded wire) | Pin base to stop crawling |
| Deer | 7–8 ft perimeter | No burial needed; keep plants off the fence line |
Cost, Time, And Skill Level
A tight 8×4 bed wrap with hardware cloth, posts, and a simple gate is an afternoon project for two people with basic tools. A full 7–8 ft garden perimeter takes a weekend, more posts, and a few braces. Buy once with quality mesh and stainless fasteners, and you’ll repair less later.
Maintenance That Pays Off
- Walk the fence each month. Tap down any gaps at the base and re-staple loose spots.
- Trim grass away from the bottom so plants don’t push the mesh up.
- After storms, check gate posts and braces. Tighten hinges if the gate sags.
- Before winter, raise irrigation lines and store poly netting if snow loads are heavy.
Sample Build: 8×4 Bed Wrap With A Front Gate
This build gives you a tidy, durable fence around one standard raised bed.
Cut List
- Posts: Four at 36–42 in long (exposed 24–30 in)
- Rails (optional): Eight at bed length and width for a framed look
- Hardware cloth: One roll, 24–36 in tall, long enough to go around with 12 in extra
- Gate frame: Two verticals at 32 in and two horizontals at 18–20 in
Build Steps
- Set the four posts flush to the bed corners; check for square.
- Skin the outside with hardware cloth starting at a back corner. Keep lines level for a tidy look.
- Fold and bury 2–3 in at the base along each side; tamp soil firmly.
- Build and hang the small gate on front posts. Add a barrel bolt latch.
- Walk the perimeter and press down any proud points with a block of scrap wood.
Trusted Guidance When You Need Backup
Two helpful references back up the specs in this guide. For rabbit-height mesh and burial depth, see Iowa State’s rabbit fencing advice. For tall deer barriers, see the Minnesota DNR woven-wire deer fence handbook. Both pages explain practical dimensions that work in real yards.
Common Mistakes To Skip
- Meshes that are too large: Gaps bigger than 1/2 in let small pests squeeze through.
- No burial at the base: Animals push under loose edges. Always pin or bury.
- Untied seams: Overlap and stitch every joint. Loose joints become doors.
- Short deer fences: A 5–6 ft fence won’t stop athletic deer in open yards.
- Flimsy gates: Gates take daily use. Build with a frame, not just mesh.
Checklist Before You Call It Done
- Mesh height matches target pests.
- Base is buried or pinned all the way around.
- Gate opens freely and latches with one hand.
- Walkways are clear; no sharp wire ends stick out.
- Deer perimeter, if needed, stands 7–8 ft tall with tight corners.
Final Word: A Fence That Works With You
Build the fence once, then let it fade into the background while you plant, mulch, and harvest. With the right mesh size, the right height, and a neat base, your beds stay safe. Use this method every time you add a new bed or expand the garden, and your fence will keep doing quiet, steady work season after season.
