Home › California › Topics › Fences

Fences in California: rules in 23 towns compared

How tall can my fence be, and where can I put it? Here's how each town answers it. Click a town for the details and the exact ordinance text.

Last reviewed

Quick answer: it depends on the town. Of the 23 California towns we cover, 15 allow it outright, 3 allow it with a permit, 2 allow it with board review and 3 restrict it. Statewide rules apply everywhere; see the statewide rules section below.

Find your town in the table below for its exact rule.

This page is for California homeowners planning a fence. Fence height, location and design are mostly set by your city's zoning code, but a few state rules apply everywhere. The California Residential Code exempts fences up to 7 feet high from a building permit (pool barriers are not exempt), though city zoning height limits still apply and some cities have amended the exemption. Under the Good Neighbor Fence Act (Civil Code §841), in effect since January 1, 2014, neighbors are presumed to share equally the reasonable cost of a boundary fence, and you must give 30 days' written notice before spending money on one. A fence that unnecessarily exceeds 10 feet and is put up to annoy a neighbor is a spite fence under Civil Code §841.4.

Of the 23 cities we cover for this topic, 19 use 6 feet as the basic limit for side and rear fences, sometimes with extra lattice height; Coronado and Santa Barbara allow 8 feet, Rancho Palos Verdes 7 feet and Morro Bay 6 feet 6 inches. Front-yard limits are much lower: 3 feet in Carpinteria, Los Gatos, Saratoga and Morro Bay (solid fences), 42 inches or 3.5 feet in most of the rest, and 4 feet in Coronado, Los Altos and Pasadena. Some cities require a permit or review for ordinary fences: Woodside for every fence, Hillsborough for any fence over 3 feet, and Tiburon and Westlake Village above 42 inches. Pick your city below for the details and the municipal code text.

Town-by-town comparison

