Do I Need a Permit to Build a Fence in California?
Quick answer
In most California cities, you do not need a permit for a standard 6-foot privacy fence in the side or rear yard. Front-yard fences are limited to 3.5 feet in most jurisdictions, and exceeding that requires a planning or zoning approval. California's statewide building code sets a baseline, but cities enforce their own zoning rules on top of it — so height limits, material restrictions, and permit requirements can vary significantly from one city to the next.
California at a glance
Building code adopted
2022 California Building Code (CBC) and California Residential Code (CRC), based on the 2021 IBC/IRC with California-specific amendments
State authority
Common permit threshold
Most cities do not require a permit for fences 6 feet or shorter in side/rear yards and 3.5 feet or shorter in front yards — exceeding those limits typically triggers a permit
Did you know?
California is one of the few states with a 'Good Neighbor Fence Law' (Civil Code Section 841), which presumes that neighbors sharing a boundary fence must split the cost of building, repairing, or replacing it equally.
On this page
California Has a Statewide Building Code — But Cities Control Fence Zoning
California enforces a statewide building code — the California Building Code (CBC) and California Residential Code (CRC) — which are based on the International Building Code and International Residential Code with extensive California-specific amendments. The state code establishes structural and safety minimums for construction, and the California Building Standards Commission oversees the code adoption process.
However, fence height limits, design restrictions, and permit triggers are almost entirely governed by local zoning ordinances rather than the state building code. The CBC exempts fences under 7 feet from requiring a building permit statewide, but your city's zoning code will impose separate height limits — usually much lower — depending on where the fence sits on your lot. A fence that meets the state building code can still violate your city's zoning rules, and it's the zoning rules that determine whether your fence is legal.
This means you need to check two layers of regulation: the state code for structural requirements and your city's zoning code for height, placement, and design restrictions. For a broader look at how fence permit rules work across the country, see our national guide to fence permits.
Height Limits: Front Yards Are the Most Restricted
Across California, the pattern is consistent: front-yard fences have the strictest height limits, and side-yard and rear-yard fences allow more room.
Front-yard fences in most California cities are limited to 3 to 3.5 feet for solid fences. Some cities allow taller fences — up to 5 or 6 feet — if the design is at least 50% transparent (wrought iron, picket, or similar open styles). The logic is visibility and neighborhood character: tall solid fences in front yards obstruct sight lines for drivers and pedestrians and create an unfriendly streetscape.
Side-yard and rear-yard fences generally max out at 6 feet without a permit in most jurisdictions. A few cities are more generous — San Jose allows up to 7 feet in side and rear yards without triggering a permit, and Los Angeles permits 8-foot fences on lots that are 40 feet or wider in R zones.
If you need a fence taller than what your zoning code allows, you'll need to apply for a variance or special use permit through your city's planning department. This typically involves a public hearing where neighbors can comment, and approval is not guaranteed — you'll need to demonstrate a legitimate reason such as security, noise abatement, or topographical challenges.
Find your California city
Get the exact fence permit requirements for your area.
How California Cities Differ
Despite the statewide code, the practical experience of building a fence varies significantly depending on which city you're in.
Los Angeles
LA's fence regulations are governed by the Los Angeles Municipal Code (LAMC), which sets front-yard fences at a maximum of 3.5 feet for solid construction. Side and rear fences are allowed up to 6 feet in most R1 (single-family) zones, and up to 8 feet on wider residential lots. No building permit is required for fences under these limits — the city's Department of Building and Safety does not review standard residential fences.
The exception is the Fence Height District (FH), a special zoning overlay in certain neighborhoods that permits open wrought iron fences up to 6 feet in the front yard for security purposes. Properties in hillside areas, historic preservation overlay zones, and specific plan areas face additional restrictions and may require design review. LA also has its own local spite fence ordinance — LAMC Section 41.30 — which sets the bar lower than state law at 6 feet rather than 10.
San Jose
San Jose stands out as one of the more lenient California cities for fences. The city's zoning code permits fences up to 3 feet in the front yard and up to 7 feet in side and rear yards without requiring any permit. Fences that exceed these limits need both a planning permit and a building permit with plan review. Corner lots have additional restrictions to maintain sight lines at intersections — fences near driveways must be low enough that drivers can see oncoming traffic.
San Diego
San Diego limits front-yard fences to 3 feet for solid designs, but allows fences up to 6 feet if they are at least 50% transparent. Side and rear yard fences can reach 6 feet. The city enforces stricter rules in its many planned communities and along coastal zones, where fences may require additional review. Pool fences in San Diego County must meet the state 60-inch requirement plus additional local spacing and material standards.
San Francisco and Sacramento
San Francisco limits most residential fences to 3.5 feet in front yards and 6 feet elsewhere, but height limits can vary by district — the city's complex zoning map means rules differ block by block in some neighborhoods. Properties in historic districts need additional review from the planning department.
Sacramento follows a similar pattern: 3 to 3.5 feet in front yards, 6 feet in side and rear yards. Sacramento's Good Neighbor Fence Law awareness is particularly high because of the number of closely spaced lots in the city's grid neighborhoods, where boundary fences are almost always shared structures.
| City | Permit threshold | Typical fee | Review time |
|---|---|---|---|
| Los Angeles | Varies | Varies | Varies |
| San Diego | Varies | Varies | Varies |
| San Jose | Varies | Varies | Varies |
| San Francisco | Varies | Varies | Varies |
| Sacramento | Varies | Varies | Varies |
City names link to full city-specific guides.
The Good Neighbor Fence Law: Splitting Costs with Your Neighbor
California is one of the few states with a statute that presumes neighbors share the cost of a boundary fence equally. The Good Neighbor Fence Act of 2013 — codified as California Civil Code Section 841 — establishes a rebuttable presumption that adjoining landowners are equally responsible for the reasonable costs of building, maintaining, or replacing a fence that divides their properties.
Before you start any work on a shared boundary fence, you must give your neighbor 30 days' written notice. The notice must describe the problem with the existing fence (or the need for a new one), your proposed solution, the estimated cost, how you propose to split it, and the timeline for the work.
This is not optional — skipping the notice undermines your ability to recover your neighbor's share of the costs later. If your neighbor refuses to pay, you can take the matter to small claims court. However, the presumption of equal cost-sharing can be rebutted if a neighbor demonstrates that imposing equal responsibility would be unjust — for example, if the fence provides them little benefit, if the cost is disproportionate to their property value, or if the project is unnecessarily expensive.
A few important limits: the law applies only to boundary fences that sit on or very near the property line and benefit both properties. It does not apply to fences entirely within one owner's property, decorative fences, or upgrades that go beyond what's reasonably necessary. You can't install a custom stone wall and demand your neighbor pay half.
Pool Fence Requirements
California has some of the strictest pool fence requirements in the country, and they've gotten tighter over time. The Swimming Pool Safety Act, as amended by SB 442 in 2018, applies to any pool or spa — in-ground, above-ground, portable, or inflatable — that contains water more than 18 inches deep.
The baseline requirements for pool fences are:
- Minimum height of 60 inches (5 feet), measured from the outside
- Maximum gap of 1.75 inches between vertical fence members
- No more than 2 inches of clearance at the bottom of the fence
- The fence surface must be free of handholds, footholds, or protrusions that a child could use to climb
- Gates must be self-closing and self-latching, with the latch at least 54 inches above the ground
- Gates must swing away from the pool
Critically, for pools built or remodeled after January 1, 2018, the property fence alone is not enough. Homeowners must also install at least two additional safety features from an approved list, which includes removable mesh pool fencing, an approved safety pool cover, door alarms on all doors with direct pool access, or self-closing and self-latching door hardware.
This two-feature rule catches many California homeowners off guard, especially those buying homes with existing pools. Home inspectors are required to document the pool's safety features before a sale, and buyers can request that the pool be brought up to code before closing.
Material Restrictions and Prohibited Fence Types
California Civil Code Section 835 makes a property owner liable for injuries caused by barbed wire on property that borders a public road or highway. While this isn't an outright ban, it creates significant liability exposure, and most California cities prohibit barbed wire, razor wire, and electric fences in residential zones through local ordinances.
Material rules vary by city, but the general pattern is permissive for standard materials — wood, vinyl, chain link, wrought iron, aluminum, and masonry are all widely allowed. Some cities restrict chain link in front yards or require decorative alternatives. West Hollywood, for example, bans chain link, barbed wire, concertina wire, grape stakes, plywood, and scrap lumber.
The "finished side out" rule — requiring that the decorative face of a fence faces the neighbor or the street — is enforced in many California cities, though not all. Check your local code before assuming which direction the rails face.
For an overview of all building permit requirements in California — including decks, sheds, pools, and more — see our complete California building permit guide.
The Spite Fence Statute
California Civil Code Section 841.4 targets fences built primarily to annoy a neighbor. A spite fence is defined as any fence or fence-like structure that unnecessarily exceeds 10 feet in height and was maliciously erected or maintained to bother the owner or occupant of adjoining property. If a fence meets both criteria — excessive height and malicious intent — the affected neighbor can file a private nuisance action and seek a court order for removal.
California courts have interpreted "fence" broadly under this statute. In the notable case of Wilson v. Handley (2002), the Court of Appeal held that a row of evergreen trees planted along a property boundary to block a neighbor's view of Mount Shasta qualified as a spite fence. Los Angeles has its own, stricter local spite fence ordinance — LAMC Section 41.30 — which lowers the height threshold to just 6 feet.
HOA Rules in California
California has one of the highest concentrations of HOA-governed properties in the country, with an estimated 50,000 community associations across the state. In newer developments and master-planned communities, HOA rules typically layer on top of city codes with additional restrictions on fence materials, colors, heights, and styles.
Unlike Texas, California does not have a state law preventing HOAs from prohibiting fences outright. Your HOA's CC&Rs can restrict your fencing choices significantly — requiring specific materials (often wood or vinyl), prohibiting chain link, mandating color approvals, or setting heights lower than what the city allows. Always check your HOA's architectural review requirements before building.
The one area where HOAs cannot override state law is pool safety. If state or local code requires a pool fence, the HOA cannot prohibit it — though they can still regulate its appearance within reason.
Setbacks, Easements, and Corner Lots
Even where fences don't require a permit, placement rules apply across California.
Easements are the most common obstacle. You cannot build a fence within a recorded utility easement without written permission from the utility company. Utility companies need access for maintenance, and a fence built in their easement can be ordered removed at your expense.
Corner lots face special height restrictions in every major California city. Within the visibility triangle — typically the area within 10 to 15 feet of an intersection — fences must stay below 2.5 to 3 feet to ensure drivers can see cross traffic. This is a safety regulation, and code enforcement officers actively cite violations.
Setbacks from the property line vary. Some cities allow fences right on the property line, while others require a setback of 6 inches to several feet. When you build on the property line, the fence becomes a shared boundary fence under the Good Neighbor Fence Law, which has implications for both cost-sharing and maintenance.
Consequences of Building Without a Permit
If your city requires a permit or zoning approval and you skip it, the consequences can be serious:
- Code enforcement citations — which can carry daily fines
- Stop-work orders — halting your project mid-construction
- Mandatory removal — you may be ordered to take the fence down entirely
- Retroactive permits — some cities allow you to apply after the fact, but the fee is often doubled
- Sale complications — unpermitted fences can delay or derail a home sale, especially if a buyer's inspector flags the issue
Given that most standard residential fences in California don't require a building permit at all — just compliance with height limits — the most common violation is not a missing permit but an over-height fence in the front yard or a fence that encroaches into a visibility triangle or easement.
If you're also planning a deck or retaining wall alongside your fence, note that each structure has its own permit requirements. Coordinating your projects and applying together can streamline the process.
Ready to build your fence?
Professional fence plans that meet California building code requirements. Permit-ready drawings you can submit with your application.
Frequently asked questions
Does my neighbor have to pay for half the fence in California?
Under California's Good Neighbor Fence Law (Civil Code Section 841), neighbors are presumed to share the cost of building, maintaining, or replacing a boundary fence equally. Before you start any work, you must give your neighbor 30 days' written notice describing the project, the estimated cost, and the proposed cost-sharing arrangement. Your neighbor can challenge the presumption in court if they can show that equal cost-sharing would be unjust — for example, if the fence provides them no benefit.
What is a spite fence in California?
California Civil Code Section 841.4 defines a spite fence as any fence or fence-like structure that exceeds 10 feet in height and was maliciously built or maintained to annoy a neighboring property owner. Spite fences are classified as a private nuisance, and the affected neighbor can seek a court order to have the fence removed or reduced. Courts have interpreted 'fence' broadly — a row of trees planted to block a neighbor's view has been found to qualify as a spite fence.
What are the pool fence requirements in California?
California's Swimming Pool Safety Act requires pool fences to be at least 60 inches (5 feet) tall, with no gap larger than 1.75 inches between vertical members and no more than 2 inches of clearance at the bottom. Gates must be self-closing and self-latching, with the latch at least 54 inches above the ground. For pools built or remodeled after January 1, 2018, homeowners must also install at least two additional safety features — such as a removable mesh fence, a safety pool cover, door alarms, or self-latching door hardware.
Can my HOA restrict my fence in California?
Yes. California law does not provide the same HOA protections for fences that some other states offer. Your HOA can regulate fence height, materials, color, and style through its CC&Rs. Most California HOAs require architectural committee approval before any fence construction. However, the HOA cannot prevent you from installing a pool safety fence that complies with state law — pool barrier requirements take precedence over HOA aesthetic rules.
Do I need a survey before building a fence in California?
A survey is not legally required, but it is strongly recommended — especially if you plan to build on or near the property line. Under the Good Neighbor Fence Law, boundary fences are shared structures, and building a fence even a few inches onto your neighbor's property can create a legal dispute. Several California cities require a site plan showing the fence location relative to property boundaries as part of the permit application.
Fence permits in California cities
Select your city for specific fence permit rules, fees, and application details.
Permit requirements vary by city and county. The information in this guide provides general guidance for California based on common local building codes. Always verify requirements with your local building department before starting your project.