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 146 ordinances across 43 categories that affect daily life in Sunnyvale.
Soliciting & Door-to-Door
Solicitor Permits: Door-to-door commercial solicitors in Sunnyvale must obtain a peddler/solicitor permit and business license before conducting sales or service canvassing..
Also covered: No-Knock Registry (moderate). See the full soliciting & door-to-door guide for Sunnyvale for details.
Trash & Recycling
Dumpster Rules: Sunnyvale allows a debris box or dumpster on private property during building construction or remodeling only in conjunction with a valid building permit, and it must come off the lot within one year of the miscellaneous plan permit's issuance or when construction finishes, whichever happens first (Muni Code Sec. 19.82.020(k))..
Also covered: Bin Placement Rules (moderate), Recycling Requirements (limited), Yard Waste Collection (moderate). See the full trash & recycling guide for Sunnyvale for details.
HOA Rules
Dispute Resolution: Before suing, Sunnyvale HOA members must use Internal Dispute Resolution or Alternative Dispute Resolution under Civil Code 5900-5965 of the Davis-Stirling Act..
Also covered: CC&R Enforcement (limited), Assessment & Dues (permissive), Architectural Review (moderate). See the full hoa rules 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..
Sign Regulations
Digital Billboards: Sunnyvale confines digital billboards, called electronic message centers, to the city's regional retail zoning areas and, per § 19.44.160(c)(1), bans them everywhere else. Where allowed, an EMC wall sign tops out at one hundred square feet, a ground sign at fifty square feet per side and ten feet tall, and every EMC must sit at least one hundred fifty feet from residential zoning..
Also covered: Political Signs (moderate), Window Signs (limited), Garage Sale Signs (limited). See the full sign regulations guide for Sunnyvale for details.
Fire Regulations
Outdoor Burning: Sunnyvale makes it unlawful for anyone to burn discarded materials anywhere in the city. Municipal Code Section 8.16.070, part of the Solid Waste, Recyclable Materials and Organic Materials chapter, bans burning trash, recyclables, and organic material that would otherwise go into collection service, rather than allowing residents to dispose of waste with a backyard burn pile or barrel fire..
Also covered: Wildfire Zones (moderate), Fireworks (strict), Propane Storage (moderate). See the full fire regulations guide for Sunnyvale for details.
Swimming Pools & Spas
Fencing & Safety Requirements: 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: Pool Permits (moderate). See the full swimming pools & spas guide for Sunnyvale for details.
Noise Ordinances
Amplified Music & Outdoor Sound: Sunnyvale bans outdoor loudspeakers and sound amplifiers between 10 p.m. and 10 a.m.
Also covered: Barking Dogs (moderate), Leaf Blower Rules (moderate), Construction Hours (moderate). See the full noise ordinances 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 (moderate), Just Cause Eviction (strict). See the full rental property rules 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: Expedited Solar Permitting (limited), HOA Restrictions (permissive). See the full solar energy guide for Sunnyvale for details.
Building Safety
Fire Sprinkler Requirements: Sunnyvale requires an automatic residential fire sprinkler system in every new townhouse unit and every new one- and two-family dwelling under Municipal Code Section 16.17.080, amending the 2025 California Residential Code. Existing homes and townhouses must add sprinklers too if additions or conversions push more than 50 percent of the habitable area into new space, and systems must follow NFPA 13D and local standards..
Also covered: Lead Paint (moderate), Childcare Center Rules (moderate), Plumbing Permits (moderate). See the full building safety guide for Sunnyvale for details.
Animal Ordinances
Exotic Pets: Sunnyvale follows California Fish and Wildlife restricted species rules. Native wildlife, large constrictors, primates, and big cats are banned.
Also covered: Wildlife Feeding (restrictive), Pet Store Rules (restrictive), Chickens & Livestock (moderate). See the full animal ordinances guide for Sunnyvale for details.
Business Licensing & Operations
Massage Establishments: Operating a massage establishment in Sunnyvale requires a permit from the Department of Public Safety, on top of the standard business license. Every massage therapist must hold current CAMTC certification, and owners face a background check, fingerprinting and a felony history review before a permit issues..
Also covered: Adult Entertainment (restrictive), Auto Repair on Residential Property (restrictive). See the full business licensing & operations guide for Sunnyvale for details.
Environmental Rules
Stormwater Management: Sunnyvale's Chapter 12.60 stormwater ordinance bans any discharge to the storm drain system that isn't composed entirely of stormwater, unless a specific exemption applies, under Municipal Code Section 12.60.070. Adopted under the city's NPDES municipal stormwater permit, the rule covers every developed and undeveloped parcel in the city and carries civil penalties up to $10,000 per gallon for the worst violations..
Also covered: Flood Zones (moderate), Erosion Control (moderate), Flood Elevation Requirements (moderate). See the full environmental rules guide for Sunnyvale for details.
Zoning Overlays & Bonuses
Downtown Design Guide: Development in Sunnyvale's Downtown Specific Plan district must follow the DSP document's architectural and design guidelines plus block-by-block setback and open space standards, and the DSP controls if it conflicts with the general zoning code..
Also covered: Density Bonus Law (moderate). See the full zoning overlays & bonuses guide for Sunnyvale for details.
Sidewalk & Pedestrian Rules
Encroachment Permits: Sunnyvale requires a city engineer-issued encroachment permit before anyone builds, plants or places anything in the public right-of-way, under Municipal Code Section 13.08.030. Unpermitted encroachments are a public nuisance the city can abate, and owners with unpermitted work in place before the chapter's effective date had to apply by April 1, 1995 or risk removal..
Also covered: Obstruction Rules (moderate). See the full sidewalk & pedestrian rules guide for Sunnyvale for details.
Food Trucks & Mobile Vendors
Sidewalk & Mobile Vending: Sunnyvale requires a miscellaneous plan permit from the director of community development before anyone can vend from a pushcart on a public sidewalk, tying each vendor to one fixed, approved spot and limiting hours to 8 a.m. to 9 p.m.
Also covered: Food Truck Permits (moderate), Vending Zones (moderate). See the full food trucks & mobile vendors guide for Sunnyvale for details.
Public Conduct
Public Alcohol Use: Drinking alcohol or carrying an open container on Sunnyvale streets, sidewalks, parkstrips, alleys, public parks or other public property is unlawful under Municipal Code Section 9.66.010 unless a permit or ordinance expressly authorizes it there. The ban even reaches private parking lots open to the public unless the lot owner allows it..
Also covered: Jaywalking (limited), Loud Party Ordinance (restrictive), Loitering Rules (limited). See the full public conduct guide for Sunnyvale for details.
Accessory Structures
ADU Rental Restrictions: Sunnyvale bars any accessory dwelling unit approved on or after January 1, 2020 from ever being used as a short-term rental. Section 19.79.040(r) makes the ban a permanent condition of the ADU itself, cross-referenced against the short-term rental chapter regardless of who lives on the property..
Also covered: Garage Conversions (restrictive), ADU Rules (moderate), Shed & Carport Rules (moderate). See the full accessory structures guide for Sunnyvale for details.
Building Setbacks & Zoning
Lot Coverage Limits: Sunnyvale caps lot coverage for single-story homes in the R-0, R-1 and R-2 districts at 45 percent of the lot and two-story homes at 40 percent, under Table 19.32.020 of Municipal Code Chapter 19.32. R-1.5 and R-1.7/PD lots are capped at 40 percent regardless of story count, while most commercial and industrial districts allow 35 to 45 percent..
Also covered: Setback Rules (moderate), Structure Height Limits (moderate). See the full building setbacks & zoning guide for Sunnyvale for details.
Landscaping Rules
Tree Removal & Heritage Trees: Sunnyvale bans removing or damaging any 'protected tree,' meaning a tree 38 inches or more in trunk circumference measured 4.5 feet above grade, without a protected tree removal permit from the department of community development. Applications must be filed at least 10 working days before the planned removal (Muni Code Sec.
Also covered: Water Restrictions (moderate), Weed Ordinances (moderate), Rainwater Harvesting (moderate). See the full landscaping rules guide for Sunnyvale for details.
Fence Regulations
Material Restrictions: Sunnyvale bans electrically charged fences and any barbed wire, razor wire, or injury-designed fencing on or near residential property, and prohibits new chain link fences in front yards of residential lots built after January 1, 2010..
Also covered: Height Limits (moderate), Fence Permit Requirements (moderate), Neighbor Fence Rules (moderate). See the full fence regulations guide for Sunnyvale for details.
Outdoor Cooking
Outdoor Kitchen Permits: Sunnyvale zoning classifies built-in barbecues, outdoor fireplaces and accessory cooking areas as "Open Outdoor Equipment," an accessory-structure category under Municipal Code Chapter 19.40. Units 450 square feet or less need no planning permit in side or rear yards if 8 feet tall or less, but they cannot go in the front yard at all, and taller installations need a miscellaneous plan permit..
Water Use Rules
Leak Reporting Duty: Sunnyvale outlaws letting broken or defective plumbing, sprinklers or irrigation systems leak potable water under Municipal Code Section 12.34.020(a)(1). The Director of Environmental Services enforces the ban citywide, and repeat offenders face a mandatory flow-restricting device installed on their water service line rather than just a warning..
Also covered: Turf Replacement Rebates (moderate). See the full water use rules guide for Sunnyvale for details.
Hotels & Lodging
Transient Occupancy Tax: Sunnyvale charges a 12.5% transient occupancy tax on rent for any hotel, motel, or other structure rented for lodging under 30 consecutive days, a rate unchanged since January 1, 2019 under Chapter 3.16. Operators collect the tax from guests and remit it monthly to the city's director of finance, the tax administrator..
Noise from Specific Sources
Delivery Truck Noise: Sunnyvale bans nighttime deliveries, 10 p.m. to 7 a.m., to any commercial or industrial establishment whose loading area sits adjacent to a residential use.
Also covered: Car Alarm Limits (permissive). See the full noise from specific sources guide for Sunnyvale for details.
Local Taxes & Fees
Business Tax Classification: Sunnyvale's business license tax under Chapter 5.04 isn't tiered by industry or gross receipts: every business pays the same schedule based on its number of employees or rental units, set by Section 5.04.110. The code separately defines specialty categories, like auctioneer, carnival, circus and pawn broker, only to flag extra permits owed under other chapters, not a different tax rate..
Homelessness & Encampment Rules
Encampment Sanitation: Sunnyvale bans camping, storing camp gear, or leaving unattended property in any park, street, or other public property under SMC § 9.63.030 and § 9.63.040. Officers must give an oral warning, then a written warning, before citing or arresting anyone, and unattended property gets a 72-hour posted notice before removal..
Curfew Laws
Park Curfew: Sunnyvale's parks and recreation director sets the daily hours each city park, building, road and ground stays open to the public and must post those hours conspicuously on site. Entering or remaining in a park, or a designated section of one, after posted closing time is unlawful under Municipal Code Section 9.62.090 unless the director grants specific authorization..
Special Events & Permits
Parade Permits: Sunnyvale requires a special event permit before anyone sponsors or conducts a parade, block party, street fair or other event that closes a public street or draws crowds beyond a venue's occupancy load. The special events coordinator in the city manager's office reviews applications, sets conditions for public safety, and can deny permits on fifteen enumerated grounds under Chapter 9.45..
Also covered: Sidewalk Dining & Cafés (restrictive), Park Event Permits (restrictive). See the full special events & permits guide for Sunnyvale for details.
Outdoor Lighting
Dark Sky Rules: Sunnyvale requires every outdoor light, spotlight, floodlight and reflector to be shielded or fitted with special lenses so it cannot glare or shine directly onto a public street or neighboring property. Municipal Code § 19.42.050 also caps non-residential light standards inside the required setback area at eight feet tall wherever that setback abuts a residential zoning district..
Also covered: Light Trespass & Shielding (moderate). See the full outdoor lighting guide for Sunnyvale for details.
Tree Protection
Heritage & Protected Trees: A tree the Sunnyvale city council designates a heritage landmark under Chapter 19.96 needs two permits before it can come down: a protected tree removal permit and a landmark alteration permit, and the heritage preservation commission must approve any material change to it at a public hearing (Muni Code Sec. 19.94.050(a), 19.96.090)..
Also covered: Parkway Planting (moderate). See the full tree protection guide for Sunnyvale for details.
Property Maintenance
Vacant Lot Maintenance: Sunnyvale code enforcement can declare a vacant lot a public nuisance under Municipal Code Section 9.26.030 when it accumulates combustible weeds, litter or trash, or when a vacant building or property is poorly maintained, unsecured, or attracts trespassers. The department of public safety and department of community development share authority to order abatement and place the cost as a lien on the property..
Also covered: Property Blight (restrictive), Snow & Sidewalk Clearing (moderate). See the full property maintenance guide for Sunnyvale for details.
Short-Term Rentals
Short-Term Rental Permits: Sunnyvale bans short-term rentals citywide except for city-approved hosted rentals. Under SMC 19.76.030 and 19.76.050, a host must apply for and receive Community Development Director approval before advertising or operating any stay of thirty days or less, and the director's decision on the application is final..
Also covered: Host Presence Rule (restrictive), Host Platform Liability (moderate), Taxes & Fees (moderate). See the full short-term rentals guide for Sunnyvale for details.
Home Business
Customer Traffic Restrictions: Home occupations in Sunnyvale cannot draw more than three vehicles a day, counting customers, vendors and delivery drivers combined, under Municipal Code Section 19.42.010(j). The director of community development enforces the cap as one of fourteen conditions attached to every home occupation business license, alongside a ban on traffic that interferes with residential street circulation..
Also covered: Home Daycare (permissive), Signage Rules (limited), Zoning & Home Occupation Permits (moderate). See the full home business guide for Sunnyvale for details.
Tobacco & Vaping
Flavored Tobacco Bans: Sunnyvale bans the sale of any flavored tobacco product citywide. Municipal Code Section 9.28.070(e) makes it unlawful for any tobacco retailer to sell, offer for sale, or possess with intent to sell a product with a "characterizing flavor" other than tobacco, from menthol and mint to fruit, candy and dessert flavors..
Garage & Yard Sales
Frequency, Duration & Permits: Sunnyvale's zoning code caps garage sales at any one residence to twice per calendar year, with each sale lasting no more than three consecutive days. The limit is written into Municipal Code Section 19.12.080's definition of "garage sale" and applies to sales of previously used household goods from a residence..
Historic Preservation
Historic-Cultural Monuments: Sunnyvale designates historic properties as "local landmarks" or "local landmark districts" through its heritage preservation commission under Municipal Code Chapter 19.96. Once designated, owners need a landmark alteration permit for construction, demolition, relocation or material exterior change, and must keep the property in good repair..
Parking Rules
Preferential Parking Districts: Sunnyvale's city council can designate residential preferential parking zones under Municipal Code Chapter 10.26 after finding that non-residential vehicles regularly crowd out resident parking. The department of public works issues resident and guest permits, and reselling a permit is unlawful and voids every permit tied to that household..
Also covered: Curb Color Rules (moderate), Loading Zones (moderate), EV Charging (moderate). See the full parking rules guide for Sunnyvale for details.
Mobility & Curb Rules
Bike Lane Rules: Sunnyvale's city council establishes bicycle lanes, routes and bikeways by resolution, and the traffic engineer marks them with signs and roadway striping under Municipal Code Chapter 10.56. Riding on a sidewalk, pedestrian mall or overhead crossing outside those designated facilities is unlawful, and the chapter enforces state Vehicle Code bicycle law alongside its own local provisions..
Data Centers & Crypto Mining
Data Center Noise Limits: Sunnyvale caps operational noise under Municipal Code Sec. 19.42.030.
Also covered: Data Center Zoning & Siting (restrictive). See the full data centers & crypto mining 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..
Gambling & Gaming
Card Room Licensing: Sunnyvale's zoning code defines a "cardroom" as any establishment where a card game is played for currency, check, credit or anything of value, then bans the use outright. Table 19.18.030 marks cardrooms "N" (prohibited) in every residential zoning district, and the commercial-use tables do the same for commercial zones..
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.