Skip to main content
CityRuleLookup

Sunnyvale, CA Animal Ordinances: Beekeeping (2026)

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

Key Facts

Hive limit
5 hives per lot (agricultural use permit exempt)
Property line setback
25 feet from side/rear lines
Dwelling setback
100 feet from any other dwelling unit
Registration
Filed with Santa Clara County agriculture commissioner
Fence requirement
6-foot solid fence within 30 feet of hives
Neighbor waiver
Written consent good for 2 years, 90-day notice to revoke

Summary

Sunnyvale caps residential apiaries at five hives per lot under Municipal Code Chapter 6.08. Hives must sit at least 25 feet from side or rear property lines and 100 feet from any neighboring dwelling, whichever is greater, and every hive address is registered with the Santa Clara County agricultural commissioner.

No person shall keep or maintain any hive of bees in the city except under the following conditions: (a) No more than five hives shall be maintained on any one lot or parcel of land except that this condition shall not apply to any agricultural use within any zone pursuant to a use permit. The address of all such hives shall be registered with the office of the Santa Clara County agriculture commissioner. (b) No hive shall be kept or maintained within twenty-five feet of any side or rear property line of the lot or parcel of land upon which situated... or within one hundred feet of any dwelling unit, other than that occupied by the person maintaining the hives, whichever distance is greater and more restrictive.

Full Breakdown

010 sets the operative standards: no more than five hives per lot (agricultural uses under a use permit are exempt), and the address of every hive must be registered with the office of the Santa Clara County agriculture commissioner. Placement is tightly controlled. A hive cannot sit within 25 feet of any side or rear property line or within 100 feet of any dwelling unit other than the keeper's own, whichever distance is greater. Hives also cannot sit forward of the front building line unless they are at least 100 feet from the street right-of-way edge.

Every hive entrance must face the keeper's own house or building, be enclosed by a solid fence at least six feet tall located no farther than 30 feet from the hives (open on the side facing the keeper's building), or alternatively be mounted more than ten feet above the ground facing the keeper's structure. A constant, adequate water supply must be maintained on the premises for the bees. 010(b) only by filing the adjoining owners' and adult occupants' written consent with the administrator; that consent is irrevocable for two years, and afterward can be revoked with at least 90 days' written notice filed with the administrator.

040(c) and the rest of the animal code regardless of beekeeping compliance. 08 from the 'wild animal' classification that otherwise bans exotic and dangerous animals citywide.

Violations & Fines

Keeping bees outside Chapter 6.08's conditions is a public nuisance under Section 6.08.020 and, per Section 6.10.020, is enforceable as an infraction (misdemeanor at the enforcement officer's discretion for certain sections) punishable under Chapter 1.04, plus civil or nuisance-abatement action. Animal control officers hold peace-officer authority under Section 6.10.010 to inspect premises for compliance.

Frequently Asked Questions

How many beehives can I keep in Sunnyvale?
Up to five hives per lot under Section 6.08.010, unless the property has an agricultural use permit, in which case the five-hive cap does not apply. Every hive's address must still be registered with the Santa Clara County agriculture commissioner.
Can I get closer to my neighbor's property line than the code allows?
Yes. Section 6.08.020 lets you waive the 25-foot/100-foot setback in 6.08.010(b) by filing written consent from the adjoining owners and adult occupants with the city administrator. That consent lasts two years and can then be revoked with 90 days' written notice.
Which way do hive entrances have to face in Sunnyvale?
Section 6.08.010(d) requires every hive entrance to face the house or building occupied by the keeper, and the hives must be enclosed by a solid fence at least six feet tall within 30 feet, left open only on the side facing the keeper's building.
What happens if my hives don't meet these standards?
Section 6.08.020 declares noncompliant hives a public nuisance, and Section 6.10.020 makes violations enforceable as an infraction under Chapter 1.04, alongside civil or nuisance-abatement proceedings brought by the city.

Sources & Official References

Other rules in Sunnyvale

All Sunnyvale rules

California rules heatmap·Compare Sunnyvale to another location·View the California animal ordinances overview

Get notified when Beekeeping in Sunnyvale, 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.

Beekeeping in Nearby Cities

How other cities in Santa Clara County handle beekeeping.

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