How to Build a Wood Fence: Step-by-Step Guide

A wood privacy fence is one of the most doable big DIY projects. The work comes down to six steps: plan and mark the line, set the posts, hang the rails, attach the pickets, build the gate, and finish the wood. This guide covers each step with the numbers that matter: post depth, spacing, concrete, and fasteners.

Get your materials list first. The free fence calculator counts posts, rails, pickets or panels, concrete, gates, and hardware for your exact fence line, with prices you can edit.

Related: how much a fence costs | bags of concrete per fence post

What you need

Tools

  • Post hole digger or rented power auger
  • Mason’s string, line level, stakes, and marking paint
  • 4 ft level and a post level
  • Circular saw or miter saw
  • Drill/driver or nail gun
  • Wheelbarrow and shovel for mixing and moving concrete

Materials

  • 4×4 pressure-treated posts rated for ground contact (6×6 for gate posts on heavy gates)
  • 2×4 rails, 8 ft long
  • Pickets (dog-ear, flat top, or board-on-board)
  • Fast-setting concrete mix and gravel
  • Exterior screws or ring-shank nails rated for treated lumber
  • Gate kit or hinges, latch, and a drop rod for double gates

Step 1: Check the rules and call 811

  • Ask your town about permits, height limits, and setbacks. Many limit backyard fences to 6 ft and front yard fences to 3 or 4 ft.
  • Check HOA rules on style, height, and which side faces out.
  • Find your property line. If the corner pins are hard to find, a survey is cheaper than moving a fence later.
  • Call 811 a few days before you dig so buried lines are marked.

Step 2: Lay out the fence line

  • Drive stakes at each corner and end, and run a tight string between them.
  • Mark the corner, end, and gate posts first. Then space line posts evenly between them, no more than 8 ft apart on center so standard 8 ft rails reach.
  • Square corners with the 3-4-5 method: 3 ft along one string, 4 ft along the other, and the diagonal should measure 5 ft.
  • Plan gate openings as the gate width plus room for the hinges and latch. Check the gate kit for the exact gap.

Step 3: Dig the holes

  • Depth: bury about one-third to one-half of the post’s height above ground, plus 3 to 6 in for gravel. For a 6 ft fence that means at least 24 in, so use 8 ft posts.
  • Frost: in cold climates, go below your local frost line so the posts do not heave.
  • Gate posts: dig these deeper, about half the above-ground height plus 6 in of gravel.
  • Width: about three times the post width, so a 12 in hole for a 4×4.
  • Put 3 to 6 in of gravel in the bottom of each hole for drainage.

Step 4: Set the posts

  • Set the corner and end posts first. Plumb each one in two directions and brace it with scrap boards and stakes.
  • Fill the hole with concrete to just below grade, and slope the top away from the post so water runs off.
  • Run a string between the tops of the end posts, then set the line posts to that string so the tops stay even.
  • A 10 in hole 30 in deep holds about 1.5 cu ft of concrete, or 3 bags of 80 lb mix. See the concrete per fence post chart for other sizes.
  • Fast-setting mix firms up quickly, but wait at least a few hours (and ideally a day) before hanging rails and pickets.

Step 5: Hang the rails

  • A 6 ft fence uses 3 rails per section, and a 4 ft fence uses 2.
  • Set the bottom rail about 6 to 8 in above the ground and the top rail a few inches below the top of the pickets. Center the middle rail.
  • Fasten rails to the face of the posts or between them with rail brackets. Join rails over the center of a post.
  • On a slope, either step the rails down in level sections or rack them to follow the ground.

Step 6: Attach the pickets

  • Run a string or use a straight board as a guide so the picket tops stay even. Leave about 2 in of clearance at the bottom.
  • Use 2 fasteners per rail on each picket.
  • Butt pressure-treated pickets tight, since wet lumber shrinks as it dries. Leave a gap if you want a spaced or shadowbox look.
  • Check plumb every few pickets with a level. Small errors add up over a long run.

Step 7: Build and hang the gate

  • Build the gate frame with a Z or diagonal brace that runs from the bottom hinge side up to the top latch side, so the gate does not sag.
  • Use heavy-duty hinges and hang the gate with a small gap at the latch side and about 2 in off the ground.
  • Double drive gates need a drop rod or cane bolt on the inactive side.

Step 8: Finish and maintain

  • Let pressure-treated wood dry before staining. If water soaks in when sprinkled, it is ready.
  • Use a penetrating exterior stain or sealer, and recoat every 2 to 3 years.
  • Keep soil, mulch, and sprinklers away from the bottom of the pickets.

How much does it cost to build a fence yourself?

For a 100 ft, 6 ft tall wood privacy fence with posts 8 ft apart, the fence calculator lists 14 posts, 39 rails, 230 pickets, and 28 bags of concrete, for about $1,365 in materials at average prices. Professional installation for the same fence typically runs about $2,500 at $25 per foot. See fence cost for prices by material and length.

How long does it take?

Two people can usually build 100 ft of wood privacy fence over two weekends: one for layout and setting posts, and one for rails, pickets, and the gate. A power auger saves the most time, especially in rocky or clay soil.

Common mistakes to avoid

  • Skipping the property line check
  • Posts set too shallow for the fence height or frost line
  • Spacing posts more than 8 ft apart
  • Gate posts that are not deeper or stronger than line posts
  • Pickets touching the ground, which leads to rot
  • Using screws or nails not rated for treated lumber

FAQ

How deep should fence posts be?

About one-third to one-half of the above-ground height, plus a few inches of gravel. For a 6 ft fence, at least 24 in, and below the frost line in cold climates.

How far apart should fence posts be?

No more than 8 ft on center for a wood fence. Closer spacing, such as 6 ft, makes a stiffer fence in high wind.

Should fence posts be set in concrete?

Concrete is the most common and the sturdiest. Some builders use tamped gravel, which drains better and makes posts easier to replace. Either way, put gravel in the bottom of the hole.

Which side of the fence faces the neighbor?

The finished side, with no posts or rails showing, often faces out. Many towns and HOAs require it, so check before you build.

Sources

Leave a Comment