How to Build a Wood Fence: Complete DIY Guide
A well-built wood fence adds privacy, security, and curb appeal to your property. Whether you want a six-foot privacy fence or a simple three-rail border, the construction principles are the same. With basic tools and a weekend or two, you can build a fence that lasts fifteen years or more.
How to Build a Wood Fence
Planning and Layout
Before you dig the first post hole, handle the paperwork. Check your local building codes and HOA rules for height limits, setback requirements, and permit needs. Call 811 to have underground utilities marked for free. This step is not optional — hitting a gas line or fiber optic cable can be dangerous and expensive.
Walk your property line with your neighbor. Discuss the plan and confirm the boundary. A tape measure and stakes help visualize the layout, but a land survey is the only legally binding boundary determination.
Materials List
For a standard six-foot privacy fence, you need:
- Posts: 4x4 pressure-treated lumber, 8 feet long (set 2 feet in ground)
- Rails: 2x4 pressure-treated lumber, 8 feet long (two or three per section)
- Pickets: 1x6 cedar or pressure-treated boards, 6 feet long
- Concrete: One 50-pound bag per post hole
- Hardware: Galvanized screws or ring-shank nails
- Post caps: Optional, but they shed water and extend post life
Setting the Posts
Posts are the foundation of your fence. Get them wrong, and the entire fence will lean, sag, or fail.
Start with the corner and end posts. Dig holes 10 inches wide and 24 inches deep minimum — one-third the total post length should be underground. A post hole digger works for a few holes, but rent a two-person gas auger for longer runs.
Set the post in the hole, brace it plumb with scrap lumber, and pour dry concrete mix around it. Add water per the bag instructions. Check plumb with a level on two adjacent faces. Adjust before the concrete sets.
Let corner posts cure for 24 to 48 hours. Then run a string line between them at the top to align the intermediate posts. Space posts 8 feet on center to match standard rail lengths. Some builders prefer 6-foot spacing for a sturdier fence.
Installing Rails
Cut 2x4 rails to fit between the posts. For a six-foot fence, install three rails: one 6 inches from the bottom, one at the top, and one centered between them. Two rails work for shorter fences.
You have two attachment methods:
- Toe-nail: Drive screws at an angle through the rail end into the post. Simple but weaker.
- Rail brackets: Metal brackets screwed to the post hold the rail. Stronger and easier to level, but adds cost.
Use a level to keep rails straight. If your yard slopes, you can either step the fence in level sections or follow the grade by angling the rails to match the slope.
Attaching Pickets
Start at a corner post. Hold the first picket plumb, align it with the rail, and drive two screws into each rail — six screws per picket for a three-rail fence. A cordless drill with a driver bit makes this go quickly.
Use a spacer block to maintain consistent gaps between pickets if you want a semi-private look. For full privacy, butt pickets tightly together or overlap them in a board-on-board pattern.
Check plumb every five or six pickets. Small errors accumulate fast.
Gates
A gate is just a fence section with hinges and a latch, but it needs extra reinforcement because it swings freely and takes daily stress.
Build the gate frame from 2x4s with a diagonal brace running from the bottom hinge side to the top latch side. This brace prevents sagging. Screw pickets to the frame the same way you did the fence.
Use heavy-duty strap hinges or T-hinges rated for the gate weight. Install a gate stop — a small block on the latch post — to prevent the gate from swinging past the post and stressing the hinges.
Finishing and Maintenance
Cedar weathers naturally to a silver gray if left untreated. If you prefer to keep the original color, apply a UV-blocking exterior stain or sealant within the first few months. Pressure-treated lumber should dry for three to six months before staining.
Inspect the fence annually. Look for:
- Loose or missing pickets
- Leaning posts (a sign of concrete failure or rot)
- Rails pulling away from posts
- Peeling finish that needs recoating
Trim grass and vegetation away from the base of the fence. Moisture trapped against wood accelerates rot. Keeping a two-inch gap between the bottom of the pickets and the ground helps too.
Common Mistakes to Avoid
Skipping the utility locate call. It is free and takes a few days to schedule. The alternative is a repair bill measured in thousands.
Setting posts too shallow. Frost heave will push shallow posts out of the ground in cold climates. Go below your local frost line.
Using the wrong fasteners. Standard steel screws rust and stain the wood. Always use galvanized, stainless steel, or coated screws rated for treated lumber.
Ignoring drainage. If water pools around post bases, it accelerates rot. Crown the concrete slightly above grade so water runs away from the post.
A wood fence is one of the most rewarding outdoor projects you can tackle. The materials are straightforward, the skills are basic, and the result transforms your yard immediately.