Fence Regulations in Sunnyvale, CA: What Residents Actually Need to Know
If you live in Sunnyvale or are thinking about moving there, fence regulations are one of those things you probably won't think about until they affect you directly. Sunnyvale has 7 specific rules on the books covering different aspects of fence regulations, and some of them might surprise you.
Retaining Walls
Retaining walls over 4 feet measured from the bottom of the footing require a Sunnyvale building permit with engineered plans, including drainage, soil pressure, and seismic analysis.
Key details: Permit trigger: Over 4 feet or surcharged. Plans: Engineered, CA licensed. Seismic design: Required near faults. Property line buffer: 3 feet review. Decorative walls under 4 ft: Permit exempt.
Contact your local code enforcement office for specific penalty information.
Fence Requirements
Sunnyvale fences must be structurally sound, set back from sight-distance triangles at corners, and for commercial uses must meet screening and design review requirements in the zoning code.
Key details: Structural standard: Sound, no lean over 10 degrees. Corner triangle: 3 ft max in 25 ft radius. Commercial screening: Often required. Chain link street side: Generally not allowed. HOA rules: Can be stricter.
Contact your local code enforcement office for specific penalty information.
Material Restrictions
Barbed wire, razor wire, and electrified fences are prohibited on Sunnyvale residential properties. Wood, vinyl, wrought iron, masonry, and composite are all permitted residential fence materials.
Key details: Banned residential: Barbed, razor, electrified. Allowed wood types: Redwood, cedar, PT. Chain link front yards: Often prohibited. Temporary materials: 90 day max. HOA overlay: May be stricter.
Contact your local code enforcement office for specific penalty information.
Pool Barriers
California Health and Safety Code 115920 and Sunnyvale code require pool barriers at least 60 inches tall with self-closing gates and at least two of seven safety features for residential swimming pools.
Key details: Governing law: H and S Code 115920. Fence height: 60 inches minimum. Gate type: Self-closing self-latching. Second layer required: 2 of 7 features. Inspection: Sunnyvale Building.
Contact your local code enforcement office for specific penalty information.
This is one of the stricter rules in Sunnyvale's municipal code. If you are unsure whether your situation complies, it is worth checking with the city before proceeding.
Height Limits
Sunnyvale limits front yard fences to 3 feet, side and rear yard fences to 6 feet, and allows up to 8 feet with a minor fence permit for privacy and sound attenuation needs.
Key details: Front yard: 3 feet solid / 4 open. Side and rear: 6 feet. Max with permit: 8 feet. Corner sight triangle: 3 feet max. Permit authority: Planning Division.
Contact your local code enforcement office for specific penalty information.
Permit Requirements
Fences up to 6 feet in side and rear yards do not require a building permit in Sunnyvale, but fences over 7 feet, retaining walls over 4 feet, and pool barriers always need permits.
Key details: No permit up to: 7 feet wood / vinyl. Permit required over: 7 feet. Retaining wall trigger: Over 4 feet. Pool barriers: Always permitted. Issuing office: One Stop Permit Center.
Contact your local code enforcement office for specific penalty information.
Neighbor Fence Rules
California Civil Code 841 (Good Neighbor Fence Act) requires adjoining property owners to share the cost of boundary fences equally absent written agreement, and 30-day written notice before construction.
Key details: Governing law: CA Civil Code 841. Default cost split: 50 / 50. Written notice: 30 days minimum. Dispute forum: Small claims court. Survey: Highly recommended.
Contact your local code enforcement office for specific penalty information.
The Bottom Line
Sunnyvale's fence regulations rules are a mixed bag. Some areas are strict, others are relaxed, and the details matter. The best approach is to check the specific rule that applies to your situation rather than assuming Sunnyvale is broadly strict or permissive.
Keep in mind that Sunnyvale can amend these rules at any council meeting. For the most current version of any rule mentioned here, check the specific ordinance page, where we track updates as they happen.