A wood deck on a California house follows Section R507 of the 2025 California Residential Code (CRC). Footings go at least 12 inches below undisturbed ground (2025 CRC §R507.3.2). A ledger is at least a nominal 2x8, No. 2 or better, and may never hang on toenails, nails in withdrawal or stone or masonry veneer (2025 CRC §R507.9.1.1, §R507.8). Flashing over a ledger runs at least 2 inches up the wall (2025 CRC §R507.9.1.5). A deck more than 30 inches above grade, measured at any point within 36 inches of its edge, needs a guard at least 42 inches high (2025 CRC §R321.1.1, §R321.1.2).
This page walks through a deck from the ground up: the permit question, materials and fasteners, footings and posts, beams and joists, the ledger connection to the house, lateral hold-downs and guards. The numbers are in our own words with the section to look up; the code tables themselves are on the free code viewer.
Does the deck need a permit?
A deck is exempt from a building permit only if all four are true: it is not over 200 square feet, it is not more than 30 inches above grade at any point, it is not attached to a dwelling or townhouse, and it does not serve the required exit door (2025 CRC §R105.2).
Example: a free-standing deck of 180 square feet, 24 inches high, not at the exit door, is exempt. Bolt the same deck to the house and it needs a permit.
Materials and fasteners
- Lumber grade. Deck joists, beams and posts of sawn lumber are No. 2 grade or better. The deck is designed for the code live load or the ground snow load, whichever is greater. (2025 CRC §R507.1, §R507.2.1)
- Ground contact. Wood that touches the ground, or is set in concrete that touches the ground or is exposed to weather, and that supports a permanent structure for people, is pressure-preservative-treated wood approved for ground contact. (2025 CRC §R304.1.2)
- Fasteners in treated wood. Hot-dipped zinc-coated galvanized steel, stainless steel, silicon bronze or copper, nuts and washers included. Steel bolts 1/2 inch or larger are exempt. Connectors such as joist hangers follow the maker's recommendation; with none, they are at least ASTM A653 G185 galvanized steel or equal. (2025 CRC §R304.3.1)
- Near salt water. Fasteners and connectors exposed to salt water, or within 300 feet of a salt water shoreline, are stainless steel. (2025 CRC §R507.2.3)
- Bolt holes. Drilled 1/32 to 1/16 inch larger than the bolt. (2025 CRC §R507.2.3)
- Deck flashing material. Corrosion-resistant metal at least 0.019 inch thick, or an approved nonmetallic material compatible with the wall and decking. (2025 CRC §R507.2.4)
Footings and posts
- Depth. Deck footings go at least 12 inches below the undisturbed ground surface. Where the deck is attached to a structure with frost protection, the deck footings need frost protection too. (2025 CRC §R507.3.2)
- When footings are not needed. A free-standing deck whose joists rest on grade along their whole length needs none. Neither does a free-standing deck that meets all three of these: joists bear directly on precast concrete pier blocks at grade, with no beams or posts; it is not over 200 square feet; and the walking surface is not more than 20 inches above grade at any point within 36 inches of the edge. (2025 CRC §R507.3)
- Post height. No tabulated post height is over 14 feet, measured from the underside of the beam to the top of the footing or pier. (2025 CRC §R507.4)
- Post base. Where a post bears on a concrete footing, its base is held against sideways movement by an approved connector, or by setting the post at least 12 inches into the surrounding soil or concrete pier. On expansive, compressible or shifting soil, the soil may not be counted on. (2025 CRC §R507.4.1)
Beams, joists and decking
- Built-up beams. Plies are fastened with at least two rows of 10d (3-inch x 0.128-inch) nails at 16 inches on center along each edge, and plies are continuous between bearings. (2025 CRC §R507.5)
- Beam bearing. At least 1 1/2 inches on wood or metal and 3 inches on concrete or masonry, across the full beam width. (2025 CRC §R507.5.1)
- Beam cantilever. Up to one-fourth of the beam's actual span. An 8-foot span allows a 2-foot cantilever. (2025 CRC §R507.5.1)
- Joist bearing. The same 1 1/2 inches on wood or metal and 3 inches on concrete or masonry. Joists on top of a single-ply beam or ledger get a mechanical connector; joists framing into its side hang in approved joist hangers. (2025 CRC §R507.6.1)
- Lateral restraint of joists. Joist hangers or blocking used to restrain joist ends are at least 60% of the joist depth. A rim joist used for restraint is fastened to each joist end with at least three 10d (3-inch x 0.128-inch) nails or three No. 10 x 3-inch wood screws. (2025 CRC §R507.6.2)
- Decking. Each board is fastened to each joist with at least two 8d deformed shank nails or two No. 8 wood screws. (2025 CRC §R507.7)
Worked example: a 2x12 joist is 11 1/4 inches deep, so a hanger used for restraint must be at least 0.60 × 11 1/4 = 6 3/4 inches deep.
Joist spans at a glance
Spans come from the joist span table in 2025 CRC §R507.6. For No. 2 Douglas fir-larch, hem-fir or spruce-pine-fir at a 40 psf live load, joists 16 inches on center can span:
| Joist size | Maximum span at 16 inches on center |
|---|---|
| 2x6 | 8 feet 4 inches |
| 2x8 | 11 feet 1 inch |
| 2x10 | 13 feet 7 inches |
| 2x12 | 15 feet 9 inches |
Closer spacing allows a longer span and wider spacing a shorter one. Example: to span 13 feet, a 2x10 at 16 inches (13 feet 7 inches) works, but a 2x12 at 24 inches (12 feet 10 inches) does not. Joist spacing is also limited by the decking: 2-inch decking laid perpendicular to the joists allows joists up to 24 inches apart, while 1 1/4-inch decking laid perpendicular allows 12 inches (single span) or 16 inches (multiple span) (2025 CRC §R507.7).
Attaching the deck to the house
Positive connection or self-supporting
Exterior landings, decks, balconies and stairs are positively anchored to the house for vertical and lateral loads, or designed to stand on their own. The connection may not rely on toenails or on nails loaded in withdrawal. If the inspector cannot verify a positive connection, the deck must be self-supporting. (2025 CRC §R318.5, §R507.8)
The ledger and the band joist
- Ledger. At least nominal 2x8, No. 2 or better, of pressure-preservative-treated Southern pine, incised treated hem-fir, or decay-resistant naturally durable wood. A ledger may not carry concentrated loads from beams or girders, and may not be supported on stone or masonry veneer. (2025 CRC §R507.9.1.1)
- Band joist. The house band joist carrying the ledger is at least 2-inch nominal solid-sawn spruce-pine-fir or better, or at least 1-inch nominal engineered wood rim board, bearing fully on the house structure. (2025 CRC §R507.9.1.2)
Lag screw spacing
For a 40 psf live load, with 1/2-inch lag screws through the ledger and up to 1/2 inch of sheathing, the maximum on-center spacing depends on the joist span (2025 CRC §R507.9.1.3):
| Deck joist span | Lag screw spacing |
|---|---|
| 6 feet | 30 inches |
| 8 feet | 23 inches |
| 10 feet | 18 inches |
| 12 feet | 15 inches |
| 14 feet | 13 inches |
| 16 feet | 11 inches |
| 18 feet | 10 inches |
Pilot holes for the 1/2-inch lags are 1/2 inch through the ledger and sheathing and 5/16 to 3/8 inch into the band joist, and the lag tip must reach fully past the inside face of the band joist. Lags and bolts are staggered top to bottom along the ledger. (2025 CRC §R507.9.1.3)
Ledger flashing
Where a ledger attaches to wood-frame construction, flashing goes above it (2025 CRC §R507.9.1.5):
- Up the wall: at least 2 inches above the ledger. If a window or door opening is less than 2 inches above the ledger, the flashing runs to the bottom of the opening.
- Out over the ledger: at least 4 inches past the ledger face, or to the ledger face and at least 1/4 inch down it.
- No flashing needed where the ledger is held at least 1/4 inch off the wall covering for drainage and air flow.
A water-resistive barrier is also required behind the ledger (2025 CRC §R703.2).
Lateral load hold-downs
Deck lateral loads go to the ground or to a structure that can resist them. With the detail in Figure R507.9.2(1), hold-down tension devices go in at least two places per deck, within 24 inches of each end, each rated at least 1,500 pounds. With the detail in Figure R507.9.2(2), at least four hold-downs are needed, each rated at least 750 pounds. (2025 CRC §R507.9.2)
Guards on the deck
- When. A guard is required where the deck surface is more than 30 inches above the grade below, measured at any point within 36 inches horizontally of the edge. (2025 CRC §R321.1.1)
- Height. At least 42 inches from the deck surface in California. The 34-inch height applies only to the open side of a stair. (2025 CRC §R321.1.2)
- Openings. No opening from the deck surface up to the required height may pass a 4-inch sphere. (2025 CRC §R321.1.3)
- Posts. Where 4x4 wood posts carry guard loads applied at the top of the guard, the posts may not be notched where they connect to the deck framing. A guard fastened to the side of a joist or beam may not rely only on fasteners loaded in end-grain withdrawal. (2025 CRC §R507.10.2)
- Glass. Glass in a guard is a hazardous location for safety glazing, whatever its size. (2025 CRC §R324.4.4)
Stair, handrail and landing numbers for the deck stairs are on our stair and guard guide. The landing at a slider that is not the required egress door may be up to 7 3/4 inches below the threshold (2025 CRC §R318.3.2).
Other deck rules worth knowing
- Balcony ventilation. Enclosed framing in exterior balconies and elevated walking surfaces exposed to rain, snow or irrigation water needs cross-ventilation openings of at least 1/150 of the area of each separate space. (2025 CRC §R304.1.3)
- Job-site stair to the deck. During construction, a stairway with 4 or more risers, or rising more than 30 inches, whichever is less, needs at least one handrail and a stair rail on each unprotected side under Title 8 (8 CCR §1626).
Traps and study advice
- The ledger list is short. Bolts or lag screws into a solid band joist, with flashing. Toenails, nails in withdrawal and veneer are always wrong answers.
- Two "12 inches". Footings 12 inches below undisturbed ground, and posts 12 inches into soil or a pier for base restraint.
- Two "200 square feet". The permit exemption and the pier-block exemption both use 200 square feet, with different heights: 30 inches for the permit, 20 inches for pier blocks.
- 42, not 36. A California deck guard is 42 inches.
- Read the span column carefully. Find the joist size, then the spacing column, then compare with the span the question gives.
For the rest of this exam section, read the Framing and Structural Components notes.