Skip to main content
CityRuleLookup

Alameda County, CA Accessory Structures: Shed & Carport Rules (2026)

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

Shed permit rules in Alameda County, CA, also referred to as storage shed, backyard shed, or accessory building regulations, set size limits, setbacks, and when a building permit is required.

Key Facts

Min. building separation
6 feet from other buildings
Max height
15 feet, one story
Rear-yard coverage cap
30 percent (§ 17.52.320)
Governs
Unincorporated Alameda County only

Summary

In unincorporated Alameda County's R districts, a detached shed or accessory building must sit at least six feet from any other building, stay one story, and stay under fifteen feet tall under the county zoning code.

City-specific rules exist: Berkeley, Hayward, San Leandro, Fremont, and Oakland have their own shed & carport rules rules that differ from Alameda County's county-level regulations. If you live in one of those cities, check the city-specific page instead.

Every accessory building attached to a main building shall be subject to all the requirements of this title applicable to the main building. No detached accessory building in an R district shall be located within six feet of any other building on the same lot, or have more than one story or a height in excess of fifteen (15) feet.

Source: Alameda County Code Section 17.52.260 (Accessory buildings)View official code

Full Breakdown

Alameda County Code Section 17.52.260 governs accessory buildings, sheds, detached garages and similar structures, in the county's R districts, covering unincorporated communities like Castro Valley and San Lorenzo. A detached accessory building cannot sit within six feet of any other building on the lot, cannot exceed one story, and cannot exceed fifteen feet in height. Related sections add more limits: Section 17.52.270 bars accessory buildings from the front half of the lot, Section 17.52.280 sets a separate corner-lot rule, and Section 17.52.320 caps rear-yard coverage at thirty percent. None of this reaches Oakland, Berkeley or the county's other incorporated cities.

Violations & Fines

An oversized, too-close or misplaced shed is a zoning violation; the county can order it removed, relocated or reduced in size and cite the property owner under the code's enforcement chapter.

Frequently Asked Questions

How close can a shed be to my house in unincorporated Alameda County?
In an R district, a detached accessory building must stay at least six feet from any other building on the lot, per county code § 17.52.260.
How tall can a shed be?
No more than one story or fifteen feet in height under § 17.52.260; corner-lot and rear-yard placement carry separate limits in §§ 17.52.270–.320.

Sources & Official References

Other rules in Alameda County

All Alameda County rules

How Alameda County compares: Shed Permit Requirements by City·California rules heatmap·Compare Alameda County to another location·View the California accessory structures overview

Get notified when Shed & Carport Rules in Alameda County, 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.

Shed & Carport Rules in Cities Across Alameda County