Skip to content
CalContractorPrep
Menu

California Deck Requirements: Footings, Ledger Attachment, Flashing, Joist Spans and Guards

Section 2 of 5, about 20% of the B exam

Updated

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.

Read the Section 2 study notes: Framing and Structural Components

Practice questions

Think of your answer first, then open the explanation.

  1. 1. Under the California Residential Code deck provisions, deck footings must be placed at least how far below the undisturbed ground surface?

    Framing and Structural Components

    • A. 6 inches
    • B. 12 inches
    • C. 18 inches
    • D. 24 inches
    Show answer

    Correct answer: B

    • A. 6 inches

      Wrong: 6 inches is too shallow.

    • B. 12 inches

      Correct answer

      Right: 12 inches below undisturbed ground is the minimum.

    • C. 18 inches

      Wrong: 18 inches is deeper than the minimum.

    • D. 24 inches

      Wrong: 24 inches is deeper than the minimum.

    Explanation

    California Residential Code section R507.3.2 requires deck footings to be at least 12 inches below the undisturbed ground surface. Where the deck attaches to a frost-protected structure, section R507.3.3 adds a frost-protection requirement on top of this minimum.

  2. 2. A deck post bears on a concrete footing and no post-base connector is used. To provide lateral restraint at the base, how far must the post be embedded in the surrounding concrete pier?

    Framing and Structural Components

    • A. 4 inches
    • B. 6 inches
    • C. 8 inches
    • D. 12 inches
    Show answer

    Correct answer: D

    • A. 4 inches

      Wrong: 4 inches is far short of the required embedment.

    • B. 6 inches

      Wrong: 6 inches is short of the required embedment.

    • C. 8 inches

      Wrong: 8 inches is short of the required embedment.

    • D. 12 inches

      Correct answer

      Right: at least 12 inches of embedment, or an approved connector.

    Explanation

    California Residential Code section R507.4.1 says a deck post bearing on a concrete footing must be restrained against sideways movement at its base. The two ways to do it are an approved connector or setting the post at least 12 inches deep into the surrounding soil or concrete pier.

  3. 3. A crew is attaching a new deck to the side of a house. Which attachment method does the California Residential Code prohibit?

    Framing and Structural Components

    • A. Relying on toenails to hold the deck to the house
    • B. Through-bolting the ledger to the house band joist
    • C. Designing the deck as self-supporting on its own posts and footings
    • D. Fastening the ledger to the band joist with 1/2-inch lag screws
    Show answer

    Correct answer: A

    • A. Relying on toenails to hold the deck to the house

      Correct answer

      Right: toenails may not be relied on for the deck-to-house connection.

    • B. Through-bolting the ledger to the house band joist

      Wrong: through-bolts are a recognized ledger fastener in R507.9.1.3.

    • C. Designing the deck as self-supporting on its own posts and footings

      Wrong: a self-supporting deck is one of the two allowed options in R318.5.

    • D. Fastening the ledger to the band joist with 1/2-inch lag screws

      Wrong: 1/2-inch lag screws are a recognized ledger fastener in R507.9.1.3.

    Explanation

    California Residential Code section R318.5 requires decks to be positively anchored to the primary structure for vertical and lateral loads, or designed as self-supporting, and the attachment may not rely on toenails or on nails loaded in withdrawal. Section R507.9.1.3 gives prescriptive spacing for 1/2-inch lag screws and bolts at the ledger.

  4. 4. Which deck ledger installation meets the California Residential Code?

    Framing and Structural Components

    • A. A 2x6 pressure-treated Southern pine ledger lagged to the band joist
    • B. A 2x10 ledger fastened through stone veneer into the wall
    • C. A 2x8 ledger that also carries the end of a beam
    • D. A 2x8 No. 2 pressure-treated Southern pine ledger bolted to the band joist
    Show answer

    Correct answer: D

    • A. A 2x6 pressure-treated Southern pine ledger lagged to the band joist

      Wrong: 2x6 is smaller than the 2x8 minimum.

    • B. A 2x10 ledger fastened through stone veneer into the wall

      Wrong: a ledger may not be supported on stone or masonry veneer.

    • C. A 2x8 ledger that also carries the end of a beam

      Wrong: a ledger may not carry concentrated loads from beams or girders.

    • D. A 2x8 No. 2 pressure-treated Southern pine ledger bolted to the band joist

      Correct answer

      Right: a 2x8 No. 2 treated Southern pine ledger meets the size, grade and material rules.

    Explanation

    California Residential Code section R507.9.1.1 requires a deck ledger to be at least 2-inch by 8-inch nominal, No. 2 grade or better, of pressure-preservative-treated Southern pine, incised treated hem-fir or decay-resistant wood. A ledger may not carry concentrated loads from beams or girders and may not be supported on stone or masonry veneer.

  5. 5. A deck ledger is bolted tight to a wood-frame house wall, with no window or door just above it. The flashing above the ledger must extend at least how far up the wall?

    Framing and Structural Components

    • A. 2 inches
    • B. 3 inches
    • C. 4 inches
    • D. 6 inches
    Show answer

    Correct answer: A

    • A. 2 inches

      Correct answer

      Right: at least 2 inches up the wall above the ledger.

    • B. 3 inches

      Wrong: 3 inches is not the code figure.

    • C. 4 inches

      Wrong: 4 inches is the horizontal extension beyond the ledger face, not the vertical leg.

    • D. 6 inches

      Wrong: 6 inches is more than the code minimum.

    Explanation

    California Residential Code section R507.9.1.5 requires flashing above a ledger attached to wood-frame construction, extending at least 2 inches vertically up the wall, and horizontally at least 4 inches beyond the ledger face or to the face and at least 1/4 inch down it.

  6. 6. A deck uses the lateral-load detail of CRC Figure R507.9.2(1). What is the minimum hold-down requirement?

    Framing and Structural Components

    • A. Two devices, within 24 inches of each end of the deck, each rated at least 750 pounds
    • B. One device at mid-length of the ledger, rated at least 1,500 pounds
    • C. Two devices, within 24 inches of each end of the deck, each rated at least 1,500 pounds
    • D. Two devices, within 48 inches of each end of the deck, each rated at least 1,500 pounds
    Show answer

    Correct answer: C

    • A. Two devices, within 24 inches of each end of the deck, each rated at least 750 pounds

      Wrong: 750 pounds is the rating for the four-device Figure R507.9.2(2) detail.

    • B. One device at mid-length of the ledger, rated at least 1,500 pounds

      Wrong: one device is not enough, and it must be near the ends.

    • C. Two devices, within 24 inches of each end of the deck, each rated at least 1,500 pounds

      Correct answer

      Right: two devices within 24 inches of each end, 1,500 pounds each.

    • D. Two devices, within 48 inches of each end of the deck, each rated at least 1,500 pounds

      Wrong: the devices must be within 24 inches of each end, not 48.

    Explanation

    California Residential Code section R507.9.2 says that with the Figure R507.9.2(1) detail, hold-down tension devices go in at least two locations per deck, within 24 inches of each end, each with an allowable stress design capacity of at least 1,500 pounds. The 750-pound rating goes with the Figure R507.9.2(2) detail, which needs at least four devices.

  7. 7. A deck needs No. 2 Douglas fir-larch joists to span 13 feet at a 40 psf live load. Which layout does CRC Table R507.6 allow?

    Framing and Structural Components

    • A. 2x10 at 16 inches on center
    • B. 2x8 at 12 inches on center
    • C. 2x10 at 24 inches on center
    • D. 2x12 at 24 inches on center
    Show answer

    Correct answer: A

    • A. 2x10 at 16 inches on center

      Correct answer

      Right: 13 feet 7 inches covers the 13-foot span.

    • B. 2x8 at 12 inches on center

      Wrong: 12 feet 6 inches is short of 13 feet.

    • C. 2x10 at 24 inches on center

      Wrong: 11 feet 1 inch is short of 13 feet.

    • D. 2x12 at 24 inches on center

      Wrong: 12 feet 10 inches is just short of 13 feet.

    Explanation

    California Residential Code Table R507.6 (section R507.6) lists these maximum spans: 2x10 at 16 inches, 13 feet 7 inches; 2x8 at 12 inches, 12 feet 6 inches; 2x10 at 24 inches, 11 feet 1 inch; 2x12 at 24 inches, 12 feet 10 inches. Only the 2x10 at 16 inches reaches 13 feet.

  8. 8. Under CRC section R507.3, which free-standing deck may sit on precast concrete pier blocks at grade instead of on concrete footings?

    Framing and Structural Components

    • A. A 240-square-foot deck whose walking surface is no more than 18 inches above grade
    • B. A 180-square-foot deck whose walking surface is 24 inches above grade at its edge
    • C. A 180-square-foot deck, 18 inches above grade, whose joists sit on beams carried by short posts on the blocks
    • D. A 180-square-foot deck whose joists bear directly on the blocks and whose walking surface is no more than 18 inches above grade within 36 inches of its edge
    Show answer

    Correct answer: D

    • A. A 240-square-foot deck whose walking surface is no more than 18 inches above grade

      Wrong: 240 square feet is over the 200-square-foot limit.

    • B. A 180-square-foot deck whose walking surface is 24 inches above grade at its edge

      Wrong: 24 inches is over the 20-inch height limit.

    • C. A 180-square-foot deck, 18 inches above grade, whose joists sit on beams carried by short posts on the blocks

      Wrong: the joists must bear directly on the blocks, with no beams or posts.

    • D. A 180-square-foot deck whose joists bear directly on the blocks and whose walking surface is no more than 18 inches above grade within 36 inches of its edge

      Correct answer

      Right: it meets the area, height and direct-bearing conditions.

    Explanation

    California Residential Code section R507.3 lets a free-standing deck go without concrete footings only when all three conditions hold: the joists sit directly on precast concrete pier blocks at grade, with no beams or posts; the deck is 200 square feet or less; and within 36 inches horizontally of the edge the walking surface is never more than 20 inches above grade.

Test yourself

Try 25 free General Building practice questions from all five sections. Each answer explains the rule and names the code section it comes from. No sign-up.

See what the General Building exam covers