Skip to main content
CityRuleLookup

Before You Build in Sunnyvale, CA: Permit & Rule Checklist (2026)

Everything you need to know before starting a home improvement project

Building a fence, installing a pool, or adding a shed? Each project has its own set of local permits and rules in Sunnyvale. This guide consolidates fence, pool, ADU, shed, fire pit, and landscaping regulations into one checklist so you know what to expect before you start.

Quick Permit Checklist

At-a-glance overview of permit categories in Sunnyvale. Click any card for details.

Fences & Walls

Heavy Restrictions

Height limits, materials, permits, and shared fence rules.

Retaining Walls

Some Restrictions

Retaining walls over 4 feet measured from the bottom of the footing require a Sunnyvale building permit with engineered plans, including drainage, soil pressure, and seismic analysis.

Permit trigger: Over 4 feet or surchargedPlans: Engineered, CA licensedSeismic design: Required near faultsProperty line buffer: 3 feet review

Pool Barriers

Heavy Restrictions

California Health and Safety Code 115920 and Sunnyvale code require pool barriers at least 60 inches tall with self-closing gates and at least two of seven safety features for residential swimming pools.

Governing law: H and S Code 115920Fence height: 60 inches minimumGate type: Self-closing self-latchingSecond layer required: 2 of 7 features

Height Limits

Some Restrictions

Sunnyvale limits front yard fences to 3 feet, side and rear yard fences to 6 feet, and allows up to 8 feet with a minor fence permit for privacy and sound attenuation needs.

Front yard: 3 feet solid / 4 openSide and rear: 6 feetMax with permit: 8 feetCorner sight triangle: 3 feet max

Permit Requirements

Some Restrictions

Fences up to 6 feet in side and rear yards do not require a building permit in Sunnyvale, but fences over 7 feet, retaining walls over 4 feet, and pool barriers always need permits.

No permit up to: 7 feet wood / vinylPermit required over: 7 feetRetaining wall trigger: Over 4 feetPool barriers: Always permitted

Neighbor Fence Rules

Some Restrictions

California Civil Code 841 (Good Neighbor Fence Act) requires adjoining property owners to share the cost of boundary fences equally absent written agreement, and 30-day written notice before construction.

Governing law: CA Civil Code 841Default cost split: 50 / 50Written notice: 30 days minimumDispute forum: Small claims court

Swimming Pools

Heavy Restrictions

Pool permits, safety fencing, and drainage requirements.

Pool Permits

Some Restrictions

Sunnyvale requires a building permit for any in-ground pool or spa, and for above-ground pools deeper than 18 inches, under the California Building Code as adopted by SMC Title 16.

Building Permit: Required for all in-groundAbove-Ground Trigger: Over 18 inches deepCode: CBC via SMC Title 16Inspections: Multiple, final before use

Hot Tub Rules

Some Restrictions

Hot tubs and spas in Sunnyvale require a building permit and must meet California Pool Safety Act rules, but a locking safety cover meeting ASTM F1346 satisfies barrier requirements.

Barrier Option: ASTM F1346 coverPermit: RequiredElectrical: GFCI mandatorySetback Typical: 4 feet side and rear

Fencing Requirements

Heavy Restrictions

Sunnyvale enforces the California Swimming Pool Safety Act (H and S Code 115920). Pools require enclosures at least 60 inches tall with self-closing, self-latching gates.

Minimum Fence Height: 60 inchesGate Hardware: Self-closing self-latchingLatch Height: 54 inches minimumOpening Limit: 4-inch sphere max

Safety Rules

Heavy Restrictions

Sunnyvale pools must have anti-entrapment drain covers per VGB Act, approved circulation and chemical systems, and comply with California Pool Safety Act.

Drain Covers: VGB compliantElectrical Bonding: NEC Article 680State Standards: H and S Code 116049Emergency: 911

Above-Ground Pools

Some Restrictions

Above-ground pools deeper than 18 inches require a Sunnyvale permit and must meet Pool Safety Act barriers. Pool walls at least 48 inches may serve as part of the barrier.

Permit Trigger: Over 18 inches or 5000 galWall as Barrier: 48 inches minimumLadder: Removable or lockedSetback R-1 Rear: 10 feet typical

ADUs & Granny Flats

Few Restrictions

Accessory dwelling unit rules and garage conversion permits.

Garage Conversions

Few Restrictions

Sunnyvale allows garage conversions to ADUs or JADUs under state law. Detached garage ADUs are ministerial. Replacement parking is no longer required under California AB 68 and updated ADU rules.

Ministerial approval: Yes under state lawReplacement parking: Not requiredJADU max: 500 square feetExpansion allowance: 150 sq ft for egress

