Fence height limits and permits by city
Walnut Creek allows fences up to 7 feet in interior side and rear setbacks and 3 feet in the front setback; taller needs a Minor Use Permit (WCMC §10-2.3.104). Orinda caps fences at 6 feet (§17.4.27). Danville allows 6 feet, or 7 with an open lattice top foot, and 3.5 feet in front setbacks (Fence Standards).
Checked November 26, 2026
side & rear
front setback
anywhere
within 5 ft of street
side & rear, lattice top
front setback
City by city
| City | Limits | Also note | Source |
|---|---|---|---|
| Walnut Creek | 7 ft in interior side and rear setbacks; 3 ft in the front setback and the street side of a reversed corner lot | Taller only with a Minor Use Permit. Barbed wire, razor wire and electric fencing not allowed. No chain link where visible from the street, public paths or open space. | WCMC §10-2.3.104; City fence page |
| Orinda | 6 ft maximum anywhere on the lot | Within 5 ft of a street property line: 4 ft maximum and open material. A fence and retaining wall less than 4 ft apart count as one structure. | OMC §17.4.27 |
| Danville | 6 ft in side and rear yards, or 7 ft with the top foot open lattice; 3.5 ft in front setbacks | On a retaining wall shared with a neighbor: 6 ft combined, or 7 ft with lattice. No chain link visible from public areas. | Fence Standards (May 2023) |
| Lafayette | Not confirmed here | Confirm with Lafayette Planning before you build. | — |
| Alamo, Blackhawk, Diablo | Not confirmed here | County zoning applies; confirm with Contra Costa County. HOAs add their own rules. | — |
| Moraga, Pleasant Hill, Concord | Not confirmed here | Confirm with the city before you build. | — |
How height is measured in Walnut Creek
Walnut Creek’s two sources word this differently. The municipal code measures height from the highest adjacent grade (§10-2.3.104). The City’s fence page says to “measure the fence height from the lowest existing grade to the highest point of the fence” (City fence page). On flat ground they agree. On a slope, a step or a retaining wall they don’t, so ask the Planning Division’s duty planner (925-256-3558) how your fence will be measured before building close to 7 feet.
Fences on retaining walls
Orinda and Danville both count a fence on a retaining wall toward a combined limit. In Walnut Creek, a retaining wall that supports a fence may need its own building permit. A leaning or cracked wall should be dealt with before a new fence goes on top; see fence replacement.

Building permits
Separate from zoning height limits, the California Residential Code (§R105.2) lists fences not over 7 feet among the work exempt from a building permit. Zoning limits, HOA rules and pool-barrier rules still apply.
HOAs
Many neighborhoods need HOA approval before a fence changes height, style or color. Blackhawk has an architectural review committee, and Rossmoor’s mutuals manage exterior changes. Get approval in writing first.
Pool barriers
State law: at least 60 inches high, no more than 2 inches at the bottom, no gap that passes a 4-inch sphere, gates that open away from the pool and self-close and self-latch (HSC §115923). Walnut Creek’s page says 54 inches (City); 60 meets both. See gate repair.
Height and permit questions
Is a 7 foot fence too high?
In Walnut Creek, 7 feet is allowed in interior side and rear setbacks; in the front setback the limit is 3 feet. Orinda caps fences at 6 feet. Danville allows 7 feet only with an open lattice top foot. Anything over the limit needs city approval (in Walnut Creek, a Minor Use Permit).
How tall can your fence be in California?
There is no single statewide height limit; each city or county sets its own. Separately, the California Residential Code exempts fences up to 7 feet from needing a building permit, but zoning limits, HOA rules and pool-barrier rules still apply.
Do I need a permit to replace a fence in Walnut Creek?
A fence within the height limits doesn’t need a Minor Use Permit. Fences over the limits do. If the fence sits on a retaining wall, the wall may need its own building permit.
How is fence height measured?
It depends on the city, and Walnut Creek’s own sources word it differently (see above). On a slope or over a wall, ask the city which side to measure from before you build close to the limit.
Related: deer fencing (when 7 feet isn’t enough), good neighbor fences (agree on height before you split the cost), fence repair in Walnut Creek.
Sources
- Walnut Creek Municipal Code §10-2.3.104 (revised 9/24)
- City of Walnut Creek, “Fences” page
- Orinda Municipal Code §17.4.27
- Town of Danville Fence Standards (updated May 9, 2023)
- Health and Safety Code §115923
Checked November 26, 2026. Rules and prices change; confirm anything that affects your project with the city or a licensed contractor.
Build it to the limit, not past it
Tell us the city and the height you want.
- Posts, rails, pickets, gates and full replacements
- Shared fences, deer fences and fire-zone fencing
- Walnut Creek, Lafayette, Orinda, Danville and nearby