FindADUCONTRACTOR

Building code

ADU building code: what California requires in 2026

The ADU building code in California is the same code that governs any new home: since January 1, 2026, the 2025 California Building Standards Code. State ADU law decides whether you can build. The building code decides how: fire walls, sprinklers, ceiling heights, escape windows and energy. Here's what applies to a typical ADU and where state law gives you a break.

Fact-checked against 11 sourcesUpdated Oct 26, 2026

Interior wall framing of a home under construction

The ADU building code in 2026

California rewrites its building code every three years. The Building Standards Commission published the 2025 edition of Title 24 on July 1, 2025, with an effective date of January 1, 2026. Plans submitted now are checked against it. If you have older plans drawn to the 2022 code, expect your designer to update them.

The 2025 edition also renumbered many sections. Ceiling height, escape windows and sprinkler rules all moved, so a section number from an old checklist or blog post may point to the wrong rule.

California Residential Code ADU scope

Most ADUs fall under the California Residential Code (CRC), Part 2.5 of Title 24. Section R101.2 applies it to detached one- and two-family dwellings and townhouses no more than three stories above grade, and to their accessory structures. That covers a backyard cottage, a garage conversion and an ADU attached to a single-family house, which together make a two-family dwelling.

An ADU added to an apartment building is outside that scope, so it follows the California Building Code (Part 2) instead. If you're adding units to a multifamily lot, see our multifamily ADU guide.

ADU code requirements: which part of Title 24 covers what
TopicWhere it lives in the 2025 code
Fire separation, ceilings, rooms, escape openings, smoke alarmsCalifornia Residential Code, Chapter 3
Fire sprinklers in homesCalifornia Residential Code, Section R309
Solar, insulation and electric-ready rulesCalifornia Energy Code (Part 6)
Wildfire-resistant constructionCalifornia Wildland-Urban Interface Code (Part 7)
ADUs in apartment buildingsCalifornia Building Code (Part 2)

Cities have also lost most of their room to add stricter local rules for homes. According to the State Fire Marshal's 2025 rulemaking, the budget trailer bill AB 130 put a moratorium on new state and local building standards affecting residential units from October 1, 2025, to June 1, 2031, with limited exceptions such as wildfire home hardening.

What state ADU law changes

State ADU law doesn't replace the building code. HCD's ADU handbook is plain about it: even the ADUs a city must approve under section 66323 “must comply with building code and health and safety requirements for dwellings.” What the law does is block a few code-based requirements that cities used to stack on ADUs. For the zoning side of the law, see California ADU laws.

  • No automatic occupancy change. Government Code section 66314(d)(8) says building an ADU isn't a Group R occupancy change under the local building code unless the building official finds a specific, adverse impact on public health and safety. The building code rules for detached dwellings still apply, as appropriate.
  • Sprinklers follow the house. The same section says an ADU doesn't need fire sprinklers if the main house doesn't, and building one can't trigger sprinklers in the house. More below.
  • Old violations on the house. According to the handbook, a city can deny an ADU for building code violations on the main house only if they threaten public health and safety and are affected by the ADU.
  • Room to get in and out. Section 66323 lets a conversion of an accessory structure grow by up to 150 square feet just to fit an entrance or exit, such as a stair to a second-floor unit.

If your ADU was built without permits, the path to legalizing it runs through the same code. See unpermitted ADUs in California.

ADU fire separation

Fire separation is the building code rule people most often confuse with zoning. A setback is how far zoning makes you stay from the lot line. Fire separation is how much fire protection a wall needs given how close it sits to a lot line or another home. You can meet one and still owe the other.

Attached ADUs and conversions inside the house

An ADU attached to a house makes a two-family dwelling. Under CRC Section R302.3, the two units must be separated by fire-resistance-rated walls, floors or both, whether or not a lot line runs between them. The rating is 1 hour, or one-half hour if the building is sprinklered throughout. The separation has to be continuous: a rated wall runs from the foundation to the underside of the roof sheathing, or to a rated floor. Our attached vs detached ADU comparison covers the cost side.

