How High Can a Fence Be in California: Limits and Permits

On a standard California residential lot, you can generally build a fence up to six feet tall in your side and back yards and three to four feet tall in the front yard. That’s the pattern in most city and county codes, but the state itself sets no single height limit for how high a fence can be in California, so the exact number depends on your local zoning ordinance. One statewide rule does apply everywhere: any fence over ten feet built to annoy a neighbor is illegal.

Front, Side, and Rear Yard Limits

Most California cities and counties cap residential fences at six feet in side and rear yards and three to four feet in front yards. A handful of jurisdictions allow seven feet in the rear, and some permit a short lattice extension above a solid six-foot fence, pushing the total to around six and a half or seven feet as long as the lattice is open enough to pass light and air.

The front-yard cap exists to protect sightlines for drivers and pedestrians and to keep the streetscape open. Side and rear limits are more about privacy balanced against light and air to adjoining lots. Your zoning district matters too. Single-family residential parcels, multi-family parcels, and commercial parcels can each have different limits, and properties in historic districts or planned developments often face tighter restrictions than the citywide default.

The only way to know your exact limit is to look up the fence section of your city or county municipal code, or call the planning counter and ask. Planning staff will answer this question over the phone in a few minutes.

Corner Lots, Retaining Walls, and Slopes

The standard numbers get complicated fast when the lot isn’t flat or square to the street.

On corner lots, most cities carve out a “sight visibility triangle” near the intersection, typically 15 to 25 feet back from the corner along each street frontage. Inside that triangle, fences are usually limited to three feet or less regardless of what the rest of the yard allows. This is one of the most common code enforcement triggers.

Retaining walls create a measurement problem. When a fence sits on top of a retaining wall, some cities count the wall as part of the fence and measure from its base. Others measure only the fence itself from the top of the wall. A four-foot retaining wall topped by a six-foot fence can be perfectly legal under one code and a four-foot violation under another.

On sloped lots, fence height is generally measured from the higher side of the grade. Some codes let the fence step down with the slope so the top follows the terrain; others require a level top, which forces the downhill sections to sit well below the maximum.

Any of these situations is worth a call to the planning department before you buy materials.

The Ten-Foot Spite Fence Ceiling

California has one height rule that overrides every local ordinance. Under Civil Code Section 841.4, a fence or fence-like structure that unnecessarily exceeds ten feet and was built or kept up maliciously to annoy an adjoining owner is a private nuisance.1California Legislative Information. California Civil Code 841.4 The affected neighbor can sue to have it lowered or removed and can seek damages.

Two elements have to be present. The fence must “unnecessarily” exceed ten feet, and it must have been built or maintained maliciously. A tall fence with a genuine purpose — highway noise, a hillside garden, screening from a nonresidential use — doesn’t qualify. A 12-foot solid wall thrown up along the property line right after a dispute is exactly what the statute targets. If your local code happens to permit something taller than ten feet, Section 841.4 still governs when the motive is spite.

Pool Fences Follow Different Rules

Pool safety barriers are a separate regime, and they set minimums rather than maximums. The U.S. Consumer Product Safety Commission recommends pool fences of at least four feet, with five feet or taller preferred.2U.S. Consumer Product Safety Commission. Safety Barrier Guidelines for Residential Pools The California Building Code requires no less than four feet for any pool enclosure and five feet for public pool enclosures. Many cities and counties require five feet or more for private pools.

Pool barrier rules also cover self-closing and self-latching gates, non-climbable rail configurations, and gap widths that keep small children from squeezing through. When a pool fence doubles as a property-line fence, it has to meet both the pool barrier requirements and the local height limit. If those conflict, the stricter standard controls.

HOA Rules Can Go Lower

If your property is in a homeowners association, the CC&Rs can impose stricter fence rules than the city code. An HOA might cap fences at five feet where the city allows six, or dictate specific materials, colors, or styles. Those restrictions are enforceable because you agreed to them at purchase.

What the HOA cannot do is push you above the city’s maximum or waive safety requirements. HOAs can only add to what public law already requires. Before you build in an HOA community, check three things: the city’s zoning code, the association’s CC&Rs, and any architectural review guidelines. Getting written approval from the architectural committee first is much cheaper than tearing a finished fence down.

Permits and Variances for Going Taller

Most fences that stay within local height limits don’t need a building permit. A permit is usually triggered when a fence exceeds a certain height (often six feet), uses structural masonry or engineered footings, or sits in a special overlay zone. Permit fees for residential fences typically run between $50 and $100, though jurisdictions vary.

To go taller than the code allows, you apply for a variance or height exception through the planning department. That generally means scaled drawings of the proposed fence, an application fee, and sometimes notice to neighbors. Approval usually turns on whether the taller fence will create sightline problems, block light and air to adjoining lots, or clash with the character of the neighborhood. Variances are not automatic, and larger requests often go to a hearing before a zoning administrator or planning commission.

What Happens If Your Fence Is Too Tall

A fence that violates the local height ordinance typically comes to the city’s attention through a neighbor complaint. Code enforcement will send a notice with a deadline to lower or remove it. Ignoring the notice escalates the problem. Some cities charge ongoing daily fines until the violation is corrected, and some treat continued violations as misdemeanors that can carry fines and, in extreme cases, jail time of up to six months.

A neighbor can also sue you directly. If the fence violates a local ordinance or meets the spite fence test under Civil Code 841.4, a court can order it lowered or removed and award damages for lost use and enjoyment of the neighboring property.1California Legislative Information. California Civil Code 841.4 Rebuilding a finished fence at the right height costs far more than measuring correctly the first time.