How to Build a Deck — Step-by-Step DIY Guide
The complete process for building a residential deck — from permit to final inspection. Tools, materials, IRC code references, and the order in which professionals actually work.
Building a deck is the single most achievable major DIY project on the typical American home — bigger than a kitchen reno (impossible), smaller than a house addition (still possible but exhausting), and exactly the size where a competent weekend carpenter saves $8,000-15,000 in labor on a 320 sqft build. This guide walks through the 8-step process used by professional deck contractors, with the tool list, the IRC code references, and the timing realities. Plan on 6-12 weekends for a first-timer and 4-6 weekends for someone who has framed before.
Step 1: Plan + permit (week 1-3)
Don't even buy lumber until you've pulled the permit. Order of operations:
- Measure the deck location. Note: setback distance from property lines, house wall length, doorway location, drainage slope.
- Sketch the deck shape — rectangle is cheapest and easiest, L-shape adds 10% complexity, multi-tier doubles the time.
- Run DeckMath's deck-material-calculator with your dimensions to get a permit-ready BoM with IRC code citations.
- Run DeckMath's deck-cost-calculator to set a budget.
- Submit permit application: site plan, construction plan, lumber spec, code references. Most AHJs respond in 1-3 weeks.
- While waiting on permit: order long-lead items (composite decking, railing systems often have 2-4 week lead times).
Step 2: Layout + footings (week 3-4, 1-2 weekends)
Mark the deck on the ground
Use mason's line + stakes to lay out the deck perimeter to scale. Verify diagonals are equal (square check). Mark every footing location with spray paint.
Dig footings
12-inch (or larger per your soil bearing) post-hole auger or hand-dig. Depth = local frost depth + 6 inches for bearing. In Minneapolis that's 60+6 = 66 inches deep. In Houston, 6+6 = 12 inches. Check IRC R403.1.4 + DeckMath's deck-footing-calculator for your state.
Set sonotubes + pour concrete
Sonotube cardboard forms set to grade. Mix concrete to specified PSI (typically 2,500-3,000 psi for residential). Insert post anchor (Simpson ABU66Z) BEFORE concrete cures — anchors set into wet concrete bond stronger than retrofit anchors.
Footing inspection
Schedule the AHJ inspector before pouring concrete. They verify depth + diameter + soil bearing layer + (if required) rebar. Don't pour until they sign off.
Step 3: Ledger board (week 4, 1 weekend)
On attached decks, the ledger is the structural board bolted to the house framing. This is where most deck failures happen if done wrong.
- Remove siding in the ledger zone. Find the rim joist behind it.
- Cut + dry-fit ledger board (PT 2× the same depth as your joists — 2×10 joists = 2×10 ledger).
- Drill 1/2″ × 4-1/2″ lag bolt holes, 16″ o.c. staggered up + down per IRC R507.9.1.3. NEVER attach to brick or stone veneer — must be into wood structural framing.
- Install Z-flashing (aluminum) over the top edge of the ledger to prevent water entry. Tucks under siding above, drapes over ledger top.
- Install lateral-load anchors (Simpson DTT2Z) at 2 minimum per ledger — required by IRC R507.9.2.
- Replace siding around the ledger with proper drainage gap.
Step 4: Posts + beams (week 5, 1 weekend)
With ledger set + footings cured, install posts and beams.
- Cut 6×6 PT posts to height (deck top + ground - footing top). Set into ABU66Z post bases on the cured footings.
- Brace posts plumb with temporary 2×4 stakes.
- Cut beam stock — typically 2-ply 2×10 PT for spans up to 8-10 ft. Glue + nail (10d at 16″ o.c. staggered) the two plies together per R507.5.2.
- Set beams on top of posts. Use Simpson PC6Z post-to-beam caps to mechanically tie them.
- Verify beams are level and post-to-beam connections are tight.
Step 5: Joists (week 6, 1-2 weekends)
Joists are the 'floor' framing. Spacing depends on your decking material — composite needs 16″ o.c. parallel or 12″ o.c. diagonal; PT 5/4×6 can go 16″ o.c., PT 2×6 can go 24″ o.c.
- Cut joists to length (deck width + cantilever). Cantilever max = 1/4 of back-span per R507.6.
- Hang joists on ledger using Simpson LUS210 hangers (or LUS28 / LUS26 to match joist size). 10d nails or specified Simpson SDN screws — DO NOT use deck screws or framing screws in hangers.
- Set joists onto beam. Toenail or use Simpson H1 hurricane ties (mandatory in coastal hurricane zones).
- Install rim joists on ends + double the rim joist for stair landing locations.
- Add blocking — 2× scrap blocks between joists at the midpoint of long spans, prevents joist roll.
Framing inspection
Schedule before installing decking. Inspector verifies joist size + spacing, beam config, hangers, ledger bolts + flashing, lateral anchor, post bases. THIS is where most failures happen — fix before installing decking.
Step 6: Decking (week 7-8, 1-2 weekends)
The fun part — installing the actual deck surface. Process differs slightly between PT and composite.
Pressure-treated decking (face-screw)
Predrill (PT splits easily near edges). Use #8 × 2-1/2″ ceramic-coated deck screws, 2 per joist crossing. Maintain 1/8″ install gap between boards (use a 16d nail as a spacer).
Composite decking (hidden fastener)
Install joist tape over every joist (Trex Joist Tape, Trex Protect, or generic butyl tape) — protects joist from moisture trapped under composite. Run a starter clip at the wall edge. Set first board, install hidden clip per Trex Universal Hidden Fastener instructions, then nest next board into the clip. Repeat. Last board needs a face-screw with a Trex Hideaway plug. ~2 clips per joist crossing.
Edge trim
Composite: install fascia trim around perimeter (Trex sells matching fascia). PT: cap the rim joist with another PT 2×x
Step 7: Stairs (week 8-9, 1 weekend)
IRC R311.7 governs stair geometry. The big rules:
- Riser height: max 7-3/4″, min 4″, every riser within 3/8″ of the others (R311.7.5.1)
- Tread depth: min 10″ + 3/4″ nosing on closed-riser stairs
- Stair width: min 36″ between handrails
- Handrail required on 4+ riser stairs, graspable 1-1/4 to 2″ diameter, 34-38″ above tread nosing (R311.7.8)
- Landing pad at bottom: 3'×3'×4″ thick concrete, level with bottom riser
Layout: total rise (deck top to grade) ÷ desired riser height = number of risers. Total run = (risers - 1) × tread depth. Cut stringers (typically 2×12 PT) using a framing square, install at width spacing (16″ o.c. for cut, 24″ o.c. for solid). Tread + riser boards go on top.
Step 8: Railing + final inspection (week 9-10, 1 weekend)
Required when deck is more than 30″ off grade (R312.1). Standard residential is 36″ minimum height; 42″ is required in some jurisdictions.
- Set posts at corners + every 6 ft along the perimeter. Use through-bolt to rim joist + 1/2″ × 5-1/2″ carriage bolts.
- Install top + bottom rails between posts.
- Install balusters: 4-inch sphere rule (R312.1.3) — every gap must reject a 4-inch sphere. DeckMath's baluster-spacing-calculator solves this exactly.
- Install graspable handrail on stairs (R311.7.8.1).
- Schedule final inspection. Inspector brings the 4″ sphere gauge.
Tools you'll need
Power tools (own or rent)
- Cordless circular saw — basic 6-1/2″ or 7-1/4″ ($100-200 for a good one)
- Cordless drill + impact driver kit (Milwaukee M18 or Dewalt 20V, $200-400)
- Miter saw (10″ minimum, $150-400) — speeds up tread + rail cuts
- Auger or post-hole digger (rent for $40-80/day)
- Pneumatic framing nailer (optional but speeds up everything)
Hand tools
- Framing square + speed square + 4-foot level + 25-ft tape
- Mason's line + stakes for layout
- Bubble level + post level (clip-on, $20)
- Chalk line + marker
- Hammer (16-20 oz framing) + rubber mallet (for board spacing)
Safety + comfort
- Safety glasses + work gloves (PT lumber splinters are nasty)
- Knee pads — you'll spend hours installing decking on your knees
- N95 mask for cutting PT (the chromated copper compounds are not lung-friendly)
- Sturdy boots + long pants (composite shavings cut skin)
Frequently asked questions
How long does it take to build a deck DIY?
First-timer building a 320 sqft deck: 8-12 weekends, typically 60-80 hours of actual labor. Experienced framer: 4-6 weekends, 30-50 hours. Plan on lumber delivery, permit wait, and inspection wait time on top — total project from contract to walk-through is 8-16 weeks.
Can I really build a deck myself?
Yes, if you're comfortable with a circular saw, a drill, basic carpentry math, and reading IRC tables. The hardest skills are layout (squaring the deck) and ledger flashing (water management). YouTube has hundreds of hours on both. Skip the project if you've never used a power tool — start with a smaller carpentry project first.
What tools do I need?
Minimum kit: circular saw, drill + impact driver, framing square, 4-ft level, tape measure, mason's line, post-hole digger or auger. Nice-to-have: miter saw (speeds up cuts), framing nailer (speeds up framing), pneumatic stapler (speeds up joist tape on composite). Total tool investment for a first-timer: $400-800.
How much can I save by DIYing?
Materials are typically 40-50% of installed price. A competent DIYer with weekends free saves 50-60% of total project cost. On a $20,000 deck, that's $10,000-12,000 saved at the cost of ~80 hours of weekend work — equivalent to $125-150/hour. Worth it for most homeowners.
What's the order of operations?
Plan + permit → layout + footings → ledger → posts + beams → joists → decking → stairs → railing → final inspection. NEVER reverse: don't pour footings before permit, don't install decking before framing inspection, don't install railing before stairs are level.
What's the easiest part? Hardest?
Easiest: installing decking (just screw boards in place). Hardest: layout (squaring the deck) and ledger flashing (one wrong cut = water in your house wall). Spend extra time on layout — every error compounds downstream.
What if I make a mistake?
Most mistakes are recoverable. Joist hung too high — pull hanger nails, reposition. Footing too shallow — pour another 6 inches on top. Decking gap inconsistent — pull screws, reposition with consistent spacers. Major mistakes (footing diameter wrong, joist span exceeded) require demolition + redo of that section. Catching mistakes at the framing inspection saves you from rebuilding after decking is installed.
Do I need to be licensed to build my own deck?
No — homeowners can build their own decks on their own property in all 50 US states. You just need a building permit. If you're hiring help, the helper needs to be either an unpaid volunteer (friend, family) or a licensed contractor (no unlicensed paid labor).
What if my deck fails inspection?
Inspector tells you what's wrong, you fix it, schedule re-inspection ($50-150 fee in most AHJs). Common failures: missing lateral anchor, undersized hangers, shallow footings, baluster spacing too wide. Fix it and re-inspect — most pass on the second try.
Should I hire a contractor instead?
If: your time is worth more than $100/hour, you've never used a circular saw, your deck is multi-tier or > 16 ft above grade (non-prescriptive design), or you live in a market where labor is cheap (South region 0.92×). Otherwise, DIY usually nets out 2-3× what your day-job pays.