ADU Rules

Few Restrictions

Sunnyvale allows ADUs and JADUs on single-family and multifamily lots under California Government Code 65852.2 plus AB 68, 881, and SB 13. AB 1033 now allows ADUs to be sold as separate condos.

State law: Gov Code 65852.2 plus AB 68, 881, SB 13Max detached ADU: 1200 square feetJADU size: Up to 500 square feetSetbacks: 4 feet side and rear

Sheds & Outbuildings

Some Restrictions

Shed permits, setback limits, and outbuilding size rules.

Tiny Homes

Some Restrictions

Tiny homes on foundations qualify as ADUs in Sunnyvale under state law. Tiny homes on wheels are regulated as RVs and cannot be used as permanent dwellings outside of RV parks or approved JADU setups.

Foundation tiny home: Treated as ADUMinimum size: 150 square feetTiny home on wheels: Regulated as RVRV as dwelling: Prohibited on residential lots

Carport Rules

Some Restrictions

Carports are permitted in Sunnyvale as accessory structures under Municipal Code Chapter 19.38. Residential carports must meet zoning setbacks, height limits, and building permit requirements when over 120 square feet.

Code reference: SMC Chapter 19.38Side setback R-1: 5 feet typicalPermit threshold: Over 120 square feetFront yard: Usually not allowed

Shed Rules

Few Restrictions

Sunnyvale allows backyard sheds up to 120 square feet without a building permit under Municipal Code Chapter 19.38. Sheds must meet setbacks and cannot be used as living space or connected to utilities.

Permit-free size: Up to 120 square feetSide setback: 3 feet typicalHeight limit: 10 feetUtilities: No permanent hookups without permit

Fire Pits & Outdoor Structures

Heavy Restrictions

Fire pit placement, outdoor burning restrictions, and permits.

Fire Pit Rules

Heavy Restrictions

Sunnyvale allows residential recreational fire pits fueled by clean natural gas or propane. Wood-burning outdoor fires are heavily restricted under BAAQMD Regulation 6 Rule 3 and Sunnyvale Fire Code.

Preferred fuel: Natural gas or propaneClearance from structures: 10 feet minimumAir district: BAAQMD Spare the Air appliesCode reference: SMC Chapter 16.52

Outdoor Burning

Heavy Restrictions

Open burning of yard waste, trash, and construction debris is prohibited in Sunnyvale. BAAQMD Regulation 5 bans agricultural and residential burning across the Bay Area including Santa Clara County.

Yard waste burning: ProhibitedTrash burning: ProhibitedDisposal option: Organics cart or SMaRT StationAir district rule: BAAQMD Regulation 5

Landscaping & Tree Removal

Heavy Restrictions

Tree removal permits, heritage tree protections, and water rules.

Water Restrictions

Heavy Restrictions

Sunnyvale follows Valley Water drought stage rules and enforces permanent outdoor watering limits. AB 1572 bans irrigating non-functional turf at commercial and HOA sites starting in 2027.

Hose runoff: ProhibitedWatering hours: Before 9 am or after 6 pmAB 1572 turf ban: Starts January 2027State law: AB 1572 non-functional turf

Tree Trimming

Heavy Restrictions

Sunnyvale has a strong Heritage Tree Ordinance under Municipal Code Chapter 19.94 requiring permits to trim large trees. Routine pruning is allowed but heavy cuts on protected trees need city approval.

Heritage size: 38-inch circumference single trunkCode reference: SMC Chapter 19.94Permit threshold: Over 25 percent canopyStreet trees: City maintained, no resident trimming

Tree Removal & Heritage Trees

Heavy Restrictions

Removing any heritage tree in Sunnyvale requires a permit from the city arborist under Municipal Code Chapter 19.94. Unauthorized removal triggers fines up to 10000 dollars plus mandatory replacement.

Permit required: All heritage treesTrigger size: 38-inch circumferenceNeighbor notice: Posted on propertyReplacement: Mandatory proportional

General Permit Tips

When do you typically need a permit?

Most cities require permits for structural work, including fences over a certain height, pools, ADUs, and sheds above a size threshold. Even projects that seem minor can trigger permit requirements, so it is always best to check first.

How to apply for a building permit

Visit your local building department or their website. Most jurisdictions accept online applications. You will typically need a site plan, project description, and may need contractor information. Processing times vary from same-day for simple projects to several weeks for larger builds.

Common permit violations to avoid

Building without a permit, exceeding approved dimensions, and ignoring setback requirements are the most common violations. Penalties can include fines, required removal of the structure, and complications when selling your home.

Permit Guides for Nearby Cities

Looking for rules beyond permits? View all ordinances we track for Sunnyvale.