Garden Voila
Plant Problems

Garden Fence Ideas: 12 Fences for Animals, Privacy & Style

Garden fence ideas for every purpose: how tall a fence must be for rabbits, groundhogs and deer, materials compared, edible and decorative fences, and how to install one.

Illustration of a white picket fence in front of a flowering garden

A garden fence does more than mark a boundary. The right fence keeps out deer, rabbits and dogs, shelters plants from wind, gives you privacy, keeps children and pets safe, supports climbing crops, and frames the garden so it looks finished. The wrong fence, too short, too flimsy or in the wrong material, wastes money and still lets the rabbits in.

This guide covers garden fence ideas for every purpose and budget: how tall a fence needs to be for different animals, the pros and cons of each material, decorative and edible fence ideas, and how to plan and install a fence that lasts.

A fenced colonial-style demonstration kitchen garden
A fenced colonial-style kitchen garden. Fences have protected and framed vegetable gardens for centuries.Photo: Brian Stansberry (photographer), CC BY 3.0, via Wikimedia Commons (resized)

Start with the purpose

The most important question is what the fence is for, because that decides its height, material and construction.

PurposeTypical heightKey features
Keep out rabbitsAbout 2 ftSmall mesh, pinned or buried at the base
Keep out groundhogs3 to 4 ftBuried apron; loose, floppy top
Keep out deerAbout 8 ftTall mesh or wire; or smaller enclosed plots
Keep in dogs and children3 to 4 ft or moreSturdy, no gaps, secure gate latch
Privacy and screeningOften up to 6 ft (check local rules)Solid panels, hedges or dense climbers
Wind shelterVariesPartly open (slatted) fences slow wind better than solid ones
Decoration and definition2 to 4 ftPicket, wattle or low rail fences

Fences to keep animals out

If animals are your main problem, build the fence to the specifications that actually work. University of Georgia Extension’s guide to garden fencing and the University of Arizona Extension’s guide to managing critters in vegetable gardens (PDF) both give practical figures.

Rabbits

The Arizona guide recommends a sturdy poultry wire fence about 2 feet tall, stretched tight to the ground. Use mesh of 1 inch or smaller so young rabbits cannot squeeze through, and pin the bottom firmly or bury it a few inches.

Groundhogs and other diggers

Groundhogs dig and climb. A woven wire fence about 3 to 4 feet tall with a loose, floppy top that bends outward stops climbing, and UGA Extension recommends a horizontal wire apron about 24 inches wide, buried a few inches deep on the outside, to stop digging.

Deer

Deer can jump high, so the Arizona guide advises a deer fence at least 8 feet tall; UGA Extension suggests a minimum of 6 to 8 feet, with 8 feet where deer pressure is heavy. Deer are reluctant to jump into small, enclosed spaces, so smaller plots can sometimes be protected with lower fences. Experts answering questions on Ask Extension still recommend 8 feet for reliable protection.

Identifying the culprit first

Before building, confirm which animal is causing the damage. Purdue Extension’s guide to what is eating your garden plants explains the telltale signs, and our full guide to keeping animals out of your garden covers each animal in detail.

A small vegetable garden enclosed by a homemade wire fence
A small vegetable garden enclosed by homemade wire fencing. Low wire fences stop rabbits; deer need far more height.Photo: cogdogblog, CC0, via Wikimedia Commons

Garden fence materials compared

