Homeowners and property managers in California frequently ask how high their backyard fence can be without running afoul of local regulations. The answer is not a single number, because fence height rules are set by cities and counties rather than the state government. Expect a patchwork of rules where one neighborhood permits a modest four-foot boundary while an adjacent community allows a taller privacy screen, provided specific design and location conditions are met.
California State Law Sets The Baseline
California building codes address structural safety, but they do not impose a universal maximum height for backyard fences. Instead, the California Building Code, specifically Chapter 18 of Title 24, contains fence-related rules focused on barriers adjacent to highways and public rights-of-way. For properties that back up to a public street, the code often limits fence height to eight feet at the property line and caps any diagonal picket or lattice extensions at four feet. These measures are intended to preserve visibility for drivers and pedestrians, rather than regulate what happens deep inside a residential lot.
Local Zoning And Land Use Codes Are Key
Because the state law intentionally stays out of the detail, your exact height limit comes from your city or county zoning ordinance. In many California jurisdictions, standard backyard fences are allowed up to six feet, while side and rear fences often have the same six-foot maximum or slightly lower limits near side yards. Some coastal cities or historic districts treat fences more conservatively, capping them at four feet in certain zones. You can find the controlling rule in your local municipal code or the development section of your county’s zoning map, usually referenced as a permitted use or a dimensional standard for accessory structures.

Height Varies By Zoning District
A single city can allow different fence heights based on the zoning district where your property sits. For example, a single-family residential zone might permit six-foot rear fences, while a commercial or mixed-use district nearby allows eight-foot perimeter fencing. In multifamily or planned unit development areas, covenants or homeowner association rules may further restrict height to preserve shared views or sunlight. Always check the code for your exact zoning classification before finalizing your fence design.
Special Considerations: Boundaries, Views, And Solar Access
California law also shapes how fences interact with shared property lines and neighbor agreements. A boundary fence jointly used by two owners can sometimes be erected at a taller height than a fence on the interior edge of a lot, but written consent from the adjoining owner is typically required. In some communities, taller fences are allowed if they screen a utility meter or service equipment, provided they still meet setback rules. Conversely, tall fences that block a neighbor’s view or overshadow a smaller property can trigger disputes, even when they comply with the basic height limit.
Setbacks And Side Yard Rules Matter Too
Height limits interact closely with required side yard and rear yard setbacks, which are common in urban California lots. A fence placed entirely within your yard behind the front setback line generally has more freedom in height than one installed right on the property line. Some municipalities allow taller fences in rear yards as long as they sit behind the required rear setback distance, particularly in standard residential zones. However, corner lots or properties near intersections often face stricter rules to protect sightlines for turning vehicles and pedestrians.

Permanent Structures, Temporary Walls, And Mixed Materials
The same rules usually apply whether you are building a wood, vinyl, metal, or composite fence, as long as it is a permanent improvement. Temporary construction fences around a remodel often enjoy a higher allowance, capped at eight feet in many jurisdictions, but they cannot stay in place indefinitely. Mixed material designs, such as a wood privacy section paired with open metal gates, are typically measured at the highest point of a continuous structure. If your design includes integrated gates, screens, or lattice caps, local officials will look at the overall assembly height.
Permitting, Inspections, And Neighbor Communication
Most new fences in California require a building permit, especially when the height exceeds your local limit for fences at the property line or involves a change in use. During plan review, officials check dimensional drawings to confirm that the proposed height, location, and design align with zoning and development codes. After installation, a framing inspection and sometimes a final inspection ensure posts are properly set and the structure meets safety criteria. Proactively discussing your plans with neighbors can smooth the permitting process and reduce the risk of costly demands to reduce height later.