San Francisco Health Code Article 1 Section 37 allows up to 4 small animals (chickens, ducks, rabbits) per household without a permit. Roosters are prohibited. Coops must be 20 feet from any dwelling, and larger livestock require a special permit.
SF allows backyard chickens. Under Health Code Section 37, residents may keep up to four small animals (hens, ducks, rabbits, pigeons) without any permit. Roosters are entirely prohibited due to noise. Coops and enclosures must be kept clean, rodent-proof, and located at least 20 feet from any dwelling (including the keeper's own house) and at least 10 feet from property lines. More than 4 birds, or any keeping of goats, sheep, pigs, cows, or horses, requires a special permit from the Department of Public Health and is generally only granted on large lots with substantial setbacks, effectively limiting large livestock to a handful of rural edges of the city. Slaughter and butchering are prohibited on residential lots. Sale of eggs from backyard flocks is allowed in small quantities directly to neighbors without a food license, but commercial sale requires CDFA egg-handler registration. HOAs may further restrict or ban chickens even where the city allows them. Noise from a permitted coop that disturbs neighbors is still a violation of the Noise Ordinance.
Specific penalty amounts for this ordinance are not published in a publicly accessible fine schedule. Contact San Francisco code enforcement directly for current fines, enforcement procedures, and hearing options.
See how San Francisco's chickens & livestock rules stack up against other locations.
Help us keep this page accurate. If you notice an error or outdated information, let us know.