Skip to main content
CityRuleLookup

San Francisco, CA Fence Regulations: Material Restrictions (2026)

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

Key Facts

Barbed wire
Prohibited citywide by default
Exception approval
Written OK from DBI + SFFD
Max fence height (Group R)
10 feet
Citation
SF Building Code § 456.1

Summary

San Francisco's Building Code bars barbed-wire fencing citywide unless the Building Official and Fire Department grant written permission for narrow hazard-protection uses like guarding a dangerous area atop a tall fence.

Fences constructed wholly or in part of barbed wire are prohibited, except when permitted with the express written permission of the Building Official, and the Fire Department in the following situations: 1. On top of a fence more than 7 feet (2.134 m) high, protecting a dangerous or hazardous area. 2. Within a private area, enclosed by a seven-foot-high (2.134 m) fence, such that entry to the area is limited by the outer, nonbarbed fence.

Source: San Francisco Planning CodeView official code

Official source re-checked September 7, 2026: no newer edition of the code had been published (publisher’s edition: 2026 S-96: Codes: last updated to include changes made by legislation through Ordinance 133-26, File No. 260686, approved July 23, 2026, effective August 23, 2026).

Full Breakdown

San Francisco Building Code Section 456.1 prohibits fences built wholly or partly of barbed wire. The Building Official and Fire Department may allow it only in specific situations: atop a fence taller than 7 feet protecting a dangerous or hazardous area, within a private area enclosed by a 7-foot fence so entry is limited by the outer nonbarbed fence, or for localized protection of dangerous conditions within or atop a building. The same section caps fences on Group R (residential) property at 10 feet.

Violations & Fines

Installing barbed wire fencing without the required written Building Official and Fire Department approval violates the Building Code and can bring a Notice of Violation, mandatory removal, and re-inspection fees from DBI.

Frequently Asked Questions

Can I put barbed wire on my San Francisco fence?
No, not without written permission from the Building Official and Fire Department. Section 456.1 bans barbed wire fencing except in narrow, approved hazard-protection situations.
How tall can a residential fence be in San Francisco?
Fences on Group R (residential) property cannot exceed 10 feet, per Building Code Section 456.1.

Sources & Official References

Other rules in San Francisco

All San Francisco rules

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

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