Beta — site is under development, information may contain errors. Read disclaimer

San Francisco Setbacks & Height Limits — Residential Zones

Last updated: Verified:

Setbacks & Height Limits in San Francisco

This guide explains the basic setback and height rules that apply to residential construction in San Francisco. The numbers depend on your exact zoning district, your separate Height & Bulk District, overlay districts, and lot geometry, so always confirm with the SF Planning Department before finalizing plans.

What Are Setbacks?

A setback (called a "yard" in the SF Planning Code) is the minimum required distance between a building and a lot line. Setbacks are measured from the property line to the nearest point of the building wall. Eaves, bay windows, decks, and chimneys have separate projection rules under Planning Code Article 1.3.

San Francisco specifies front, side, and rear yards separately for each zoning district. Corner lots have two street frontages and are treated specially under Section 132.

Typical Residential Yards (RH and RM Zones)

For the most common single- and two-family residential zones in San Francisco (RH-1, RH-2, RH-3, and RM-1), the Planning Code requires approximately:

Setback Type Typical Minimum
Front Prevailing or average of front setbacks on the block face (Section 132)
Side (interior) Not required in RH and RM-1 (light & air courts apply on larger lots)
Side (street, corner lot) Treated as a second front under Section 132
Rear 25% of lot depth, with a 15 ft minimum (Section 134)

These are the base requirements for the most common residential lots. Higher-density RM-2/RM-3/RM-4, mixed-use NCT corridors, and downtown C-3 zones each have separate yard schedules. Always read the district section that matches the zone shown on the SF Property Information Map.

Height & Bulk Districts (Separate Map)

San Francisco is unusual: height is not set by the base zoning district. Instead, every parcel has a separate Height & Bulk District designation that is mapped on its own layer and overlaid on the zoning map. You read both designations together.

A Height & Bulk District has two parts:

  • Number = maximum building height in feet (e.g., 40, 45, 50, 65, 85, 130, 240, 320)
  • Letter = bulk control category (X, A, B, C, D, E, F, G, S) limiting plan dimensions and diagonal length above a certain height

Example: a parcel mapped 40-X allows buildings up to 40 ft tall with bulk control X (the most permissive — no plan-length limit). A parcel mapped 65-A allows up to 65 ft with stricter A-category bulk limits above 40 ft.

Most one- and two-family neighborhoods (the Sunset, Richmond, Bernal Heights, much of Noe Valley) are mapped 40-X. Mid-rise corridors are commonly 50-X, 55-X, or 65-A. Downtown can reach 240-S, 320-I, or higher.

To find your Height & Bulk District, open the SF Property Information Map, enter your address, and look for the "Height and Bulk District" line in the property report.

Height Measurement

Building height is measured from average grade at the building wall to the topmost point of the roof, per Planning Code Section 260. Pitched roofs receive a 5 ft height bonus measured to a horizontal plane between eave and ridge. Stair penthouses, elevator overruns, parapets, mechanical screening, and small rooftop features are allowed limited additional height under Section 260(b).

Hillside lots are measured from existing grade — designs that step with the slope are favored.

Lot Coverage

The rear yard requirement (25% of lot depth, 15 ft minimum) effectively caps lot coverage in RH and RM-1 zones at roughly 55%. The remaining 45% of the lot must remain open as the rear yard. Open decks, cantilevered bay windows, and certain accessory structures may project into the rear yard subject to the limits in Section 136.

Common Exceptions and Encroachments

Planning Code Sections 136 and 1.3 allow certain features to project beyond the building wall or into a required yard:

  • Bay windows — limited projection into front and side yards
  • Eaves and gutters — typically up to 1 ft into a required yard
  • Cornices — up to 4 ft of projection on upper stories
  • Decks and stairs — open and unenclosed, subject to height limits
  • Chimneys — limited projection
  • Front stoops and steps — allowed in the front setback

Fences, retaining walls, and accessory structures have their own rules in Sections 136 and 184. Always read the actual code section before designing — bay window rules in particular are detailed.

State ADU Overrides

If your project is an Accessory Dwelling Unit (ADU), California state law (Government Code §65852.2) overrides local setback and height rules. State law guarantees a 4 ft side and rear setback and a 16 ft height for a detached ADU (or up to 18–25 ft in some configurations). A local 25%-rear-yard requirement cannot be enforced if it would prevent an 800 sq ft ADU. See the ADU rules page for San Francisco specifics.

How to Look Up Your Specific Requirements

  1. Find your zoning district and Height & Bulk District — open the SF Property Information Map and enter your address. Note both lines.
  2. Read the district regulations — find your zone in Planning Code Article 2 (RH, RM) for use and density, and Article 1.2 / Article 2.5 for yards and bulk
  3. Check for overlays — historic districts, Special Use Districts (SUDs), and the Coastal Zone can modify the base rules
  4. Schedule a Planning Information Counter (PIC) appointment — SF Planning offers free zoning advice before you commit to a design

Variances

If your project cannot meet the strict letter of the Planning Code, you may apply for a variance through the Zoning Administrator under Planning Code Section 305. Variances are discretionary, require a public hearing, and must show practical difficulty or unnecessary hardship specific to your lot. See the Variance Application Guide for the general process.

Official Sources

See the sources linked in the frontmatter for the SF Planning Code, the SF Planning Department, and the SF Property Information Map. This guide is informational and is not a substitute for direct confirmation from SF Planning staff.

More about San Francisco Zoning

Sources

  1. San Francisco Planning Code (American Legal Publishing)·codelibrary.amlegal.com·Accessed 2026-04-14·Direct link
  2. SF Planning Department·sfplanning.org·Accessed 2026-04-14·Direct link
  3. SF Property Information Map (PIM)·sfplanninggis.org·Accessed 2026-04-14·Direct link
  4. California ADU Law — Government Code §65852.2·leginfo.legislature.ca.gov·Accessed 2026-04-14·Direct link

FAQ

What are the setback requirements in San Francisco?
In RH-1, RH-2, and most RM residential zones, the front setback matches the prevailing front setback on the block face, the rear yard must equal at least 25% of lot depth (with a 15 ft minimum), and side yards are generally not required (though light/air courts apply on larger lots). Always confirm your specific lot via the SF Property Information Map.
What is the maximum building height in San Francisco residential zones?
Height in San Francisco is set by a separate Height & Bulk District map overlaid on zoning, not by the base RH/RM district. Most one- and two-family neighborhoods are mapped 40-X, meaning a 40 ft height limit with bulk control 'X'. Other common limits include 35-X, 45-X, 50-X, 55-X, and higher in mixed-use corridors.
How is lot coverage calculated in San Francisco RH zones?
RH-1, RH-2, and RM-1 zones generally allow up to 55% lot coverage, with the remaining 45% reserved for the required rear yard and any side or interior open space. Lot coverage is measured as the percentage of the lot occupied by the principal building footprint.
Where do I find my Height & Bulk District in San Francisco?
Use the SF Property Information Map at sfplanninggis.org/pim and enter your address. The PIM shows your base zoning (e.g., RH-1) plus the separate Height & Bulk District designation (e.g., 40-X). Both must be checked together to know how tall and how wide you can build.