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

Thinking about keeping backyard hens in San Francisco? The city's Health Code allows a small home flock, but folds chickens into a combined 4-animal household cap and requires an approved, properly set-back coop — here's what Peggy's Happy Chickens found when we read the actual ordinance.
Yes – with conditions
Yes. San Francisco's Health Code Article 1, Sec. 37 ("Keeping and Feeding of Small Animals, Poultry and Game Birds") allows residents to keep chickens in residential districts, subject to a combined household cap and a mandatory coop-distance rule.
Specifically, the code states it is unlawful to keep, in any combination, more than a total of four dogs (6+ months, unless licensed as a kennel), hares, rabbits, guinea pigs, rats, mice, gerbils, chickens, turkeys, geese, ducks, doves, pigeons, game birds, or cats on a residential property (§ 37(a)). This means the '4' limit widely cited for San Francisco chickens is actually a combined small-animal cap, not 4 chickens on top of other pets.
Outdoor coops or enclosures must be approved by the Director of Public Health and, if located outside or on top of a building, must be at least 20 feet from any door or window of a building used for human habitation (§ 37(b)). Commercial keeping/breeding of poultry is separately banned in residential districts and requires a Health Department permit if conducted in commercial/industrial zones (§ 37(c)-(d)).
The ordinance's text does not separately address roosters; noise/nuisance complaints about crowing would generally be handled under the city's general nuisance and noise provisions rather than a rooster-specific ban in Sec. 37 itself.
The rules, straight from the municipal code.
USDA Hardiness Zone 10a/10b (Mediterranean/marine west coast climate)
San Francisco has a cool, foggy, marine-influenced climate with mild year-round temperatures — rarely freezing in winter and rarely hot in summer, especially near the coast/fog belt. Chicken keepers generally need to worry more about damp, chilly, windy conditions and summer fog than heat stress, though inland/eastern neighborhoods can get warmer summer afternoons.
Urban and park-adjacent San Francisco neighborhoods have healthy populations of raccoons, opossums, and skunks that are skilled at exploiting weak coop latches, and red-tailed hawks and other raptors patrol backyards for free-range birds during the day. Coyotes have also become established in city parks (e.g., Golden Gate Park) and surrounding greenbelts and can be a nighttime threat to poorly secured flocks.
Australorp, Orpington, Wyandotte, Easter Egger, Plymouth Rock — cold/damp-tolerant, calm, relatively quiet dual-purpose breeds well suited to SF's foggy, mild climate and small urban yards
Our package comes with two Rhode Island Reds – hardy in heat and cold, and friendly with kids.
San Francisco's Health Code caps chickens together with other small animals (dogs 6mo+ not in a licensed kennel, cats, rabbits, ducks, etc.) at a combined total of 4 per residential property — it isn't a standalone '4 chickens' allowance if you also keep other qualifying pets.
The Health Code's poultry-keeping section does not specifically call out roosters, so there is no explicit rooster ban in the ordinance itself; however, crowing that becomes a nuisance could still be addressed under the city's general nuisance/noise rules, and many local guides advise against keeping roosters in dense residential areas.
No standalone 'chicken permit' is described in the ordinance for small residential flocks (4 or fewer combined animals); the code instead requires that your coop/enclosure be approved by the Director of Public Health. Permits are required only for commercial poultry-keeping operations in commercial/industrial districts.
Under Health Code Sec. 37(b), an outdoor coop or enclosure must be at least 20 feet from any door or window of any building used for human habitation.
The ordinance prohibits keeping or breeding poultry 'for commercial purposes' in residential districts, so selling eggs or meat from a residential flock would need to comply with the commercial permitting and facility standards in Sec. 37(d), which are designed for commercial/industrial districts, not typical backyard coops.
City rules change, and this page is a summary rather than legal advice. Please confirm with San Francisco or your HOA before you order – and call us on (559) 321-7271 if you'd like a hand. Last checked August 3, 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
