Skip to main content
CityRuleLookup

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

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

Shed permit rules in Hayward, 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

Governing section
HMC Sec. 10-1.204(a)
Setback, sheds ≤120 sq ft
3 feet from side/rear line
Setback, sheds >120 sq ft
5 feet from side/rear line
Separation from other structures
5 feet minimum
Lot coverage cap
50% of primary building's floor area
Allowed rooms
Bathroom yes, kitchen/bedroom no

Summary

Hayward caps detached sheds, garages and similar accessory buildings at 50 percent of the primary home's ground floor area and sets sliding setbacks based on size. Sec. 10-1.204(a) of the Zoning Ordinance governs every residential district: RNP, RL, RM and RH.

a.Accessory Buildings, Detached. Detached accessory buildings, including but not limited to carports, garages, greenhouses, freestanding patio covers, and sheds shall meet the following criteria. Does not include Accessory Dwelling Unit(s) - see Section 10-1.2740.(1)Metal or plywood structures shall be painted.(2)Shall not be located in a required front yard or side street yard.(3)Shall not be located in front of a primary building, with the exception of detached carports or garages.(4)Accessory buildings less than or equal to 120 square feet in area shall be setback a minimum of 3 feet from a side and rear property line.(5)Accessory buildings exceeding 120 square feet in area shall be setback a minimum of 5 feet from a side and rear property line.(6)Shall be setback a minimum of 5 feet from any structure.(7)The total area of all accessory buildings shall not exceed 50 percent of the ground floor area of the primary building(s).(8)Accessory buildings may include a bathroom but shall not include a kitchen or bedroom.

View official code

Official source re-checked September 7, 2026: no newer edition of the code had been published (publisher’s edition: Municipal Code: Supplement 28 Update 1 | Charter: Supplement 1).

Full Breakdown

Under Hayward Municipal Code Sec. 204(a), Minimum Design Standards Applicable to All Districts, a detached accessory building, defined to include carports, garages, greenhouses, freestanding patio covers and sheds, must meet a sliding setback scale keyed to footprint. A shed of 120 square feet or less needs only a 3-foot setback from side and rear property lines; anything larger than 120 square feet must sit back a full 5 feet from those same lines. Every accessory building, regardless of size, must also keep a minimum 5-foot separation from any other structure on the lot.

The ordinance bars placement in a required front yard or side street yard, and bars sheds from standing in front of the primary house, though it carves out an exception for detached carports and garages that can sit forward. Cumulatively, all accessory buildings on a lot cannot exceed 50 percent of the ground floor area of the primary building, a hard ceiling the Planning Division checks against the house's own footprint at permit review. The code also regulates materials and use: metal or plywood accessory structures must be painted, and while a shed may include a bathroom, it cannot contain a kitchen or a bedroom, keeping it from functioning as a second dwelling.

The section expressly carves out accessory dwelling units from these standards, sending ADU projects instead to the separate ADU rules at Sec. 2740, since state ADU law under Gov. Code Sec. overrides local size and setback limits for those units. A homeowner planning a shed near the 120-square-foot line should measure footprint first, since crossing that threshold nearly doubles the required side and rear clearance from 3 to 5 feet.

Violations & Fines

Hayward's Planning Division and Code Enforcement Officers review accessory structures for compliance at building permit issuance and can flag existing sheds during complaint-driven inspections. A shed placed inside the required setback, sited in a front yard, or exceeding the 50-percent lot-coverage cap is treated as a zoning violation. The City can withhold a building permit until the structure is relocated or resized, and an unpermitted or non-conforming accessory building found during an inspection can be ordered corrected or removed as a condition of any related permit approval on the property.

Frequently Asked Questions

How close to my property line can I build a shed in Hayward?
It depends on size. Under HMC Sec. 10-1.204(a), a shed of 120 square feet or less needs a 3-foot setback from side and rear property lines. A shed larger than 120 square feet needs a full 5-foot setback from those same lines, plus 5 feet from any other structure on the lot.
Can I put a shed in my front yard in Hayward?
No. Sec. 10-1.204(a) bars detached accessory buildings, including sheds, from a required front yard or side street yard, and bars placing one in front of the primary house, except for detached carports or garages.
How big can a backyard shed be in Hayward before it violates zoning?
There is no flat square-footage cap, but all accessory buildings on the lot combined cannot exceed 50 percent of the ground floor area of the primary residence under Sec. 10-1.204(a). Exceeding that ratio is a zoning violation regardless of the shed's individual size.
Can I live in my shed or add a kitchen in Hayward?
No. Sec. 10-1.204(a) allows a bathroom in an accessory building but expressly prohibits a kitchen or bedroom, which would turn it into an unpermitted dwelling. A true second unit must go through the separate Accessory Dwelling Unit process under Sec. 10-1.2740.

Sources & Official References

Other rules in Hayward

All Hayward rules

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

Get notified when Shed & Carport Rules in Hayward, 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 Nearby Cities

How other cities in Alameda County handle shed & carport rules.

Berkeley, CA
Some Restrictions
San Leandro, CA
Some Restrictions
Fremont, CA
Some Restrictions
Oakland, CA
Heavy Restrictions