Home Improvement

Building a Wood Fence: A Complete Step-by-Step Guide

Building a Wood Fence: A Complete Step-by-Step Guide

A wood fence is one of the highest-value projects a homeowner can tackle, adding privacy, security, and curb appeal, but it is also one of the easiest to get wrong. Building a wood fence that stands straight for 20 years instead of leaning within two comes down to a handful of fundamentals: setting posts deep and plumb, choosing rot-resistant lumber, and respecting property lines and utilities. Whether you are enclosing a backyard or replacing a tired old run, this guide walks you through the process from planning to the final picket.

Before You Dig: Planning and Permits

The most expensive fence mistakes happen before a single post goes in. Call 811 at least a few days ahead to have underground utilities marked, because slicing a gas or electric line while digging post holes is dangerous and costly. Check your local zoning for height limits, setback requirements from property lines, and whether a permit is required. Many areas cap backyard fences at 6 feet and front-yard fences at 3 to 4 feet.

Confirm your exact property line, ideally with a survey, so you build on your land and avoid disputes. Talk to neighbors early, since a shared fence line is far smoother with agreement than without. Finally, sketch your layout, mark gate locations, and count your posts before buying anything.

Choosing the Right Lumber

Wood choice determines how long your fence lasts. The three common options each have a clear trade-off:

  • Pressure-treated pine: the budget workhorse at $2 to $5 per picket, chemically treated to resist rot and insects. Use treated lumber rated for ground contact on all posts.
  • Cedar: naturally rot- and insect-resistant with a beautiful grain, at $4 to $8 per picket. Weathers to a silvery gray if left unsealed.
  • Redwood: premium durability and looks, at $6 to $12 per picket, more common in the western US.

A smart, cost-effective approach is pressure-treated posts for ground contact strength paired with cedar rails and pickets for looks. Whatever you choose, buy straight, well-dried boards and let them acclimate a few days before installing.

Tools and Materials You Will Need

Gather everything before starting so you are not making hardware-store runs mid-project. You will need a post-hole digger or a powered auger, a level, string line and stakes, a tape measure, a circular saw, a drill or impact driver, exterior screws or galvanized nails, gravel, and concrete mix. Rent a two-person auger for anything over a dozen posts; it turns a brutal day of digging into a manageable one.

Step 1: Set the Corner and End Posts

Everything references the corner and end posts, so set these first and set them perfectly. Dig holes at least one-third the post height deep, so 2 feet minimum for a 6-foot fence, and below your local frost line to prevent heaving. Add 6 inches of gravel at the bottom for drainage, set the post, brace it plumb in both directions with scrap lumber, and pour concrete. Crown the concrete slightly above grade and slope it away so water sheds off the post base.

Step 2: Run a String Line and Set Remaining Posts

Once the corner posts cure, stretch a taut string line between them at a consistent height to guide every post in between. Space posts no more than 8 feet on center, and 6 feet gives a stiffer fence. Dig, set, brace, and pour each line post so its face just kisses the string. Consistent spacing and alignment here is what makes the finished fence look professional rather than wavy.

Let the concrete cure at least 24 to 48 hours before hanging anything heavy. Rushing this step is the single most common cause of leaning fences.

Step 3: Attach the Rails

Rails are the horizontal 2×4 members that carry the pickets. A 6-foot fence typically uses three rails: one near the top, one in the middle, and one about 8 inches off the ground. Attach them level between posts using galvanized brackets or by screwing them face-to-face. Check each rail with a level as you go, and keep the bottom rail high enough to avoid soil contact and rot.

Step 4: Install the Pickets

With rails in place, the pickets go up fast and the fence finally takes shape. Start at one end, hold the first picket plumb, and fasten it to each rail with two screws or nails. Use a spacer block, a scrap of wood the width of your desired gap, to keep spacing uniform between pickets. Even a consistent 1/4-inch gap allows the wood to expand and lets the fence breathe.

Check for plumb every several pickets, since small errors accumulate into a noticeable lean over a long run. Keep the picket bottoms a consistent height off the ground, either following the grade or stepping down slopes in even increments.

