Skip to content

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

Oakley code What Oakley's code adds
Corner visibility
  • Fences and solid landscaping can be at most 3 feet tall.
    Applies: In the visibility triangle where a residential driveway crosses a residential street property line.
    § 9.1.1110 · code text
    The visibility triangle of a residential driveway crossing a residential street property line may not be blocked by a fence or solid form of landscaping above a height of three feet.
Front yard height
  • Closed fences and solid landscaping can be at most 3 feet tall.
    Applies: Between the front property line and the front yard setback line, on standard and estate lots.
    § 9.1.1110 · code text
    Between the front property line and the front yard setback line (front yard setback), closed fences and solid forms of landscaping shall not exceed three feet in height.
  • Open fences can be at most 4.5 feet tall.
    Applies: Front yard setback on standard lots (R-6, R-7, R-10, R-12, P-1 up to 15,000 square feet); the part above 3 feet must be open.
    § 9.1.1110 · code text
    Open fences shall not exceed four and one-half feet in height.
  • Open fences can be at most 7 feet tall.
    Applies: Front yard setback on estate lots (R-15, R-20, R-40, AL, P-1 over 15,000 square feet), with Community Development Director approval.
    § 9.1.1110 · code text
    Open fences in the same location shall not exceed seven feet in height.
Height anywhere on the lot
  • With decorative entry features, total height can be at most 8 feet.
    Applies: Fences or solid landscaping; entry features at most 4 feet wide combined on standard lots and 8 feet on estate lots.
    § 9.1.1110 · code text
    The addition of decorative entry features to a fence or solid landscaping form shall not result in a total height in excess of eight feet.
Side and rear yard height
  • Fences and solid landscaping can be at most 7 feet tall.
    Applies: From the front yard setback line to the back property line, on standard and estate lots.
    § 9.1.1110 · code text
    From the front yard setback line to the back property line (outside the front yard setback), open and/or closed fences and solid forms of landscaping shall not exceed seven feet in height.
Permit
  • Yes. A permit is required for a fence or similar structure in a right-of-way.
    Applies: Fences, hedges, shrubs, plantings or similar structures placed or kept in a right-of-way.
    § 6.2.438 · code text
    No hedge, shrub, or other planting whatever, or fence or similar structure, except as provided in Section 6.2.442, shall be planted, erected, or maintained in a right-of-way without a permit.

Sheds, garages and other accessory structures

Oakley code What Oakley's code adds
Maximum height
  • Accessory structures can be at most 15 feet tall.
    Applies: When any part of the structure is in a required yard for the zone.
    § 9.1.1802 · code text
    Fifteen (15) feet in height when the accessory structure or portion thereof is located within any of the required yards for the applicable zoning district;
  • Accessory structures can be taller than 15 feet.
    Applies: Only when fully outside all required yards, subject to the zone's rules.
    § 9.1.1802 · code text
    Accessory structures completely located outside of all required yards, subject to the applicable zoning regulations, may exceed fifteen (15) feet in height.
Size or lot coverage
  • 500 square feet, or the size that keeps total lot coverage at 40% or less, whichever is greater.
    Applies: All accessory structures on one lot combined.
    § 9.1.1802 · code text
    the total lot coverage shall not exceed forty percent (40%);
  • Accessory structures can cover at most 50% of a required yard.
    Applies: Required rear yard and required side yard.
    § 9.1.1802 · code text
    accessory structures shall occupy no more than fifty percent (50%) of a required rear yard.
Side and rear setback
  • At least 3 feet from side and rear property lines.
    Applies: Detached enclosed or partly enclosed, and detached or attached open, accessory structures of 1,500 square feet or less on residential lots.
    § 9.1.1802 · code text
    all detached "fully enclosed," detached "partially enclosed," and detached or attached "unenclosed" accessory structures that are one thousand five hundred (1,500) square feet or less shall maintain a minimum setback of three feet to the side and rear property lines.
Distance from the house
  • At least 5 feet from any other structure, not counting the fence.
    Applies: Permit-exempt detached structures no taller than the nearby fence, in the side or rear yard up to the property line.
    § 9.1.1802 · code text
    only if the accessory structure maintains a minimum clearance of five feet to any other structure, excluding the fence.

Running a business from home

Oakley code What Oakley's code adds
Businesses not allowed
  • home-based firearms sales
    Applies: licenses, certificates and permits were obtained after June 1, 2011
    § 5.11.016 · code text
    Home-based firearms sales are prohibited if the above-mentioned licenses, certificates and permits were obtained after June 1, 2011.

Solar panels and EV chargers

Oakley code What Oakley's code adds
EV charger permit
  • The city issues a building permit when the application meets the application and checklist requirements; forms are online.
    Applies: Applies to EV charging station installations.
    § 7.16.030 · code text
    An application that satisfies the application and checklist requirements will be considered complete, and the City will issue a building permit.
Solar height and setbacks
  • The panel array may not exceed the maximum legal building height.
    Applies: Required for a small residential rooftop solar system to qualify for expedited review.
    § 7.2.116 · code text
    A solar panel or module array that does not exceed the maximum legal building height as defined by the authority having jurisdiction.
Solar permit process
  • Apply in person, by mail, or electronically (email, internet, or fax), with the permit processing and inspection fees.
    Applies: Applies to small residential rooftop solar systems eligible for expedited review.
    § 7.2.116 · code text
    The applicant may submit the permit application and associated documentation to the City’s building division by personal, mailed, or electronic submittal, together with any required permit processing and inspection fees.
  • Only one inspection.
    Applies: Applies to small residential rooftop solar systems eligible for expedited review.
    § 7.2.116 · code text
    For a small residential rooftop solar energy system eligible for expedited review, only one inspection shall be required, which shall be done in a timely manner and may include a consolidated inspection by the Building Official and Fire Chief.
  • Administrative approval and all required permits once the application is complete and meets the checklist.
    Applies: Applies to small residential rooftop energy systems.
    § 7.2.116 · code text
    Upon confirmation by the Building Official of the application and supporting documentation being complete and meeting the requirements of the checklist, the Building Official shall administratively approve the application and issue all required permits or authorizations.

Tree removal

Oakley code What Oakley's code adds
Protected trees
  • California native oaks at least 50 inches around (15.6 inches diameter), measured 4.5 feet above grade.
    Applies: 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 · code text
    A California native oak (Valley Oak – Quercus lobata; Leather Oak – Quercus durata; California Black Oak – Quercus kelloggii; Canyon Live Oak – Quercus chrysolepis; Interior Live Oak – Quercus wislizenii; Island Oak – Quercus tomentella; Engelmann Oak – Quercus engelmanni; Coast Live Oak – Quercus agrifolia) that measures at least fifty (50) inches in circumference (fifteen and six-tenths (15.6) inches diameter) at four and one-half feet above grade, regardless of location or health;
  • Other tree species at least 50 inches around, measured 4.5 feet above grade.
    Applies: On undeveloped or public property, in the right-of-way, or on private property the Director finds benefits neighboring properties too.
    § 9.1.1112 · code text
    A tree of a species other than a California native oak that measures at least fifty (50) inches in circumference at four and one-half feet above grade and is either on an undeveloped property, located on public property or within the right-of-way, or located on private property and is found to provide benefits to the subject property as well as neighboring properties, subject to determination by the Director.

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.

Who this affects

HomeownersContractorsDesigners

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

More on Oakley