Set layout lines, call 811, dig and set posts, attach rails or panels, hang gates, then seal and check line for a durable garden fence.
Your yard needs a clear boundary, a bit of privacy, or protection from nibbling wildlife. This guide walks through a complete, no-nonsense build. Plan the line, confirm limits, pick materials, and assemble a fence that stays straight. The steps are simple, the order matters, and small choices decide whether posts stay plumb.
Putting A Fence In Your Garden: Tools And Materials
Round up everything before you break ground. Here’s a compact checklist.
| Item | Primary Use | Buying Tips |
|---|---|---|
| Measuring Tape, Twine, Stakes | Lay out straight lines | Use bright mason’s line so you can see it in shade |
| Posthole Digger Or Auger | Excavate post holes | Choose an auger for long runs or tough clay |
| Level & Post Level | Keep posts plumb | Magnetic post levels free up a hand |
| Shovel, Tamper, Gravel | Base and backfill | Washed gravel drains better than native soil |
| Concrete Mix (If Used) | Set gate/end posts | Fast-setting mixes speed up bracing removal |
| Saw, Driver, Galvanized Screws | Cut and fasten rails/boards | Exterior-rated fasteners prevent rust streaks |
| Posts, Rails, Panels, Pickets | Structure and infill | Pressure-treated or naturally durable species |
| Hinges, Latch, Gate Kit | Build a square gate | Use heavy strap hinges on wider gates |
| Exterior Stain/Sealant | Weather defense | UV-resistant finish extends service life |
| Safety Gear | Protection | Gloves, boots, eye/ear protection |
Plan The Line And Check Boundaries
Walk the route, note slopes and trees, then mark corners with stakes. Stretch a mason’s line between stakes to visualize the run. Near a boundary, review your deed or a recent survey. If unsure, hire a surveyor to avoid disputes and tear-outs. Plan gate spots you’ll use daily.
Permits, Setbacks, And Utility Locates
Many cities cap fence height, restrict materials in front yards, or require permits for tall spans and street corners. Before digging, submit a utility locate request. In the U.S., call or click 811 before you dig; crews mark buried lines so your holes stay clear of gas, power, and telecom. Schedule this ahead of your weekend build, since marking windows can vary by region.
Pick Materials That Match The Job
Match style and durability to the job. For veggie beds, welded wire on wood or metal posts stops rabbits without blocking light. For privacy, choose overlapping boards or solid panels. Windy sites need beefier posts.
Common Post And Infill Choices
Wood posts: Affordable and easy to cut. Choose treated pine rated for ground contact or naturally durable cedar. Steel posts: Great in wet soils and along wind corridors. Bracket wood rails to steel for long life. Composite/vinyl: Low maintenance and uniform look; follow the maker’s footing specs.
Lay Out Straight Lines That Stay Straight
Set corner posts first. Drive stakes past each corner, then run twine between stake pairs to create “batter boards.” Adjust lines to square. Measure your panel or picket module (often eight feet). Mark post centers with paint or flags and keep spacing consistent.
Dig Holes To The Right Size
Dig near one-third of exposed height, adjusted for frost and wind. In cold regions, go below frost to prevent heave. Hole diameter often runs two to three times the post width. Scrape the sides clean, then add three to six inches of gravel for drainage.
Hole Size Guide
Use this chart as a starting point. Adjust for soil, wind, and gate loads.
Set Posts: Gravel, Concrete, Or Hybrid
Each method has trade-offs. Gravel backfill drains and is quick to work, and future post swaps are easier. Concrete adds mass for gate and corner posts, but trapped moisture at the concrete line can shorten wood life. A solid hybrid is gravel to mid-hole, then a concrete collar shaped above grade to shed water. Keep posts plumb as the base sets.
Brace And Align
Clamp temporary 2×4 braces to hold each post square to the string line. Check plumb on two faces. Step back every few posts and sight down the tops for a smooth plane. Let concrete set per the bag, then remove braces and recheck plumb.
Attach Rails, Panels, Or Wire
For board-and-rail, set the bottom rail a few inches off grade. That gap limits splashback and makes mowing cleaner. Keep rail crowns up to fight sag. With panels, start at a corner and work downhill; trim at the end. For welded wire, stretch the mesh, fasten with exterior staples or clips, and keep tension even between posts.
Build A Square Gate
Gates add weight and torque. Use deeper posts, extra gravel or concrete, and heavy strap hinges. Build the leaf on a flat surface with a diagonal brace from lower latch side to upper hinge side. Hang it level at latch height and leave ground gap for snow or mulch.
Protect The Fence And The Soil
Seal wood within a few weeks. Penetrating oils and water-borne acrylics both work on dry stock. Cap post tops or cut a slope so water sheds. Keep mulch and soil pulled back an inch or two to reduce wetting.
Mind Wildlife And Codes
Where gardens back to open space, swap top boards for smooth rails, or add a flagged string during build so deer spot the line. Rural installs that manage animals can follow the NRCS Fence (Code 382) practice standard for layout and upkeep baseline.
Step-By-Step Build: From First Stake To Last Screw
1) Stake Corners And Pull Lines
Mark corners with stakes beyond the fence footprint. Run two parallel strings at post height so you can set posts centered between them for a straight run.
2) Mark Post Centers
Measure your module. Mark dots at even spacing. Flag gate openings and add extra posts for latch and hinge sides.
3) Call For Utility Marks
Submit your 811 ticket and wait for marks. Respect the tolerance zone beside painted lines. Hand-dig near marks and set posts outside that buffer.
4) Dig, Gravel, And Set The First Post
Start with a corner. Dig to depth, drop in gravel, then set the post. Align to the string and brace. Backfill and tamp in lifts or mix concrete to the bag directions. Bell the bottom if wind is fierce.
5) Run The Next Posts
Work one bay at a time. Keep tops at a consistent elevation for a tidy sightline. On slopes, choose stepped panels or a racked style to keep gaps tight.
6) Add Rails Or Panels
Cut rails to fit. Use exterior screws to avoid nail pop. With panels, pre-drill near ends to prevent splits. If wire is your infill, keep a steady pull and fasten at every post.
7) Hang Gates And Hardware
Pre-drill for hinge bolts, shim for even reveals, and set the latch at a comfortable height. Add a drop rod on double gates to anchor the idle leaf.
8) Finish And Cleanup
Seal exposed cuts, sweep soil away from boards, and add gravel pads under gate swing arcs. Walk the run and snug any fasteners that backed out during bracing.
Post Hole Size Reference
| Fence Height | Hole Diameter | Depth Target |
|---|---|---|
| 3–4 ft garden border | 2–3× post width | 12–18 in or below frost |
| 5–6 ft privacy | 2.5–3× post width | 24–30 in or below frost |
| Gate or corner post | 3× post width | 30–36 in or below frost |
Care And Seasonal Checks
Twice a year, walk the line. Tighten hinges, touch up finish, clear soil and mulch, and trim plants that push on pickets. After storms, check for lean or heave and reset any post that moved while the ground was soft. Keep fasteners snug and replace rusted parts before they stain wood.
Cost, Time, And Where DIY Makes Sense
Material price moves with lumber and steel markets, but most garden runs of 50–100 feet fit into a weekend or two for two people. Save money with wire infill, skip heavy caps, and rent an auger only for rocky spots. Spend where it counts: deeper posts at corners and gates, exterior-rated fasteners, and a finish made for sun and rain.
Quick Troubleshooting
Post Wobbles
Dig back to the base. Add gravel in lifts and tamp, or add a concrete collar above grade that sheds water away from wood.
Panel Steps At The End
Trim the final bay to fit instead of force odd spacing across the run. Keep end posts plumb and string straight during the last fasteners.
Gate Sags
Flip the diagonal brace so it rises toward the hinge side, add a turnbuckle, or upgrade to longer strap hinges. Pull the posts back to plumb if the soil settled.
What Professionals Do Differently
Pros obsess over layout. Lines square to the house or a known straight feature. Posts land on a rhythm, rail crowns face up, cut ends get sealed, and hardware holes get pre-drilled. They also document setbacks and permits before the first scoop of dirt. Copy those habits and your garden fence will look planned, not improvised.
Printable Build Sequence Card
1) Stake corners and pull lines. 2) Mark post centers. 3) Request 811 locates. 4) Dig and set corner posts. 5) Run line posts. 6) Add rails or panels. 7) Hang gates. 8) Seal wood and tidy grade for reference at home.
