The deck ledger table sets your fastener spacing — don't eyeball it
CRC R507.9.1 fixes ledger fastener spacing by load and span — and makes the flashing part of the structural connection.
The connection that fails first
Here's the thing: the deck ledger — the board bolted flat against the house that carries the inside edge of the deck — is a common origin of serious deck failures. Often it isn't a failed post or the beam; it's water and pull-out at the house connection. So the California Residential Code doesn't leave that connection to judgment. Section R507.9.1 spells it out fastener by fastener, and most of what a plan checker catches here is something that got eyeballed instead of looked up.
Two traps show up over and over: guessing the lag-screw spacing, and treating the flashing as trim. The code closes both.
The ledger itself is spec'd
Before you get to fasteners, R507.9.1.1 tells you what the ledger can even be: a minimum 2-inch by 8-inch nominal, No. 2 grade or better board of pressure-preservative-treated Southern pine, incised pressure-treated hem-fir, or decay-resistant naturally durable wood. Two more limits people miss: a deck ledger shall not support concentrated loads from beams or girders, and it shall not be supported on stone or masonry veneer. A ledger lagged through a stone veneer face is a correction, not a coin flip.
The spacing is in a table — pull your row
This is the part everyone freehands. R507.9.1.3 doesn't say "use lag screws." It sends you to Table R507.9.1.3(1), which sets on-center fastener spacing by live/snow load and joist span. More load, longer joists, closer fasteners — and the table does the arithmetic for you.
Read a row. At 40 psf live load with a 12-foot joist span, half-inch lag screws (with 1/2-inch maximum sheathing) go in at 15 inches on center. Stretch to a 16-foot span and that tightens to 11 inches — same load, same screw, nearly double the fastener count. Swap to a half-inch bolt at the same sheathing and that 12-foot row opens back up to 29 inches, which is exactly why the table breaks out lag screws and bolts as separate columns.
Verified against CRC Table R507.9.1.3(1): at 40 psf live load, a 1/2-inch lag screw (1/2-inch max sheathing) is 15 in. o.c. at a 12-ft joist span and 11 in. o.c. at 16 ft. Footnote a: interpolation between rows is permitted; extrapolation past the table is not.
That footnote is load-bearing. If your span lands between two rows, interpolate. If it runs past the end of the table — or past the 40-psf live and 50/60/70-psf snow rows the table actually lists — you can't extrapolate your way there; that's an engineered design. And the loads bake in a 10 psf dead load, with snow not acting concurrently with live load (footnote c).
The companion Table R507.9.1.3(2) sets the geometry. In the ledger, fasteners sit 2 inches from the top edge and 3/4 inch from the bottom, 2 inches from the ends, with rows 1-5/8 inches apart; the band joist flips the top and bottom edge distances. Ends and row spacing cap at 5 inches. The lag holes get predrilled with two bits — 1/2 inch through the ledger, 5/16 to 3/8 inch into the band joist — and the fasteners themselves have to meet R507.2.3. (The figures that show the stagger aren't reproduced here; the dimensions above are the enforceable part.)
The flashing is structural, not weatherproofing
Now the trap that actually drops decks. Many ledger failures don't start as fastener pull-out — they start as rot, because water got behind the ledger and sat against the band joist. So the code makes the flashing part of the connection, not a finish detail.
R507.9.1.5 requires flashing above the ledger that extends vertically not less than 2 inches above it and horizontally not less than 4 inches beyond the ledger face — or to the ledger face and not less than 1/4 inch down the ledger face. R507.9.1.6 then makes the water-resistive barrier lap over the flashing's vertical leg — by at least 2 inches, or the full leg height if it's shorter — so water sheds outward, never behind. And R507.9.1.7 handles retrofits: attach to an existing wall with no water-resistive barrier and you must add one behind the ledger and flashing, with a self-adhering counterflashing lapped not less than 2 inches over the flashing leg.
Here's the tell that this is structural: R703.4 — the general wall-flashing section — points back to R507.9.1.5 for deck ledgers. They live in the same sentence. Value-engineering the flashing off a "low deck" doesn't save money; it just moves the failure a few years down the road. None of this replaces your engineer or your AHJ — verify the edition and any local amendment with your jurisdiction.
What CrossBeam does with it
CrossBeam reads a deck detail against R507.9.1 the way a plan checker will — checking that the ledger spec, the fastener spacing for the actual load and span, the edge distances, and the ledger flashing are all present and consistent. It flags the eyeballed spacing and the missing flashing lap before the set hits the counter, so the connection that fails first isn't the one you guessed on.