Skip to main content
CityRuleLookup

San Marcos, 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 San Marcos, 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

Max enclosed accessory floor area
40% of home's living area or 800 sq ft
Max height
15 feet, one story
Separation from other structures
10 feet minimum if detached
Rear setback
5 feet minimum
Kitchens/bathtubs/fireplaces
Prohibited in accessory structures

Summary

San Marcos caps a detached shed or other accessory structure at 15 feet in height and one story, and limits total enclosed accessory floor area to 40% of the primary home's living area or 800 square feet, whichever is less, under Municipal Code § 20.410.040.

B. Accessory Structure(s) Size. The maximum allowable gross floor area for all completely enclosed accessory structures in conjunction with an existing single-family residence, excluding ADUs, shall be equal to forty percent (40%) of the living area of the primary dwelling unit, or eight hundred (800) square feet of gross floor area, whichever is less. ... C. Height. Height of the accessory structure(s) shall be one (1) story maximum, up to a maximum of fifteen (15) feet at peak of roof, and shall not exceed the height of the primary dwelling unit.

View official code

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

Full Breakdown

040 sets development standards for accessory structures such as sheds, garages, workshops, greenhouses, and cabanas, separate from ADUs. Subsection B caps the combined gross floor area of all completely enclosed accessory structures on a single-family lot at 40 percent of the primary dwelling's living area or 800 square feet, whichever is less, counting every accessory structure that requires a building permit, even ones that individually don't, but excluding structures open on at least three sides. Subsection C limits height to one story and a maximum of 15 feet at the peak of the roof, and the structure can never exceed the height of the primary dwelling.

Subsection D sets the setbacks: a detached accessory structure needs a minimum 10-foot separation from the primary dwelling or any other accessory structure (a breezeway may bridge that gap), a minimum 5-foot rear property line setback, and an interior side setback matching either the applicable zone's standard or the primary building's existing setback, whichever is less. No accessory structure may sit in a required front or street-side setback, and none may be closer to the right-of-way than the dwelling itself. Subsection A bars using an accessory structure as a dwelling: bathtubs, fireplaces, and kitchens are prohibited outright, though air conditioning, heating, a shower, toilet, washtub, or washer/dryer are allowed if the owner records a deed restriction confirming the structure won't be used for sleeping quarters. Freight containers, railroad cars, and similar storage-type structures are prohibited unless altered to match the primary dwelling's architecture.

Violations & Fines

Exceeding the 800-square-foot/40-percent floor area cap, building over 15 feet or two stories, or installing a bathtub, kitchen, or fireplace in a shed or accessory building without the required deed restriction and permit review are all violations of Section 20.410.040. The City can withhold a certificate of occupancy, require demolition or modification of a nonconforming structure, and pursue standard code enforcement against a structure converted for illegal sleeping or dwelling use.

Frequently Asked Questions

How big can my shed or detached garage be in San Marcos?
The combined floor area of all your enclosed accessory structures, sheds, garages, and workshops included, can't exceed 40 percent of your home's living area or 800 square feet, whichever is smaller, under Section 20.410.040.B. Structures open on three or more sides don't count toward that cap.
Can I put a bathroom or kitchen in my backyard shed?
A toilet, shower, or washer/dryer is allowed, but Section 20.410.040.A bans bathtubs, fireplaces, and kitchens outright, and any permitted fixture requires a recorded deed restriction stating the structure won't be used for sleeping quarters or converted to residential use.
How far must a shed sit from my house or property line?
Section 20.410.040.D requires at least 10 feet of separation from the primary dwelling or another accessory structure, a minimum 5-foot rear setback, and it must follow the applicable zone's front and side setbacks, with no accessory structure allowed closer to the street than the house.

Sources & Official References

Other rules in San Marcos

All San Marcos rules

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

Get notified when Shed & Carport Rules in San Marcos, 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 San Diego County handle shed & carport rules.

San Diego, CA
Light Restrictions
Vista, CA
Some Restrictions
Oceanside, CA
Some Restrictions
Carlsbad, CA
Some Restrictions
El Cajon, CA
Some Restrictions
Chula Vista, CA
Some Restrictions
Escondido, CA
Some Restrictions