SwiftTools

Deck Ledger Board Calculator

A 20-foot-wide deck needs a 20-foot ledger board, 2 sixteen-foot boards, 32 lag bolts, 22 feet of flashing, and 3 support posts. Enter your deck width, lumber length, and post spacing below for your exact ledger takeoff.

Your deck ledger
ledger = deck width · boards = ceil(ledger ÷ stock length) · lag bolts = ceil(ledger ÷ 1.33) × 2 · flashing = ledger + 2 ft · posts = floor(ledger ÷ post spacing) + 1

Lag bolts are 1/2-inch lag screws or through-bolts at 16 inches on center, staggered in two rows, per IRC R507.9.1 — about one bolt pair every 1.33 feet of ledger. Flashing runs 1 foot past each end of the ledger. Ledger boards are the same size as your joists, usually 2x8 or 2x10 pressure-treated lumber.

Planning estimate — not a structural design. The ledger is the safety-critical part of a deck: most serious deck collapses start at a failed ledger attachment. Confirm fastener spacing and flashing with your local code and a licensed contractor before you build.

How the deck ledger board calculator works

The ledger is one board the length of the deck where it meets the house, so ledger length equals deck width along the house. Boards to buy is that length divided by the stock length you can carry home, rounded up: a 20 ft ledger from 16 ft boards takes 2 boards with a splice, while 20 ft stock does it in one. Buy the longest stock that fits your vehicle and the splice location.

Lag bolts are where the code gets specific. IRC R507.9.1 calls for 1/2-inch lag screws or through-bolts at 16 inches on center, staggered vertically in two rows — about one bolt pair every 1.33 feet of ledger. That is why the count is ceil(ledger / 1.33) x 2: a 20 ft ledger needs 16 pairs, or 32 bolts. The exact spacing in the code table varies with joist span, so treat this as the standard pattern and check the table for long spans.

Flashing runs the ledger length plus 2 feet — 1 foot past each end — so water running down the house wall is carried out over the ledger instead of sitting behind it. Posts are floor(ledger / post spacing) + 1: the +1 is the second end post, the same off-by-one that catches every first takeoff. A 20 ft ledger at 8 ft spacing needs 3 posts, not 2.

Worked example: a 20 ft wide deck, 16 ft lumber, 8 ft post spacing. Ledger = 20 ft. Boards = ceil(20 / 16) = 2. Lag bolts = ceil(20 / 1.33) x 2 = 16 x 2 = 32. Flashing = 20 + 2 = 22 ft. Posts = floor(20 / 8) + 1 = 3. A smaller 12 ft deck on 12 ft stock needs 1 board, 20 bolts, 14 ft of flashing, and 2 posts.

Common mistakes: bolting the ledger to brick veneer, stucco, or a cantilevered floor overhang — the ledger must land on solid rim or band joist framing, never on veneer; skipping the flashing, which rots the rim joist from the inside out; and spacing bolts by feel instead of the code table. Ledger failures are the leading cause of serious deck collapses, and they almost always start at the attachment, not the timber.

ledger = deck width · boards = ceil(ledger / stock length) · lag bolts = ceil(ledger / 1.33) x 2 (16 in OC, staggered, 2 rows) · flashing = ledger + 2 ft · posts = floor(ledger / post spacing) + 1

Related tools

Count the rest of the frame with the Deck Boards Calculator and the Deck Joist Span Calculator, check the stairs with the Deck Stair Calculator, and size the beam with the Pergola Beam Calculator.

Deck ledger board calculator FAQ

How long should a deck ledger board be?

As long as the deck is wide where it meets the house — ledger length equals deck width. A 20 ft wide deck needs a 20 ft ledger, which you buy as two 16 ft boards spliced together or one 20 ft board.

How many lag bolts does a deck ledger need?

Count on about one pair every 1.33 feet: ceil(ledger length / 1.33) x 2. A 20 ft ledger needs 32 half-inch lag bolts or through-bolts, in two staggered rows at 16 inches on center per IRC R507.9.1.

What size lag bolts for a deck ledger?

1/2-inch diameter lag screws or through-bolts, per IRC R507.9.1. Through-bolts are preferred where you can reach the inside of the rim joist; hot-dipped galvanized or stainless fasteners are required with pressure-treated lumber.

How much flashing does a deck ledger need?

The ledger length plus 2 feet — 1 foot past each end. A 20 ft ledger needs 22 ft of flashing, minimum 0.019-inch galvanized steel or copper, lapped so water runs out over the ledger, not behind it.

How many posts does a deck ledger need?

Floor(ledger length / post spacing) + 1. A 20 ft ledger at 8 ft spacing needs 3 posts — one at each end and one in the middle. The +1 is the second end post, which first-time takeoffs usually miss.

Can I attach a deck ledger to brick veneer?

No — never. A ledger must bolt into solid rim or band joist framing. Brick veneer, stucco, and cantilevered floor overhangs cannot carry the load. A deck on a brick house is built freestanding, with its own beam and posts at the house side.

Do I need a permit for a deck ledger?

Almost always, yes. Ledger attachment is structural and code-inspected in most jurisdictions — the inspector checks fastener type, spacing, and flashing before the decking goes on. Check your local building department before ordering lumber.