Santa Clara County · Building on your lot
Building on your lot in Santa Clara County
Santa Clara County's code applies only in unincorporated areas of the county. Limits differ between urban residential districts and rural districts, and between small and large lots.
Key points
- Fence height: Urban residential fences are limited to 3 feet within 20 feet of the front lot line and 8 feet elsewhere on the lot.
- Accessory height: In urban residential districts, detached accessory buildings are limited to 12 feet and 1 story, or 16 feet with a hip or gable roof.
- Home businesses: A general home business is done in the home by residents, with at most 1 nonresident employee (county rule).
Each rule below is marked Santa Clara County code or CA state law and links to the section it comes from (checked October 2026). General information, not legal advice.
Santa Clara County's code applies in the unincorporated areas of the county. Cities in Santa Clara County have their own codes and their own pages.
Fences and walls
| Corner visibility |
|
|---|---|
| Height anywhere on the lot |
|
| Front yard height |
|
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 |
|
|---|---|
| Customer visits |
|
| Employees |
|
| Permit |
|
| Businesses not allowed |
|
Solar panels and EV chargers
| EV charger permit |
|
|---|---|
| Solar permit process |
|
Tree removal
Santa Clara County code Yes; an administrative permit from the County Planning Office is needed before removing a protected tree. Yes; an encroachment permit from the Department of Roads and Airports, at least 60 days before removal.
All 11 Santa Clara County rules on tree removal, with the code text and the state law underneath →
Swimming pools
| Pool barrier |
|
|---|---|
| Barrier height |
|
| Gates |
|
| Maintenance and empty pools |
|
| Permit |
|
Pets, chickens and bees
| Permit |
|
|---|---|
| Pet limit |
|
Other Santa Clara County rules on this
Santa Clara County's code also has these chapters. We have not summarized their values on this page yet; read them in the library.
- Urban lot splits (SB 9) (§ C12-44)
Who this affects
Frequently asked questions
How tall can a fence be in Santa Clara County?
Urban residential fences are limited to 3 feet within 20 feet of the front lot line and 8 feet elsewhere on the lot.
How big can a shed or accessory building be in Santa Clara County?
In urban residential districts, detached accessory buildings are limited to 12 feet and 1 story, or 16 feet with a hip or gable roof.
Can I run a business from my home in Santa Clara County?
A general home business is done in the home by residents, with at most 1 nonresident employee (county rule).
Do I need a permit for solar panels or an EV charger in Santa Clara County?
Santa Clara County's code: A permit is issued once the charger meets the county checklist and safety rules; no power until final inspection approval. (Applies to EV charging stations.) (§ C3-53); Electronic filing allowed; permit and inspection fees apply; complete applications get administrative, nondiscretionary review and approval. (Applies to small home rooftop solar systems.) (§ C3-47).
What are the pool fence and setback rules in Santa Clara County?
Santa Clara County's code: No opening, hole or gap may be more than 4 inches wide or high. (Doors and gates are excepted.) (§ B18-2); A house or accessory building may form part of the enclosure. (§ B18-2).
Can I keep chickens or bees at my home in Santa Clara County?
Santa Clara County's code: Written notice to the County Agricultural Commissioner within 5 days of the move's start. (Moving an apiary into or within the County.) (§ B29-11); At most 2 dogs over 4 months old. (Parcels under 5 acres, unless there is a private kennel, commercial kennel, animal menagerie or animal shelter permit.) (§ B31-32).
General information, not legal advice.
Ask about a specific Santa Clara County property
Ask GoCodebook how these rules apply to your address and get an answer that cites the section.
Ask your question