Skip to content

Building a Wood Privacy Fence

15 min read Training Guide

Plan, estimate and build a wood privacy fence, from rails and pickets to a braced gate that does not sag, following local height and pool barrier rules.

Table of contents

A wood privacy fence is the most common fence job: posts in the ground, two or three horizontal rails, and vertical boards called pickets nailed tight enough that you cannot see through. It is simple carpentry, but it is long, repetitive and outdoors, so small habits decide whether it stays straight. A gate that sags, pickets that rot at the bottom, or a fence on the wrong side of a height limit all trace back to choices made on day one.

Set the posts first, plumb and on a straight line, with utilities located. Local rules on height, setbacks, finished side and pool barriers vary, and the permit and the fence maker's instructions win.

What You Will Be Able to Do

  • Check the local rules that shape the fence before you buy material.
  • Estimate posts, rails, pickets and fasteners for a run.
  • Install rails and pickets that stay straight and plumb.
  • Handle a sloped yard by stepping or racking.
  • Build and hang a gate braced so it does not sag.

Planning

Rules That Change the Design

  • Height. Many towns cap back-yard fences, often around 6 feet, and set lower limits in front yards and near corners where drivers need to see. The number is local.
  • Finished side. Some towns and many associations require the finished side, without the rails showing, to face the neighbor or the street.
  • Permit and setbacks. Many towns want a permit and set how far the fence must stay from the property line or a sidewalk.
  • Pools. A fence that serves as a pool barrier must meet the pool code. Under the International Swimming Pool and Spa Code, the barrier is at least 48 inches tall, and gates must open outward, away from the pool, and be self-closing and self-latching, with limits on where the latch release sits. Build exactly to the local adoption.

Styles

Style What it is Notes
Solid or stockade Pickets butted tight on one side Most privacy, most wind load
Shadowbox Pickets alternate sides of the rails with a gap Looks good both sides, lets some air through
Board-on-board Two layers of pickets, the top layer covering the gaps Stays private as boards shrink
Horizontal Boards run between posts Posts closer together so boards do not sag
Prebuilt panels Rails and pickets come assembled Post spacing must match the panels exactly

Estimating

Worked example. A straight run is 100 feet, 6 feet tall, solid style, with 5-1/2-inch-wide pickets and three rails. No gate.

  1. Sections. 100 / 8 = 12.5, so use 13 sections. 100 / 13 = 7.69 feet, or about 7 feet 8-1/4 inches on center.
  2. Posts. A straight run needs one more post than sections: 14 posts.
  3. Rails. 13 sections x 3 rails = 39 rails. Each section is under 8 feet, so 8-foot 2x4s work.
  4. Pickets. 100 feet = 1,200 inches. 1,200 / 5.5 = 218.2, so 219 pickets laid tight. Add about 5 percent for split and crooked boards: about 230.
  5. Fasteners. Two per picket at each rail: 219 x 3 x 2 = 1,314. Buy about 1,400.
  6. Concrete. Work it out from your hole size and depth. In a 12-inch hole with 36 inches of concrete, that is about 4 bags of 80-pound mix per post, or 56 bags.

Add gate posts, gate hardware, post caps and stain if the job includes them.

Materials and Fasteners

  • Use treated lumber rated for ground contact for posts, and treated or cedar boards for rails and pickets.
  • Use hot-dipped galvanized or stainless fasteners. Copper-based treatments corrode plain and electroplated steel, and the rust streaks the wood.
  • Ring-shank nails or exterior screws hold best as the wood swells and shrinks. Pick a length that goes most of the way into the rail without poking out the back. A 5/8-inch picket on a 1-1/2-inch rail takes about a 2-inch fastener.

Warning: Nail guns cause many fence-job injuries. Use a sequential trigger, keep your free hand well away from the nail path, and never point the gun at anyone. Wear safety glasses, and hearing protection around compressors and saws.

Rails

Most fences use 2x4 rails: two rails for fences up to about 4 feet, and three for 5- and 6-foot fences. Set the bottom rail several inches above grade, the top rail a few inches below the top of the pickets, and the middle rail halfway between.

There are two common ways to attach them:

Method How Watch for
Face-mounted Rails run across the post faces, and ends meet at the center of a post Each end gets only half the post face, so predrill and fasten carefully
Inset Rails fit between posts in metal rail brackets, or toe-screwed Cut each rail to its own opening, since posts are never perfectly spaced