TownVerdictShort answer
Los Altos
Santa Clara Co.
AllowedFences in Los Altos can be up to 6 feet tall in side and rear yards, but no more than 4 feet in the front setback or within 5 feet of a corner lot's street-side line. Near intersections and driveways, sight-triangle limits drop to 3 and 4 feet.
Saratoga
Santa Clara Co.
AllowedSolid fences can be up to 6 feet tall (plus up to 2 feet of open lattice on top), and open fences such as wrought iron or split rail up to 8 feet. Inside the required front setback area, fences are limited to 3 feet. The City Code requires a building permit for any solid fence over 6 feet (which also needs special approval); it doesn't say whether a tall open fence needs one, so ask the Building Division.
Los Gatos
Santa Clara Co.
AllowedIn Los Gatos most fences can be 6 feet tall plus 1 foot of lattice (7 feet total), but fences in a required front yard, a street-side yard, or near driveways and corners are limited to 3 feet. In the hillside area the limit is 6 feet with stricter design rules, and taller fences up to 8 feet need a Town exception.
Tiburon
Marin Co.
Allowed with board reviewFences may go in any setback, but any fence or wall over 3.5 feet tall needs site plan and architectural review, and no fence may exceed 6 feet in a setback (up to 9 feet on the low side of a sloped shared property line, with review). Near street corners, fences and hedges are limited to 30 inches inside a 35-foot sight triangle.
Piedmont
Alameda Co.
AllowedOutside the street setback, a fence up to 6 feet tall needs no design review or building permit in Piedmont; taller fences need a design review permit (with neighbor notice above 8 feet). Any fence in the street setback, at any height, needs design review by the Planning Commission, and corner lots are limited to 3 feet in a 30-foot sight triangle.
Lafayette
Contra Costa Co.
AllowedLafayette's code has no stand-alone fence section; fences fall under the general rule for structures in a required front, side or rear yard, which caps them at 6 feet, measured on the tallest side from natural grade. On corner lots, fences and plantings in the 25-foot sight triangle at the intersection are limited to 2.5 feet above the curb.
Danville
Contra Costa Co.
RestrictedIn Danville's single-family zones, fences and hedges in the front yard setback can be 3.5 feet tall, and side and rear property-line fences can be 6 feet, or 7 feet if the top foot is open lattice. On corner lots, fences in the sight triangle are limited to 2.5 feet above the curb. These limits come from a 2019 copy of the zoning code, so confirm them with the Planning Division.
Santa Barbara
Santa Barbara Co.
AllowedYes, within height limits. Under Santa Barbara's 2026 inland zoning rules, fences can be 3.5 feet tall within 10 feet of the front lot line, 5 feet in the rest of the front yard, and 8 feet elsewhere. Fences up to 5 feet don't need a building permit, and anything at a driveway must stay below 42 inches in the visibility triangle.
Manhattan Beach
Los Angeles Co.
RestrictedIn Manhattan Beach residential zones, fences, walls and hedges can be up to 42 inches tall in the required front yard and 6 feet tall in required side and rear yards. Extra height up to 8 feet is possible in some cases, such as with written approval from the abutting neighbor, and fences near driveways and on corner lots must keep sight lines clear.
Malibu
Los Angeles Co.
AllowedIn a required front yard, Malibu limits solid fences and walls to 42 inches, though see-through (open/permeable) fencing can go up to 6 feet. In interior side and rear yards the limit is 6 feet. Fences are prohibited within 5 feet of a building if they're flammable, and beachfront and bluff lots have extra limits.
Pasadena
Los Angeles Co.
RestrictedIn Pasadena's single-family (RS) and RM-12 zones, fences in the front setback can be 4 feet tall and must be at least 50% open; side and rear fences next to other homes can be 6 feet. Fences near driveways must drop to 30 inches in a sight triangle, and barbed or razor wire is banned.
Newport Beach
Orange Co.
AllowedIn Newport Beach's coastal zone, fences, walls and hedges can be up to 42 inches tall in the front setback and up to 6 feet in rear and interior side setbacks of residential lots. Waterfront setbacks are capped at 42 inches (Balboa Island bay fronts follow a 5-foot open-top rule), corner sight triangles at 30 inches, and barbed wire and electric fences aren't allowed in residential areas.
Coronado
San Diego Co.
AllowedIn Coronado's residential zones, fences, walls and hedges can be up to 8 feet tall in a required side or rear yard but only 4 feet in the required front yard. On corner lots they are limited to 6 feet in the street side yard and 3 feet inside the corner sight triangle.
Del Mar
San Diego Co.
AllowedIn Del Mar's residential zones, fences in the rear yard or interior side yard can be up to 6 feet tall. In the front yard or a street-side yard the limit is 3.5 feet at the property line, rising 6 inches for every 2 feet of setback, up to 6 feet. On coastal bluff lots, new fences must be at least 10 feet back from the bluff edge.
Hillsborough
San Mateo Co.
Allowed with board reviewFences along a street are normally limited to 6 feet, and up to 8 feet only with design review. Any fence in the street setback or over 6 feet needs design review, and any fence over 3 feet needs a building permit. Fences can't go in the town right-of-way, and corner lots must keep a 40-foot sight triangle clear above 2.5 feet.
Woodside
San Mateo Co.
Allowed with a permitEvery new fence or wall in Woodside needs a Town fence and/or building permit. The overall height limit is 6 feet (12 feet for athletic court fencing), and no exception can go above 6 feet. Instead of front-yard height limits, fences must be set back from the edge of the road: 10 feet from a public road for fences under 4 feet, and up to 50 feet (30 feet in R-1) for solid fences or walls 4 to 6 feet tall.
Orinda
Contra Costa Co.
AllowedYes. In Orinda's residential zones a fence can be up to 6 feet tall anywhere on the lot, but within 5 feet of a street-facing property line it must be open (lattice or wrought iron) and no taller than 4 feet. A fence on top of a retaining wall counts toward the wall's height limit (4 feet within 10 feet of a property line or in the setback). The City says new and rebuilt fences don't need Planning Department approval; taller fences need an exception permit.
Rancho Palos Verdes
Los Angeles Co.
Allowed with a permitIn Rancho Palos Verdes, fences, walls and hedges in the front setback are limited to 42 inches, and fences and walls elsewhere on the lot can be up to 7 feet. A city fence/wall permit, which reviews whether the fence would block a neighbor's view, is needed for most fences in the side or rear setback next to another lot, unless the grade difference is 2 feet or less or your lot is upslope.
San Clemente
Orange Co.
AllowedIn San Clemente's residential zones, fences, walls and hedges can be up to 3 ft 6 in tall in the front yard setback and 6 ft in side and rear yards. On a corner lot, the 5 ft closest to the street-side lot line is limited to 3 ft 6 in. Fences up to 6 ft (masonry under 42 in) don't need a building permit, and barbed wire and razor wire are banned.
Westlake Village
Los Angeles Co.
Allowed with a permitIn most of Westlake Village, fences and walls can be up to 42 inches tall in the front yard (and in a side yard next to a street) and up to 6 feet in side and rear yards. Anything over 42 inches needs a City fence permit, and all fences need HOA approval. A few neighborhoods differ: Southshore and Westlake Island allow walls up to 10 feet outside the front yard setback, and First Neighborhood allows front-yard walls over 42 inches if set back 8 feet.
Sierra Madre
Los Angeles Co.
AllowedIn Sierra Madre's residential zones, fences and walls in the required front yard can be up to 42 inches tall, and fences up to 6 feet are allowed on or next to interior side and rear property lines. On corner lots, nothing over 42 inches is allowed in a 15-foot sight triangle at the corner. Barbed wire and spiked fencing are prohibited on residential property; the code we reviewed doesn't mention a city permit for an ordinary fence within these limits.
Carpinteria
Santa Barbara Co.
AllowedIn Carpinteria's single-family zones you can put up a fence up to 3 feet tall in the front yard setback and up to 6 feet tall in the side and rear yard setbacks without zoning review. Taller fences need approval from the Community Development Department, and corner lots must keep a 10-foot vision clearance.
Morro Bay
San Luis Obispo Co.
AllowedIn Morro Bay, fences in the required front and corner-side setbacks can be 3 feet high if solid or 4 feet if at least half open (4 and 5 feet north of Alva Paul Creek and east of Highway One). Elsewhere on the lot the limit is 6 feet 6 inches. Chain-link isn't allowed in residential districts.

