To fence a raised bed, set sturdy posts, fix tight mesh, add a latched gate, and bury hardware cloth so animals can’t jump or dig in.
If you grow lettuces and berries in a small box, critters find it fast. A clean fence built right around the bed keeps bites off plants, keeps paths tidy, and saves time. This guide shows a simple build that fits most yards, tools, and budgets.
What You’ll Build And Why It Works
You’ll create a compact enclosure that stops jumpers up high and diggers down low. The frame uses wood or metal posts, wire mesh on the sides, and a buried barrier tied to the base. A light gate lets you step in without wrestling panels. The parts are easy to source, and the steps stay the same whether your bed is cedar, composite, or block.
| Material | What It Blocks | Best Use |
|---|---|---|
| 1/2" Hardware Cloth (Galvanized) | Moles, voles, gophers; also rabbits | Bottom liner and the first 24" of side walls |
| 1" Poultry Netting | Rabbits and small nibblers | Side panels above the hardware cloth band |
| Welded Wire, 2" x 4" | Dogs, groundhogs, larger pests | Side panels and gate frames |
| Deer Netting (7–8 ft) | Deer | Outer wrap or tall cap around a group of beds |
| Wood Slats / Pickets | Kids and pets | Decor match where wildlife pressure is low |
Putting A Protective Fence Around A Raised Bed: Steps
Here’s a field-tested method that balances strength with a tidy look. Adjust lengths to match your bed’s size.
1) Plan The Height And Mesh For Your Pests
Match the wall height to the animal you see most. For deer, many gardeners pick a tall wrap or an 8-foot enclosure around a group of beds. The University of Georgia notes that deer can jump high, so plan for a barrier in the 6–8 foot range when deer are active in your area (garden fencing guide). For rabbits, use 1-inch mesh at 24 inches high and bury the lower edge several inches to stop digs.
2) Measure, Mark, And Pre-Cut
Measure the bed’s outer size and mark post centers at each corner, plus every 6–8 feet along long runs so wire won’t sag. Cut mesh panels to length before you dig; it keeps the install clean and avoids sharp snags near plants.
3) Set Corner And Line Posts
Use pressure-treated 4x4s, metal T-posts, or heavy cedar. Corners take the load, so set them deeper (24–30 inches). Line posts can sit at 18–24 inches. Tamp backfill well. Check plumb with a level and string the tops to keep everything true.
4) Add The Under-Bed Barrier
Line the bed base with 1/2-inch hardware cloth before you add soil. Overlap seams by 4 inches and staple to the inner rim. Oregon State Extension advises burying underground wire at least 24 inches for gophers; many raised beds get the same protection by lining the full bottom with hardware cloth instead (managing gophers).
5) Create A Dig-Stop Apron
To block rabbits and groundhogs, extend hardware cloth outward from the base 6–12 inches and pin it flat with landscape staples. Where digging is common, bend the mesh down in an “L” and bury it 6–10 inches; that stops tunneling right at the fence line.
6) Hang Side Mesh Tight
Start at a corner and unroll mesh along the posts. Keep the bottom course at 24 inches of 1/2-inch hardware cloth or 1-inch poultry netting, then switch to a stiffer welded wire above that. Pull the mesh snug and fasten every 6–8 inches with heavy staples or wire ties. Trim sharp ends flush.
7) Build A Simple Gate
Frame a light door from 1×3 lumber or angle iron. Skin it with the same mesh you used on the walls, and hang it on strap hinges. Leave a 1–2 inch ground gap so the door swings cleanly over mulch. Add a slide bolt at adult height and a lower latch if kids visit the garden.
8) Cap Tall Enclosures For Deer
If deer pass through the yard, link two beds and wrap the pair with tall netting or welded wire on separate posts. A narrow interior discourages a jump. Keep the top near 7–8 feet where deer pressure is high.
9) Finish, Inspect, And Plant
Walk the perimeter and run a glove along the wire. Snip stray points. Press the apron flat again, then add mulch over the mesh to hide it and block light. Water the soil to settle the bed, then plant.
Sizing: Heights, Mesh, And Gates That Work
Choose measurements that stop the animal you face most while keeping access easy for you.
Heights That Stop Common Pests
Rabbits: 24 inches of wire with 1-inch gaps stops jumps and squeezes. Bury the bottom or pin it flat as an apron. Deer: yards with frequent visits often need 7–8 feet around a cluster of beds, or a tall wrap with a narrow interior that deer won’t enter. Dogs and groundhogs: 36–48 inches of welded wire paired with a buried apron works well.
Mesh Sizes That Don’t Let Pests Squeeze Through
Use 1/2-inch hardware cloth for under-bed and first-course wall sections, 1-inch poultry netting for rabbit zones, and 2" x 4" welded wire above hand height. Keep seams overlapped by 4 inches and fastened tight.
Gate Width And Swing
A 24–30 inch opening fits a wheelbarrow tray and most compost buckets. Hang the gate to swing out of the bed area so mulch stays inside when you step in and out.
Tools And Materials
Basic carpentry tools are all you need. Gather these before you start so the build goes in one smooth block.
- Posts: four 4×4 wood posts or metal T-posts; extra line posts for long beds
- Mesh: 1/2-inch hardware cloth, 1-inch poultry netting, and/or 2" x 4" welded wire
- Fasteners: exterior staples, fence staples, or UV-rated zip ties
- Gate parts: 1×3 lumber or angle iron, strap hinges, slide bolt
- Ground pins: landscape staples for the apron
- Extras: string line, level, tin snips, post driver, shovel, work gloves
Layout And Post Spacing
Square your layout with a string line. Set corner posts first, brace them, then add line posts so each run spans 6–8 feet. Shorter spans keep mesh tight and limit wobble on windy days. On rocky ground, swap one or two line posts for screw-in anchors and zip-tie the mesh to the eye.
Cost-Saver Tips Without Cutting Strength
Buy mesh in taller rolls and rip it down the middle for the lower band and gate skins. Reuse pallet wood for trim slats on the outside face so cut edges are hidden. Where deer are rare, skip tall netting and stick with a tidy 36–48 inch wall and a strong apron.
Where The Science Fits In
College and state guides echo the measurements above. A raised bed can be lined with wire to stop burrowing pests; Oregon State Extension has long suggested under-bed hardware cloth or deeper wire when gophers are active. Deer need height plus a tight bottom edge so they can’t nose under the mesh; the University of Georgia’s guide covers these basics well.
Cut List And Shopping Planner
| Item | Qty | Notes |
|---|---|---|
| 4×4 Posts, 8 ft | 4 | Corners; cut to height |
| T-Posts or 4×4 Line Posts | 2–4 | Add where spans exceed 6 ft |
| Hardware Cloth, 1/2" | 25–35 ft | Bed liner + 24" lower band |
| Poultry Netting, 1" | 25–35 ft | Rabbit-stop side panels |
| Welded Wire, 2" x 4" | 25–35 ft | Upper side panels |
| Landscape Staples | 50 | Pin the apron |
| Staples Or Zip Ties | 1 box | Fasten mesh to posts |
| Strap Hinges + Bolt | 1 set | Gate hardware |
| Gravel | 2 bags | Post holes and drainage |
| Mulch | 2–3 bags | Hide apron, suppress weeds |
Step-By-Step Build Walkthrough
Set Posts
Dig corner holes, drop a few inches of gravel, set the posts, and backfill. Check plumb. Add line posts next. Let posts sit while you prep mesh.
Install The Under-Bed Liner
Roll hardware cloth across the base, overlap seams, and staple to the inner rim. Fold edges up the sides by 2–3 inches so roots can’t sneak past gaps.
Add The Apron
Lay a 6–12 inch skirt of hardware cloth outward from the base and pin every 8–12 inches. In sandy soil, bury the skirt in a shallow trench.
Wrap The Walls
Hang the lower band first. Keep it level and tight. Then add the taller mesh above, lapping 4 inches. Tie to every post and add a mid-span batten where runs feel springy.
Build And Hang The Gate
Assemble a simple rectangle, add a diagonal brace, skin with mesh, then hang on hinges set to swing out. Fit a latch you can open with one hand while holding a basket.
Maintenance And Quick Fixes
Walk the fence line each month. Press the apron flat, snip any new burrows, and add a staple where the mesh lifts. After storms, check for fallen limbs that bend wire. In winter snow zones, raise the lower band a few inches or shovel along the wall so rabbits can’t stand on snow and nibble over the top.
Design Tweaks For Small Or Shared Spaces
- Hinged panels: build two mesh frames as lids; they lift for access and lock at night.
- Removable pins: set deck sleeves for corner posts so the frame lifts off as one piece.
- North trellis: swap upper welded wire for a 4×4 grid panel and clip peas to it.
Safety, Longevity, And Neat Finishes
Wear gloves and eye protection when cutting mesh. Cap post tops to keep water out. Where wood meets soil, add peel-and-stick flashing to slow rot. For a tidy look, tack a slim cedar batten over cut mesh edges.
When To Scale Up To A Full Enclosure
One bed is easy to ring, but if you have two or more beds within a few feet of each other, it can be simpler to fence the cluster. A shared 7–8 foot wrap with a single gate keeps the footprint small so deer won’t jump inside, and it takes fewer posts than building tall walls around each bed.
Checklist Before You Call It Done
- Posts are plumb and braced; spans are 6–8 feet or shorter
- Under-bed liner covers the whole base with 4-inch overlaps
- Apron runs flat 6–12 inches and is pinned well
- Lower band uses tight mesh; upper band is snug with no slack
- Gate swings cleanly and latches at two points
- No sharp wire tips along the path or at hand height
With these steps, you protect roots and leaves from every angle, keep access easy, and keep the garden looking tidy for seasons to come.
