Lumber Calculator

Deck Ledger Board: How to Attach a Deck to a House

Updated October 2026

The ledger is the board bolted to the house that carries the house end of the deck joists. A failed ledger connection is the most common cause of serious deck collapses, so this is the connection inspectors look at hardest.

Ledger requirements (IRC 2021 R507.9)

  • Size: at least a 2x8, pressure-treated, and generally the same depth as the joists
  • What it attaches to: the house’s band (rim) joist, which must be solid lumber at least 2” nominal (or an engineered rim the manufacturer approves for decks)
  • Fasteners: ½” lag screws or through-bolts with washers, or approved proprietary ledger screws, in a staggered pattern near the top and bottom of the ledger
  • Spacing: set by the joist span in IRC Table R507.9.1.3(1). The longer the joists, the closer the fasteners.
  • Flashing: corrosion-resistant flashing to keep water out of the house framing

Where a ledger can’t go

Don’t attach a ledger to:

  • brick or stone veneer: it isn’t structural
  • cantilevered floor framing or bay windows
  • siding or sheathing alone. Remove the siding where the ledger goes so it bears directly on the sheathing and band joist.

In these cases, build a freestanding deck with its own beam and posts along the house.

Flashing the ledger

Water getting behind the ledger rots the house’s band joist. A typical detail:

  1. Remove siding where the ledger will go.
  2. Apply self-adhering membrane over the sheathing behind the ledger area, lapped under the house wrap above.
  3. Install the ledger, then add Z-flashing over the top of the ledger tucked up under the siding and house wrap.
  4. Use ½” spacers or washers behind the ledger if your detail calls for a drainage gap.

Lateral load connection

The IRC also requires the deck to be tied into the house floor framing so it can’t pull away sideways. Typically that’s two hold-down devices connecting deck joists to house joists (R507.9.2). Your inspector will look for this.

Joist hangers

Hang joists from the ledger with joist hangers sized for the joist, using the manufacturer’s fasteners. Pressure-treated lumber is corrosive to standard galvanizing, so use hot-dip galvanized (G185 / ZMAX-type) or stainless hangers and nails.

Materials

For a 16 ft attached deck you’ll typically need:

  • a 16 ft 2x10 ledger (matching 2x10 joists)
  • 17 ft of flashing
  • about two dozen ½” fasteners, depending on joist span
  • 13 joist hangers at 16” on center

The deck calculator includes the ledger, flashing, fasteners and hangers in its materials list for attached decks. If your house can’t take a ledger, switch it to freestanding.