Code & safety

Deck ledger boards: how to attach a deck to a house safely

By the Solid Decking team · Updated

Quick answer

A deck ledger is the board that attaches a deck to the house. Under the IRC it must be at least a 2x8 of treated lumber, fastened into the house’s band joist with 1/2-inch lag screws or bolts (or approved structural screws) at the spacing in the code table, flashed so water can’t get behind it, and never attached to brick or stone veneer.

The ledger carries roughly half the weight of an attached deck and everyone standing on it. When decks collapse, the house connection is one of the most common points of failure — usually because the ledger was nailed instead of bolted, fastened only to siding or sheathing, or left without flashing until the band joist behind it rotted. This guide covers how a ledger should be done under the 2021 International Residential Code (IRC section R507.9).

Ledger size and material

  • Minimum size: 2x8 nominal. In practice the ledger matches the depth of the joists it carries (2x8, 2x10, or 2x12).
  • Material: pressure-treated or naturally durable lumber, No. 2 grade or better.
  • What it attaches to: the house’s band joist (rim board) — at least 2-inch-nominal solid lumber or an engineered rim of adequate thickness. Not siding, not sheathing alone, and not an overhanging floor without engineering.

Fastening a deck ledger

The IRC’s prescriptive method uses 1/2-inch-diameter lag screws or through-bolts with washers, spaced according to the deck’s joist span (IRC Table R507.9.1.3(1)) and staggered between the top and bottom of the ledger with specified edge distances. Longer joist spans mean tighter spacing.

  • Through-bolts are preferred where you can reach the back of the band joist (an unfinished basement).
  • Lag screws must fully penetrate the band joist; pre-drill as required.
  • Structural ledger screws from several manufacturers are approved alternatives when installed exactly per their evaluation report — often faster, with no pre-drilling.
  • Nails alone are never acceptable for a ledger connection.

Fasteners and joist hangers in contact with treated lumber must be corrosion-resistant — hot-dip galvanized, stainless steel, or other approved coatings (IRC R507.2.3). Mismatched hardware corrodes, and corroded hangers are a quiet cause of failures on older decks.

Flashing: the detail that saves the house

The IRC requires corrosion-resistant flashing where a deck attaches to a wood-framed wall (R703.4). The goal is to send water out and away, not behind the ledger:

  1. Remove the siding where the ledger will go so it bears directly on the sheathing and band joist.
  2. Install self-adhered membrane over the sheathing behind the ledger area, lapped under the house wrap above.
  3. Fasten the ledger, then install a metal or plastic Z-flashing (or cap flashing) over the top of the ledger, tucked under the house wrap and siding above.
  4. Leave a small gap between the decking and the house so debris doesn’t pack against the wall.

Without it, water runs down the wall, gets trapped behind the ledger, and rots the band joist — the exact piece holding the deck up — out of sight.

Lateral load connections

Besides carrying weight down, the ledger keeps the deck from pulling away from the house. The IRC’s prescriptive option is a lateral load connection: hold-down tension devices connecting the deck joists to the house floor framing in at least two places, within 24 inches of each end of the deck, each rated at least 1,500 pounds — or four devices rated at least 750 pounds (R507.9.2). Your building department may accept other engineered methods.

When you can’t use a ledger

  • Brick or stone veneer: the IRC prohibits supporting a ledger on veneer. Build freestanding or use an engineered connection to the structure behind it.
  • Cantilevered floors and bay windows: the band joist there may not be supported to carry a deck. Freestanding is usually simpler.
  • Unknown or deteriorated rim: if the band joist is rotted or you can’t confirm what it is, fix it or go freestanding.

A freestanding deck adds a beam and posts along the house side instead of a ledger. It costs a bit more but avoids opening the house wall at all.

Signs a deck ledger is failing

  • A gap opening between the deck and the house, or the deck pulling away.
  • Rust streaks below fasteners or corroded joist hangers.
  • Water stains, soft wood, or mushrooms on the band joist inside the basement.
  • Nails instead of bolts or screws holding the ledger.
  • No visible flashing above the ledger.

If you see a gap or movement at the house, keep people off the deck until it’s inspected. Our repair-or-replace checker flags this as an urgent issue, and ledger repair and re-flashing is one of the most common jobs we do on older Peoria-area decks. For the flashing details, see deck flashing and joist tape.

Frequently asked questions

What size should a deck ledger board be?

The IRC’s prescriptive minimum is a 2x8, of treated or naturally durable lumber, and the ledger is usually the same depth as the deck joists. It must fasten into the house’s band joist (rim board), not just the sheathing or siding.

Can you attach a deck ledger to brick?

Not to brick or stone veneer — veneer is not structural and the IRC prohibits supporting ledgers on it. Options are a freestanding deck or an engineered attachment to the structure behind the veneer.

Do deck ledgers need flashing?

Yes. The IRC requires corrosion-resistant flashing where a deck attaches to a wood-framed wall, so water can’t get behind the ledger and rot the band joist.

What fasteners hold a deck ledger?

Prescriptively, 1/2-inch lag screws or through-bolts with washers at the spacing in the code’s ledger table, staggered top and bottom. Approved structural ledger screws can be used per their listing. Nails alone are not acceptable.

Related guides

All deck guides →

Planning a project in the Peoria area?

Where we work: Peoria · East Peoria · Pekin · Morton · Washington · Dunlap · Chillicothe · Bartonville · Peoria Heights · Germantown Hills · Metamora · Eureka · all service areas

Ready to start your deck project?

Free on-site quotes within about 25 miles of Peoria. Tell us what you have in mind — we reply within one business day.