Skip to main content
CityRuleLookup

Gilroy, CA Animal Ordinances: Chickens & Livestock (2026)

Some Restrictions
Compiled from the official code textEditor Martyn O'NeillLast verified September 2026

Key Facts

Small animal cap
6 per residential property, any combination
Roosters
Prohibited over 4 months of age
Setback from neighbor's home
20 feet minimum
Livestock outside ag zones
Prohibited under § 4.20
Agricultural animal density
Max 2 adult animals per acre

Summary

Gilroy bans chickens and livestock outside agricultural zones under Section 4.20, but its small animals ordinance carves out a residential exception: up to six chickens or similar small animals per property, with roosters over four months old always prohibited.

§ 4.20. Swine, bees, chickens, roosters, peafowl, ostriches and other “Ratitae,” and livestock prohibited except in agricultural zones. (a) It is unlawful for any person to keep, maintain or permit to be maintained bees, swine, llamas, roosters, chickens, pigeons, turkeys, pea fowl, water fowl, ostriches and other “Ratitae,” or live-stock on any premises within the city that have not been zoned for agricultural use, except as otherwise provided in section 4.23. ... § 4.23.2. Exemption. (a) Notwithstanding section 4.20(a), any person may keep and maintain up to six (6) small animals (in any combination) on any premises in residential zones within the city in accordance with the terms and conditions set forth in this section 4.23, and it shall be unlawful for any person to maintain more than six (6) small animals (in any combination) on any premises in residential zones within the city not zoned for agricultural use. ... § 4.23.16. Roosters prohibited. It is unlawful for any person to maintain a rooster over four (4) months of age.

Full Breakdown

Section 4.20 of the Gilroy City Code makes it unlawful to keep chickens, roosters, pigeons, turkeys, pea fowl, water fowl, swine, llamas or other livestock on premises not zoned for agricultural use, 'except as otherwise provided in section 4.23.' That exception is the city's small animals ordinance, added by Ordinance No. 2012-03. Section 4.23.2(a) overrides Section 4.20(a) for residential zones: any person may keep up to six small animals in any combination on a residential property, but it is unlawful to exceed six. Section 4.23.1 defines 'small animal' as chickens, pigeons, turkeys, pea fowl, water fowl and other Ratitae under 24 inches in mature height, plus rabbits, expressly excluding dogs and cats.

Roosters get a flat, separate ban regardless of the six-animal count: Section 4.23.16 makes it unlawful to maintain a rooster over four months of age anywhere the small animals ordinance applies. Keepers must also satisfy a cluster of care standards in the same section: Section 4.23.3 requires fenced confinement, Section 4.23.4 and 4.23.5 require sanitary, weatherproof enclosures, Section 4.23.6 and 4.23.7 require clean water and adequate food, and Section 4.23.15 bars keeping small animals within 20 feet of the nearest dwelling on adjacent property. Livestock proper, such as cattle or larger farm animals, remains confined to agriculturally zoned land under Section 4.20, with agricultural animals on non-agricultural parcels separately capped at two adult animals per acre and a 100-foot setback from the nearest dwelling under Section 4.19.

Violations & Fines

Exceeding six small animals, keeping a rooster over four months old, or violating the confinement, sanitation or 20-foot setback rules in Section 4.23 is enforced as an infraction under Section 4.9's escalating fine schedule of up to $100, then $200, then $500 within a year, rising to a misdemeanor with a fine up to $1,000 and up to six months in jail after four or more violations of the same provision.

Frequently Asked Questions

How many chickens can a Gilroy resident keep in a residential zone?
Up to six small animals in any combination, per Section 4.23.2(a), which overrides the general Section 4.20 ban for residential properties as long as the six-animal cap and the sanitation, confinement and setback rules in Section 4.23 are followed.
Are roosters allowed in Gilroy backyards?
Only until they are four months old. Section 4.23.16 makes it unlawful to maintain a rooster over four months of age, regardless of how many small animals the property is otherwise allowed to keep.
How close to a neighbor's house can chicken coops be in Gilroy?
No closer than 20 feet. Section 4.23.15 prohibits maintaining small animals within 20 feet of the nearest dwelling unit on the adjacent property, measured from the enclosure to the nearest part of that dwelling.

Sources & Official References

Other rules in Gilroy

All Gilroy rules

How Gilroy compares: Best Cities for Backyard Chickens·California rules heatmap·Compare Gilroy to another location·View the California animal ordinances overview

Get notified when Chickens & Livestock in Gilroy, CA changes

We'll email you the moment we detect a change in the code. No spam, unsubscribe anytime.

We'll never sell or share your email. One-click unsubscribe in every email.

See something wrong?

Help us keep this page accurate. If you notice an error or outdated information, let us know.

Chickens & Livestock in Nearby Cities

How other cities in Santa Clara County handle chickens & livestock.

Sunnyvale, CA
Some Restrictions
Santa Clara, CA
Some Restrictions
Mountain View, CA
Some Restrictions
San Jose, CA
Some Restrictions