MaterialCostLifespanBest forWatch out for
Poultry wire (chicken wire)LowSeveral yearsRabbits, temporary fencesFlimsy; rusts
Welded wire or hardware clothLow to mediumLongRabbits, rodents, diggersNeeds sturdy posts
Livestock (cattle) panelsMediumVery longStrong enclosures; doubles as a trellisLarge openings; add finer mesh at the base for rabbits
Polypropylene deer meshLow to mediumSeveral yearsTall deer fencesCan be chewed at the base
Wood picketMediumMediumCottage and kitchen gardensNeeds painting or sealing; gaps let rabbits through unless backed with wire
Split rail with wire meshMediumLongRustic, larger gardensRails alone keep nothing out
VinylMedium to highLongLow maintenance, privacyLooks less natural
Ornamental metal (aluminum, steel)HighVery longFormal front gardensGaps may need wire backing
Bamboo or reed screeningLowShort to mediumQuick privacy screensWeathers quickly
Woven willow (wattle)Low to mediumShortCottage and potager styleLasts only a few years
Living hedgeLow (plants)DecadesPrivacy, wind shelter, wildlifeSlow; needs trimming; competes with crops
Electric fencingMediumLongDeer, raccoons, groundhogsCheck local rules; needs a proper charger and warning signs

Garden fence ideas

1. The classic picket fence

A white or natural wood picket fence frames a cottage or kitchen garden beautifully. To keep out rabbits, staple galvanized wire mesh to the inside along the bottom.

2. Wire panels on wooden posts

Welded wire or livestock panels fixed to wooden posts make a strong, practical fence that also doubles as a trellis for peas, beans and cucumbers. See our garden trellis ideas.

3. Split rail with mesh

Rustic split rails backed with welded wire combine country charm with real animal protection.

4. Tall deer fence with discreet mesh

Black polypropylene deer mesh on tall posts nearly disappears from a distance, protecting large gardens without looking like a cage. Add wire along the bottom where rabbits or groundhogs might chew through.

5. Raised bed cages

Instead of fencing the whole garden, fence individual raised beds with hardware cloth walls and hinged mesh lids. It is often cheaper for small gardens and stops squirrels and birds too. See our raised garden bed ideas.

6. Wattle fence

Woven willow or hazel panels suit potagers and cottage gardens. They are beautiful but last only a few seasons; see our guide to potager gardens.

7. Living fence or hedge

A hedge of shrubs makes a soft, long-lasting boundary that shelters wildlife. Leave enough space between the hedge and vegetable beds, since hedge roots compete for water and nutrients.

8. Edible fences

Make the fence productive: train espaliered apple or pear trees flat along wires, grow raspberries and blackberries on a post-and-wire fence, cover a fence with grapes or hops, or plant a row of pole beans and runner beans along wire mesh.

9. Flowering fence lines

Climbing roses, clematis, morning glories and sweet peas soften a plain fence. Our rose garden guide covers training climbing roses.

10. Slatted windbreak fence

In exposed, windy gardens, a fence with gaps between the boards slows the wind more gently than a solid fence, which can create turbulence on the sheltered side.

11. Bamboo or reed screens

Quick, inexpensive privacy for patios and small gardens. They weather within a few years, so treat them as a short-term solution or a backing for climbing plants.

12. Low decorative edging fence

A knee-high fence of rails, metal hoops or woven willow defines beds without blocking views. For lower borders, see our garden edging ideas.

Planning your fence

  1. Check property lines and local rules. Many towns and homeowner associations limit fence height and style, especially in front yards, and some require permits.
  2. Call 811 a few days before digging post holes in the US, so underground utilities are marked.
  3. Measure the perimeter and decide where gates go. The garden size calculator helps you measure the area.
  4. Plan a gate wide enough for a wheelbarrow, and ideally a garden cart or small mower.
  5. Price the materials with the garden cost estimator.

How to install a simple wire garden fence

  1. Mark the line with string and stakes.
  2. Set corner and gate posts first. These take the most strain, so make them the sturdiest, set deep and braced. A common rule of thumb is to set posts about a third of their length into the ground, deeper where the ground freezes.
  3. Set line posts between the corners, typically every 6 to 10 feet depending on the material.
  4. Stretch the mesh tight and fasten it to the posts with fence staples or wire ties.
  5. Secure the bottom: pin it to the ground, bury it a few inches, or add a buried apron for digging animals.
  6. Hang the gate so it closes flush to the ground, with no gap underneath.
  7. Walk the fence and close any gaps; rabbits find them quickly.