Detached ADUs

A detached ADU is treated as its own dwelling. CRC Section R302.1 sets exterior wall protection by fire separation distance, measured to the lot line. Between two homes on the same lot, the code draws an imaginary line between them and measures each to it. The line has to sit where the existing house still complies.

ADU fire separation: exterior walls by distance (CRC Tables R302.1(1) and R302.1(2))
ElementNo sprinklersSprinklered
Wall with no fire rating5 ft or more from the line3 ft or more from the line
Wall closer than that1-hour rated, exposure from both sides1-hour rated, exposure from outside
Windows and doorsNone under 3 ft; up to 25% of the wall at 3–5 ft; unlimited at 5 ftNone under 3 ft; unlimited at 3 ft
Eaves and other projectionsNone under 2 ft; rated underside from 2 to 5 ftNone under 2 ft; rated underside from 2 to 3 ft

In practice, a non-sprinklered detached ADU 10 feet from the house can usually keep ordinary walls and windows on the facing sides, because each building is 5 feet from the imaginary line. Pull it closer and the facing walls need a rating and fewer openings. The same logic applies on a 4-foot side setback: that wall can have openings, but no more than a quarter of its area. See ADU setbacks for the zoning side.

Distance rules can beat the 4-foot setback. The City of San Diego's ADU bulletin warns that building code rules on fire separation distance and opening protection may result in larger setbacks than zoning alone. Design the ADU's windows and eaves with the lot line in mind.

Do ADUs need fire sprinklers?

New homes in California need sprinklers. CRC Section R309.2 requires them in one- and two-family dwellings, then exempts an ADU that meets four tests: it fits the Government Code's ADU definition, the main house has no sprinklers, a detached unit is no larger than 1,200 square feet, and it's on the same lot as the main house.

State ADU law goes further. Section 66314 and section 66323 both say an ADU can't be required to have sprinklers if the main house isn't required to have them, and building the ADU can't trigger sprinklers in the house. Section 66323 says the same for junior ADUs and for existing multifamily buildings.

ADU fire sprinklers: when they're required
SituationSprinklers in the ADU?
Main house not required to have sprinklersNo
Main house has or is required to have sprinklersYes, in most cases
Main house recently altered enough to require sprinklersYes, for ADUs created after that work, per HCD
Junior ADUSame test as an ADU: only if the house requires them

The test is what the code requires for the house, not its age alone. HCD's handbook gives the example of a house built decades ago that wasn't required to have sprinklers. Its ADU doesn't need them either. If that same house was recently altered enough to require sprinklers, any ADU created afterward needs them too. Fire zones have their own wrinkles; see building an ADU in a fire hazard zone.

Rooms, ceilings and egress

The livability rules in CRC Chapter 3 drive the floor plan more than most owners expect.

ADU code requirements for rooms and egress (2025 CRC)
RequirementRuleSection
Ceiling height, living space and hallsAt least 7 ftR313.1
Ceiling height, bathrooms and laundryAt least 6 ft 8 inR313.1
Sloped ceilingsHalf the required floor area at 7 ft or more; none counted under 5 ftR313.1, R312.3
Habitable room sizeAt least 70 sq ft and 7 ft in any direction (kitchens exempt)R312.1, R312.2
Emergency escape openingIn every sleeping room: 5.7 sq ft clear (5 sq ft at grade floor), 24 in high, 20 in wide, sill no higher than 44 inR319
Smoke alarmsIn each bedroom, outside sleeping areas and on each storyR310.3

Escape windows matter most in conversions. A garage or basement often has no bedroom window that meets the size and sill limits, and cutting one in can mean new headers and, near a lot line, the opening limits above. Our garage conversion ADU guide walks through the upgrades. Ceiling height matters in two-story and attic units; see the ADU height limit guide for how 7-foot ceilings fit under a 16-foot cap.

