Oakley · Building on your lot
Building on your lot in Oakley
Oakley sets fence heights by yard, lot type and fence style, and limits all accessory structures on a lot to 500 square feet or 40% lot coverage, whichever is greater. Its home-business rule covers home-based firearms sales.
Key points
- Fence heights: Front-setback fences are limited to 3 feet if closed and 4 1/2 feet if open on standard lots; side and rear fences, 7 feet.
- Accessory height: Accessory structures inside a required yard are limited to 15 feet; those fully outside all required yards may be taller under zoning rules.
- Firearms sales: Oakley has a rule on home-based firearms sales for licenses, certificates and permits obtained after June 1, 2011.
Each rule below is marked Oakley code or CA state law and links to the section it comes from (checked October 2026). General information, not legal advice.
Fences and walls
| Corner visibility |
|
|---|---|
| Front yard height |
|
| Height anywhere on the lot |
|
| Side and rear yard height |
|
| Permit |
|
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
| Businesses not allowed |
|
|---|
Solar panels and EV chargers
| EV charger permit |
|
|---|---|
| Solar height and setbacks |
|
| Solar permit process |
|
Tree removal
| Protected trees |
|
|---|
Other Oakley rules on this
Oakley's code also has these chapters. We have not summarized their values on this page yet; read them in the library.
- Oversized vehicles and trailers on residential streets (Ch. 6.1, Art. 4) — on public streets in residential areas
Who this affects
Frequently asked questions
How tall can a fence be in Oakley?
Front-setback fences are limited to 3 feet if closed and 4 1/2 feet if open on standard lots; side and rear fences, 7 feet.
How big can a shed or accessory building be in Oakley?
Accessory structures inside a required yard are limited to 15 feet; those fully outside all required yards may be taller under zoning rules.
Can I run a business from my home in Oakley?
Oakley has a rule on home-based firearms sales for licenses, certificates and permits obtained after June 1, 2011.
Do I need a permit for solar panels or an EV charger in Oakley?
Oakley's code: The city issues a building permit when the application meets the application and checklist requirements; forms are online. (Applies to EV charging station installations.) (§ 7.16.030); The panel array may not exceed the maximum legal building height. (Required for a small residential rooftop solar system to qualify for expedited review.) (§ 7.2.116).
Do I need a permit to remove a tree in Oakley?
Oakley's code: California native oaks at least 50 inches around (15.6 inches diameter), measured 4.5 feet above grade. (Applies on all properties in Oakley, regardless of location or health; covers the listed native oak species, such as Valley Oak and Coast Live Oak.) (§ 9.1.1112); Other tree species at least 50 inches around, measured 4.5 feet above grade. (On undeveloped or public property, in the right-of-way, or on private property the Director finds benefits neighboring properties too.) (§ 9.1.1112).
General information, not legal advice.
Ask about a specific Oakley property
Ask GoCodebook how these rules apply to your address and get an answer that cites the section.
Ask your question