Skip to content

Hayward · Building on your lot

Fences and walls in Hayward

Hayward limits fences to 4 ft in front setbacks and 7 ft in side and rear setbacks in Downtown and Mission Boulevard Corridor zones.

Key points

  • Fence height: Hayward limits fences to 4 ft in front setbacks and 7 ft in side and rear setbacks in Downtown and Mission Boulevard Corridor zones.

Each rule below links to the section of the Hayward Municipal Code it was read from, with the code text one click away (checked October 2026). General information, not legal advice.

What Hayward's code says

Hayward code What Hayward's code adds
Corner visibility
  • No fences or walls over 3 feet in the Vision Triangle area.
    Applies: In the Mission Boulevard Corridor Zones.
    § 10-24.3.2.040 · code text
    Fences and walls above 3 feet are prohibited in the Vision Triangle area.
  • Screening may not block visibility at the intersection; the city's traffic code visibility rules apply.
    Applies: For lots where 2 or more streets meet, in Downtown Zones.
    § 10-28.3.2.010 · code text
    Where a lot is situated at the intersection of two or more streets, screening may not be erected, placed, planted, or allowed to grow in such a manner as to obstruct intersection visibility, in compliance with Ordinance No. 100 C.S., as amended, Article 9 (Obstructions to Visibility at Intersections Prohibited) of the Hayward Traffic Code, as the same are now in effect or which may be amended or replaced.
Height anywhere on the lot
  • No fence unnecessarily over 6 feet high.
    Applies: Along or near the property lines of a residential lot. A fence unnecessarily higher is a private nuisance.
    § 4-1.06 · code text
    It shall be unlawful for any person to cause, suffer or allow any fence, or other structure in the nature of a fence, unnecessarily exceeding six (6) feet in height, to be erected or maintained along or near the property lines of any residence lot in the City of Hayward.
  • No more than 5 feet.
    Applies: Unroofed courtyard screening in Downtown Zones, set back at least as far as the adjoining building face. Needs Director approval.
    § 10-28.3.2.010 · code text
    Screening installed to create a courtyard without a roof must be a maximum of five feet in height and be set back at least as far as the adjoining building face.
  • No more than 7 feet for the fence and retaining wall together.
    Applies: For fences on or attached to retaining walls in Downtown Zones.
    § 10-28.3.2.010 · code text
    The total height of fences and the retaining walls that they are mounted on or attached to are limited to seven feet in height.
  • No more than 42 inches.
    Applies: Interior fences on mobile home lots. No fence may be closer than 3 feet to a mobile home, cabana, awning or other structure.
    § 5-3.420 · code text
    No interior fence shall exceed a height of forty-two (42) inches nor shall any fence be located closer than three (3) feet to any mobile home, cabana, awning, or other structure.
Front yard height
  • No more than 4 feet.
    Applies: Within the required front setback in Downtown Zones.
    § 10-28.3.2.010 · code text
    Within Required Front Setback | 4'
  • No more than 4 feet.
    Applies: In any part of a front or street side setback in the Mission Boulevard Corridor Zones.
    § 10-24.3.2.040 · code text
    A. Height. Fences and walls shall be constructed to a maximum height of seven (7) feet in any side or rear setback, and to a maximum height of four (4) feet in any portion of a front or street side setback, except that where the rear or side setback is contiguous to the BART tracks, a flood control channel, or parking lot, a maximum 8-foot-high fence or wall is permitted.
Side and rear yard height
  • No more than 7 feet.
    Applies: Within the required side and rear setbacks in Downtown Zones.
    § 10-28.3.2.010 · code text
    Within Required Side and Rear Setback 2 | 7'
  • No more than 4 feet.
    Applies: Along a rear property line where it would block a view, such as where an alley meets a street, in Downtown Zones.
    § 10-28.3.2.010 · code text
    When installed along a rear property line, such as at the intersection of an alley and a street, that will obstruct a view, maximum 4'.
  • No more than 7 feet.
    Applies: In any side or rear setback in the Mission Boulevard Corridor Zones.
    § 10-24.3.2.040 · code text
    A. Height. Fences and walls shall be constructed to a maximum height of seven (7) feet in any side or rear setback, and to a maximum height of four (4) feet in any portion of a front or street side setback, except that where the rear or side setback is contiguous to the BART tracks, a flood control channel, or parking lot, a maximum 8-foot-high fence or wall is permitted.
  • Up to 8 feet.
    Applies: Where a side or rear setback borders the BART tracks, a flood control channel or a parking lot, in Mission Boulevard Corridor Zones.
    § 10-24.3.2.040 · code text
    A. Height. Fences and walls shall be constructed to a maximum height of seven (7) feet in any side or rear setback, and to a maximum height of four (4) feet in any portion of a front or street side setback, except that where the rear or side setback is contiguous to the BART tracks, a flood control channel, or parking lot, a maximum 8-foot-high fence or wall is permitted.
Permit
  • Yes. Director approval is needed before a Building Permit is issued, as applicable.
    Applies: For courtyard screening and fences on retaining walls in Downtown Zones.
    § 10-28.3.2.010 · code text
    The following screening types must comply with the specified requirements and requires Director approval before issuing a Building Permit, as applicable.

Who this affects

HomeownersContractorsDesigners

Frequently asked questions

How tall can a fence be in Hayward?

Hayward limits fences to 4 ft in front setbacks and 7 ft in side and rear setbacks in Downtown and Mission Boulevard Corridor zones.

General information, not legal advice.

Ask about a specific Hayward property

Ask GoCodebook how Hayward's fences and walls rules apply to your situation and get an answer that cites the section.

Ask your question

More on building on your lot in Hayward