Skip to main content
CityRuleLookup

Hayward, CA Fence Regulations: Material Restrictions (2026)

Heavy Restrictions
Compiled from the official code textEditor Martyn O'NeillLast verified September 2026

Key Facts

Prohibited materials
Barbed wire, razor wire, electrified fencing
Applies to
RNP, RL, RM, RH residential zones
Fence height cap
4 ft front, 7 ft rear/side
Visibility triangle limit
3 ft at street corners
Violation class
Infraction, misdemeanor on 3rd offense

Summary

Hayward's zoning code bans barbed wire, razor wire, and electrified fencing outright in the city's residential districts. The same subsection caps any fence, hedge, or wall over 3 feet within corner-lot visibility triangles. Code enforcement treats a violation as a Municipal Code infraction under the general penalty article, Section 1-3.00.

f.Fences, Hedges and Walls. (See also Section 10-1.2725(g).)(1)Where a lot is situated at the intersection of two or more streets, fences, hedges and walls exceeding 3 feet shall not be permitted within the triangle of visibility.(2)Barbed wire, razor, or electrified fences are prohibited.

View official code

Official source re-checked September 7, 2026: no newer edition of the code had been published (publisher’s edition: Municipal Code: Supplement 28 Update 1 | Charter: Supplement 1).

Full Breakdown

' The ban applies regardless of fence height or location on the lot, so property owners cannot use these materials even along a rear property line or to top an otherwise conforming fence. The same subsection (f)(1) requires that any fence, hedge, or wall over 3 feet be kept out of the visibility triangle where two streets intersect, protecting sightlines for turning vehicles. 203: 4 feet in front and side-street yards and 7 feet in side and rear yards for RNP, RL, RM, and RH lots, so a compliant fence built of chain-link, wood, wrought iron, or masonry can still reach 7 feet without triggering the material ban.

Retaining walls, addressed separately in subsection (f)(3), are capped at 6 feet and are not covered by the barbed-wire prohibition. Because the rule sits inside the residential design-standards article, it governs single-family and multifamily lots citywide in those four zones; commercial and industrial parcels fall under their own district chapters. An older barbed-wire or electrified fence predating the current code does not get a blanket exemption, and the Planning Division can require removal as part of any permit review, addition, or code-enforcement case tied to the property.

Violations & Fines

A barbed-wire, razor-wire, or electrified fence is a Municipal Code violation enforceable as an infraction under Section 1-3.00, escalating to a misdemeanor after a third conviction for the same violation within twelve months. Each day the fence remains up counts as a separate offense under Section 1-3.01. The Community and Economic Development Director's code enforcement staff can order removal, and Section 1-3.03 lets the City treat the fence as a public nuisance subject to summary abatement.

Frequently Asked Questions

Can I put barbed wire on top of my backyard fence in Hayward?
No. Section 10-1.204(f)(2) of the Municipal Code prohibits barbed wire, razor wire, and electrified fencing outright in the city's residential districts, with no exception for height or placement on the lot. A fence topped with barbed wire is a code violation even if the rest of the fence meets the 7-foot rear-yard height limit, and code enforcement can require it removed.
Are electric fences legal for keeping pets in a Hayward yard?
No. The same subsection bans electrified fencing along with barbed and razor wire, regardless of purpose, so an electric containment fence built into a perimeter fence line violates the code. Pet containment systems that use buried wire and a collar receiver, rather than an electrified fence structure, are not addressed by this subsection.
What fence materials are allowed instead?
The code does not list approved materials for the ban itself, but Table 10-1.203 sets the height limits for any conforming fence: 4 feet in front and side-street yards and 7 feet in side and rear yards for RNP, RL, RM, and RH lots. Wood, chain-link, wrought iron, and masonry fences built within those heights are not barred by Section 10-1.204(f)(2).

Sources & Official References

Other rules in Hayward

All Hayward rules

California rules heatmap·Compare Hayward to another location·View the California fence regulations overview

Get notified when Material Restrictions in Hayward, 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.

Material Restrictions in Nearby Cities

How other cities in Alameda County handle material restrictions.

Berkeley, CA
Some Restrictions
Oakland, CA
Significant Restrictions
Fremont, CA
Significant Restrictions
San Leandro, CA
Significant Restrictions
Livermore, CA
Heavy Restrictions