Everything you need to know before you start a backyard flock in Sunnyvale – the rules, the climate and the neighbors with teeth.

Thinking about keeping hens in Sunnyvale? The city's Municipal Code allows backyard chickens as regulated "small animals" — no permit needed — but caps flocks at six small animals total, bans adult roosters, and requires a 20-foot setback from neighboring homes. Here's what Peggy's Happy Chickens found when we read the actual ordinance.
Yes – with conditions
Yes. Sunnyvale's Municipal Code Title 6 (Animals), Chapter 6.09 "Small Animals and Livestock," defines chickens as a regulated "small animal" (§6.01.010) and permits them on residential property, subject to the following limits: no more than six small animals total may be kept on a property (§6.09.010(c)), and any rooster over four months of age is unlawful to keep or maintain (§6.09.010(b)). Coops/structures housing the birds must be at least 20 feet from any inhabitable dwelling unit other than the owner's/custodian's own home (§6.09.020(b)), and must otherwise comply with applicable zoning setbacks (§6.09.020(a)). The chapter does not establish any permit or fee requirement for keeping backyard chickens.
The rules, straight from the municipal code.
Mediterranean / USDA Hardiness Zone 9b-10a
Sunnyvale enjoys a mild Mediterranean climate with cool, wet winters and warm, dry summers typical of the South Bay/Silicon Valley. Summer highs regularly reach the mid-80s°F with occasional heat spikes into the 90s-100s, so coops need good cross-ventilation and shade. Winters are mild (rarely near freezing), so cold-hardiness is a minor concern compared to heat management and fire-season air quality in late summer/fall.
Raccoons are the most persistent nighttime coop raiders in Sunnyvale's tree-lined residential neighborhoods, and red-tailed hawks and other raptors pose a daytime threat to free-ranging birds, especially near parks, creeks, and the Baylands. Coyotes are increasingly seen in and around Sunnyvale's greenbelts and open-space areas bordering the Baylands and can access yards after dark, while opossums and skunks are drawn to feed and can raid poorly secured coops. Predator-proof wire, secure latches, and nightly lock-up are strongly advised given the 20-foot setback and enclosure requirements in §6.09.080.
Leghorns, Australorps, Plymouth Rocks, Orpingtons, Easter Eggers, and other heat-tolerant, calm dual-purpose breeds do well in Sunnyvale's warm, dry summers and mild winters.
Our package comes with two Rhode Island Reds – hardy in heat and cold, and friendly with kids.
No. Chapter 6.09 of the Sunnyvale Municipal Code, which governs the keeping of chickens as "small animals," does not impose any permit or fee requirement — it only sets care, sanitation, and setback standards.
Up to six small animals total may be kept per property under §6.09.010(c). Since chickens fall under Sunnyvale's "small animal" definition along with other birds like ducks, geese, and pigeons, that six-animal cap applies to your combined flock of small animals, not chickens alone.
Only temporarily. Section 6.09.010(b) makes it unlawful to keep or maintain any rooster over four months of age, so mature crowing roosters are effectively not allowed within city limits.
At least 20 feet from any inhabitable dwelling unit other than your own, per §6.09.020(b), and the structure must also comply with any additional zoning setbacks that apply to your property.
Coops and enclosures must be kept clean and pest-controlled, with manure, food waste, and debris removed often enough to prevent odor, pests, and disease (§6.09.090), and any waste that could attract flies must be stored in a fly-proof container until removed or buried as fertilizer (§6.09.100).
City rules change, and this page is a summary rather than legal advice. Please confirm with Sunnyvale or your HOA before you order – and call us on (559) 321-7271 if you'd like a hand. Last checked August 6, 2026.
Everything arrives at your door – the coop, two Rhode Island Red hens, and all the gear in between.
Start my farm · $1,499or 4 interest-free payments of $374.75 with
