FENCE RULES – GILROY (CITY), CALIFORNIA
OVERVIEW
Gilroy generally allows residential fences and hedges up to seven feet, measured from the higher finished grade. The street-facing rules are more specific than a simple three-foot front-yard cap: a taller fence needs the prescribed distance from the curb, and corner lots have additional sidewalk-height, key-lot and visibility conditions. Materials, retaining walls and pool enclosures also need separate checks. The City’s older permit FAQ differs from the adopted construction code, so a zoning-compliant design is not by itself a permit determination. This guide concerns property inside the City of Gilroy, not unincorporated Santa Clara County using a Gilroy mailing address. Updated November 2026.
| Quick question | Gilroy answer |
|---|---|
| Permit or approval | The adopted California code’s general fence exemption is seven feet; the City’s dated FAQ instead lists wood or chain-link fences not over six feet. Resolve the actual permit classification; zoning and special-purpose approvals remain separate. |
| Typical fence height | Residential fences and hedges generally seven feet from higher finished grade. Taller front and corner street-side fencing needs the prescribed curb offsets; a separately qualified eight-foot branch exists. |
| Placement & property lines | Confirm boundaries, curb and sidewalk datums, required yards, corner visibility, any key-lot or alley relationship, retaining walls, rights-of-way and easements. |
| Common fence materials | Wood and vinyl/PVC: no blanket product allowance in the general fence article. Wire mesh/chain-link: restricted in street-adjacent setback areas, Downtown and specified corridors. Hazardous and electric fencing have separate restrictions. |
| Important local conditions | Fence rules may be further affected by corners, retaining walls, Downtown or approved development conditions, required screening, pool barriers, mapped flood hazards, fire access and private restrictions. |
| Official local resource | Gilroy fences and obstructions, Article XXXIV |
The detailed sections and official links below explain the conditions behind these answers and what to resolve before installation, alteration or replacement.
GOVERNANCE
The City Council adopts Gilroy’s municipal requirements. Planning reviews zoning and applicable development conditions, the Building Division handles construction approvals, and engineering and fire officials administer their respective street, drainage and access requirements. The fence and obstruction article supplies the general height, location and material rules. A specific plan or approved project can add relevant conditions; a public approval does not settle a boundary or override private rights.
Ordinance 2025-06, adopted August 18, 2025, adopted the 2025 California construction codes and the 2024 International Property Maintenance and Swimming Pool and Spa Codes. The actual adoption and local amendments in sections 6.6 and 6.7 must be read separately from zoning. Fire and wildland-urban interface codes were adopted through Ordinance 2025-07.
PERMIT AND APPROVAL REQUIREMENTS
• Building-permit threshold: The adopted California Residential Code has a general building-permit exemption for fences not over seven feet. Gilroy’s currently linked FAQ, revised December 17, 2024, instead lists wood or chain-link fences not over six feet and contains older code references. Confirm the applicable classification with Building before relying on an exemption, particularly for six-to-seven-foot work, walls or special-purpose barriers. The exemption does not authorize a fence violating zoning or other applicable requirements.
• Retaining walls: The FAQ describes an exemption for a retaining wall no more than four feet from the bottom of its footing to its top only when it does not support another structure, a fence or additional loads. The adopted-code and actual project conditions govern. A fence above retained soil is not necessarily an ordinary freestanding fence, and the zoning combination rules below are separate from a construction-permit measurement.
• Applications and inspection: The City’s Building Division and GO Permit information describe online applications, plan review and inspection requests. Required permit plans and documents must remain on site, and the inspection record must remain available until final approval. Fees follow the City’s adopted schedule; there is no single assumed fence fee. Work begun without a required permit is subject to the code’s doubled permit fee. Check applicable Planning and project approvals separately.
• Repair and replacement: Do not assume the nonconforming-use and building rules authorize replacing an old fence at its former height and location. Article XLVIII addresses qualifying lawful nonconforming uses and buildings, while section 30.2.20 defines a “nonconforming building” to include a lawfully existing building or structure, or portion thereof, that does not meet the district’s development standards. Have Planning determine how those definitions and the article’s specific provisions apply to the actual fence and proposed work; do not infer either an automatic replacement entitlement or a categorical exclusion for all fences. The corner-visibility article separately rejects an automatic exception merely because an obstruction already existed.
FENCE PLACEMENT RULES
• Front-yard fences: A fence or wall in the front yard higher than three feet above the curb must be at least twenty-six feet from the face of curb. That is a curb-based location rule, not an absolute three-foot front-yard maximum or a twenty-six-foot setback measured from the property line. The ordinary total-height limit still applies unless a qualified exception is approved.
• Corner street-side fences: A fence, hedge or visual obstruction in the street-side yard of a corner lot higher than three feet above the sidewalk must be at least sixteen feet from the face of curb. Where the corner lot abuts the driveway side of a key lot or an alley, the rule also requires an obstruction over three feet above the sidewalk to be ten feet back from the street-side property line for at least ten feet from the rear property line. A key lot is the first lot behind a corner lot whose front line continues the corner lot’s side line. Establish the actual lot relationship instead of substituting one universal street-side setback.
• Rights-of-way and access: The public right-of-way is not necessarily limited to the pavement. Section 20.72 generally requires an encroachment permit, but section 20.73(d) expressly excepts a fence or hedge complying with applicable code provisions. That exception does not convey land rights or authorize an obstruction across an existing walkway. Keep lawful public travel, sight distance, utilities and drainage clear, and maintain frontage hedges, walls and fences neatly so they do not encroach. Resolve the actual right-of-way proposal with Engineering rather than assuming either that every fence needs a permit or that every fence is exempt.
• Flood-prone property: The floodplain ordinance requires a development permit before construction or other development in a special flood hazard area. Its obstruction definition expressly includes fences. Public Works administers the review. In an adopted regulatory floodway, an encroachment requires a registered civil engineer’s certification of no increase in flood levels during the base flood; that differs from the cumulative one-foot test applicable to specified areas before a regulatory floodway is adopted. Other flood requirements remain separate. This is not a flood permit requirement for every residential lot.
• Shared fences: California Civil Code 841 presumes adjoining landowners benefit equally from a dividing fence and, absent a contrary written agreement, share reasonable construction, maintenance and necessary replacement costs. The presumption is rebuttable, not a right to choose an expensive upgrade and automatically bill a neighbor for half. Before incurring covered costs, give each affected adjoining owner thirty days’ prior written notice stating the presumption, the problem, proposed solution, estimated costs, proposed sharing and timeline.
A court can reduce or eliminate a contribution if the presumption is rebutted by a preponderance of the evidence. It considers disproportionate benefit or burden, cost compared with added property value, proven financial hardship, unreasonable or excessive expense, personal aesthetic preferences and other equitable factors. The statute’s landowner definition excludes public bodies. Public approval does not resolve ownership or authorize removal of someone else’s property.
• Before digging: Use USA North 811’s California utility-location guidance before post holes and check responses and markings. Private irrigation and other owner-installed lines may need a private locator. California’s owner exceptions include a residential owner, not acting as a licensed contractor, improving the principal residence or its appurtenances through excavation that does not require a permit, and an owner contracting with a licensed contractor for permit-exempt excavation. Those exceptions do not excuse a hired excavator’s own duties; locating utilities remains sound safety practice.
Covered excavators delineate the work area and ordinarily notify at least two working days, and no more than fourteen calendar days, before excavation, excluding the notice day from the two-working-day count. Obtain an actual ticket, observe its legal start and operator responses, and preserve markings. Tickets generally remain valid twenty-eight calendar days from issuance and must be revalidated before expiration if work continues. Follow the exact-location and safe-exposure requirements; the tolerance zone generally extends twenty-four inches from each outside edge of the installation.
FENCE HEIGHT AND VISIBILITY RULES
• General residential height: Fences and hedges in residential districts generally may reach seven feet, measured from finished grade on the higher side of the fence. Front-yard and corner street-side restrictions still apply. Fences next to alleys also have a seven-foot limit. Do not substitute a lower-side or average-building-grade measurement for the stated residential fence rule.
• The eight-foot branch: A fence or wall meeting the setbacks required for a main building may reach eight feet, but must also be at least six feet from any side lot line. This is not an eight-foot property-line allowance. Front-setback landscape amenities such as arbors, trellises and pergolas have their own eight-foot limit and may not block traffic or pedestrian views.
• Street-corner visibility: Section 20.60 separately prohibits obstructions above three feet over adjacent curb level between the curb and property line and within the private-lot triangle joining points twenty feet from the intersection of the corner property lines. For rounded corners, the specified area uses the curve and a chord between its tangent points. The article excepts permanent buildings, public utility poles, official warning signs or signals, and places where ground contours prevent cross visibility. Do not infer a blanket fence exception from those limited categories.
The visibility and public-passage article applies alongside the fence setbacks. It does not grandfather an obstruction simply because it existed when the rule was adopted. After failure to correct within twenty days of posted notice, the City may remove the obstruction and recover its abatement cost from the owner. Keep sidewalks, streets and gutters unobstructed.
• Spite fences: California Civil Code 841.4 treats a fence or fence-like structure unnecessarily exceeding ten feet, maliciously erected or maintained to annoy an adjoining owner or occupant, as a private nuisance. Ten feet is not a permitted local height, and a shorter fence is not automatically free from other restrictions.
MATERIAL AND CONSTRUCTION LIMITS
• Wood, vinyl/PVC and wire mesh: The general fence article does not grant every wood or vinyl/PVC product an unconditional allowance. Wire-mesh fencing is prohibited in a required front, side or rear setback whenever that area adjoins a street in a residential or commercial zone. In Downtown Specific Plan districts, the restriction covers the front thirty feet and the side or rear twenty feet whenever adjacent to a street or alley. Along a water-district channel or railroad corridor, wire mesh must have a dark vinyl or similar coating. Those conditions are not a general ban on every mesh fence everywhere.
• Hazardous and electric fencing: Barbed wire, razor wire and similar fences are prohibited except for security fencing in commercial and industrial zones; they remain prohibited throughout the Downtown Specific Plan area. Electric fencing is limited to the specially regulated monitored perimeter security systems allowed on commercial and industrial property. That system is not an ordinary residential security-fence option.
• Fence and retaining-wall combinations: Where a fence is built on or in conjunction with a retaining wall within five feet of a property line, the retaining wall may be no higher than three feet. No additional retaining wall may be within five feet of the first; an additional retaining wall has a six-foot maximum. These are retaining-wall limits, not a universal three-foot combined fence-and-wall cap or automatic permission to add seven feet above any wall. Coordinate the full assembly and construction approvals.
• Required screening: Commercial or industrial development abutting residential zoning must provide the specified six-foot sound wall without extending into the adjacent residential required front yard. Applicable Title 24 or environmental-review sound-attenuation requirements supersede that screening standard. Storage of building materials, junk, scrap or waste must be screened from public view with a six-foot fence, landscaped berm or Planning Director-approved alternative. These are triggered screening provisions, not a universal masonry recipe for a homeowner’s boundary fence.
• Local pool enclosures: Gilroy’s adopted property-maintenance amendment requires private pools, spas, hot tubs and ponds containing water more than eighteen inches deep to be completely enclosed by a barrier at least sixty inches high, measured from the exterior finished ground. Gates and doors must self-close and self-latch, and gates must positively close and latch when released six inches from the post. Existing enclosures may not be changed in a way that reduces their effectiveness. The local ASTM F1346 safety-cover exception for spas and hot tubs does not waive independently applicable state requirements.
The zoning code also requires pool-area fencing under the Swimming Pool Safety Act. The older local maintenance and pool-handout alternatives for lower latches or greater bottom clearance do not replace the stricter statutory isolation-enclosure criteria. Pool-specific five-foot water-edge setbacks are not five-foot setbacks for every yard fence.
For covered construction or remodeling of a pool or spa at a private single-family home, California generally requires at least two qualifying drowning-prevention features, subject to statutory exceptions and distinct licensed-child-care rules. The Act covers qualifying recreational-water structures containing water more than eighteen inches deep, including spas and hot tubs. Alternatives include a compliant isolation enclosure, qualifying removable mesh fencing, an approved safety cover, exit alarms, qualifying self-closing and self-latching home doors, a qualifying water alarm, or independently tested equivalent protection. Each feature must meet its actual technical standard. An exit alarm and latch on the same door, an exit alarm and latch on separate doors, or a safety cover and the specified water alarm do not make a qualifying two-feature pair. Final inspection is required.
A statutory isolation enclosure must be at least sixty inches high, with no more than two inches of ground clearance and no opening passing a sphere four inches or larger. Its outside must not provide handholds or footholds enabling a child under five to climb over. Gates must open away from the pool, self-close and self-latch, with the latch at least sixty inches above ground. That differs from the fifty-four-inch release height for the separate qualifying home-door feature. Licensed family child-care homes with in-ground pools have additional isolation, protective-feature, documentation and inspection requirements. An ordinary perimeter fence alone does not establish pool compliance.
• Fire access: Keep required fire-apparatus access and turnarounds unobstructed. Security gates across a required access road need fire-official approval and maintained emergency operation; electric gates have additional requirements. The adopted wildland-urban interface code and property-specific fire conditions remain separate from ordinary zoning permission. Do not treat every pedestrian yard gate as a fire-access gate or infer a citywide wood-fence ban.
• Hired fence work: Verify the contractor’s applicable license and scope. The Business and Professions Code 7048 exception covers casual, minor or inconsequential work below $1,000 in aggregate labor, materials and other costs only when no building permit is required and no one is employed to perform or assist. It excludes work that is part of a larger operation, splitting projects to fit the limit, and persons advertising as contractors or qualified to contract. It is not an exemption for every low-cost fence job.
PRIVATE RESTRICTIONS
Recorded covenants, association design standards, private easements and boundary agreements may restrict a fence independently of public requirements. Obtain any required private approval separately. A public permit does not override recorded access rights or settle ownership.
Where association governing documents require approval of a physical change, Civil Code 4765 requires a fair, reasonable and expeditious process, good-faith decisions consistent with law, and a written decision. The procedure must provide prompt deadlines and state the maximum response time for an application or board reconsideration request. A denial must explain its reasons and the applicable reconsideration procedure. The statute does not create automatic approval or one universal deadline for every fence request.
REVIEW AND ENFORCEMENT CONTEXT
Fence issues are typically reviewed during permit or approval review when required, and through complaint-based code enforcement. Examples include:
• Curb-based front and corner offsets, total height, key-lot and alley relationships, visibility and material restrictions.
• Retaining-wall combinations, public access, required screening, mapped flood hazards, fire access and pool barriers.
Private association decisions, shared-fence costs and ownership disputes remain separate from City public-code enforcement.
USING THIS INFORMATION
This page provides general orientation on how residential fence rules are structured and applied within the City of Gilroy, California. Updated November 2026.
In addition to local fence rules, certain California laws apply statewide. See Statewide Fence Laws in California.
It is not legal advice and does not replace official statutes, regulations, ordinances, orders, permits, surveys, recorded documents or professional guidance. Rules and interpretations may change. Applicable requirements depend on the property’s actual location, the authority responsible for each issue, current adopted codes and amendments, zoning and site conditions, rights-of-way, easements, drainage and floodplain conditions, historic or design districts, pool and home uses, agricultural and livestock conditions, shared-fence rights, excavation and private restrictions. Government approval does not resolve ownership, private agreements or recorded access rights. If this page conflicts with controlling law or official requirements, the controlling authorities govern.