Skip to main content
CityRuleLookup

Fence Regulations in Gilroy, CA (2026)

3 verified fence regulations for Gilroy, California, sourced directly from the municipal code and official government pages.

Verified from official government sources

Height Limits

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).

Gilroy Fence Height Limits by Yard

Some Restrictions

Gilroy 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,...

Retaining Walls

In the City of Gilroy, a retaining wall built with or next to a fence within five feet of a property line is capped at three feet, and any second retaining wall within five feet of the first tops out at six feet, per City Code § 30.34.30(a)(4).

Gilroy Retaining Wall Height with Fences

Some Restrictions

Gilroy City Code § 30.34.30(a)(4)

(4) Where a fence is built upon or in conjunction with a retaining wall within five (5) feet of a property line, the maximum height of the retaining wall shall be three (3) feet. No additional retaining walls may be constructed within five (5) feet of the first wall; the maximum height of any additional retaining wall shall be six (6) feet.

Material Restrictions

In the City of Gilroy, barbed wire, razor wire and electrified fences are banned citywide outside commercial and industrial security uses, and wire mesh fencing is barred from street-facing residential and commercial setback areas, under City Code § 30.34.40.

Gilroy Barbed Wire and Electric Fence Ban

Significant Restrictions

Gilroy City Code § 30.34.40

(a) Barbed Wire Fences. Barbed wire, razor wire or similar fences shall not be installed within the city, except for security fences in commercial and industrial zones. Barbed wire, razor wire or similar fences shall not be installed within the area encompassed by the downtown specific plan. (b) Electrified Fences. Electrified fences, other than those permitted by section 30.34.35, shall not be...

Looking for Santa Clara County county-wide rules?

County ordinances apply to unincorporated areas and may supplement Gilroy city rules.

Fence Regulations in Santa Clara County →