Skip to main content
CityRuleLookup

Gilroy, CA Fence Regulations: Height Limits (2026)

Some Restrictions
Compiled from the official code textEditor Martyn O'NeillLast verified September 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?
Residential fences and hedges are capped at seven feet, measured from the finished grade on the higher side, under City Code § 30.34.30(a), unless it follows the main building's setback, in which case up to eight feet is allowed with a six-foot side setback.
Why does my Gilroy front-yard fence need a big setback?
Any front-yard fence or wall over three feet above the curb must be set back at least 26 feet from the face of curb under § 30.34.30(a)(1), which keeps taller fencing clear of the driveway and street sightline.
Are corner-lot fences treated differently in Gilroy?
Yes. Corner-lot fences, hedges or obstructions over three feet in the street-side yard need at least a 16-foot setback from the curb under § 30.34.30(a)(2), and must also meet the visual obstruction standards of § 20.60.

Sources & Official References

Other rules in Gilroy

All Gilroy rules

How Gilroy compares: Cities That Allow the Tallest Residential Fences·California rules heatmap·Compare Gilroy to another location·View the California fence regulations overview

Get notified when Height Limits in Gilroy, CA changes

We'll email you the moment we detect a change in the code. No spam, unsubscribe anytime.

We'll never sell or share your email. One-click unsubscribe in every email.

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.

Mountain View, CA
Some Restrictions
San Jose, CA
Some Restrictions
Santa Clara, CA
Some Restrictions
Sunnyvale, CA
Some Restrictions