How To Build A Fence For A Garden | Keep Rabbits Out

A solid garden fence starts with straight corner posts, tight lines, and mesh or boards chosen for the animal you’re stopping.

A fence can save a season. It keeps nibblers out, keeps pets from trampling beds, and gives you a clear edge for paths and mulch. The part that trips people up is scale. A low border is fine for a dog. Deer and groundhogs laugh at it. Start by picking the job your fence must do, then build around that.

How To Build A Fence For A Garden With Basic Tools

The build is easier than it looks once you treat the corners like the foundation. Set stiff corner posts, run tight strings, set line posts to the strings, then attach your panels or mesh with real tension.

Step 1: Decide what you’re trying to block

Say the animal out loud before you shop. Mesh size and height change the whole build.

  • Rabbits: 24–30 in tall welded wire or small mesh, bottom pinned tight to soil.
  • Groundhogs: 36–48 in tall wire plus a buried skirt to stop digging.
  • Deer: 7–8 ft tall fence, plus a tall gate that closes fully.
  • Dogs: Stiff posts and a firm bottom edge so they can’t nose under.

Step 2: Check rules and mark utilities

Some areas limit fence height and placement. Before you dig, use your local utility-marking service (811 in the U.S.) so buried lines get flagged. If your property line is unclear, confirm it before you set corners. One moved stake can turn into a whole weekend of rework.

Step 3: Pick a simple fence style

For most gardens, these three styles cover it:

  • Wood posts + welded wire: Strong, tidy, easy to tighten later.
  • T-posts + welded wire: Cheaper, faster, easy to repair with clips.
  • Wood frame + small mesh: Great for seedlings and raised beds that draw rodents.

Materials and tools to gather

You don’t need a big kit. You do need the right basics, plus fasteners that won’t rust out.

Materials

  • Corner posts and gate posts (4×4 treated lumber, cedar, or steel fence posts)
  • Line posts (wood stakes, 4x4s, or T-posts)
  • Mesh (welded wire, hardware cloth, or deer fencing)
  • Exterior screws, fencing staples, or T-post clips
  • Gravel for drainage
  • Gate hinges and latch

Tools

  • Post hole digger or auger, shovel, and a tamper
  • Level, tape measure, string line, and stakes
  • Wire cutters, pliers, and gloves
  • Staple hammer or drill/driver

Layout that keeps lines straight

Rough layout leads to a crooked gate and gaps at the bottom. Take ten extra minutes here.

Mark corners, then square the shape

Set stakes at each corner. Measure your sides. Then measure corner-to-corner diagonals. When diagonals match, your shape is square. If you’re building a curve, still mark main points and keep your strings tight between them.

Plan spacing before you dig

Most welded-wire rolls work well with 6–8 ft between posts. Shorter spans keep mesh tighter. Mark gate post spacing with the gate width plus hardware clearance.

Set posts so the fence won’t lean

Posts are where fences win or fail. A strong post makes a cheap panel feel sturdy. A weak post makes an expensive fence act flimsy.

Dig to depth, then add gravel

A common target is burying about one-third of the post length. For a 6 ft tall fence, that often means a 2–2.5 ft deep hole. Add 3–4 in of gravel at the bottom so water drains away from the post.

Digging is where most strains happen. Clear the area, keep kids away from the work zone, and keep blades sharp so you’re not forcing tools through roots. OSHA’s hand and power tool safety guidance covers safe handling habits that fit fence work.

Plumb and brace, then backfill in layers

Set the post, check it with a level on two faces, then brace it so it can’t shift. Backfill 4–6 in at a time and tamp hard each lift. Tamped soil is strong. Concrete can help in sandy ground, tall deer fences, and gate posts that take repeated pulls.

Set corners first, then line posts to a string

Set both corners on a side, pull a string between them at the top, then set line posts to that string. If the corners are true, the run stays clean.

Handle slopes without leaving a tunnel

On a gentle slope, keep posts plumb and “step” the mesh down from post to post, then overlap the low spots with a short patch. On a steep slope, contour the fence: follow the ground line with shorter post spacing, then staple the mesh so it hugs the grade. After you finish a sloped section, crouch down and look along the bottom edge. If you can see daylight, a rabbit can too.

Attach mesh so animals can’t slip through

