Skip to content
SetbackIQ

Backyard project permits in Sunnyvale, CA

Sunnyvale lets a 120 sq ft unwired shed sit at the lot line if it's 8 ft tall or less, allows a 1,000 sq ft ADU with 4 ft setbacks, and needs a building permit only for fences over 7 ft.

A person last checked these rules on November 3, 2026. This is guidance only, so confirm with Sunnyvale before you build.

Check your exact lot in Sunnyvale

The examples below assume a typical lot. Your zoning district, lot lines and map overlays can change the answer.

Aerial close-up of one Bethesda lot with its setback zones shaded and about 1,760 square feet of buildable area for a shed highlighted60 ft from front lineSide and rear 5 ftBuildable area~1,760 sq ft
Example: where a shed can go on a real R-60 lot in Bethesda, Maryland. Your lot gets its own rules.

Local project examples

Typical projectPermit?
Shed10-by-12-foot shed, 10 ft tall, no powerYes: Miscellaneous Plan Permit (with notice)
Deck160 sq ft freestanding deck, 24 in highNo: no permit for this example
Fence6-foot wood fence in the backyardNo: no permit for this example
Garage24-by-20-foot detached garage with lightsYes: Building permit, Miscellaneous Plan Permit (with notice), Electrical permit
ADU650 sq ft detached backyard cottageYes: Building permit, Ministerial ADU approval
Pool or hot tub16-by-28-foot in-ground pool with a pumpYes: Pool permit, Electrical permit (pump, lights, bonding)
Retaining wall3-foot garden retaining wall with nothing above itNo: no permit for this example
Patio or walkway300 sq ft paver patio on gradeNo: no permit for this example
Pergola, play set, or carport10-by-12-foot freestanding pergolaYes: Miscellaneous Plan Permit (with notice)
Solar panelsRooftop solar arrayYes: Photovoltaic permit, Electrical permitMedium confidence
AC, heat pump, or generatorLike-for-like heat pump replacementYes: Minor Building Permit (air conditioning or furnace)
EV chargerLevel 2 charger on a new circuitYes: Electrical permit

Setbacks, heights and zoning

What we cover in Sunnyvale

  • Projects: All 12 project types verified. Shed · locally verifiedDeck · locally verifiedFence · locally verifiedGarage · locally verifiedADU · locally verifiedPool or hot tub · locally verifiedRetaining wall · locally verifiedPatio or walkway · locally verifiedPergola, play set, or carport · locally verifiedSolar panels · locally verifiedAC, heat pump, or generator · locally verifiedEV charger · locally verified
  • Zoning: We read your zoning district from the official zoning map, so setbacks match your district.
  • Map overlays checked automatically: FEMA flood zones, and National Wetlands Inventory wetlands.
  • Last checked: November 3, 2026. Rule basis: Sunnyvale Building Division, Work Not Requiring a Building Permit (rev. 1/2026, 2025 CBC § 105.2); Planning handouts on residential accessory structures (rev. 2/2025), residential fences (rev. 1/2023) and ADUs (SMC Chapter 19.79); State ADU Law.

Permit office

Common questions

Does a shed need a permit in Sunnyvale, CA?
Yes. For a 10-by-12-foot shed, 10 ft tall, no power: Sunnyvale requires a Miscellaneous Plan Permit with notice for utility buildings over 8 ft tall, and a Use Permit for any accessory structure over 450 sq ft. Approvals: Miscellaneous Plan Permit (with notice). Size, height, location and wiring can change the answer, so check your exact address.
Does a deck need a permit in Sunnyvale, CA?
Not for the typical example. For a 160 sq ft freestanding deck, 24 in high: A freestanding deck 30 in or lower and 200 sq ft or smaller needs no building permit. Size, height, location and wiring can change the answer, so check your exact address.
Does a fence need a permit in Sunnyvale, CA?
Not for the typical example. For a 6-foot wood fence in the backyard: Fences 7 ft or less that aren't pool barriers need no building permit. Size, height, location and wiring can change the answer, so check your exact address.
Does a detached garage need a permit in Sunnyvale, CA?
Yes. For a 24-by-20-foot detached garage with lights: Sunnyvale requires a building permit for all detached required parking and for utility buildings over 120 sq ft. Approvals: Building permit, Miscellaneous Plan Permit (with notice), Electrical permit. Size, height, location and wiring can change the answer, so check your exact address.
Does a ADU need a permit in Sunnyvale, CA?
Yes. For a 650 sq ft detached backyard cottage: Every ADU in Sunnyvale needs a building permit. Approvals: Building permit, Ministerial ADU approval. Size, height, location and wiring can change the answer, so check your exact address.
Does a pool or hot tub need a permit in Sunnyvale, CA?
Yes. For a 16-by-28-foot in-ground pool with a pump: Sunnyvale exempts only prefabricated above-ground pools under 24 in deep holding 5,000 gallons or less. Approvals: Pool permit, Electrical permit (pump, lights, bonding). Size, height, location and wiring can change the answer, so check your exact address.
Which addresses does SetbackIQ cover in Sunnyvale?
Addresses inside the city limits of Sunnyvale. All 12 project types verified. We confirm the jurisdiction from the parcel when you enter an address.

Sources

  1. 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…
  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 …
  3. 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…
  4. 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.…
  5. 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…
  6. City of Sunnyvale, How to apply for a Minor Building Permit. Checked 2026-11-03
    You may apply for the following Minor Building Permit types online: air conditioning, chimney repair*, electrical panel, EV charger (inside a garage in a single family home)**, furnace, gas line, irrigation sprinklers, sewer line, skylight,* above ground sp…
  7. City of Sunnyvale, SolarAPP+ for Solar Installers. Checked 2026-11-03
    Eligible contractors can use SolarAPP+ for instantaneous rooftop solar permitting in the City of Sunnyvale... Apply for a Photovoltaic (SolarAPP+) permit online at E-OneStop Online Services... Upload SolarApp+ approved plans. Pay for the permit. Print out t…
  8. City of Sunnyvale, Electric Vehicle Chargers handout. Checked 2026-11-03
    An electrical permit is required for installation of electric vehicle chargers.