Do you need a permit for a shed in San Francisco, CA?
It depends on the details of your project.
San Francisco allows one exempt shed per lot. A second needs a permit.
A shed on a deck or roof deck always needs a permit.
Since Ordinance 146-25 (September 2025) the exempt shed can be up to 120 sq ft of floor and 10 ft tall, the same size Planning allows in the required rear yard.
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.
The answer is free. If you need to file, the $19 permit packet adds a site plan with your shed drawn on your lot, an application worksheet and a permit-desk checklist. See a sample packet
Permits a shed can need in San Francisco
| Permit | When it applies |
|---|---|
| Building permit | San Francisco exempts one detached one-story storage shed per lot, up to 120 sq ft of floor and 10 ft tall, on the ground (Building Code 106A.2 as amended by Ordinance 146-25, effective September 5, 2025, and DBI's shed FAQ). Larger sheds, a second shed, or a shed on a deck need a permit. Some older sf.gov pages still show the pre-2025 limit of 100 sq ft of roof and 8 ft. |
| Electrical permit | Lights and outlets in a shed are allowed with an electrical permit and inspection. |
| Plumbing permit | San Francisco requires a plumbing permit to install or cut into water and drain pipes. |
| Floodplain development permit | If the lot is in a FEMA special flood hazard area, communities in the flood insurance program must permit all development there, sheds included. |
Limits that apply citywide
| In the required rear yard | Detached structures up to 10 ft tall covering no more than 120 sq ft combined (plus 1 ft of eave); no sleeping quarters or full kitchen |
|---|---|
| Garden structures | Gazebos and sunshades up to 8 ft tall and 60 sq ft, walls on no more than half the perimeter |
| Larger or taller | Must sit outside the required rear yard, within the buildable area |
| Required rear yard (RH, RM-1, RM-2, RTO and RTO-M districts) | 30% of lot depth, at least 15 ft |
Draw your shed on your San Francisco lot
PlanIQ finds your parcel, lets you place the shed on it, and checks the placement against the San Francisco limits above (in the required rear yard 10 ft; garden structures 8 ft). Draw my lot
Local details
- Sheds still have to meet side and rear yard requirements. Confirm rear yard rules with the Planning Department.
- An exempt shed with ordinary (non-fire-rated) walls must sit at least 5 ft from property lines. With 1-hour rated walls it can go on the line, but no doors or windows within 3 ft of a lot line.
- 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
- Check if your project needs a permit (sf.gov)
- SF Property Information Map
- Phone: (628) 652-3200
Common questions
- When does a shed need a building permit in San Francisco?
- San Francisco exempts one detached one-story storage shed per lot, up to 120 sq ft of floor and 10 ft tall, on the ground (Building Code 106A.2 as amended by Ordinance 146-25, effective September 5, 2025, and DBI's shed FAQ). Larger sheds, a second shed, or a shed on a deck need a permit. Some older sf.gov pages still show the pre-2025 limit of 100 sq ft of roof and 8 ft. One detached one-story storage shed per lot, up to 120 sq ft of floor and 10 ft tall, on the ground, needs no building permit in San Francisco.
- Where do I apply for a shed permit in San Francisco?
- Apply through Check if your project needs a permit (sf.gov), or call (628) 652-3200.
Sources
- San Francisco Ordinance No. 146-25 (File No. 250284), Planning and Building Codes - Noncomplying, Unpermitted, and Accessory Structures. Checked 2026-10-23
One-story detached accessory buildings or structures used as tool and storage sheds, playhouses, [and similar uses, provided the floor area does not exceed 120 square feet; finally passed July 29, 2025, effective September 5, 2025 per the Planning Code hist…
- 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…
- 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…
- sf.gov, Apply for an electrical permit. Checked 2026-10-22
You need an electrical permit before installing new wiring or alterations, extensions, or additions [to existing electrical installations]... Only owner-installers of stand-alone single family dwellings may apply for an electrical permit to do the work them…
- sf.gov, Apply for a plumbing and mechanical permit. Checked 2026-10-22
[You need a permit before] cutting into or replacing pipes that transport water, gas, hot air, or cool air... Contractors must hold a C4, C16, C20, C36, C54, B, or A license to apply for a plumbing or mechanical permit in general.
- 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...
- 44 CFR 60.3, floodplain management criteria. Checked 2026-10-19
Require permits for all proposed construction or other development in the community...
- 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 …
- 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.