Home › California › Topics › Sheds & Accessory Buildings
Sheds & Accessory Buildings in California: rules in 22 towns compared
Do I need a permit for a shed, and how close to the property line can it go? Here's how each town answers it. Click a town for the details and the exact ordinance text.
Last reviewed
Quick answer: it depends on the town. Of the 22 California towns we cover, 13 allow it outright, 3 allow it with a permit, 3 allow it with board review, 2 depend on the zone and 1 restricts it. Statewide rules apply everywhere; see the statewide rules section below.
This page is for California homeowners planning a backyard shed or playhouse. Where a shed can go (setbacks, height, lot coverage) is set by your city's zoning code, while the state sets the building-permit baseline. The 2025 California Residential Code exempts one-story detached tool and storage sheds, playhouses and similar structures of 120 sq ft or less from a building permit. Bigger sheds need a permit, as does electrical or plumbing work, and some cities have amended these thresholds. Zoning setbacks, HOA rules and easements still apply to exempt sheds. In a state responsibility area, owners must keep 100 feet of defensible space around buildings (Pub. Res. Code §4291), and in the coastal zone a new structure may need a coastal development permit.
All 22 cities we cover for this topic allow sheds, and most keep them out of the front setback. The big difference is how close a small shed can go to the lot line. Los Altos, Morro Bay and San Clemente let a small shed sit right at the lot line in the rear yard, and Saratoga, Rancho Palos Verdes and Sierra Madre allow one in a setback with approval. Hillsborough is strictest: 20-foot side and rear setbacks, with one shed of 40 sq ft or less allowed closer if the neighbor consents in writing. Tiburon has narrowed the state permit exemption to portable playhouses, so most sheds there need a permit and design review. Pick your city below for the details and the municipal code text.
Town-by-town comparison
| Town | Verdict | Short answer |
|---|---|---|
| Los Altos | Allowed | Sheds are allowed in Los Altos but not in the front setback. A shed up to 120 sq ft and 6 ft tall can go in a side setback behind a solid fence; in the rear setback a shed can be up to 800 sq ft and 12 ft tall, on the property line if under 6 ft or 5 ft back if taller. |
| Saratoga | Allowed with board review | Garden sheds are a permitted accessory use in Saratoga's R-1 zones, but enclosed accessory structures can't go in required setback areas unless an exception applies. With Community Development Director approval, a shed of up to 250 sq ft can sit in the rear setback area at least 6 feet from the side and rear lot lines, at a height of 6 feet plus 1 foot for each extra foot of setback, up to 10 feet. Anywhere else on the lot, accessory structures are capped at 15 feet tall. |
| Los Gatos | Allowed | Yes. In Los Gatos residential zones, one shed under 120 sq ft can go in a side or rear setback with no zoning approval. Larger or additional accessory buildings must be no taller than 15 feet and one story, stay out of the required front and side yards, and sit at least 5 feet from property lines and other buildings. |
| Tiburon | Allowed with board review | A shed in Tiburon generally needs site plan and architectural review (decided by staff for buildings under 500 sq ft) and a building permit, because the town narrowed the state's 120 sq ft permit exemption to portable playhouses. Sheds can't go in front or side setbacks; one up to 12 feet tall may sit in the rear setback if accessory buildings cover no more than 25% of it. |
| Piedmont | Allowed | A one-story shed of 120 sq ft or less doesn't need a building permit in Piedmont, though wildfire-area (WUI) rules still apply citywide. In single-family Zone A, a shed may sit inside the 5-foot side and rear setbacks if it is within 35 feet of the rear lot line, at least 5 feet from a neighbor's house, no taller than 15 feet and not habitable; it can't go in the 20-foot street setback. |
| Lafayette | Allowed | Lafayette treats a shed of 120 sq ft or less as an accessory building. One placed in a required front, side or rear yard may be up to 12 feet tall, and accessory buildings may cover no more than 30% of the required rear yard. Exact setbacks depend on your zone, and building permits go through Contra Costa County. |
| Danville | Allowed with a permit | A building permit is needed for any accessory structure over 120 sq ft, and electrical or plumbing work always needs a permit. A portable shed under 120 sq ft and no taller than 8 feet needs no permit and can go anywhere in the rear yard; other sheds must meet the house's side and rear setbacks (or 5 feet if set far enough back from the street) and stay under 15 feet tall. Our zoning text is a 2019 copy, so confirm setbacks with the Planning Division. |
| Santa Barbara | Allowed | Yes. A garden shed up to 120 sq ft counts as a 'yard building': you can have two (200 sq ft combined), none in the front yard, and one up to 8 ft tall may sit in a side or rear setback if screened. It needs no building permit if it's under 10 ft tall, has no utilities and sits outside required setbacks and open yards, so a shed placed inside a setback likely needs a building permit. Bigger accessory buildings follow main-building or garage setbacks and a 30-ft height limit. |
| Manhattan Beach | Restricted | Sheds and other accessory buildings can't sit in your required front or side yards or in front of the house, but they can go in the required rear yard if placed right on the rear or interior side property line or at least 3 feet from it. They're limited to 12 feet tall (15 feet with a sloped, centered-ridge roof). The zoning code doesn't say what size shed needs a building permit; check with Building and Safety. |
| Malibu | Allowed | Storage sheds are allowed as accessory structures on Malibu residential lots. The coastal zoning rules we reviewed (current through 2020) have no shed-specific setback, so the regular yard setbacks apply: rear at least 15 ft (or 15% of lot depth, if greater) and each side at least 5 ft (or 10% of lot width, if greater), with an 18 ft height limit and 6 ft from the house. A shed at an existing home is usually exempt from a coastal development permit, except near beaches, bluffs or habitat areas; the city's building-permit thresholds weren't available to us. |
| Pasadena | Allowed | Sheds and other accessory buildings are allowed, but not in the front or corner-side setback. One can go in a side or rear setback only if it's in the rear 25 feet of the lot (or more than 100 feet back from the front line); at 2 feet from a property line it can be 9 feet tall, rising to 15 feet farther in. All accessory buildings together are capped at 600 sq ft or 6% of the lot, whichever is greater. |
| Newport Beach | Allowed | A shed or other accessory structure no taller than 6 feet and no bigger than 150 square feet can go in a required side or rear setback, but not in a rear setback that backs onto an alley. Larger or taller sheds must meet your zoning district's setbacks, and our sources don't say when a building permit is needed. |
| Del Mar | Depends on your zone | Sheds and other accessory buildings are allowed in Del Mar's residential zones. Setbacks depend on the zone. In R1-10, R1-14 and R1-40, a shed must meet the full zone setbacks (in R1-10: 20 ft front, 25 ft rear, 7.5 ft interior side). In other residential zones, a one-story accessory building of up to 500 sq ft can ignore rear setbacks, and side setbacks too if it sits in the rear 30% of the lot. |
| Hillsborough | Allowed with board review | Sheds must normally meet Hillsborough's full setbacks: 25 feet from the street line and 20 feet from side and rear lot lines. One small shed (40 sq ft or less, 6 ft tall or less) may go in a setback if it's at least 5 feet from the lot line, 40 feet from any neighbor's house and the neighbor agrees in writing. All exterior construction needs design review. |
| Woodside | Allowed | Storage buildings are a permitted accessory use in Woodside's residential districts, but sheds must meet the same basic setbacks as other structures. In R-1 that means 30 feet from the front, 25 feet from the rear and 15 feet from the sides for buildings under 17 feet tall; in SR, RR and SCP setbacks are 20 to 50 feet. Accessory structures can be up to 17 feet tall with an 11-foot plate height, and no single accessory building can exceed 1,500 sq ft. |
| Orinda | Depends on your zone | A shed counts as an accessory structure in Orinda. It must meet your zone's normal side and rear setbacks (5 to 15 feet in most RL zones), stay at least 50 feet from any street-facing property line, and sit at least 5 feet from the house. Sheds aren't on the City's list of projects exempt from Planning review, so check with the Planning Department; building permits come from Contra Costa County. |
| Rancho Palos Verdes | Allowed with a permit | Sheds and other detached accessory structures in Rancho Palos Verdes are limited to 12 feet tall and normally have to meet the zone's setbacks. A storage shed under 120 sq ft can go in a side or rear setback with the director's site plan review approval if it's no taller than 6 feet and at least 3 feet from the property line. A shed of 12 ft or less and under 250 sq ft skips neighborhood compatibility review. |
| San Clemente | Allowed | Sheds are allowed in all San Clemente residential zones. A one-story shed of 120 sq ft or less (with walls no taller than 8 ft) doesn't need a building permit. In the rear half of the lot, a shed of 450 sq ft or less can go up to the side and rear property lines, 5 ft from the house. Detached accessory structures are limited to 15 ft tall. |
| Westlake Village | Allowed with a permit | Sheds and other accessory buildings are allowed in Westlake Village's R-1 and RPD zones. They can be 1 story and 18 feet tall, at least 5 feet from the rear lot line and 10% of the lot's width (max 10 feet) from the side lines, and can't cover more than half the required rear yard. A shed that needs an L.A. County building permit needs a City Zoning Clearance first; some neighborhoods' conditions of approval change the setbacks. |
| Sierra Madre | Allowed | In Sierra Madre's R-1 zone, a single-story shed or workshop up to 600 sq ft and 15 feet tall is allowed behind the front building line of your house if it meets the same setbacks as the house (15 feet from the rear line, and 5 feet or more from side lines depending on lot width). It can sit as close as 5 feet to a side or rear line with an administrative design review permit, or with a minor conditional use permit for a small structure under 120 sq ft. The sources we reviewed don't give the building-permit size threshold. |
| Carpinteria | Allowed | A shed or other detached accessory building in Carpinteria's R-1 zone must meet the zone's front and side setbacks (side yards are 10% of lot width, at least 5 feet; 3 feet in 4-R-1) and the 30-foot height limit. It can go in the rear setback if it is at least 10 feet from the house and covers no more than 40% of the rear yard. |
| Morro Bay | Allowed | Sheds are allowed in Morro Bay if they meet your district's setback, height and lot-coverage rules and stay behind the front line of the house. A small shed under 8 feet tall and 120 sq ft can go right up to the interior side or rear lot line if it's behind the house (not in the front or street-side setback). Bigger sheds must meet the regular setbacks (3-10 ft in RS districts) and be at least 6 feet from any home. |
Key numbers across California cities
Small sheds in side or rear setbacks:
| City | Small shed allowed in setback | Distance from lot line |
|---|---|---|
| Los Altos | Up to 800 sq ft and 12 ft tall (rear setback) | 0 ft if under 6 ft tall; 5 ft if taller |
| San Clemente | 450 sq ft or less, rear half of lot | None (to the property line) |
| Morro Bay | Under 8 ft tall and 120 sq ft, behind the house | To the lot line |
| Saratoga | Up to 250 sq ft, with Director approval | 6 ft |
| Newport Beach | Up to 6 ft tall and 150 sq ft (not on an alley) | In side or rear setback |
| Rancho Palos Verdes | Under 120 sq ft and 6 ft tall, site plan review | 3 ft |
| Sierra Madre | Under 120 sq ft with a minor conditional use permit | 5 ft |
| Los Gatos | One under 120 sq ft, no zoning approval | In side or rear setback |
| Santa Barbara | Up to 8 ft tall, screened | In interior setbacks |
| Hillsborough | One, 40 sq ft or less and 6 ft tall, neighbor consent | 5 ft |
Other cities make sheds meet the house's setbacks: 20 feet from side and rear lines in Hillsborough for anything larger, 25 feet rear and 15 feet side in Woodside's R-1 zone, and 15 feet rear in Malibu. Height caps run from 12 ft in Manhattan Beach and Rancho Palos Verdes to 18 feet in Malibu and Westlake Village and 30 feet in Carpinteria and Santa Barbara.
Building permits and what varies most
Building permits. The state's 120 sq ft exemption shows up directly in several city pages:
- Piedmont: no building permit for a one-story shed of 120 sq ft or less, though wildfire-area (WUI) rules apply citywide.
- San Clemente: no permit if one story, 120 sq ft or less, with walls 8 ft or less.
- Danville: a permit for any accessory structure over 120 sq ft; a portable shed under 120 sq ft and no taller than 8 feet needs none.
- Santa Barbara: exempt up to 120 sq ft and 10 ft tall with no utilities, but only outside setbacks, so a shed placed in a setback likely needs a permit.
- Tiburon: the exemption covers only portable playhouses and play structures, so a shed needs a building permit and site plan and architectural review (staff-level under 500 sq ft).
In Lafayette and Orinda, building permits come from Contra Costa County, and in Westlake Village a shed that needs an L.A. County building permit needs a City Zoning Clearance first.
Front yards. Most cities keep sheds out of the front setback or behind the front of the house. Lafayette is an exception: a shed of 120 sq ft or less may sit in a required front, side or rear yard if it's no taller than 12 feet.
Total size and coverage. Pasadena caps all accessory buildings at 600 sq ft or 6% of the lot, whichever is greater; Manhattan Beach at 900 sq ft or 12% of the lot in RS districts. Rear-yard coverage limits include 25% in Tiburon, 30% in Lafayette, 40% in Carpinteria and 50% in Westlake Village.
California state rules for sheds and accessory buildings
Where a shed can go (setbacks, height, lot coverage, front-yard limits) is set by your city or county zoning code. The state sets the building-permit baseline:
- Permit exemption: the 2025 California Residential Code (R105.2) exempts one-story detached accessory structures used as tool and storage sheds, playhouses and similar uses if the floor area is 120 sq ft or less. Bigger sheds need a permit, and electrical or plumbing work needs its own permit. Some cities have amended these thresholds.
- Other exempt work in the same list includes fences up to 7 ft and decks up to 200 sq ft that are no more than 30 inches above grade and not attached to the house.
- Exempt doesn't mean unregulated: zoning setbacks, HOA rules and easements still apply, and some cities require a zoning clearance even for small sheds.
- Turning a shed or garage into living space is covered by the state's ADU law (Gov. Code §66314). An existing accessory structure converted to an ADU needs no added setback, and new ADUs need no more than 4-foot side and rear setbacks (see ADUs).
- Wildfire areas: in a state responsibility area, owners must keep 100 feet of defensible space around buildings (Pub. Res. Code §4291). Local fire-hazard rules may limit what you can build or store near structures.
- Coastal zone: a new structure is "development" and may need a coastal development permit (Pub. Res. Code §30106).
Common questions about shed permits in California
- Do I need a permit for a shed in California?
- It depends on the size and your city. The 2025 California Residential Code exempts one-story detached sheds of 120 sq ft or less from a building permit, but cities can amend that: Tiburon limits the exemption to portable playhouses. Zoning setbacks still apply to exempt sheds, and electrical or plumbing work needs its own permit.
- What is the biggest shed you can build without a permit in California?
- Under the state Residential Code, 120 sq ft of floor area for a one-story detached storage shed or playhouse. Some cities add conditions: San Clemente also caps walls at 8 ft, Danville's no-permit portable shed must be under 120 sq ft and 8 feet tall, and Santa Barbara's exemption applies only outside setbacks. Check with your building department first.
- Do I need a permit for a 10x12 shed in California?
- Usually not a building permit, since a 10x12 shed is exactly 120 sq ft, the state exemption limit for one-story detached sheds. But it depends on your city: Tiburon requires a building permit for most sheds, Danville's portable-shed exemption is for sheds under 120 sq ft, and zoning setbacks and design review rules still apply everywhere.
- How close to the property line can I put a shed in California?
- It depends on your city; there's no state shed setback. In the cities we cover, a small shed can go right at the lot line in parts of Los Altos, Morro Bay and San Clemente, 3 ft away in Rancho Palos Verdes, and 6 feet away in Saratoga. Hillsborough requires 20 feet unless the neighbor consents to a 40 sq ft shed closer in.
- Can I turn my shed into a living space in California?
- Possibly, as an ADU. Converting an existing accessory structure to an ADU is covered by the state's ADU law (Gov. Code §66314), and a converted structure needs no added setback. You'll need permits for the conversion, and city rules may otherwise bar living use: Pasadena bans sleeping quarters and kitchens in accessory buildings, and Del Mar requires an ADU permit to use one as a dwelling.
Other topics
ADU rules · Chicken laws · Short-term rentals · Fence rules · Burn permits & fire pits · Home businesses · Pool rules · Coastal & creek rules · Docks & piers