Fence repair and installation in Danville, CA
Danville allows 6-foot fences in side and rear yards, or 7 feet when the top foot is open lattice, and 3.5 feet in front setbacks. A shared fence on a retaining wall is limited to 6 feet combined, or 7 with lattice (Danville Fence Standards). Alamo, Blackhawk and Diablo follow county rules, plus HOA review.

Danville’s fence standards
| Where | Limit |
|---|---|
| Side and rear yards | 6 ft, or 7 ft with the top foot open lattice |
| Front setback | 3.5 ft |
| Shared fence on a retaining wall | 6 ft combined, or 7 ft with lattice; measured separately if the fence is set back at least 2 ft |
| Chain link | Not allowed where visible from public areas |
Questions about a specific lot go to the Danville Permit Center.
Second-generation fences
Many original fences have already been replaced once, and the replacements are aging. A full replacement is a chance to switch to steel posts or a lattice-top design that reaches 7 feet within the standards. Fence replacement.
Gates and pools
Side-yard and pool gates take daily use. A pool gate must open away from the pool and self-close and self-latch (HSC §115923). Gate repair.
Shared fences on walls
Where a fence sits on a wall between two yards, the combined limit applies, and the cost of the fence is presumed shared under Civil Code §841. Good neighbor fences.
Alamo, Blackhawk and Diablo
These are unincorporated and follow Contra Costa County zoning, which we haven’t confirmed for this page; check with the county before building. Blackhawk’s architectural review committee approves fence changes. Fire hazard maps for this area come from San Ramon Valley Fire. Closer to Walnut Creek? See fence repair in Walnut Creek.
Sources
- Town of Danville Fence Standards (updated May 9, 2023)
- Danville Permit Center
- Health and Safety Code §115923
- San Ramon Valley Fire hazard zones (Danville, Alamo, Blackhawk, Diablo)
Checked November 26, 2026. Rules and prices change; confirm anything that affects your project with the city or a licensed contractor.
Request a quote in Danville or Alamo
Say whether there’s a retaining wall, a pool or an HOA.
- Posts, rails, pickets, gates and full replacements
- Shared fences, deer fences and fire-zone fencing
- Walnut Creek, Lafayette, Orinda, Danville and nearby