In a yard with deer and rabbits, a fence is the difference between a harvest and a stripped bed. A fenced-in raised bed garden uses a tall fence to stop deer, small-mesh wire sunk into the soil to stop rabbits, and a gate or removable panel for access. The raised sides of the bed already deter rabbits a little, and the bed’s defined edge makes the fence simpler to build, because you are enclosing a neat rectangle rather than an open patch of ground.

Fenced-in raised bed gardens: keep deer and rabbits out

The summer I lost an entire bed of beans and lettuce to deer in two nights taught me that a fence is not optional where deer browse. I came out one morning to find every bean plant chewed to a stub and the lettuce gone. The next weekend I built a fence, and I have not lost a crop to deer since. If you garden where deer or rabbits roam, build the fence before you plant, not after they find your vegetables.

Know which pest you are fencing against

Deer and rabbits need different fences, so identify the problem before you build. White-tailed deer (Odocoileus virginianus) browse from above, reaching over or jumping a low fence to reach the plants. They leave clean, torn bite marks higher up on the plants and often clear a bed in a single night. A short fence does nothing to stop them. According to USDA NRCS wildlife damage notes, white-tailed deer can leap an 8 foot (2.4 m) fence from a standstill when pressed, and clear a 5 foot (1.5 m) fence without much effort at all, which is why a 6 foot minimum is the standard recommendation.

Rabbits work from the ground, nibbling young plants and squeezing through small gaps. Eastern cottontails (Sylvilagus floridanus) leave sharp, angled cuts low on the plant and tend to target tender seedlings and lettuce. A rabbit fence does not need height, but it needs small mesh and a buried bottom edge so they cannot push under it.

Some yards have both. In that case you need a fence that is tall enough for deer and tight enough at the bottom for rabbits, which is easiest to achieve by combining a tall outer fence with a band of small-mesh wire along the lower section.

Build a deer fence tall enough to matter

A deer fence needs to be at least 6 feet (1.8 m) tall, and 7 to 8 feet (2.1 to 2.4 m) is safer where deer are persistent or food is scarce. Deer can clear a 4 or 5 foot (1.2 to 1.5 m) fence without much effort, so anything shorter is wasted material. The height is the single most important factor.

You can build the fence as a freestanding enclosure around a group of beds, or attach posts directly to the bed frames for a single bed. Set sturdy posts at the corners and every 6 to 8 feet (1.8 to 2.4 m) along the sides, then run deer netting or welded wire fencing between them. Deer netting is light, nearly invisible from a distance, and cheaper than metal fencing, which makes it a common choice for a home garden. Welded wire is more durable and stands up to weather and the occasional deer pushing against it.

If you cannot build a full 8 foot (2.4 m) fence, two shorter fences set a few feet apart can work, because deer hesitate to jump into a narrow enclosed space they cannot judge. A single fence angled outward at the top also helps. But for most gardeners, one tall fence is the simplest reliable answer.

Stop rabbits with buried small-mesh wire

Rabbits need a different approach. Use 1/2 inch (1.3 cm) hardware cloth or 1 inch (2.5 cm) chicken wire, about 2 to 3 feet (60 to 90 cm) tall, and attach it to the lower section of the fence or directly to the bed frame. The mesh must be small enough that a rabbit cannot push through, which rules out the wide-spaced welded wire used for deer.

The critical detail is the bottom edge. Rabbits dig and squeeze under fences, so bury the wire 6 inches (15 cm) into the soil, or bend the bottom 6 inches (15 cm) outward in an L shape along the ground and pin it down. Either method stops them tunneling under. The raised sides of the bed help here too, since a rabbit faces a wall of wood plus a wire fence rather than open ground.

For a bed without deer pressure, a short rabbit fence attached to the frame is often all you need. The combination of the raised wooden sides and a band of small-mesh wire is enough to keep most rabbits out.

What worked in my own garden

I started with separate wire cages over each bed, which looked tidy but were a constant nuisance to lift on and off for weeding and harvest. After two seasons I grouped four beds together and built one walk-in enclosure around the whole group, 7 feet (2.1 m) of welded wire with a band of 1/2 inch (1.3 cm) hardware cloth buried 6 inches (15 cm) along the bottom and a simple gate. It took a weekend to build and ended the daily battle. I can now walk in, work the beds, and walk out, and nothing has touched a crop since. If you have more than one or two beds, fence the group, not each bed.

Group beds and build one enclosure

Fencing each bed separately wastes material and makes access awkward. If you have several beds, group them together with paths between them and enclose the whole group with one fence. A single enclosure protects every bed inside, costs less than separate cages, and gives you room to walk and work.

Leave the paths between beds wide enough for a wheelbarrow, around 2 to 3 feet (60 to 90 cm) at minimum, so you can move soil, compost, and harvests in and out easily. Plan the layout so the gate opens onto a main path that reaches every bed. A walk-in enclosure with a gate is far more pleasant to garden in than a set of cages you lift on and off each time you need to reach a plant.

