Set deep corner posts, stretch welded wire tight, and hang a square gate so animals can’t slip in.
A garden fence doesn’t need fancy parts. It needs straight lines, posts that won’t budge, wire that stays tight, and a gate that closes every time. Get those four things right and you’ll stop losing seedlings, greens, and ripe fruit to midnight visitors.
This build uses wood posts at the corners and gate, with welded wire stretched between them. It’s a solid weekend project for a small to mid-size plot. You can scale it up by adding more line posts and longer wire runs.
Plan The Fence Before You Dig
Start by naming the animals you’re trying to block. Rabbits, groundhogs, deer, dogs, and chickens each push a fence in a different way. Your plan changes with two details: height and the way the bottom meets the soil.
Match Height To The Animals In Your Yard
If deer have access to your yard, plan tall. Oregon State University Extension says an 8-foot fence is the sure way to keep deer out of a garden. OSU’s deer fencing note gives a clear target so you don’t waste time building a fence deer can clear.
If rabbits are your main headache, height can be lower, but the bottom edge matters more. University of Nebraska–Lincoln notes that burying the bottom of chicken wire or flaring it outward and fastening it down helps stop rabbits from digging under. UNL’s rabbit fencing advice also lists different heights for cottontails and jackrabbits.
If you want a single fence that handles deer and rabbits, plan for height plus a bottom band or apron. That combo blocks jumps and shuts down the easy “scoot under” move.
Lay Out A Square Or A Clean Rectangle
Mark four corners with stakes and run mason’s string between them. Measure the two diagonals. When they match, your corners are square. A square layout makes wire runs tighter and keeps your gate from rubbing.
Pick a gate opening early. A 36-inch gate works for most wheelbarrows. If you use a garden cart, go wider.
Materials And Tools For A Sturdy Build
Here’s a practical list for a fence around a 20′ × 30′ plot with one gate. Adjust quantities to fit your perimeter.
- 4 corner posts (4×4 treated wood, 8′ long for shorter fences, 10′ long for tall fences)
- 2 gate posts (same as corners)
- Line posts: treated 4×4s or metal T-posts, spaced 6–8 feet apart
- Welded wire roll (common mesh is 2″×4″)
- Hardware cloth (1/2″ mesh) for a bottom band, if you need it
- Fasteners: fence staples for wood, clips for T-posts, a handful of galvanized tie wire
- Gate hardware: two hinges, one latch, exterior screws
- Tools: tape measure, string line, level, post hole digger or auger, shovel, drill, saw, staple hammer, wire cutters
Wood corners with metal line posts is a smart mix when you want strength at the pull points and faster work on straight runs.
How To Build A Fence For A Vegetable Garden Step By Step
This method is built around one rule: corners and gate posts do the hard work, so build those first, then tie everything else to them.
Dig And Set Corner Posts
Dig each corner hole deep enough that the post won’t rock under wire tension. In many yards that’s 24–30 inches. If your soil is loose, dig deeper and widen the hole a bit.
Set the post, check plumb on two faces, then backfill in layers. Tamp each layer hard. If you want the stiffest result, use concrete. If you want easier replacement later, use compacted gravel, then top with soil.
Set Gate Posts With Extra Care
Gate posts take the pull of the latch and the weight of the gate. Treat them like corners. Set them plumb, aligned with your string line, and spaced to fit the gate width plus hinge and latch clearances.
Brace Corners And Gate Posts When You Build Tall
Tall fences put more pull on posts. Add a simple brace so posts don’t lean over time. A common brace is an “H” shape: a horizontal rail between two posts, with a diagonal wire or strap that locks it in place.
On a small garden, one brace at each corner and one at the gate side that takes the wire pull is often enough.
Install Line Posts On A Consistent Spacing
Space line posts 6–8 feet apart for welded wire. Keep them on the string line so the fence stays straight. Straight lines make stapling faster and help the finished fence look clean.
Build The Bottom Edge To Block Diggers
For rabbits and other diggers, add one of these:
- Buried skirt: Dig a shallow trench 6–8 inches deep, drop the wire in, then backfill.
- Outward apron: Lay wire flat on the soil outside the fence line for 8–12 inches and pin it down with ground staples.
The apron method saves digging and still works well when grass is kept short.
Attach And Stretch The Welded Wire
Start at a corner. Staple the wire to the post every 6–8 inches, keeping the bottom close to the soil. Unroll along the fence line to the next corner.
To stretch the wire, clamp a straight 2×4 to the free end of the wire and pull with a ratchet strap or come-along. When the wire is tight, staple it to each post, then move down the line.
Join rolls with an overlap of at least one full mesh square. Tie the overlap together every 6–8 inches with galvanized wire or hog rings so the seam can’t peel open.
Materials Choices And What They Do For You
Once you understand the build steps, choosing materials gets easier. Use this table to match parts to your needs and budget.
| Part Of The Fence | Good Options | What You Get |
|---|---|---|
| Corner posts | 4×4 treated wood, 5–6″ round posts | Rigid corners that hold wire tension |
| Line posts | 4×4 wood, metal T-posts | Wood looks neat; metal installs fast |
| Main barrier | Welded wire 2″×4″, woven wire, hog panels | Welded wire suits most gardens; panels go up fast |
| Bottom band | Hardware cloth 1/2″ mesh | Blocks rabbits and small diggers at ground level |
| Fasteners | Fence staples, screws with fender washers | Staples are quick; washers resist pull-out |
| Top edge | 1×4 cap board, tension wire | Smoother grip and straighter line |
| Gate | 2×4 framed gate, premade tube gate | Framed gates blend in; tube gates take heavy use |
| Finish | Exterior stain, clear sealer, none | Stain evens out color; bare wood weathers naturally |
Build A Gate That Closes Clean And Stays Square
The gate is where most garden fences fail. A latch left half-closed or a sagging frame can turn a solid fence into an open door.
Frame The Gate With A Diagonal Brace
Build a rectangle from 2×4s that fits the opening with a small gap on each side. Add one diagonal brace from the lower hinge corner up to the latch corner. That direction keeps the gate from drooping.
Cover the frame with the same wire as the fence. If you added a small-mesh bottom band around the fence, carry it across the gate too.
Hang The Gate And Set The Latch
Install hinges on the hinge post, then hang the gate and test the swing. You want smooth movement without scraping the ground. If your ground slopes, leave a little extra clearance and add a short sweep board or a wire apron that touches the soil when the gate shuts.
Pick a latch you can use with one hand. If opening the gate feels like a chore, you’ll start leaving it unlatched.
Checks That Catch Problems Before Animals Do
These quick checks save you from surprise holes and late-night repairs:
| Checkpoint | What To Look For | Fix |
|---|---|---|
| Bottom edge | Gaps wider than 1 inch | Add soil, pin apron tighter, or add hardware cloth |
| Corners | Post lean or wiggle | Tamp backfill, add a brace, reset if needed |
| Wire tension | Sag between posts | Add a line post, tighten with a strap, restaple |
| Seams | Loose overlap ties | Add more ties or hog rings along the seam |
| Gate | Drag, bounce, or latch misalign | Adjust hinges, add a diagonal brace, reset latch height |
| After storms | Staples pulled or wire bent | Replace staples and straighten wire sections |
| Weekly walk | New dig marks along the fence | Pin down the apron or extend the buried skirt |
Small Upgrades That Make A Big Difference
If your base fence is up and working, these upgrades tighten it up without rebuilding:
- Add a mulch strip: A narrow mulch band along the fence line cuts weed growth and makes inspection easier.
- Cap the top: A 1×4 cap board keeps hands off sharp wire ends and helps keep posts aligned on short fences.
- Double-mesh the lower section: Add hardware cloth only on the lower 24 inches where most damage happens.
Build Notes For Lasting Results
Wear gloves and eye protection when cutting wire. Wire ends can snap back. Call your local utility marking service before digging post holes. It’s a small step that can save a painful repair bill.
Once the fence is in place, keep the gate latched and do a fast perimeter walk after heavy rain or wind. Most fence problems start small. Catch them early and the fence stays a quiet part of the garden.
References & Sources
- Oregon State University Extension Service.“How to stop the deer from grazing on my garden?”States that an 8-foot fence is the sure way to keep deer out of a garden.
- University of Nebraska–Lincoln IANR News.“Fencing Most Effective Method of Keeping Rabbits Away from Gardens”Recommends fence height ranges for rabbits and suggests a buried or flared bottom edge to stop digging.
- Rutgers Cooperative Extension.“Choosing the Right Location for Your Vegetable Garden”Notes fence height ranges used to exclude rabbits and deer when planning a garden site.