Need help with your fencing project? Get a free quote by phone.
📞 Call (866) 636-8383
Free, no-obligation quote · Connect with a local pro

Step 5: Build and Hang the Gate

Gates take the most abuse, so overbuild them. Frame the gate with a diagonal brace running from the bottom hinge corner up to the top latch corner to prevent sag. Use heavy-duty galvanized hinges rated above the gate’s weight, and hang it with a slight gap so it swings freely without binding. A gate that drags within a year almost always lacks that diagonal brace.

Finishing and Sealing

Bare wood exposed to sun and rain grays and cracks over time. To protect your investment, apply a quality exterior stain or water-repellent sealer, ideally after the wood has dried for a few weeks. Sealing preserves color, repels moisture, and extends the fence’s life significantly. Plan to reseal every 2 to 3 years. Cedar left unsealed will still last but will weather to gray, which some homeowners prefer.

Common Mistakes to Avoid

  • Setting posts too shallow or above the frost line, causing heave and lean
  • Skipping gravel at the post base, trapping water against the wood
  • Using non-ground-contact lumber for posts
  • Spacing posts too far apart, leaving the fence flimsy
  • Forgetting the diagonal gate brace, guaranteeing sag
  • Building over the property line without confirming its location

Choosing a Fence Style

The style you build affects privacy, cost, and how neighborly the fence feels. A solid privacy fence with pickets butted tight and no gaps gives complete screening and is the most common backyard choice, though it uses the most lumber. A shadowbox or board-on-board style alternates pickets on each side of the rails, offering privacy while looking finished from both sides, ideal for a shared boundary. Spaced-picket or dog-ear fences leave gaps between boards for a more open, decorative look suited to front yards.

Height drives both privacy and code. Six feet is the standard backyard privacy height and usually the maximum allowed without special permits, while 4-foot fences suit front yards and areas where you want openness. Adding a decorative top, such as a lattice cap or a scalloped picket line, dresses up a plain run. Think about which faces the “good” side, the smooth picket side, toward; many localities and courtesy call for the finished side facing your neighbor.

Estimating Materials and Cost

Pricing a fence starts with the linear footage of the run. For a standard 6-foot privacy fence, budget roughly $15 to $40 per linear foot in materials for DIY, or $30 to $75 per foot installed by a contractor. A typical 150-foot backyard perimeter runs $2,000 to $6,000 depending on wood choice and whether you hire out.

  • Posts: one every 6 to 8 feet, plus corner and gate posts
  • Rails: three 2×4 rails per section for a 6-foot fence
  • Pickets: calculate the run length divided by picket width plus your gap
  • Concrete: one to two 50-pound bags per post hole
  • Hardware: galvanized screws or nails, gate hinges, and a latch

Buy about 10 percent extra lumber to account for warped boards and cutting waste. Renting a powered auger for a day, around $75 to $150, is money well spent on anything over a dozen posts.

Working With Slopes and Corners

Few yards are perfectly flat, and how you handle slope separates a professional-looking fence from an amateur one. On a slope, you have two options: racking, where the rails follow the grade and pickets stay vertical, giving a smooth diagonal top line, or stepping, where each section drops down in even increments like stairs, leaving level rails and small triangular gaps at the bottom. Racking suits gentle, consistent slopes; stepping works better on steep grades. Pick one method and apply it consistently so the fence reads as intentional.

At corners, set the corner post first and run string lines in both directions from it, since the corner anchors two runs at once and any error there compounds down both sides. Keep the bottom of the fence a consistent few inches off the ground to prevent rot and allow drainage, following the grade rather than the low spots.

Wrapping Up

Building a wood fence is a genuinely achievable weekend-scale project for a motivated DIYer, and the payoff in privacy and property value is substantial. Take your time on the posts, because a plumb, deeply set, well-braced post line is the foundation everything else rests on. Choose durable lumber, keep your spacing consistent, brace that gate, and seal the wood. Do the fundamentals right and your fence will stand straight and handsome long after your neighbors have replaced theirs.

Get Free Fence Installation Quotes from Local Pros