Lumber Calculator

How to Build a Deck: Step-by-Step Overview

Updated October 2026

Building a deck is a sequence of jobs that each depend on the one before: get the structure right and the decking and railing are straightforward. Here’s the full order, with links to the detailed guides.

1. Plan and get a permit

  • Decide size, height and shape, and whether it’s attached to the house (ledger) or freestanding.
  • Most decks that are attached, over 200 sq ft or over 30” high need a permit. Your building department will tell you the frost depth, inspection steps and any local amendments to the IRC.
  • Run your numbers through the deck calculator to get framing sizes, footings and a materials list for the permit drawing.

2. Lay out and square the deck

Set batter boards and string lines for the outer edges, and square them with the 3-4-5 rule. Mark footing locations from the strings.

3. Dig and pour footings

Dig to below the frost line (at least 12”), size the footings for the load, and pour. See deck footings: size, depth and how many. Many jurisdictions inspect footing holes before the pour.

4. Install the ledger (attached decks)

Remove siding, flash the wall, and bolt the ledger to the house band joist with ½” fasteners in a staggered pattern. This is the most critical connection on the deck. See deck ledger board.

5. Set posts and beams

Attach post bases to the footings, set 6x6 posts, and mount the beam with post caps sized for the beam. Cut posts so the beam is level and at the right height for the joists. Beam size and post spacing come from the span tables.

6. Frame the joists

Hang joists from the ledger with hangers, run them over the beam, and tie them down with hurricane ties. Space them for your decking, usually 16” on center (see deck joist spacing). Add a rim joist and blocking.

7. Install decking

Start at the outer edge or the house, keep boards straight with a string line, and gap them for your material (see deck board spacing). Stagger the butt joints over joists.

8. Add railing

Decks more than 30” above grade need guards at least 36” tall with openings under 4”. Bolt posts through the rim and block behind them. See deck railing height.

9. Build the stairs

Calculate risers and treads with the stair stringer calculator, cut 2x12 stringers, and set them on a concrete pad. See how to cut stair stringers.

10. Final inspection and finish

Schedule the final inspection, then seal or stain wood decking once it’s dry enough to absorb finish. For new pressure-treated lumber, that’s often a few weeks to months. The deck stain calculator works out how many gallons you need.

What’s the hardest part?

For most DIYers it’s the footings and ledger: digging deep holes, getting posts plumb and in line, and flashing and bolting the ledger correctly. Those are also the parts that matter most for safety, so they’re worth extra care or professional help.

Best time of year to build

Late spring through early fall in most climates: the ground is diggable, concrete cures properly, and wood is drier. Book contractors early, because spring is peak deck season.