How San Francisco Handles Fence Regulations: A Practical Guide
San Francisco maintains 203 local ordinances across all categories, and 4 of those deal specifically with fence regulations. Here is a breakdown of what the city actually requires, what is prohibited, and where San Francisco falls on the strict-to-permissive spectrum compared to other cities.
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.
Key details: undefined: undefined. undefined: undefined. undefined: undefined. undefined: undefined. undefined: undefined.
Specific penalty amounts for this ordinance are not published in a publicly accessible fine schedule. Contact [San Francisco code enforcement](https://codelibrary.amlegal.com/codes/san_francisco/latest/sf_building/0-0-0-1) directly for current fines, enforcement procedures, and hearing options.
This is one of the stricter rules in San Francisco's municipal code. If you are unsure whether your situation complies, it is worth checking with the city before proceeding.
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.
Key details: undefined: undefined. undefined: undefined. undefined: undefined. undefined: undefined. undefined: undefined.
Specific penalty amounts for this ordinance are not published in a publicly accessible fine schedule. Contact [San Francisco code enforcement](https://leginfo.legislature.ca.gov/faces/codes_displayText.xhtml?division=104.&chapter=5.&lawCode=HSC&part=10.) directly for current fines, enforcement procedures, and hearing options.
This is not one of those rules that cities tend to ignore. San Francisco actively enforces its pool barriers requirements.
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.
Key details: Code Citation: Planning Code Sec. 136. Front Setback Max: 3 feet. Rear/Side Yard Max: 10 feet. Building Permit Threshold: Over 6 feet. Pool Fencing: Cal. H&S 115920+.
Fences that exceed Section 136 height limits, encroach into required setbacks beyond what Section 136(c) permits, or are built without a required building permit can be cited by the Planning Department's Code Enforcement Division and the Department of Building Inspection. Notices of Violation can require removal or alteration of the fence and assess administrative penalties under Planning Code Section 176. Continuing violations may be abated as public nuisances. Pool fencing that fails to meet enclosure requirements can also be cited under California Health & Safety Code 115920 et seq.
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.
Key details: Allowed Materials: Wood, wrought iron, composite, vinyl. Chain-Link: Restricted in residential front yards. Barbed Wire: Prohibited in residential zones. Historic Areas: Additional design review may apply.
Non-compliant fence materials may result in a Notice of Violation from the San Francisco Planning Department. Property owners must replace materials within a specified correction period or face additional enforcement action.
The Bottom Line
San Francisco is tougher than many cities when it comes to fence regulations. Out of the 4 rules covered here, 2 are rated strict. If you are a homeowner, renter, or business owner in San Francisco, take the time to understand these requirements before they become a problem. Most violations come with fines, and some repeat violations can escalate.
Keep in mind that San Francisco can amend these rules at any council meeting. For the most current version of any rule mentioned here, check the specific ordinance page, where we track updates as they happen.