Either way:

  1. Set the rail's wide face vertical, facing the pickets, so the rail is deep in the direction it carries weight.
  2. Sight each rail and put the crown up, the high side of any bow, so pickets pull it toward straight.
  3. Snap or string a line for each rail height so the rails run straight across the whole fence.
  4. Fasten each rail end with at least two exterior screws or galvanized nails into the post, or into the bracket as its maker says.
  5. On a face-mounted fence, stagger the rail splices so all three do not break on the same post.

Pickets

  1. Set the bottom line. Run a string a couple of inches above grade, or use a spacer block. Keeping pickets about 2 inches off the soil stops them wicking water and rotting, and leaves room for the grass trimmer.
  2. Plumb the first picket with a level at the end post, and fasten it with two fasteners at each rail.
  3. Work along the run, tight to the last picket for a solid fence, or with a spacer block for a gap. Wet treated pickets shrink as they dry, so a tight fence opens small gaps on its own.
  4. Check plumb every few pickets. A small lean grows over 100 feet. Correct it gradually over several boards by opening or closing the joints a hair.
  5. Watch the top line. Follow a string for the tops, or trim them all to a string afterward.

For shadowbox, set the gap a little narrower than a picket so the pickets on the other side overlap the gaps. With 5-1/2-inch pickets and a 3-1/2-inch gap, each picket on the back side overlaps its neighbors by 1 inch on each side.

Slopes

Approach How it looks When to use it
Stepped Each section level, tops step down the hill Steeper slopes, prebuilt panels
Racked Rails follow the ground, tops run parallel to it Gentle, even slopes

Pickets always stand plumb, whichever you choose. A stepped fence leaves triangular gaps under each section. Fill them with longer pickets or a kickboard if pets or privacy matter.

Gates

Gates fail more than any other part of a fence, almost always by sagging on the latch side.

Posts

Gate posts carry the gate's weight on one side. Use 4x6 or 6x6 posts, set deeper and wider than line posts, in concrete. Hang the gate only after the concrete has cured.

Building the Gate

  1. Measure the opening at the top and bottom. Subtract the hinge and latch clearances the hardware calls for, often about 1/2 inch on the latch side.
  2. Build a frame of 2x4 top and bottom rails and side stiles, or use a steel gate frame kit.
  3. Brace it. Run a diagonal brace from the bottom corner on the hinge side up to the top corner on the latch side. That brace is in compression and holds the latch corner up. A brace run the other way does nothing to stop sag.
  4. Square the frame by matching its diagonals before you fasten the brace.
  5. Add pickets to match the fence.

Hanging the Gate

  1. Mount heavy strap or T hinges with through-bolts or the long structural screws the hinge maker lists. Short wood screws pull out.
  2. Set the gate on blocks to hold it level and at the right height, with more ground clearance than the fence, so it swings over the ground as it rises.
  3. Fasten the hinges to the post, then check the swing and the latch gap.
  4. Install the latch, and a cane bolt to the ground on a double gate's inactive leaf.
  5. Single walk gates work best at about 4 feet wide or less. Wider openings work better as double gates.

Finishing

Let treated wood dry before you stain or seal it. Sprinkle water on a board: if it beads, wait, and if it soaks in, the wood is ready. Coat both sides and the end grain, especially post tops and picket bottoms. Cap or angle-cut post tops so water runs off.

Common Mistakes

Mistake What it costs
Skipping the height and finished-side rules A fence the town makes you change
Pickets touching the soil Rot at the bottom within a few years
Electroplated nails in treated lumber Rust streaks and loose pickets
Not checking plumb as you go A visible lean down the whole fence
Gate brace running from top hinge to bottom latch A gate that sags anyway
Hanging a gate on a 4x4 in a shallow hole A post that leans and a gate that drags

Check Your Understanding

1. A run is 58 feet long. How many sections and posts do you plan, with sections no longer than 8 feet?

58 / 8 = 7.25, so 8 sections of 7 feet 3 inches on center, and 9 posts.

2. Which way does the diagonal brace on a wood gate run?

From the bottom corner on the hinge side up to the top corner on the latch side, so it holds the latch corner up in compression.

3. The owner wants a 6-foot fence that also serves as the pool barrier. What do you check?

The local pool barrier code: height, openings, and gates that open away from the pool and are self-closing and self-latching, with the latch release where the code requires.

4. Wet treated pickets are going on a solid fence. Should you gap them?

No. Install them tight. They shrink as they dry, and small gaps open on their own.

Key Takeaways

  • Check height, setback, finished-side and pool rules before you buy material.
  • Divide each run into equal sections, and add 5 percent to pickets for culls.
  • Use hot-dipped galvanized or stainless fasteners in treated wood.
  • Keep pickets plumb and about 2 inches off the soil.
  • Brace gates from the bottom hinge corner to the top latch corner, on heavy, deep-set posts.