Skip to main content
CityRuleLookup

Milpitas, 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 Milpitas, 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

Covers
Garages, sheds, workshops, gazebos, greenhouses
Rear setback coverage cap
30% of rear setback area
Min setback from rear lot line
3 feet
Min setback, front-half side line
7 feet
Location
Rear half of the lot
Min distance from dwelling
6 feet
R1/R2 distance from neighbor's structure
14 feet

Summary

In the City of Milpitas, a backyard shed is regulated as an accessory structure: it must sit on the rear half of the lot, stay at least three feet from a rear or side lot line abutting the rear half of a neighboring lot (seven feet if it abuts the front half), and, together with other accessory buildings in the required rear setback, cannot cover more than 30 percent of that rear setback area.

The provisions of this Section apply to roofed structures, including but not limited to garages, carports, sheds, workshops, gazebos, greenhouses, pool houses, and covered patios which are detached from and accessory to the main building on the site. ... Maximum coverage. All accessory buildings and structures in the required rear setback area, as well as building additions as described in Subsection C.2.130.A.2.b (Building additions for R1 and R2 zones), are limited cumulatively to a total area not exceeding 30 percent of the area of the required rear setback area. ... Any detached accessory building shall not be located within:(i)Three feet of any rear lot line or side lot line of the rear half of an adjacent lot; or(ii)Seven feet of the side lot line of the front half of any adjacent lot.

Full Breakdown

Section C.2.020 of the Milpitas Municipal Code applies to detached roofed accessory structures, including garages, carports, sheds, workshops, gazebos, greenhouses, pool houses, and covered patios, as well as unroofed structures over 18 inches high such as decks and trellises. A shed can only be built on a lot that already has a main dwelling, and it must generally sit on the rear half of the lot, at least six feet from any existing or under-construction dwelling on the same lot, and, in the R1 and R2 zones, at least 14 feet from a residential structure on an adjacent lot.

Setback rules keep a detached shed at least three feet from a rear lot line or from a side lot line along the rear half of an adjoining lot, and at least seven feet from a side lot line along that lot's front half; eaves may come no closer than three feet to a side or rear line. Coverage is capped separately: all accessory buildings and structures sitting in the required rear setback area, combined with certain building additions, cannot exceed 30 percent of that rear setback area's total size.

Sheds and other accessory buildings must otherwise meet the development standards of whatever base zone they sit in under Part XIII-B, and fences and walls enclosing a shed are regulated separately under Section C.2.040 rather than this section.

Violations & Fines

Building or maintaining a shed that violates the setback, coverage, or location standards of Section C.2.020 is enforced under Chapter D.18. Section D.18.040 makes the violation punishable by a fine of up to $1,000, up to six months in the Santa Clara County Jail, or both, with each day of a continuing violation treated as a separate offense, and Section D.18.060 authorizes a stop-work order until the shed is brought into compliance or removed.

Frequently Asked Questions

How close to my property line can I build a shed in Milpitas?
Under Section C.2.020, a detached shed generally must stay at least three feet from a rear lot line, or from a side lot line along the rear half of a neighboring lot, and at least seven feet from a side lot line along that neighbor's front half.
Is there a limit on how much of my backyard a shed can cover?
Yes. All accessory buildings and structures within the required rear setback area, including sheds, are limited together to no more than 30 percent of that rear setback area, combined with certain building additions counted under the same cap in Section C.2.020.
Where on my lot does a shed have to be located?
A detached accessory building like a shed must generally sit on the rear half of the lot, at least six feet from the main dwelling. In the R1 and R2 zones, it also needs to stay at least 14 feet from any residential structure on an adjacent lot.
What happens if my shed doesn't meet the setback rules?
The city can enforce the violation under Section D.18.040, which carries a fine of up to $1,000, up to six months in the Santa Clara County Jail, or both, plus a possible stop-work order under Section D.18.060 until the shed is moved or brought into compliance.

Sources & Official References

Other rules in Milpitas

All Milpitas rules

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

Get notified when Shed & Carport Rules in Milpitas, 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 Santa Clara County handle shed & carport rules.

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