Skip to content
SetbackIQ

Do you need a permit for a detached garage in San Francisco, CA?

Yes. San Francisco exempts only one small storage shed per lot, so every garage needs a building permit.

San Francisco's only accessory-building exemption is one small storage shed, so every garage needs a building permit.

Detached structures in the required rear yard are capped at 10 ft tall and 120 sq ft combined.

A person last checked these rules on October 22, 2026. This is guidance only, so confirm with San Francisco before you build.

Check your exact lot

Your zoning district sets the setbacks, and a flood zone can change the permit answer. Enter your address to see both.

What are you building?

The answer is free. If you need to file, the $19 permit packet adds a site plan with your detached garage drawn on your lot, an application worksheet and a permit-desk checklist. See a sample packet

Permits a detached garage can need in San Francisco

PermitWhen it applies
Building permitSan Francisco exempts only one small storage shed per lot, so every garage needs a building permit.
Planning review of the building permitAccessory buildings over 120 sq ft or 10 ft tall need a building permit with plans and Planning approval of the setbacks and yard location.
Floodplain development permitIf the lot is in a FEMA special flood hazard area, all development there needs a permit.
Electrical permitWiring needs its own permit.Medium confidence

Limits that apply citywide

In the required rear yardDetached structures up to 10 ft tall covering no more than 120 sq ft combined (plus 1 ft of eave); no sleeping quarters or full kitchenMedium confidence
Larger garagesMust sit in the buildable area, outside the required rear yardMedium confidence
Required rear yard (RH districts)30% of lot depth, at least 15 ftMedium confidence
Front setbackNo parking or vehicle storage; at least 20% unpaved and planted, at least 50% permeableMedium confidence

Draw your detached garage on your San Francisco lot

PlanIQ finds your parcel, lets you place the detached garage on it, and checks the placement against the San Francisco limits above (in the required rear yard 10 ft). Draw my lot

Local details

  • A new or widened driveway across the sidewalk needs a Public Works permit for the curb cut.
  • Call 811 at least a few days before you dig footings or post holes. Utility locating is free.
  • HOA covenants and deed restrictions can be stricter than city rules. Check yours before you build.

How to apply

Common questions

When does a detached garage need a building permit in San Francisco?
San Francisco exempts only one small storage shed per lot, so every garage needs a building permit.
Do I also need a zoning permit for a detached garage in San Francisco?
Accessory buildings over 120 sq ft or 10 ft tall need a building permit with plans and Planning approval of the setbacks and yard location.
Where do I apply for a detached garage permit in San Francisco?
Apply through Check if your project needs a permit (sf.gov), or call (628) 652-3200.

Sources

  1. sf.gov, Check if your construction project needs a permit. Checked 2026-10-23
    One-story detached accessory buildings or structures used as tool and storage sheds, playhouses and similar uses, if the projected roof area is less than 100 square feet (9.29 m2) and no taller than 8 feet... Fences less than 6 feet (1829 mm) high located a…
  2. SF DBI Technical Services, Frequently Asked Questions, Storage Sheds Exempt from a Building Permit. Checked 2026-11-02
    provided the floor area does not exceed 120 square feet... not more than 10 feet high per San Francisco Planning Code Section 136(c)23... [A shed over 120 sq ft or 10 ft] requires a building permit with plans and the approval of the San Francisco Planning D…
  3. 44 CFR 59.1, definition of development (NFIP). Checked 2026-10-19
    Development means any man-made change to improved or unimproved real estate, including but not limited to buildings or other structures...
  4. 44 CFR 60.3, floodplain management criteria. Checked 2026-10-19
    Require permits for all proposed construction or other development in the community...
  5. 2024 IRC R105.2, Work exempt from permit (text published by the City of Benson, AZ). Checked 2026-10-19
    One-story detached accessory structures, provided that the floor area does not exceed 200 square feet. Fences not over 7 feet high. Decks not exceeding 200 square feet in area, that are not more than 30 inches above grade at any point, are not attached to a…
  6. San Francisco Planning Code § 136(c)(22)-(23), permitted obstructions in required yards (American Legal, current through Ord. 10-26, eff. 3/16/2026). Checked 2026-10-23
    [Permitted in required Yards] (22) Garden structures enclosed by walls on no more than 50 percent of their perimeter, such as gazebos and sunshades, if no more than eight feet in height above grade and covering no more than 60 square feet of land; (23) One …
  7. San Francisco Planning Code § 136(c) (GoCodebook copy, current through Ord. 10-26, effective 3/16/2026). Checked 2026-10-22
    (16) Decorative railings and decorative grille work, other than wire mesh, at least 75 percent open to perpendicular view [and] no more than six feet in height above grade... (13) Retaining walls that are necessary to maintain approximately the grade existi…
  8. San Francisco Planning Code § 134(c)(1), rear yards (American Legal, as amended by Ord. 245-25, eff. 1/12/2026). Checked 2026-10-23
    (1) In RH, RM-1, RM-2, RTO-1, and RTO-M Zoning Districts, the basic rear yard shall be equal to 30% of the total depth of the lot on which the building is situated, but in no case less than 15 feet.
  9. San Francisco Planning Code § 132, front setback areas (GoCodebook copy, current through Ord. 10-26). Checked 2026-10-22
    No motor vehicle, trailer, boat or other vehicle shall be parked or stored within any such area... in every case not less than 20% of the required setback area shall be and remain unpaved and devoted to plant material... The front setback area shall be at l…