A very small ADU can still be legal. HCD's handbook defines an efficiency unit, one allowed type of ADU, as at least 190 square feet of living space with a closet, kitchen sink, cooking appliance, refrigerator and a separate bathroom.

Energy code and solar

The energy code is the last big piece, and it treats new and attached units differently. According to the California Energy Commission's ADU FAQ:

  • New detached ADUs must have newly installed solar panels under the prescriptive path, unless an exception applies. The panels can be on the same lot, and the code doesn't say whether they serve the ADU's meter or the house's.
  • Attached ADUs are treated as additions, so solar isn't required.
  • Garage conversions turn unconditioned space into living space and are generally treated as additions. Converting space that's already heated, like a finished basement, is an alteration.
  • Gas appliances in a new detached ADU trigger electric-ready requirements so they can be swapped for electric later.

Energy compliance is handled on forms your designer prepares. Solar adds real cost to a detached unit; see what an ADU costs in San Diego.

ADU building code in San Diego

The City of San Diego enforces the state code and adds a few ADU-specific rules.

  • Everything in Title 24 applies. IB-400 says ADUs must comply with all requirements of the California Building Standards Code, and that those rules may increase setbacks.
  • Sprinklers. SDMC § 141.0302 repeats the state rule and adds the reverse: if the main house is protected by sprinklers, the ADU must be too. Bonus and affordable ADUs under the city's ADU Home Density Bonus always need sprinklers.
  • Attached units and conversions. Technical Bulletin RESD 3-4 says an attached ADU always needs sprinklers when the house has them. With an unsprinklered house, one attached ADU on a single-family home is exempt, as are certain conversions of existing permitted space.
  • Fire zones. In high and very high fire hazard severity zones, the city requires a 4-foot interior side and rear setback for new ADU structures, plus wildfire construction rules. See ADU in a fire hazard zone.

Plan check is where these rules are enforced, so your designer and builder carry most of the load. Our San Diego ADU permit guide covers the review steps, and pre-approved ADU plans can cut the code work if one fits your lot.

Before you submit plans

  • Confirm the code edition. Plans should be drawn to the 2025 codes, not 2022.
  • Find out if the house has, or must have, sprinklers. That one fact sets the ADU's sprinkler requirement and its fire separation distances.
  • Measure to the lot line and the house. Walls, windows and eaves within 5 feet of either will need extra protection.
  • Check every bedroom for an escape opening and every living space for 7-foot ceilings.
  • Check your fire zone and Coastal Zone status early. See ADU coastal zone rules.
  • Hire a licensed builder. Read how to hire an ADU contractor, check a contractor's license, or compare verified ADU builders in San Diego.

Common questions

What building code applies to an ADU in California?
The 2025 California Building Standards Code, in effect since January 1, 2026. Most ADUs fall under the California Residential Code, which covers one- and two-family dwellings up to three stories; ADUs in apartment buildings follow the California Building Code.
What are the ADU building code requirements for fire separation?
An attached ADU needs 1-hour rated walls and floors between it and the house, or one-half hour if the building is fully sprinklered. A detached ADU needs rated walls and limited windows when it's within 5 feet of a lot line or the imaginary line between it and the house, or 3 feet if sprinklered.
Does an ADU need fire sprinklers in California?
Not if the main house isn't required to have them, and building an ADU can't trigger sprinklers in the house. If the house is required to have sprinklers, the ADU generally needs them too.
What is the minimum ceiling height for an ADU?
Seven feet in living space and hallways, and 6 feet 8 inches in bathrooms and laundry rooms, under the 2025 California Residential Code. Sloped ceilings need 7 feet over at least half the required floor area.
Does a new ADU need solar panels?
A newly built detached ADU generally needs new solar panels under the California Energy Code. Attached ADUs are treated as additions and don't.

Sources

General information, not legal or financial advice. Rules and fees change; confirm with your city's permit office before you rely on them.

Compare builders the state has checked.

Every San Diego builder on our list holds an active B license with a bond on file.