San Francisco · Building on your lot
Building on your lot in San Francisco
San Francisco sets its own limits on fences, structures in required yards and home businesses. Limits depend on whether a fence or structure sits in a front setback, a side or rear yard, or usable open space.
Key points
- Fence height: Fences: at most 3 feet in required front setbacks, 6 feet in usable open space, 10 feet in required side and rear yards.
- Yard structures: Detached structures in required side and rear yards: at most 10 feet high and 120 square feet combined, without sleeping quarters or full kitchens.
- Home businesses: A home business may use at most 1/3 of the home's floor area, with at most 2 non-resident workers, not counting domestic workers.
Each rule below is marked San Francisco code or CA state law and links to the section it comes from (checked October 2026). General information, not legal advice.
Fences and walls
| Front yard height |
|
|---|---|
| Side and rear yard height |
|
Sheds, garages and other accessory structures
| Maximum height |
|
|---|---|
| Size or lot coverage |
|
| Side and rear setback |
|
Running a business from home
| Space used |
|
|---|---|
| Employees |
|
| Businesses not allowed |
|
Other San Francisco rules on this
San Francisco's code also has these chapters. We have not summarized their values on this page yet; read them in the library.
- Permits for solar energy systems (§ 106A.1.15)
Who this affects
Frequently asked questions
How tall can a fence be in San Francisco?
Fences: at most 3 feet in required front setbacks, 6 feet in usable open space, 10 feet in required side and rear yards.
How big can a shed or accessory building be in San Francisco?
Detached structures in required side and rear yards: at most 10 feet high and 120 square feet combined, without sleeping quarters or full kitchens.
Can I run a business from my home in San Francisco?
A home business may use at most 1/3 of the home's floor area, with at most 2 non-resident workers, not counting domestic workers.
General information, not legal advice.
AI-assisted research · Source checks recorded
San Francisco: Building and ADUs
Before selecting design standards or a permit path. Start with a question, collect the records, and follow the cited law.
City and County of San Francisco. Source checks do not establish a property-specific outcome. Open questions appear in each verification record.
Five questions for this work
- Which San Francisco ADU program should be evaluated for this project?Research pending
- What records matter when converting San Francisco basement space into an ADU?Research pending
- How do ADU options differ for existing and proposed multifamily buildings?Research pending
- What must be verified before proposing a separate sale of a San Francisco ADU?Research pending
- What historic resource checks are needed for a San Francisco ADU?Research pending
SF-B01 · Research pending
Which San Francisco ADU program should be evaluated for this project?
For Architect · Builder · Inspector. Evidence research and an answer draft are still needed.
SF-B02 · Research pending
What records matter when converting San Francisco basement space into an ADU?
For Architect · Builder · Inspector. Evidence research and an answer draft are still needed.
SF-B03 · Research pending
How do ADU options differ for existing and proposed multifamily buildings?
For Architect · Builder · Inspector. Evidence research and an answer draft are still needed.
SF-B04 · Research pending
What must be verified before proposing a separate sale of a San Francisco ADU?
For Architect · Builder · Inspector. Evidence research and an answer draft are still needed.
SF-B05 · Research pending
What historic resource checks are needed for a San Francisco ADU?
For Architect · Builder · Inspector. Evidence research and an answer draft are still needed.
Ask about a specific San Francisco property
Ask GoCodebook how these rules apply to your address and get an answer that cites the section.
Ask your question