What does California state code say about sheds?
California has one mandatory building code for the whole state, the California Building Standards Code (Title 24). The 2025 edition took effect on January 1, 2026, and its Part 2.5, the California Residential Code (CRC), covers houses and their accessory buildings. State law says these standards apply to all occupancies throughout the state (Health and Safety Code 18938).
CRC Section R105.2 lists work exempt from permit. Its first building item covers one-story detached accessory structures whose floor area does not exceed 120 square feet, other than storm shelters. Most of Chapter 1, Division II, where R105.2 sits, is not adopted by the state, but the code's own Matrix Adoption Table, a nonregulatory aid, marks R105.2 building items 1 to 10 as adopted by the state agencies, including the housing department's HCD 1 column, which covers dwellings and their accessory buildings.
Can my city or county change the shed rule?
Yes. The CRC itself (Section 1.8.6.1) says a city or county may make changes to the provisions the state housing department adopted. Health and Safety Code 17958.5 allows changes the city or county finds reasonably necessary because of local climatic, geological or topographical conditions, and Section 17958.7 makes them effective only once filed with the Building Standards Commission.
There is a time limit on new changes. From October 1, 2025 to June 1, 2031, a city or county shall not make a change or modification applicable to residential units unless one of the listed conditions is met: the change is substantially equivalent to one the city or county previously filed that was in effect on September 30, 2025; the Building Standards Commission deems it necessary as an emergency standard; it relates to home hardening; it implements a general-plan amendment approved on or before June 10, 2025 on all-electric construction; or it is an administrative-practice change that exclusively shortens permit times, alters a fee schedule, modernizes permitting software, cuts operating costs or changes code enforcement programs. The commission must reject other residential changes. The statute does not say whether this reaches a local permit exemption list.
Among the cities on this site, Los Angeles has no shed-size exemption and exempts only work valued at $2,500 or less that does not affect structural stability or public safety, is not under a Department order and does not change the use. San Francisco's code text sets 100 sq ft of roof area and 8 ft, while its DBI FAQ says 120 sq ft and 10 ft. San Diego, San Jose, Sacramento and Long Beach use 120 sq ft with their own conditions.
Who issues the permit, and what about unincorporated areas?
You apply to your local building department. Health and Safety Code 17960 requires the building department of every city or county to enforce the State Building Standards Code within its jurisdiction, and the CRC names the local building department or the state housing department as the enforcing agency for dwellings.
If you live outside any city's limits, your county building department enforces the code, including any amendments the county has made. Fees are set locally; the city table on this page shows examples.
What still applies if my shed is exempt?
An exemption from a building permit is not permission to ignore the rules. R105.2 itself says an exemption does not authorize work that violates the code or any other local law. The CRC adds that an exempt accessory structure may still be regulated by Part 7, the California Wildland-Urban Interface Code.
Setbacks, height limits, lot coverage, flood zones and historic districts are generally set locally by zoning. San Jose notes that plumbing, electrical and mechanical work on an exempt shed still needs its own permits. If your homeowners association's governing documents require approval for a change, Civil Code 4765 requires the association to decide in good faith and in writing; that approval is a separate step.
Can I pull the permit myself?
Usually, yes. Business and Professions Code 7044 exempts an owner who builds or improves a structure on their own property from contractor licensing when none of the improvements are intended or offered for sale and the owner personally does all the work, or uses employees paid wages as their sole compensation. Every city or county must make you sign a statement that you are licensed or the basis for your exemption (Section 7031.5).
A hired contractor generally needs a license. The exemption in Section 7048 for one job under $1,000 covers only casual, minor work that does not require a building permit, and not someone who advertises as a contractor or employs others.
Shed Permit rules in the 6 California cities we have researched
Each row is read off our page for that city, which quotes the city’s own code section and fee schedule. Follow the city link for the conditions on each rule, the worked fee examples and the sources.
| City | Exemption? | Permit-free up to | Fee for a permitted shed |
|---|---|---|---|
| Long Beach | Size exemption | 120 sq ft | about $931 for a 150 sq ft shed; $1,212 for 250 sq ft (valuation $71.07/sq ft + 85% plan check + zoning plan check + $115) |
| Los Angeles | Value rule | $2,500 of work (no size rule) | about $366 for a $5,000 shed; $683 at $15,000 |
| Sacramento | Size exemption ⚠ | 120 sq ft (exempt list says 'not greater than 120'; handout CDD-0417 says 'less than 120') | about $508 for a 140 sq ft owner-built shed; $679 for 240 sq ft, plus $132 design-review exemption and a $263 minimum Planning review |
| San Diego | Size exemption | 120 sq ft of roof area | about $2,427 to $2,604 ($1,501.42 plan check + hourly inspection + $737 General Plan fee) |
| San Francisco | Size exemption ⚠ | 100 sq ft of roof area and 8 ft (code text); 120 sq ft of floor and 10 ft (DBI FAQ) | about $908 at DBI for a 150 sq ft shed, about $1,460 with Planning's fee |
| San Jose | Size exemption | 120 sq ft | about $585 to $740 ($211 processing + tiered inspection fee + plan check) |
A ⚠ marks a city whose own documents give two different answers. To compare more cities, see permit-free shed sizes in 30 cities and shed permit fees in 30 cities.
Not in one of these cities?
The rule that binds you is the one your own city has adopted, or your county’s if you live outside city limits. Ask the building department for its list of work exempt from permit and its zoning rules for accessory structures before you buy materials; the phone call is free and the answer is specific to your lot.
Frequently asked questions
Sources
Every statement about state law on this page is taken from the documents below, read on the date shown at the top. Laws and adopted code editions change; the linked text is the authority, and your city or county building department has the final word on your project.
- California Building Standards Commission, Codes page (2025 Triennial Edition of Title 24) — dgs.ca.gov
- 2025 California Residential Code Section 1.1.1 (up.codes mirror); 2025 California Residential Code R105.2 Building item 1 (up.codes mirror); 2025 California Residential Code, Chapter 1 Division II adoption note (up.codes mirror); 2025 California Residential Code, Chapter 1 Matrix Adoption Table (nonregulatory; up.codes mirror, table rendered with column labels in src_crc_2025_matrix_ch1.txt); 2025 California Residential Code Section 1.8.2.1.1 (up.codes mirror); 2025 California Residential Code, Section 1.8.6.1 (up.codes mirror); 2025 California Residential Code R105.2 (up.codes mirror) — up.codes
- Health and Safety Code 18938(b) — leginfo.legislature.ca.gov
- Health and Safety Code 17958.5(a); Health and Safety Code 17958.5(c); Health and Safety Code 17958.5(c)(1); Health and Safety Code 17958.5(c)(2); Health and Safety Code 17958.5(c)(3); Health and Safety Code 17958.5(c)(5); Health and Safety Code 17958.5(c)(6) — leginfo.legislature.ca.gov
- Health and Safety Code 17958.7(a); Health and Safety Code 17958.7(c) — leginfo.legislature.ca.gov
- Health and Safety Code 17960 — leginfo.legislature.ca.gov
- Civil Code 4765(a); Civil Code 4765(a)(2); Civil Code 4765(a)(4) — leginfo.legislature.ca.gov
- Business and Professions Code 7044(a)(1); Business and Professions Code 7044(a)(1)(A); Business and Professions Code 7044(a)(1)(B) — leginfo.legislature.ca.gov
- Business and Professions Code 7031.5 — leginfo.legislature.ca.gov
- Health and Safety Code 19825(a) — leginfo.legislature.ca.gov
- Business and Professions Code 7048(a); Business and Professions Code 7048(a), as amended by Stats. 2025, Ch. 67 (AB 1170); Business and Professions Code 7048(c)(2); Business and Professions Code 7048(c)(1) — leginfo.legislature.ca.gov
Related: California fence permit · California deck permit · California pool permit · Shed permit guide · All state guides