A Resident's Guide to Sunnyvale's Local Ordinances
Sunnyvale is a mid-sized city in Santa Clara County, California, with about 156000 residents. Like most cities its size, it has a set of local rules that may differ significantly from neighboring municipalities. Here is an overview of 125 ordinances across 28 categories that affect daily life in Sunnyvale.
Animal Ordinances
Livestock: Goats, pigs, sheep, cattle, and horses are not permitted in Sunnyvale residential zones. Only small animals like hens, rabbits, and pets are allowed, matching the urban character of Silicon Valley..
Also covered: Wildlife Feeding (moderate), Dog Leash Laws (moderate), Chickens & Livestock (moderate). See the full animal ordinances guide for Sunnyvale for details.
Noise Ordinances
Leaf Blower Rules: Sunnyvale was one of the earliest California cities to ban gas-powered leaf blowers, ahead of statewide AB 1346. Only electric or battery blowers are allowed and must comply with 65 dBA residential noise limits..
Also covered: Aircraft Noise (permissive), Industrial Noise (moderate), Outdoor Music (moderate). See the full noise ordinances guide for Sunnyvale for details.
Environmental Rules
Flood Zones: Sunnyvale maps flood hazards through FEMA and enforces floodplain rules under SMC Chapter 18. Properties in Zones A and AE must meet NFIP construction standards and carry flood insurance if federally financed..
Also covered: Erosion Control (moderate), Grading & Drainage (moderate), Stormwater Management (strict). See the full environmental rules guide for Sunnyvale for details.
Fire Regulations
Smoke Detectors: Sunnyvale enforces the California Building Code and State Health and Safety Code requiring working smoke alarms in every bedroom, hallway, and level of a home. Detectors must be hardwired in new construction..
Also covered: Backyard Fires (moderate), Brush Clearance (moderate), Wildfire Zones (permissive). See the full fire regulations guide for Sunnyvale for details.
Fence Regulations
Pool Barriers: 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..
Also covered: Retaining Walls (moderate), Fence Requirements (moderate), Material Restrictions (moderate). See the full fence regulations guide for Sunnyvale for details.
Home Business
Signage Rules: Exterior signs for home-based businesses are prohibited in Sunnyvale residential zones. The home occupation must have no outward indication of non-residential use under Municipal Code Chapter 19.68..
Also covered: Home Daycare (permissive), Home Occupation Permits (moderate), Cottage Food Operations (moderate). See the full home business guide for Sunnyvale for details.
Accessory Structures
ADU Owner Occupancy: Under SMC Title 19 and California Government Code 65852.2(a)(8), Sunnyvale does NOT require owner-occupancy for standard ADUs. Owner-occupancy is required only for Junior ADUs (JADUs) under California Government Code 65852.22, with a deed restriction recorded against the property..
Also covered: Tiny Homes (moderate), Carport Rules (moderate), ADU Impact Fees (permissive). See the full accessory structures guide for Sunnyvale for details.
Short-Term Rentals
Night Caps: Unhosted nights are effectively zero in Sunnyvale because only hosted STRs are allowed. Hosts must be on-site during the entire guest stay under SMC 19.76..
Also covered: Registration Rules (strict), Insurance Requirements (moderate), Occupancy Limits (strict). See the full short-term rentals guide for Sunnyvale for details.
Landscaping Rules
Water 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..
Also covered: Artificial Turf (permissive), Weed Ordinances (moderate), Native Plants (permissive). See the full landscaping rules guide for Sunnyvale for details.
Swimming Pools & Spas
Fencing Requirements: 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..
Also covered: Pool Permits (moderate), Hot Tub Rules (moderate), Safety Rules (strict). See the full swimming pools & spas guide for Sunnyvale for details.
Building Setbacks & Zoning
Structure Height Limits: Structure height in Sunnyvale depends on zone. R-1 homes are capped at about 30 feet or 2 stories; mixed-use and commercial zones permit taller buildings under Title 19..
Also covered: Setback Rules (moderate), Lot Coverage Limits (moderate). See the full building setbacks & zoning guide for Sunnyvale for details.
Food Trucks & Mobile Vendors
Food Truck Permits: Food trucks in Sunnyvale need a Santa Clara County health permit, a business license, and must comply with SMC Title 5 and SB 946 vending rules on sidewalks..
Also covered: Vending Zones (moderate). See the full food trucks & mobile vendors guide for Sunnyvale for details.
Rental Property Rules
Rent Control: Sunnyvale has local Rent Stabilization plus statewide AB 1482 protections. Most multifamily rentals are capped at annual CPI-based increases with just-cause eviction requirements..
Also covered: Rental Registration (permissive), Just Cause Eviction (moderate). See the full rental property rules guide for Sunnyvale for details.
Outdoor Lighting
Light Trespass: Light trespass onto neighboring property in Sunnyvale is a nuisance under SMC Title 9 and Title 19. Offenders can be required to shield or redirect fixtures..
Also covered: Dark Sky Rules (moderate). See the full outdoor lighting guide for Sunnyvale for details.
Trash & Recycling
Bulk Item Disposal: Sunnyvale residents receive two free on-call bulky item pickups per year through Specialty Solid Waste for furniture, appliances, and large items..
Also covered: Pickup Rules & Schedules (moderate), Bin Placement Rules (moderate), Recycling Requirements (moderate). See the full trash & recycling guide for Sunnyvale for details.
Property Maintenance
Vacant Lot Maintenance: Sunnyvale requires owners of vacant lots to maintain properties free of weeds, debris, and fire hazards with seasonal weed abatement enforced by the fire marshal..
Also covered: Trash Bin Storage (moderate), Garage Sale Rules (permissive), Snow & Sidewalk Clearing (permissive). See the full property maintenance guide for Sunnyvale for details.
Garage & Yard Sales
Garage Sale Permits: Sunnyvale does not require a permit for residential garage sales but limits frequency and restricts advertising signs to private property..
Sign Regulations
Holiday Displays: Sunnyvale allows seasonal holiday lights and decorations on residential property with few restrictions, focusing on safety, right-of-way, and neighbor impact..
Also covered: Garage Sale Signs (moderate), Political Signs (permissive). See the full sign regulations guide for Sunnyvale for details.
Curfew Laws
Juvenile Curfew: Sunnyvale enforces a juvenile curfew prohibiting minors under 18 from being in public places during overnight hours without a parent or valid exception..
Also covered: Park Curfew (moderate). See the full curfew laws guide for Sunnyvale for details.
Soliciting & Door-to-Door
No-Knock Registry: Sunnyvale solicitors must honor posted No Soliciting signs and leave property immediately when asked, with violations treated as trespass..
Also covered: Solicitor Permits (moderate). See the full soliciting & door-to-door guide for Sunnyvale for details.
HOA Rules
Board Procedures: HOAs in Sunnyvale follow the California Davis-Stirling Common Interest Development Act (Civil Code 4000-6150), which governs meetings, voting, records, and director duties..
Also covered: CC&R Enforcement (moderate), Dispute Resolution (moderate), Architectural Review (moderate). See the full hoa rules guide for Sunnyvale for details.
Building Safety
Elevator Maintenance: Elevators in Sunnyvale are regulated by Cal/OSHA Division of Occupational Safety and Health Elevator Unit. Annual permits and inspections are required under Labor Code 7300-7324..
Also covered: Scaffold & Sidewalk Shed (moderate), Pest Control (moderate), Lead Paint (strict). See the full building safety guide for Sunnyvale for details.
Cannabis Regulations
Dispensary Zoning: Sunnyvale prohibits all commercial cannabis retail activity including dispensaries, delivery-only businesses, cultivation, manufacturing, and testing within city limits..
Also covered: Home Cultivation (moderate). See the full cannabis regulations guide for Sunnyvale for details.
Solar Energy
Panel Permits: Sunnyvale offers online solar permits under AB 1236 and SB 379. Residential rooftop PV typically earns same-day approval.
Also covered: HOA Restrictions (permissive). See the full solar energy guide for Sunnyvale for details.
Drone Rules
Commercial Drones: Commercial drone operations in Sunnyvale require FAA Part 107 certification, proper airspace authorization, and a Sunnyvale business license for local operators..
Also covered: Recreational Drones (moderate). See the full drone rules guide for Sunnyvale for details.
Parking Rules
RV & Boat Parking: RVs, trailers, and boats over 6 feet tall or 22 feet long are restricted on Sunnyvale streets under SMC Title 10. Short-term loading is allowed with limits; long-term storage requires off-street parking..
Also covered: EV Charging (permissive), Overnight Parking (moderate), Abandoned Vehicles (moderate). See the full parking rules guide for Sunnyvale for details.
Holiday Decorations
Holiday Light Rules: Sunnyvale has no municipal ordinance limiting holiday lights on private residential property. Restrictions come from HOA architectural rules under the California Davis-Stirling Act.
Also covered: Inflatable Display Rules (permissive), Lawn Ornament Rules (permissive). See the full holiday decorations guide for Sunnyvale for details.
Outdoor Cooking
BBQ & Propane Rules: Sunnyvale enforces the California Fire Code (CFC) as adopted in SMC Title 16 (Building and Construction). CFC 308.1.4 prohibits open-flame cooking on combustible balconies or within 10 feet of combustible construction at apartments and condos.
Also covered: Outdoor Kitchen Permits (moderate), Smoker Rules (moderate). See the full outdoor cooking guide for Sunnyvale for details.
What to Do With This Information
If you are moving to Sunnyvale, buying a home, or starting a project, use this as a starting point. Each category links to detailed pages with the full text, penalties, and FAQs. Verify anything time-sensitive with Sunnyvale's city hall or code enforcement office.