San Marcos · Building on your lot
Building on your lot in San Marcos
San Marcos sets its own limits on accessory structures and home businesses, and has a separate chapter on walls and fences. Accessory structure limits do not apply to accessory dwelling units.
Key points
- Accessory height: Accessory structures are limited to 1 story and 15 feet, and may be no higher than the main home (city rule).
- Home businesses: A home business may use at most 200 square feet unless the Director approves more; only residents may work there.
- Fences: The city has a separate chapter on walls and fences.
Each rule below is marked San Marcos code or CA state law and links to the section it comes from (checked October 2026). General information, not legal advice.
Sheds, garages and other accessory structures
| Maximum height |
|
|---|---|
| Size or lot coverage |
|
| Side and rear setback |
|
| Distance from the house |
|
Running a business from home
| Space used |
|
|---|---|
| Employees |
|
| Permit |
|
| Businesses not allowed |
|
Lot splits under SB 9
| How the lot may be divided |
|
|---|---|
| Minimum new lot size |
|
| Standards |
|
| Owner occupancy |
|
Solar panels and EV chargers
| EV charger permit |
|
|---|---|
| Solar height and setbacks |
|
| Solar permit process |
|
| Review time |
|
Swimming pools
| Pool barrier |
|
|---|---|
| Barrier height |
|
| Gates |
|
Other San Marcos rules on this
San Marcos's code also has these chapters. We have not summarized their values on this page yet; read them in the library.
- Walls and fences (Ch. 20.335)
- Animal keeping permits and standards (§ 20.415.020)
- Overnight parking of RVs on public streets (§ 12.20.170) — on public streets
- Using or storing a trailer coach or RV (§ 16.08.010)
Who this affects
Frequently asked questions
How tall can a fence be in San Marcos?
The city has a separate chapter on walls and fences. San Marcos also has a related rule: Walls and fences (Ch. 20.335).
How big can a shed or accessory building be in San Marcos?
Accessory structures are limited to 1 story and 15 feet, and may be no higher than the main home (city rule).
Can I run a business from my home in San Marcos?
A home business may use at most 200 square feet unless the Director approves more; only residents may work there.
Can I split my lot under SB 9 in San Marcos?
San Marcos's code: 2 parcels of about equal area; neither may be smaller than 40% of the original lot. (Applies to urban lot splits in a single-family residential zone.) (§ 19.44.050); Each new parcel must be at least 1,200 square feet. (§ 19.44.050).
Do I need a permit for solar panels or an EV charger in San Marcos?
San Marcos's code: Apply in person, by mail or online; the building official approves administratively and issues permits when the checklist is met. (Applies to complete applications with supporting documents that meet the checklist.) (§ 17.10.040); Panels may not be taller than the maximum legal building height. (Required for a small home rooftop solar system to qualify for expedited permitting.) (§ 17.04.020).
What are the pool fence and setback rules in San Marcos?
San Marcos's code: No horizontal openings larger than 5 inches. (Applies to swimming pool barriers.) (§ 8.40.070); The barrier must prevent ladder-like climbing access. (Applies to swimming pool barriers.) (§ 8.40.070).
General information, not legal advice.
Ask about a specific San Marcos property
Ask GoCodebook how these rules apply to your address and get an answer that cites the section.
Ask your question