Skip to content
All guides

Fencing · Intermediate

How to Build a Wood Fence

Post spacing, digging, setting and picket install for a fence that lasts 15+ years.

18 min read Reviewed by prosUpdated February 2026
Tools needed
  • Post hole digger or auger
  • 4-ft level
  • String line
  • Circular saw
  • Impact driver
Materials
  • 4x4 pressure-treated posts (rated for ground contact)
  • 2x4 rails
  • Fence pickets
  • Fast-setting concrete
  • Exterior deck screws
  1. 1

    Verify property lines

    Get a survey or pull the plat before you dig. A fence 6" over the line is a legal problem, not a neighborly one.

  2. 2

    Layout with string lines

    Stake corners, run mason line at the top of your future posts, and mark post locations every 6–8 ft. Consistent spacing is what makes a fence look professional.

  3. 3

    Dig post holes

    Depth = 1/3 of the above-ground post height, minimum, and below frost line. For a 6-ft fence in a cold climate, dig 36–42".

  4. 4

    Set posts in concrete

    Add 4" of gravel at the bottom for drainage. Set the post, brace plumb in two directions, then dry-pour fast-setting concrete around it and add water per the bag directions. Let cure 24 hours before adding rails.

  5. 5

    Install rails

    Attach 2x4 rails between posts — top rail flush with post tops, bottom rail 6" off the ground. For 6-ft fences use three rails to prevent picket sag.

  6. 6

    Attach pickets

    Use a spacer block for consistent gaps (typically 1/4" for cedar to allow for expansion). Screws over nails — nails work loose within a few seasons.

  7. 7

    Seal the fence

    Wait 4–8 weeks for pressure-treated wood to dry out, then apply a semi-transparent oil stain with UV blockers. Recoat every 3–4 years.

Safety note: this guide is educational. Always follow local building codes, pull required permits, and hire a licensed pro for structural, electrical, gas or plumbing work when in doubt.