San Diego County · Building on your lot
Building on your lot in San Diego County
San Diego County's code applies only in unincorporated areas of the county. There it sets limits on fences, detached accessory buildings, rooftop solar and pool safety features, and fence height depends on the yard and the fence type.
Key points
- Front fences: Front-yard fences are limited to 42 inches, except open wire, iron or rail fences on lots of 1 acre or more in certain zones.
- Rear and side: Rear and interior side yard fences and walls, solid or open, are limited to 72 inches.
- Accessory setbacks: Detached accessory building walls must be at least 3 feet and eaves 2 feet from interior side and rear lot lines.
- Accessory size: Detached accessory buildings with any part in a required setback are limited to 1,000 square feet combined.
- New pools: A new pool at a single-family home or duplex needs a permit, a permanent enclosure from neighbors and one more listed safety feature.
- Rooftop solar: Rooftop solar on single- or two-family homes up to 38.4 kW AC or 30 kW thermal gets streamlined permitting with an online platform.
Each rule below is marked San Diego County code or CA state law and links to the section it comes from (checked October 2026). General information, not legal advice.
San Diego County's code applies in the unincorporated areas of the county. Cities in San Diego County have their own codes and their own pages.
Fences and walls
| Front yard height |
|
|---|---|
| Side and rear yard height |
|
Also in San Diego County's code: Height of fences (§ 4630). This page does not summarize it yet.
Sheds, garages and other accessory structures
| Size or lot coverage |
|
|---|---|
| Side and rear setback |
|
| Distance from the house |
|
Solar panels and EV chargers
| Solar height and setbacks |
|
|---|---|
| Solar permit process |
|
Swimming pools
San Diego County code A new pool at a single-family home or duplex needs a permit, a permanent enclosure from neighbors and one more listed safety feature.
All 10 San Diego County rules on swimming pools, with the code text and the state law underneath →
Other San Diego County rules on this
San Diego County's code also has these chapters. We have not summarized their values on this page yet; read them in the library.
- Height of fences (§ 4630)
- Keeping bees and hives (§ 62.901 and following) — unincorporated county
- Limits on keeping roosters (§ 62.692)
- Animals allowed by zone (animal schedule) (§ 3100) — unincorporated county
- Living in or storing a trailer coach on your property (§ 52.203) — unincorporated county
Who this affects
Frequently asked questions
How tall can a fence be in San Diego County?
Front-yard fences are limited to 42 inches, except open wire, iron or rail fences on lots of 1 acre or more in certain zones. Rear and interior side yard fences and walls, solid or open, are limited to 72 inches.
How big can a shed or accessory building be in San Diego County?
Detached accessory building walls must be at least 3 feet and eaves 2 feet from interior side and rear lot lines. Detached accessory buildings with any part in a required setback are limited to 1,000 square feet combined.
Do I need a permit for solar panels or an EV charger in San Diego County?
Rooftop solar on single- or two-family homes up to 38.4 kW AC or 30 kW thermal gets streamlined permitting with an online platform.
General information, not legal advice.
Ask about a specific San Diego County property
Ask GoCodebook how these rules apply to your address and get an answer that cites the section.
Ask your question