Height limits in Sunnyvale, CA
Building codes decide when you need a permit; zoning decides how tall you can go. Both are below, measured the way Sunnyvale measures them.
A person last checked these rules on November 3, 2026. This is guidance only, so confirm with Sunnyvale before you build.
Citywide
| Shed: Front yard | Not allowed |
|---|---|
| Shed: Height | 15 ft |
| ADU: Side and rear setbacks | 4 ft |
| ADU: Detached height | 16 ft; 18 ft within half a mile of major transit; plus 2 ft for a matching roof pitch |
| ADU: Attached height | 25 ft |
| ADU: Detached ADU height (minimum a city must allow) | 16 ft; 18 ft within 1/2 mile of major transit (+2 ft for matching roof pitch) or on a lot with a multistory multifamily building |
| ADU: Attached ADU height (minimum a city must allow) | 25 ft or the house's height limit, whichever is lower |
| Fence: Front yard | 4 ft without a permit; 3.5 ft in vision triangles |
| Fence: Side and rear | 8 ft without a planning permit |
Check your lot

Sources
- City of Sunnyvale, Work Not Requiring a Building Permit (rev. 1/2026). Checked 2026-11-03
Building permits shall be obtained from the City's Building Safety Division before erection, construction, reconstruction, installation, moving, or alteration of any building or structure. However, the following projects do not require building permits... 2…
- City of Sunnyvale, Accessory Structures (Residential) handout (rev. 2/2025). Checked 2026-11-03
Permit requirements for accessory structures 450 square feet or less are listed below. Any accessory structure greater than 450 square feet requires a Use Permit... Detached Habitable Spaces, Open Outdoor Equipment, and Utility Buildings 8 ft. tall or less …
- 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...
- 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…
- City of Sunnyvale, Interested in Building an Accessory Dwelling Unit? (SMC Chapter 19.79). Checked 2026-11-03
New Construction Conversion JADUs Minimum Area 150 s.f. 150 s.f. 150 s.f. Maximum Area 1,000 s.f. (for SFH) No max. 500 s.f... Streamlined Non-Streamlined Required Permits Building Permit Ministerial MPP (Miscellaneous Planning Permit) and Building Permit S…
- HCD Accessory Dwelling Unit Handbook (March 2026). Checked 2026-10-19
A setback of no more than four feet from the side and rear lot lines shall be required for an attached or detached ADU (Gov. Code, 66314(d)(7)).
- City of Sunnyvale, Residential Fences handout (rev. 1/2023). Checked 2026-11-03
Fences within Front Yards (between face of building and street) Fence Height Review Process Up to 4 feet No permit required. Fence may not exceed 3.5 ft. in any vision triangles unless it is an "open fence." 4+ to 6 feet MPP Over 6 feet Use Permit required.…