Skip to main content
CityRuleLookup

Fence Regulations in San Francisco, CA (2026)

4 verified fence regulations for San Francisco, California, sourced directly from the municipal code and official government pages.

Verified from official government sources

Height Limits

Fence height in San Francisco is regulated by Planning Code Section 136 (Permitted Obstructions in Required Setbacks, Yards, and Usable Open Space), administered by the San Francisco Planning Department. Within a required front setback, fences are generally limited to 3 feet in height. In required rear yards and side yards, fences may be erected up to 10 feet in height. Section 136 lists fences among the obstructions specifically permitted in yards subject to these limits. Additional Building Code permits apply to fences over 6 feet. Properties in historic districts or with conditional-use entitlements may face additional review. Contact Planning at (628) 652-7600.

Fence Height Limits in San Francisco

Some Restrictions

Retaining Walls

San Francisco Building Code Section 105 requires permits for any retaining wall over 4 feet in height (measured from bottom of footing). Engineered design and structural drawings are required for walls over 4 feet or those supporting a surcharge. Steep SF topography means most lots need walls.

Retaining Wall Rules in San Francisco

Heavy Restrictions

Pool Barriers

Pool fences in San Francisco must comply with California Health & Safety Code Sections 115920-115929 (Swimming Pool Safety Act) and CBC Section 3109. Minimum 60-inch barrier with self-closing, self-latching gate is required around any pool or spa over 18 inches deep.

Pool Barrier Rules in San Francisco

Heavy Restrictions

California Health and Safety Code Section 115923

115923. An enclosure shall have all of the following characteristics: (a) Any access gates through the enclosure open away from the swimming pool, and are self-closing with a self-latching device placed no lower than 60 inches above the ground. (b) A minimum height of 60 inches. (c) A maximum vertical clearance from the ground to the bottom of the enclosure of two inches. (d) Gaps or voids, if ...

Material Restrictions

San Francisco regulates fence materials through the Planning Code and building standards. Wood, wrought iron, and composite are common approved materials. Chain-link is restricted in most residential front yards. Barbed wire is prohibited in residential areas.

San Francisco Fence Material Regulations

Some Restrictions