San Francisco, CA Animal Ordinances: Chickens & Livestock (2026)
Key Facts
- Permit required
- DPH stable permit for livestock
- Family exception
- Up to 2 female goats, no permit
- One cow
- Allowed per lot with stable permit
- Two+ cows
- Requires 1 acre per 2 cows
Summary
Keeping horses, cows, goats or other livestock in San Francisco requires a stable permit from the Department of Public Health, with only a narrow family-goat exception.
It shall be unlawful to construct and maintain a stable, or to maintain an existing stable for one or more horses, donkeys, mules, cows, goats or livestock without a permit therefor from the Department of Public Health. The provisions of this Section and the provisions of Part II, Chapter I, of the Municipal Code shall not apply in cases where not more than two female goats are kept for the exclusive use of the owner's family. No permit shall be granted for a stable hereafter to be constructed and maintained, or for the future maintenance as a stable of a building not used as such, except on the report of the Department of Public Health, or other such satisfactory evidence, that the proposed place of construction or maintenance of such stable is unobjectionable from the point of view of sanitation and of the health and physical welfare of the inhabitants of the immediate neighborhood of its location. The provisions of this Section and the provisions Part II Chapter I of the Municipal Code shall not apply to an activity where, for less than 12 hours per day, horses are being hitched or unhitched, or standing or being fed waiting to be hitched or unhitched, provided such activity does not require or involve the construction or maintenance of a building. The Department of Public Health shall not refuse a permit for the maintenance of a stable in a building now constructed and maintained as a stable except upon satisfactory evidence that such stable is conducted in an
Official source re-checked September 7, 2026: no newer edition of the code had been published (publisher’s edition: 2026 S-96: Codes: last updated to include changes made by legislation through Ordinance 133-26, File No. 260686, approved July 23, 2026, effective August 23, 2026).
Full Breakdown
San Francisco Health Code Sec. 27 makes it unlawful to construct or maintain a stable for horses, donkeys, mules, cows, goats or livestock without a Department of Public Health permit. The Department can only deny or revoke a permit after a full hearing, but grants require satisfactory evidence the stable won't harm neighborhood sanitation or health. Sec. 12 separately caps cow-keeping without a large land set-aside.
Violations & Fines
Keeping livestock or maintaining a stable without a DPH permit violates Sec. 27; enforcement runs through the Department of Public Health hearing process before permit denial or revocation.
Frequently Asked Questions
Can I keep a horse or cow in San Francisco?
Do I need a permit to keep two pet goats?
Sources & Official References
Other rules in San Francisco
How San Francisco compares: Best Cities for Backyard Chickens·California rules heatmap·Compare San Francisco to another location·View the California animal ordinances overview
See something wrong?
Help us keep this page accurate. If you notice an error or outdated information, let us know.