A small French potager garden in early summer
A small fenced kitchen garden. A tidy fence keeps animals out and makes the whole garden feel finished.Photo: Benoît Prieur, CC0, via Wikimedia Commons

Fence maintenance

  • Inspect regularly for gaps, especially at the base and around gates.
  • Repair holes promptly before animals discover them.
  • Keep the fence line clear of weeds and debris, which hide gaps and give rodents cover.
  • Re-tension wire and mesh as it stretches.
  • Treat or paint wooden fences every few years to extend their life.

Being a good neighbor

  • Talk to neighbors before building on a shared boundary.
  • Keep the fence on your side of the property line unless you agree otherwise.
  • Face the finished side outward where local custom or rules expect it.
  • Avoid blocking a neighbor’s light with very tall solid fences.

Common garden fence mistakes

  • Building for the wrong animal: a 4-foot fence will not stop deer.
  • Leaving a gap at the bottom that rabbits slip under.
  • Weak corner posts that lean as soon as the wire is tensioned.
  • No gate, or a gate too narrow for a wheelbarrow.
  • Ignoring local rules on height and placement.
  • Picket or rail fences without wire backing where rabbits are a problem.

Garden gate ideas

The gate is the part of a fence you use most, and the most common weak point. A good gate is wide, sturdy and closes tightly.

Gate typeWidthGood for
Single walk-through gateAbout 3 to 4 ftFoot traffic and wheelbarrows
Wide single gateAbout 5 to 6 ftGarden carts and small mowers
Double gate8 ft or more combinedDeliveries of soil and mulch, small tractors
Arbor gate3 to 4 ftA decorative entrance with climbing roses or beans overhead
  • Brace the gate with a diagonal board running from the bottom hinge corner up to the latch side, so it does not sag.
  • Use strong hinges and a self-closing latch so the gate is never left open for animals.
  • Close the gap underneath with a board, a buried wire strip or a paver threshold.
  • Plan for deliveries: a wide gate makes moving soil, compost and mulch far easier. The soil calculator and mulch calculator show how much material you will be moving.

Fences on slopes and uneven ground

On sloping ground, fences can follow the slope or step down in level sections.

  • Racked (sloped) fences follow the ground closely, leaving no gaps underneath; wire mesh adapts to slopes most easily.
  • Stepped fences keep each panel level, stepping down the slope, but leave triangular gaps at the bottom that must be filled with mesh or boards to keep out rabbits.
  • On uneven ground, fill dips under the fence with soil, stones or extra mesh pinned to the ground.

Frequently asked questions

What is the best fence for a vegetable garden?

It depends on the animals you face. A 2-foot fine-mesh wire fence stops rabbits; welded wire or livestock panels with a buried apron stop groundhogs; deer need a fence about 8 feet tall.

How tall should a garden fence be?

About 2 feet for rabbits, 3 to 4 feet for groundhogs, dogs and children, around 6 feet for privacy where allowed, and about 8 feet for deer.

What is the cheapest way to fence a garden?

Poultry wire or welded wire on T-posts or wooden stakes is the cheapest effective option. For small gardens, caging individual beds can cost even less.

How do I stop animals digging under my fence?

Bury the bottom of the fence a few inches, or add a horizontal wire apron about 24 inches wide on the outside, buried just below the surface.

Do I need permission to build a garden fence?

Often, for taller fences or front-yard fences. Check local zoning rules and any homeowner association guidelines, and call 811 before digging post holes.

Can a fence double as a trellis?

Yes. Wire and livestock panel fences make excellent supports for peas, beans, cucumbers and climbing flowers.

What fence keeps deer out?

A fence about 8 feet tall made of woven wire, high-tensile wire or deer mesh. Smaller enclosed plots can sometimes be protected with lower fences.

How wide should a garden gate be?

At least 3 to 4 feet for a wheelbarrow; 5 to 6 feet if you use a garden cart or small mower; and a double gate if you need deliveries driven in.

How far apart should fence posts be?

Typically 6 to 10 feet, depending on the fence material and wind exposure. Corner and gate posts should be the sturdiest and braced.