Key numbers across California cities

Basic fence height limits in the cities we cover (many allow more with lattice, design review or an exception):

Front yard limit Cities
3 feet Carpinteria, Los Gatos, Saratoga, Morro Bay (solid; 4 ft if at least half open)
3.5 feet / 42 inches Danville, Del Mar (at the property line), Malibu (solid; open fencing to 6 ft), Manhattan Beach, Newport Beach, Rancho Palos Verdes, San Clemente, Santa Barbara (within 10 ft of the front line), Sierra Madre, Westlake Village
4 feet Coronado, Los Altos, Pasadena (at least 50% open), Orinda (within 5 ft of a street line, open materials)
Side and rear limit Cities
6 feet Most cities we cover, including Danville and Los Gatos (7 ft with a lattice top), Los Altos and Saratoga (up to 2 ft of lattice on top), and Manhattan Beach (up to 8 ft with the abutting neighbor's written approval)
6 ft 6 in Morro Bay
7 feet Rancho Palos Verdes
8 feet Coronado, Santa Barbara

Corner sight triangles drop the limit further, from 2.5 feet in Danville, Hillsborough and Lafayette to 3 feet in Coronado, Los Altos, Los Gatos, Piedmont and Saratoga. Santa Barbara exempts fences up to 5 ft from a building permit, and San Clemente and Piedmont fences up to 6 ft.

What varies most from city to city

Permits and design review. The state permit exemption covers fences up to 7 feet, but several cities we cover add their own approvals:

  • Woodside: a Town fence and/or building permit for every new fence, wall or gate, with a 6-foot limit and no exceptions above it.
  • Hillsborough: a building permit for fences over 3 feet, and design review for any fence in a street setback or over 6 feet.
  • Tiburon: site plan and architectural review for any fence over 3.5 feet.
  • Westlake Village: a City fence permit over 42 inches, plus HOA approval.
  • Piedmont: design review for any fence in the street setback and anything over 6 feet.
  • Rancho Palos Verdes: a fence/wall permit, which looks at neighbors' views, for most side and rear setback fences next to another lot.

Materials. Barbed or razor wire is banned in Danville, Newport Beach, Pasadena, San Clemente, Sierra Madre and Westlake Village; Saratoga allows it only with Planning Commission approval and Manhattan Beach only with a City Council permit. Chain link is barred in residential districts in Morro Bay and Westlake Village, and in front yards in Rancho Palos Verdes and Santa Barbara (unless Design Review approves).

Setbacks from the road. Woodside sets no front-yard height limit but makes fences 4 to 6 feet tall stand back from the road edge, up to 50 feet (30 feet in R-1) for solid fences.

California state rules on fences

Fence height, location and design are mostly set by your city or county zoning code. A few state rules apply everywhere:

  • Building permit: the California Residential Code (R105.2) exempts fences up to 7 feet high from a building permit. Pool barriers are not exempt. Zoning height limits still apply, and many cities cap front-yard fences well below 7 feet. Some cities have amended the exemption.
  • Spite fences: under Civil Code §841.4, a fence or fence-like structure that unnecessarily exceeds 10 feet and is maliciously put up or kept to annoy a neighbor is a private nuisance. The neighbor can sue to have it removed.
  • Good Neighbor Fence Act (Civil Code §841): since January 1, 2014, neighbors are presumed to share equally the reasonable cost of building, maintaining or replacing a fence between their properties, unless they agree otherwise in writing.
    • Before spending money on a shared fence, you must give each neighbor 30 days' written notice. The notice must describe the problem, the proposed fix, the estimated cost, how costs would be shared, and the timeline.
    • A neighbor can overcome the presumption in court by showing equal sharing would be unjust, for example because of financial hardship or costs driven by the other owner's aesthetic preferences.
  • Pool fences must meet the Swimming Pool Safety Act's barrier standards when used as the pool enclosure (see Pools).
  • Coastal zone: a new fence may need a coastal development permit, depending on the local coastal program.

State sources: Civil Code §841 (Good Neighbor Fence Act) · Civil Code §841.4 (spite fences) · City of South San Francisco, Required Permits & Work Exempt from Permit (quoting 2025 CRC R105.2) · Health & Safety Code §115923 (pool enclosure standards)

Common questions about fence rules in California

What are the fence height laws in California?
It depends on your city. There's no statewide height limit for ordinary fences; city zoning codes set them. In 19 of the 23 cities we cover, side and rear fences are capped at 6 feet as the basic rule, and front-yard fences at 3 to 4 feet, with lower limits near corners and driveways.
Do you need a permit to build a fence in California?
Often not a building permit, but it depends on your city. The California Residential Code exempts fences up to 7 feet high, except pool barriers, and some cities have amended that. Woodside requires a permit for every fence, Hillsborough a building permit over 3 feet, and Westlake Village a fence permit over 42 inches. Zoning height limits apply either way.
What is the California fence law 841?
Civil Code §841, the Good Neighbor Fence Act, presumes that neighbors share equally the reasonable cost of building, maintaining or replacing a fence between their properties, unless they agree otherwise in writing. You must give each neighbor 30 days' written notice describing the problem, proposed fix, estimated cost, cost sharing and timeline. A neighbor can rebut the presumption in court, for example by showing financial hardship.
What is considered a spite fence in California?
Under Civil Code §841.4, a fence or fence-like structure that unnecessarily exceeds 10 feet and is maliciously put up or kept to annoy a neighbor is a private nuisance. The neighbor can sue to have it removed.
How tall can a front yard fence be in California?
It depends on your city, and it's usually much lower than in back. Among the cities we cover, front-yard limits are 3 feet in Carpinteria, Los Gatos and Saratoga, 42 inches in cities such as Manhattan Beach, Newport Beach and Westlake Village, and 4 feet in Coronado, Los Altos and Pasadena. Piedmont requires design review for any fence in the street setback.
Are barbed wire fences allowed in California?
It depends on your city. Danville, Newport Beach, Pasadena, San Clemente, Sierra Madre and Westlake Village ban barbed wire on residential property, Saratoga allows it only with Planning Commission approval, Manhattan Beach requires a City Council permit, and Los Altos keeps barbed or electric wire 10 feet from a street or public walkway line.

Other topics

ADU rules · Chicken laws · Short-term rentals · Shed permits · Burn permits & fire pits · Home businesses · Pool rules · Coastal & creek rules · Docks & piers