For a typical home garden of four to six 4 by 8 foot (1.2 by 2.4 m) beds, a 20 by 30 foot (6 by 9 m) enclosure gives 3 foot (0.9 m) paths all around and a gate at one end, all under one 7 foot (2.1 m) fence. That footprint keeps all the beds grouped tightly while leaving room to add one or two more beds inside the fence in later seasons.

Add a gate or removable panel

You need to get in and out of the enclosure regularly, so build access in from the start. A simple wooden gate framed with 2 by 4 inch (5 by 10 cm) lumber and covered with the same wire as the fence works well and lasts for years. Hang it on sturdy galvanized strap hinges and add a latch that a raccoon (Procyon lotor) cannot easily work open.

For a single bed or a small enclosure, a removable panel that lifts out or swings aside can be enough. Whatever you choose, make it easy to use. A gate that sticks or a panel that takes two hands and a lot of patience to remove will tempt you to leave it open, which defeats the fence. Easy access is what keeps the fence closed.

A standard gate is 3 to 4 feet (0.9 to 1.2 m) wide, which fits a wheelbarrow through. Build the gate to swing outward so it does not block the path inside the enclosure, and set the latch at a height both you and a child can reach without bending.

Use the same frame for other protection

A fence frame around your beds does more than stop deer and rabbits. The same structure supports netting against birds and insects, or row cover to protect crops from frost and extend the season. Drape bird netting over the top of the enclosure when berries or brassicas need protecting, or clip row cover to the frame in spring and fall.

Hoops bent over a single bed and attached to the frame let you cover crops without a full enclosure, which suits a bed that mainly needs insect protection rather than a deer fence. The defined edge of a raised bed makes all of this straightforward. You are working with a fixed rectangle, so frames, hoops, and covers all attach cleanly to the structure you already have.

Choose the right fence materials

The material you build with affects how long the fence lasts, how it looks, and what it costs. Deer netting is the lightest and cheapest option for a tall fence. It is nearly invisible from a distance, easy to handle, and quick to put up, which makes it a common choice for a home garden. Its downside is that it tears and sags over time and offers no barrier at the bottom for rabbits, so it works best for deer-only problems.

Welded wire fencing is sturdier and longer-lasting. It stands up to weather, the occasional deer pushing against it, and years of use without sagging. It costs more and takes more work to install, but for a permanent enclosure it is worth the difference. Pair it with a band of small-mesh hardware cloth along the bottom for rabbits, and one fence handles both pests.

For posts, use sturdy wood or metal set firmly in the ground, spaced close enough that the fencing does not sag between them, around 6 to 8 feet (1.8 to 2.4 m) apart. The posts carry the whole fence, so do not skimp on them. A fence is only as good as the posts holding it up, and a wobbly post line undoes good fencing material.

Fence materials at a glance

MaterialHeightCost/linear ftLifespanBest for
Polypropylene deer netting7-8 ft (2.1-2.4 m)USD 0.50-1.005-8 yearsDeer only; cheap and invisible
Welded wire (2x4 in / 5x10 cm)6-8 ft (1.8-2.4 m)USD 2-415-20 yearsDeer and rabbits in one fence
Galvanized hex netting6-7 ft (1.8-2.1 m)USD 1.50-3.0010-15 yearsDeer; pair with hardware cloth for rabbits
1/2 in (1.3 cm) hardware cloth2-3 ft (60-90 cm)USD 2-315-20 yearsRabbit barrier; bury 6 in (15 cm)
Wood posts (4x4 in / 10x10 cm)8 ft (2.4 m) above groundUSD 8-1510-15 yearsMain fence corners and gates

Build the fence to last

A fence is a structure you want to build once and forget, so a little extra effort at the start saves years of repair. Set the posts deep enough to stay firm through frost heave and wind, and brace the corner posts, which carry the most strain. Stretch the fencing taut between posts so it does not sag, and fasten it securely top and bottom.

Pay attention to the gate, since it is the part that gets the most use and wears out first. A well-built, properly hung gate with sturdy hinges and a good latch lasts far longer than a flimsy one and stays easy to use, which matters because an awkward gate tempts you to leave it open. Treat the gate as the most important part of the fence to get right.

Check the fence each spring for sagging, gaps, and signs of digging along the bottom. A quick repair of a small gap stops a deer or rabbit finding the weak point and getting in. A fence maintained this way protects the beds for as long as the posts and material last, which for good materials is many years.

Match the fence to your pressure

Not every garden needs an 8 foot (2.4 m) deer fence. Match the fence to the pressure you actually face. If you only see the occasional rabbit, a short wire fence on the bed frames may be all you need. If deer pass through nightly, build the tall fence first and do not wait for them to find your vegetables.

Watch your garden for a season if you are unsure, and look for the signs of each pest so you build the right fence. Torn browsing high on the plants means deer. Clean angled cuts low down mean rabbits. Tunnels and scratching at the base mean something is trying to dig under. Build for what you have, and upgrade if the pressure increases. A fence built to the right height and mesh, with a buried bottom edge and an easy gate, will protect a fenced-in raised bed garden for years.

Sources: Clemson Cooperative Extension, HGIC 1257 Raised Beds; USDA NRCS wildlife damage notes on white-tailed deer and eastern cottontail.