Set posts deep, keep lines level, and pick a fence height and mesh size that matches the animals you want to block.
A garden fence saves plants and saves your time. When the build matches what’s raiding your beds, you stop replanting and stop patching gaps every week.
Below you’ll get a practical build order, plus the choices that matter most: height, mesh size, post spacing, and a gate that won’t sag.
Decide What Your Fence Must Do
Get clear on the job before you buy materials. A low fence with tight mesh can beat a tall fence with gaps, depending on what’s getting in.
Spot The Animals By Their Damage
Check your garden early in the day for a week. Look for clipped stems, nibbled leaves, tracks, droppings, and tunnel holes.
- Rabbits: small openings and a tight bottom edge.
- Groundhogs: digging pressure near corners.
- Deer: height and a firm top line.
- Dogs: strength at mid-height plus a latch that stays shut.
Check Rules Before You Dig
Many cities limit fence height, set corner-lot rules, or ask for a permit past certain heights. One clear example is Seattle’s page on permits and common fence limits. Seattle SDCI fence rules shows the kind of details to look for on your own local site.
Then protect yourself from buried utilities. A post hole can hit a shallow line. The national one-call site lays out the safe order: request marks, wait, then dig. 811 “Before You Dig” steps explains what to do and why it matters.
Plan The Layout, Height, And Gate
Layout work feels slow, yet it prevents crooked lines and weird gate placement. Spend time here and the rest gets easier.
Pick A Gate Spot You’ll Use Every Day
Put the gate where you already walk with a hose, harvest basket, or wheelbarrow. Avoid low spots that turn muddy. Give yourself turning room inside the fence.
Square The Corners With String
Stake the corners, run mason’s line, then measure diagonals corner-to-corner. When diagonals match, your fence line is square.
Choose A Height That Fits The Threat
For small animals, 3–4 feet often works when the bottom is sealed. For deer, many gardeners choose 7–8 feet. Taller fences need stronger corner bracing, since wire tension and wind load rise fast.
Pick Materials That Hold Up Outdoors
You can build a strong garden fence with wood posts and welded wire, or with metal posts and field fencing. The “best” mix is the one you can install tightly and keep tight.
Posts Carry The Load
Posts take wind, wire tension, and gate swings. Choose one of these common options:
- Pressure-treated 4×4 posts: easy fastening for rails and gates.
- Metal T-posts: quick for wire runs, tricky for gates.
- Round treated posts: strong in soil, slower for panel installs.
Mesh Size Matters As Much As Height
A 2×4-inch opening can stop deer yet still let rabbits slip through. If you get mixed pressure, use tighter mesh near the ground and taller fencing above it.
Quick Material Math Before You Shop
Measure the total fence run with a tape or a measuring wheel. Divide that number by your planned post spacing to estimate line posts, then add corner posts and two gate posts. For wire, add 5–10% extra length so you can overlap seams and still pull the run tight. If you’re adding a buried trench or apron, add that extra width to the wire roll size you buy.
For a simple parts list, plan on: posts, braces for corners, wire or panels, staples or clips, hinges, a latch, and gravel for drainage. Buying once hurts less than stopping mid-build because you’re short a handful of staples.
Use Treated Lumber With Basic Care
Outdoor posts and bottom rails often use preservative-treated lumber to resist rot and insects. The U.S. Environmental Protection Agency explains what these treatments are and where treated wood is commonly used. EPA overview of wood preservative chemicals is a good reference for safe handling and selection.
Wear gloves when handling treated lumber, wash hands before eating, and cut it outdoors. Keep scraps out of burn piles.
Building A Fence Around A Garden Step By Step
This sequence fits most wood-post-and-wire builds. If you use rigid panels or pickets, post setting stays the same and the fastening step changes.
Step 1: Set Post Spacing
Most welded-wire fences stay straighter with posts spaced 6–8 feet apart. Wider spacing can sag and makes tensioning harder.
Step 2: Dig Holes Deep Enough
For many 4-foot fences, 24–30 inches is common. Taller fences and soft soil call for deeper holes, often 36 inches or more. In frost zones, go below local frost depth so posts don’t heave.
Step 3: Set Corner And Gate Posts First
Set corner posts, then pull a string line between them at your planned top height. Set line posts so their tops meet the string. Check plumb on two faces, then backfill in small lifts and tamp hard.
Step 4: Brace Corners And Gate Posts
Wire tension pulls corners inward. Gates pull posts out of plumb. A simple H-brace uses a second post, a horizontal brace, and a diagonal tension wire. Bracing is what keeps the fence standing straight year after year.
Step 5: Add A Rail Or Top Wire
A wood top rail adds stiffness and gives you a clean staple edge. A top tension wire is lighter and works well for tall deer fencing when corners are braced well.
Step 6: Stretch And Staple The Wire
Unroll the wire along the fence line. Staple one end to a corner post, then pull the wire tight with a fence stretcher or a clamp bar made from a 2×4. Staple each post as you go, keeping the wire snug, not bowed.
Step 7: Seal The Bottom Against Diggers
For rabbits and groundhogs, add one of these:
- Buried trench: drop mesh 6–12 inches down, then backfill.
- Apron: lay 12–18 inches of mesh flat outside the fence, pin it down, then cover it with soil or mulch.
An apron saves digging and still blocks most tunnel attempts.
Fence Choices That Cut Repairs Later
Small upgrades can save a season of fiddling.
Build The Gate Area Like A Mini Structure
Use thicker posts at the gate, set them deeper, and brace them. Build the gate frame with a diagonal brace running from the bottom hinge side up to the latch side. That brace takes the load and keeps the gate square.
Use Outdoor-Rated Fasteners
Pick galvanized or stainless fasteners. For staples, use fence staples meant for treated lumber. Rusty hardware loosens fast and stains wood.
Table 1: Common Garden Fence Builds At A Glance
| Fence Type | Best Use | Notes |
|---|---|---|
| Wood Posts + Welded Wire | Most gardens | Easy to tighten and repair; choose small mesh near ground |
| Metal T-Posts + Welded Wire | Fast installs | Add wood posts for corners and gate |
| 8-Foot Deer Fence (Wire) | Heavy deer pressure | Needs stout corners and a tight top line |
| Hog Panels (Rigid) | Strong, neat look | Great for climbers; heavy to move alone |
| Picket With Wire Lining | Front-yard gardens | Pickets alone leak; wire lining blocks small animals |
| Raised Bed Mini Fence | Small beds | Shorter build; still add a trench or apron |
| Double-Layer Lower Band | Rabbits + deer | Tight mesh low, taller fence above |
| Electric Offset (Add-On) | Stubborn raiders | Pairs with a base fence; check it often |
How To Build A Fence Around Your Garden With Fewer Mistakes
Most fence failures come from a short list of issues: posts drifting out of plumb, wire not stretched, and gate frames that twist.
Lock Posts In Place While Concrete Sets
If you use concrete at corners or the gate, brace posts with scrap wood so they can’t twist. Recheck plumb after a few minutes, since a post can drift while you clean up.
Staple With A Little Give
Wood swells and shrinks. Leave a hair of play so the wire doesn’t pop staples. Staple every 8–12 inches on line posts, closer near corners.
Stop The “Under-Fence Gap” Early
Even if you don’t see tunnels yet, seal the bottom from day one. A shallow trench or apron is fast insurance and keeps you from digging up beds later.
Table 2: Fast Fixes For Common Fence Problems
| Problem | What It Means | Fast Fix |
|---|---|---|
| Fence top waves | Posts set to uneven heights | Run a string line; trim highs or add a top rail |
| Wire sags between posts | Wire not stretched or spans too long | Add a mid-span post or tension wire; restaple tight |
| Gate drags | Hinge post leaning or weak gate brace | Brace the post; add a diagonal brace; reset hinges |
| Rabbits slip under | Bottom gap or soft soil | Add an apron; pin it down; cover it |
| Rust spots on wire | Coating damage | Seal small spots; replace sections that snap |
| Latches pop open | Weak latch or fence flex | Use a two-step latch or add a drop rod |
| Corner leans inward | No brace for tension | Add an H-brace; retension the wire |
Finish Steps That Keep It Pleasant To Use
Cut wire tails flush and bend them back away from walking paths. Add post caps to shed rain. Then do a quick monthly walk-through in peak season: tighten hinges, restaple a lifting edge, and clip vines that pull on mesh.
Build-Day Checklist
- Confirm property line and local fence rules.
- Request utility markings before digging.
- Stake corners, run string, match diagonals.
- Set corners and gate posts first, brace them, then set line posts.
- Stretch wire tight, then seal the bottom with a trench or apron.
- Hang the gate, then set latch height and swing clearance.
References & Sources
- Seattle Department of Construction & Inspections (SDCI).“Fences.”Lists permit triggers and basic height guidance for residential fences, useful as a model for checking local rules.
- 811 Before You Dig.“Before You Dig.”Explains the one-call process for utility marking before digging post holes.
- U.S. Environmental Protection Agency (EPA).“Overview of Wood Preservative Chemicals.”Background on preservative-treated wood and why it’s commonly used outdoors.
