Can I keep chickens in San Francisco, CA?

Yes — San Francisco allows backyard chickens, up to 4 hens with no permit required. Coops must be at least 20 ft from neighboring lines/homes. (San Francisco Health Code Sec. 37(a)-(b), verified September 2026)

✓ Allowed4 hens maxNo permit needed20 ft coop setback
How many hens can you keep?
You can keep up to 4 hens in San Francisco.

The full rules

Chickens allowedYes
Maximum hens4
Permit requiredNo
Coop setback20 ft
Coop rulesNo more than four total, in any combination, of dogs over six months, cats, rabbits, guinea pigs, rats, mice, gerbils, chickens, turkeys, geese, ducks, doves, pigeons or game birds in residential districts. Chickens must be kept in coops approved by the Director of Public Health; outdoor coops must be at least 20 feet from any door or window of a building used for human habitation. Commercial keeping or breeding in residential districts is prohibited.
Code sectionSan Francisco Health Code Sec. 37(a)-(b)

San Francisco allows up to four small animals per premises in residential districts, and chickens share that cap with dogs, cats and rabbits. Coops must be approved by Public Health and sit at least 20 feet from any door or window of a dwelling. The Health Code has no rooster-specific ban; noise rules still apply.

Chickens are legal in San Francisco. Ready to start your flock? Compare the top US hatcheries that ship day-old chicks to your door — ranked by minimum order, breed selection, and live-arrival guarantees. Find your hatchery →
Sell chicken feed, coops, or chicks? Reach people researching backyard chickens in their city — sponsor CoopCodes.

Common questions

Can I keep chickens in San Francisco?

Yes — chickens are allowed in San Francisco (San Francisco Health Code Sec. 37(a)-(b)).

How many chickens can I keep in San Francisco?

Up to 4 hens.

Do I need a permit to keep chickens in San Francisco?

No — no permit is required for the base allowance in San Francisco.

How far must a chicken coop be from the property line in San Francisco?

20 feet minimum. No more than four total, in any combination, of dogs over six months, cats, rabbits, guinea pigs, rats, mice, gerbils, chickens, turkeys, geese, ducks, doves, pigeons or game birds in residential districts. Chickens must be kept in coops approved by the Director of Public Health; outdoor coops must be at least 20 feet from any door or window of a building used for human habitation. Commercial keeping or breeding in residential districts is prohibited.

What law covers backyard chickens in San Francisco?

San Francisco Health Code Sec. 37(a)-(b). Read the official text at the source linked on this page.

The actual law

San Francisco Health Code Sec. 37(a)-(b) — read the official code

“No more than four fowl of any kind shall be kept upon any lot” source
“(a) Number of animals. It shall be unlawful ... within residential districts, ... (2) more than a total of four of the following in any combination: dogs of age six months or older unless part of a dog kennel, hares, rabbits, guinea pigs, rats, mice, gerbils, chickens, turkeys, geese, ducks, doves, pigeons, game birds of any species, or cats.” source
“(b) Enclosures. ... shall keep same in coops or enclosures that are approved by the Director of Public Health. Where the coops or enclosures are located on the outside of or on top of any buildings, premises or structures, the coops or enclosures shall be not less than 20 feet from any door or window of any building used for human habitation.” source

Last verified September 13, 2026. Always confirm with your municipality — HOA rules can be stricter than city code. How we verify →

Get notified if San Francisco’s ordinance changes
Sell chicken feed, coops, or chicks?

Reach people actively researching backyard chickens in their city. Founding sponsor slots now open.

Apply to become a sponsor →

Nearby & related

Chickens in AnaheimChickens in BakersfieldChickens in Chula VistaChickens in FontanaChickens in FremontChickens in FresnoChickens in GlendaleChickens in HaywardChickens in Huntington BeachChickens in IrvineChickens in Long BeachChickens in Los AngelesAll CA cities