Sunnyvale · Building on your lot
Building on your lot in Sunnyvale
Sunnyvale sets its own limits on accessory structures and home businesses. Its fence rule covers the required reducible front yard, and accessory setbacks depend on height and floor area.
Key points
- Accessory structures: Sunnyvale limits accessory structures of 450 square feet or less to 15 feet in height.
- Home businesses: Sunnyvale limits a home business to 20% of the home or 400 square feet, whichever is less, and 3 vehicles a day.
- Front yard fences: In a required reducible front yard, Sunnyvale allows fences up to 8 feet, but fences over 6 feet need extra setback or a permit.
Each rule below is marked Sunnyvale code or CA state law and links to the section it comes from (checked October 2026). General information, not legal advice.
Fences and walls
| Front yard height |
|
|---|
Sheds, garages and other accessory structures
| Maximum height |
|
|---|---|
| Side and rear setback |
|
| Distance from the house |
|
Running a business from home
| Space used |
|
|---|---|
| Customer visits |
|
| 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
| Solar permit process |
|
|---|
Tree removal
| Permit to remove |
|
|---|---|
| Replacement trees |
|
Swimming pools
| Pool barrier |
|
|---|---|
| Setback from property lines |
|
Pets, chickens and bees
| Bees |
|
|---|---|
| Large animals |
|
| Pet limit |
|
Who this affects
Frequently asked questions
How tall can a fence be in Sunnyvale?
In a required reducible front yard, Sunnyvale allows fences up to 8 feet, but fences over 6 feet need extra setback or a permit.
How big can a shed or accessory building be in Sunnyvale?
Sunnyvale limits accessory structures of 450 square feet or less to 15 feet in height.
Can I run a business from my home in Sunnyvale?
Sunnyvale limits a home business to 20% of the home or 400 square feet, whichever is less, and 3 vehicles a day.
Can I split my lot under SB 9 in Sunnyvale?
Sunnyvale's code: At least 40% of the original parcel's lot area. (Applies to each new parcel.) (§ 18.26.030); At least 1,200 square feet. (Applies to each new parcel.) (§ 18.26.030).
Do I need a permit for solar panels or an EV charger in Sunnyvale?
Sunnyvale's code: Lot coverage or floor area ratio may be exceeded by up to 1% with a miscellaneous plan permit. (Single-family homes whose solar gives at least 270 kWh a month, or solar hot water of at least 50 gallons.) (§ 19.56.150); Approved with all permits when complete and meeting the checklist; one inspection; apply in person or electronically. (Applies to small residential rooftop solar systems eligible for expedited review.) (§ 16.66.030).
Do I need a permit to remove a tree in Sunnyvale?
Sunnyvale's code: Yes, a protected tree removal permit, filed at least 10 working days before removal. (Applies to protected trees on private property in any zoning district.) (§ 19.94.050); Yes, plus a landmark alteration permit. (Applies to a tree designated as a heritage landmark.) (§ 19.94.050).
What are the pool fence and setback rules in Sunnyvale?
Sunnyvale's code: Covers are required. (Applies to new pool or spa installations.) (§ 19.48.090); At least 3 feet from any property line or other structure. (Applies to pool and spa equipment.) (§ 19.48.090).
Can I keep chickens or bees at my home in Sunnyvale?
Sunnyvale's code: Up to 5 hives per lot. (Except agricultural use in any zone under a use permit.) (§ 6.08.010); Hives at least 25 feet from side and rear lot lines and 100 feet from other homes, whichever is stricter. (§ 6.08.010).
General information, not legal advice.
Ask about a specific Sunnyvale property
Ask GoCodebook how these rules apply to your address and get an answer that cites the section.
Ask your question