Home › California › Los Altos › Fences

Fence height rules in Los Altos, California

Los Altos, Santa Clara County · Ordinances checked 2026-10-05 · Reviewed · 13 cited sections

Allowed

Fences 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.

Max height (side/rear)6 feet [1]
Max height (front setback)4 feet [2]
Corner lot, within 5 ft of street-side line4 feet [2]
Street-corner sight triangle (25 ft)3 feet max [3]
Driveway sight triangle (15 ft)4 feet max [4]
Lattice topper (side/rear)Up to 2 extra feet if at least 50% open [5]
Setback from property lineNone; fences may go in any required yard [9]
Barbed wire/electricNot within 10 ft of a street or public walkway line [8]

Height limits

Fences and walls anywhere in Los Altos are capped at 6 feet [1]. Lower limits apply near streets:

  • Front yard: 4 ft within the required front setback (25 ft in the R1-10 district) [2].
  • Corner lots: 4 ft within 5 ft of the street-side (exterior side) property line [2]. The city planner can let a corner lot treat its street side as the front yard for fencing when that matches how the house faces [11].
  • Sight triangles: 3 ft within a 25-ft triangle where two streets meet [3], and 4 ft within a 15-ft triangle on each side of a driveway where it meets the street [4].

Height is measured from the top of the fence straight down. On a retaining wall, it's measured from the top of the fence to the highest adjacent grade [10].

Extras above the limit

  • Up to 2 ft of lattice or other material at least 50% open may top a side or rear fence, if the city planner finds it open and compatible [5].
  • Decorative posts or caps up to 1 ft on fences along a street or walkway [6].
  • One arbor-style entry over a walkway, up to 8 ft tall, 5 ft wide and 3 ft deep [7].

Location and materials

Fences may be built in any required yard, right up to the property line [9]. Barbed wire, electric or other dangerous fences can't be within 10 ft of a property line along a street or public walkway [8]. The code doesn't specify a "finished side." A fence that violates the chapter is a public nuisance [13].

Near creeks

Building a fence inside a creek protection setback needs a written permit first [12].

Permits

The fence chapter doesn't itself require a permit for a standard fence, but city planner approval is needed for the lattice and corner-lot exceptions.

See how Los Altos compares with 8+ other California towns on fences →

Next steps

  1. Find your front setback line and, on a corner lot, your street-side property line before choosing heights.
  2. Keep fences at or under 3 ft in the 25-ft street-corner triangle and 4 ft in the 15-ft driveway triangles.
  3. Ask the Planning Division for city planner approval if you want a lattice topper or a corner-lot orientation exception.
  4. Ask the Building Division (see the city website for contact details) whether a building permit is needed for tall walls, retaining walls or pool fences.

Common questions

How tall can a fence be in Los Altos, California?
Fences can be up to 6 feet tall in side and rear yards. A lattice topper can add up to 2 extra feet if it is at least 50% open.
How tall can a front yard fence be in Los Altos, California?
No more than 4 feet in the front setback or within 5 feet of a corner lot's street-side line.
What are the sight triangle fence limits near intersections and driveways in Los Altos, California?
Near intersections and driveways, sight-triangle limits drop to 3 feet at street corners and 4 feet at driveways.
How close to the property line can I build a fence in Los Altos, California?
There is no setback from the property line; fences may go in any required yard. Barbed wire and electric fencing are not allowed within 10 ft of a street or public walkway line.

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)

What the ordinance says

Exact text from Los Altos's published ordinances. Section numbers are as printed in the source.

  1. Sec. 14.72.020 Maximum fence heights, Municipal Code Chapter 14.72 - Fence Regulations, p. 1
    The maximum height of any fence, wall, or other similar structure erected, constructed, or maintained in the city shall not exceed six feet, with the following exceptions:
  2. Sec. 14.72.020(A), Municipal Code Chapter 14.72 - Fence Regulations, p. 1
    No fence located within the required front yard setback and no fence located within five feet of the exterior side property line of a corner lot shall exceed four feet in height.
  3. Sec. 14.72.020(C), Municipal Code Chapter 14.72 - Fence Regulations, p. 1
    In order to ensure visibility, no fence exceeding three feet in height shall be located within a twenty-five (25) foot triangle at the intersection of two streets as outlined in Exhibit "A" of this chapter.
  4. Sec. 14.72.020(D), Municipal Code Chapter 14.72 - Fence Regulations, p. 1
    In order to ensure visibility, no fence exceeding four feet in height shall be located within a fifteen (15) foot triangle on either side of a driveway where it intersects with a street as outlined in Exhibit "A" of this chapter.
  5. Sec. 14.72.020(F)(4), Municipal Code Chapter 14.72 - Fence Regulations, p. 1
    To allow up to two feet of lattice, or material other than lattice that is typically at least fifty (50) percent open to the passage of light and air when viewed horizontally, to be added to the top of a fence or wall in the rear or side yards, and provided the lattice is determined by the city planner to be substantially open to the passage of light and air and compatible with the design and materials of the fence or wall.
  6. Sec. 14.72.020(G), Municipal Code Chapter 14.72 - Fence Regulations, p. 1
    Decorative columns, post caps, or similar features not more than one foot in height may be added on top of fences or walls which adjoin a street or public walkway, or those fences or walls which the city planner determines to be physically detached from an adjoining residential property.
  7. Sec. 14.72.020(H), Municipal Code Chapter 14.72 - Fence Regulations, p. 1
    A single arbor-style entry element, substantially open to the passage of light and air, may be allowed on a residential property provided the entry element is located over a walkway or pathway, and does not exceed eight feet in height, five feet in width, and three feet in depth.
  8. Sec. 14.72.030 Barbed wire and electrified fences, Municipal Code Chapter 14.72 - Fence Regulations, p. 1
    Barbed wire, electric, or other fences or walls dangerous to persons or property shall not be constructed within ten (10) feet of any property line which adjoins a street or public walkway.
  9. Sec. 14.66.210(D) Yard requirements—Exceptions, Municipal Code Chapter 14.66 - General Standards and Exceptions, p. 1
    Fences, walls, hedges, walks, driveways, or necessary retaining walls may occupy any required yard or other open space, subject to the provisions of Chapter 14.72 regulating fences.
  10. Sec. 14.02.010, "Height of fences and walls", Municipal Code Chapter 14.02 - Definitions, p. 1
    "Height of fences and walls" means a vertical line from the highest point of the fence or wall to a point directly below. Where a fence is constructed upon a retaining wall, the height of the fence shall be the vertical distance measured from the top of the fence to the highest adjacent grade.
  11. Sec. 14.72.020(B), Municipal Code Chapter 14.72 - Fence Regulations, p. 1
    The city planner may approve an exception to allow the exterior side yard of a corner lot to be considered the front yard, and adjust the other yard orientations accordingly, for the purposes of fencing.
  12. Sec. 6.32.030(B)(3) Acts requiring permit, Municipal Code Chapter 6.32 - Watercourse Protection Regulations, p. 1
    Carry out development of permanent structures, major earthmoving or construction of fences within a setback designated in whole or in part to protect a watercourse;
  13. Sec. 14.72.040 Public nuisances, Municipal Code Chapter 14.72 - Fence Regulations, p. 1
    A fence, wall, or other structure maintained in violation of the provisions of this chapter shall constitute a public nuisance.
This page summarizes Los Altos's posted ordinances as of 2026-10-05. Ordinances are amended, and individual lots can have overlays, subdivision covenants, or HOA rules that are stricter. Confirm with Development Services Department - Code Enforcement Division (Building Division 650-947-2752), 1 N San Antonio Road (650-947-2775) before you build. Spot an error?