Gilroy, CA Fence Regulations: Height Limits (2026)
Key Facts
- Base residential height
- 7 feet (finished grade, higher side)
- Front yard setback trigger
- Over 3 feet needs 26-foot setback
- Corner side yard setback
- Over 3 feet needs 16-foot setback
- Main-building-setback fence
- Up to 8 feet, 6-foot side setback
- Alley fences
- Up to 7 feet
Summary
In the City of Gilroy, residential fences and hedges are capped at seven feet, measured from the higher finished grade, but front-yard fences over three feet must sit back 26 feet from the curb and corner-lot side fences over three feet need a 16-foot setback, per City Code § 30.34.30(a).
(a) Residential Districts. Except in the following situations, fences and hedges in residential districts are permitted up to seven (7) feet in height, measured from the finished grade on the higher side of the fence: (1) Fences or walls in the front yard higher than three (3) feet above the curb shall be set back at least twenty-six (26) feet from the face of curb. (2) On a corner lot, fences, hedges or visual obstructions in the side yard adjacent to the street over three (3) feet above the sidewalk shall be set back at least sixteen (16) feet from the face of curb. ... (5) Fences or walls adhering to the setbacks required for a main building are permitted up to eight (8) feet in height. Such fences or walls shall be set back a minimum of six (6) feet from any side lot line.
Full Breakdown
City Code § 30.34.30(a) sets the base residential fence and hedge height at seven feet, measured from the finished grade on the higher side. Front yard fences or walls taller than three feet above the curb must be set back at least 26 feet from the face of curb, preserving the driveway sightline. On corner lots, fences, hedges or visual obstructions in the street-side yard taller than three feet above the sidewalk must be set back at least 16 feet from the face of curb, and where a corner lot abuts the driveway side of a key lot or an alley, obstructions over three feet must sit 10 feet back from the street-side property line for at least 10 feet along the rear property line.
Corner-lot fences must also comply with the visual obstruction rules of § 20.60. Fences or walls that follow the main building's required setbacks are allowed up to eight feet, provided they sit back at least six feet from any side lot line, and fences along alleys may reach seven feet. Landscape amenities like arbors, trellises and pergolas are capped at eight feet in the front setback and may not block traffic or pedestrian sightlines. Commercial and industrial districts get a separate seven-foot base height with different exceptions under § 30.34.30(b).
Violations & Fines
Building or maintaining a fence that exceeds these height and setback limits is an infraction under City Code § 30.53.20, punishable per Government Code § 36900, with each day of continuing violation a separate offense; the city attorney may also seek removal through nuisance abatement under § 30.53.30.
Frequently Asked Questions
How tall can my backyard fence be in Gilroy?
Why does my Gilroy front-yard fence need a big setback?
Are corner-lot fences treated differently in Gilroy?
Sources & Official References
Other rules in Gilroy
How Gilroy compares: Cities That Allow the Tallest Residential Fences·California rules heatmap·Compare Gilroy to another location·View the California fence regulations overview
See something wrong?
Help us keep this page accurate. If you notice an error or outdated information, let us know.
Height Limits in Nearby Cities
How other cities in Santa Clara County handle height limits.