Local jurisdiction · California
San Francisco Zoning, Planning & Building Codes
How San Francisco regulates land use and construction — the Planning Code, residential zoning districts, the Department of Building Inspection, the Rent Ordinance and the city's ADU program.
Key points
The San Francisco Planning Code governs how land may be used across the city — what can be built, where, and at what density — while the San Francisco Building Code governs how it is constructed. Land use is organized into zoning districts: RH (Residential, House), RM (Residential, Mixed), RC (Residential-Commercial) and the various NC (Neighborhood Commercial) districts. Sorting out which district applies to a parcel, and what it allows, is exactly the kind of question GoCodebook answers with citations.
San Francisco layers its own rules on top of the statewide California Building Standards Code and state housing laws. Recent density-exception ordinances now allow up to four units per lot (and up to six on corner lots) in many RH districts, and the city runs its own Accessory Dwelling Unit (ADU) program under the Planning Code. Because outcomes depend on the specific district, lot and building age, a plain-English, cited answer saves time before you file.
Zoning & the Planning Code
San Francisco's residential districts run from RH-1 (one house per lot) and RH-1(D) (detached, with side yards) through RH-2 and RH-3 (two and three units), up to RM districts that mix houses and apartments and RC and NC districts that combine residential with ground-floor commercial uses. Each district sets its own controls on density, height, bulk, setbacks and permitted uses.
Many projects also trigger conditional use authorization or discretionary review before the Planning Commission, rather than being approved purely over the counter. To see where the city has detailed coverage, check our coverage page, and compare neighboring peninsula rules in Palo Alto or Cupertino.
Building permits & the Department of Building Inspection (DBI)
Construction permits are issued and inspected by the Department of Building Inspection (DBI), which enforces the San Francisco Building, Housing and related codes — themselves amendments to the statewide California Building Code and Residential Code. Most projects move through Planning review for zoning compliance first, then DBI for the building permit and inspections.
A change of use — for example, converting commercial space to residential, or legalizing a unit — often requires both Planning sign-off and a DBI permit. DBI also handles housing-code enforcement and habitability complaints. Browse the full set of statewide model codes on our California Building Standards Code hub.
Rent control & ADUs
San Francisco has its own Rent Ordinance. As a general rule, residential units in buildings issued a first certificate of occupancy before June 13, 1979 are subject to rent-increase limits, while units built after that date are exempt from the rent cap but generally still covered by the ordinance's just-cause eviction protections. This local ordinance is stricter than, and operates alongside, the statewide AB 1482 rent cap — see our rent control overview.
The city runs a local ADU program under the Planning Code that lets owners add accessory dwelling units to existing residential buildings, subject to its own controls. Because ADU and rent-control coverage both hinge on the building's age, type and history, the safest move is to check the specific property. Compare how rent-controlled Los Angeles handles similar questions.
Who this affects
Frequently asked questions
What does San Francisco zoning mean by RH-1, RH-2 and RM?
RH-1 is a single-house district (one dwelling per lot), RH-2 and RH-3 allow two and three units, and RM (Residential, Mixed) districts permit a mix of houses and apartments. Recent density-exception rules also allow up to four units per lot — and six on corner lots — in many RH districts.
Who issues building permits in San Francisco?
The Department of Building Inspection (DBI) issues construction permits and performs inspections under the San Francisco Building Code, which amends the statewide California Building Code. Planning typically reviews zoning compliance before DBI issues the permit.
Is my San Francisco unit under rent control?
Generally, residential units in buildings with a first certificate of occupancy before June 13, 1979 are subject to the Rent Ordinance's rent-increase limits; newer units are usually exempt from the cap but still covered by just-cause eviction rules. See our rent control overview.
Can I build an ADU in San Francisco?
In most cases, yes. San Francisco operates a local ADU program under the Planning Code that allows accessory dwelling units in existing residential buildings, subject to its own size, location and design controls layered on top of state ADU law.
Does a change of use need a permit in San Francisco?
Usually. Converting space from one use to another — for example commercial to residential — typically needs both Planning approval for zoning and a building permit from DBI. The exact path depends on the zoning district and the new use.
Have a San Francisco zoning or permit question?
Ask GoCodebook about any San Francisco address and get a cited answer on zoning districts, DBI permits, the Rent Ordinance and ADUs.
Start Free Trial