Mesh works when it’s tight and the bottom edge is sealed. Loose wire turns into gaps after the first rain and the first bump with a wheelbarrow.

Fasten the first end, then tension the run

Staple or clip the mesh to a corner post with a few temporary fasteners. Pull the wire tight along the line, then fasten it for real. A fence stretcher tool helps, yet a 2×4 clamp board and a helper can do the job for short runs.

Seal the bottom edge

  • Pin to soil: Drive ground staples every 12–18 in.
  • Bury a skirt: Bend wire outward in an L and bury 6–10 in to stop digging.
  • Add a kick board: A treated board protects wire from trimmers and keeps weeds off the mesh.

Table 1: Fence options, costs, and where each shines

Fence type Best for Build notes
Welded wire on wood posts Veggie beds, rabbits, dogs Tight corners and close staples stop bowing
Hardware cloth on a wood frame Raised beds, rodents Small mesh needs framing so it stays flat
Deer netting on tall posts Deer pressure 7–8 ft height; gate must match the fence
T-posts with welded wire Budget builds Use caps; clips make repairs quick
Split rail with wire backing Large borders Rails set the look; wire does the blocking
Picket with a wire liner Front yard beds Wire liner handles rabbits while pickets hide it
Bed cage with a top panel Birds, squirrels Hinged top makes harvest and weeding easier
Living hedge with inner mesh Long property edges Plan access for trimming and repairs

Build a gate that stays square

A gate is the stress point. Treat the gate posts like their own footing job, then build or buy a gate that you can tune.

Set gate posts deeper and stiffer

Use thicker posts than the rest of the fence. Keep them plumb and parallel. If the latch post leans, the gate will scrape or pop open.

Brace wood gates the right way

If you build a wood gate, add a diagonal brace from the bottom hinge side up to the top latch side. That direction makes the brace carry the weight instead of letting the frame sag.

Hang, swing, then set the latch

Leave a small, even gap around the gate so it swings freely after rain. Then set the latch so it closes with a firm push. If wind is a problem, add a drop rod or a second latch point.

Pick materials that make sense near soil

Many fences use pressure-treated posts because they last. Modern treated wood in the U.S. is widely used outdoors, yet it still calls for careful handling: don’t burn scraps, wear a mask when cutting, and wash up after handling sawdust. EPA guidance on treated wood lists practical do’s and don’ts.

If you want to avoid treated lumber close to beds, cedar, black locust, and steel posts are common picks. You can mix materials too: steel or treated posts for corners and gate posts, then cedar for line posts.

Table 2: Measurements that prevent the usual headaches

What you’re setting Common range What it prevents
Line post spacing 6–8 ft Slack mesh and wavy fence lines
Corner/gate hole depth 24–36 in Leaning posts after tensioning wire
Mesh fastener spacing 6–8 in Rattling wire and pulled staples
Bottom overlap at soil 2–3 in Gaps as ground settles
Buried skirt depth 6–10 in Dig-under tunnels
Gate gap 1/8–1/4 in Binding after wet weather

Keep it tight with simple maintenance

A quick walk-around once a week saves a big repair later. Look for loose bottoms, pulled fasteners, and posts that started to lean.

Patch tears with overlap

Cut a patch that overlaps the hole by at least two wire squares on every side. Tie it on with fencing wire or hog rings. Overlap spreads force across more metal, so it holds.

Re-tension runs that relax

Wire can slacken after a few wet-dry cycles. If a section bows, pull it tight again at the nearest corner or brace post, then add a few more fasteners down the line.

Spot small gaps that animals use

After a storm, check corners and the area near the gate. That’s where soil washes out and creates a low tunnel. A handful of staples, a short buried skirt patch, or a thin board screwed to the bottom can close that gap before it turns into a habit.

When taller fences are worth the effort

If deer are the problem, build tall from day one. A mid-height fence often turns into a “deer feeder.” Your local land-grant extension often posts fence dimensions and layouts by species, and the USDA’s wildlife damage pages help you judge the level of pressure. USDA APHIS wildlife damage information is a useful starting place.

Once your posts are set and your mesh is tight, the fence fades into the background. That’s the goal. You plant, you water, you harvest, and the fence quietly does its job.

References & Sources

Please use a real email you check. If it's fake or mistyped, your message won't reach us and we can't reply — wrong addresses are rejected automatically.