Skip to main content
CityRuleLookup

San Francisco Permit Requirements Rules (2026): What You Need to Know

Some Restrictions

Key Facts

No permit needed
Wood and metal fences under 6 feet in height in side/rear yards typically exempt
Permit required
Masonry/concrete walls over 3.5 feet, retaining walls over 4 feet, and any front fence over 3 feet
Retaining walls
Over 4 feet from footing to top requires a building permit and engineered structural plans
Planning review
Fences exceeding standard height limits require Planning Department variance
Right-of-way fences
Fences in the public right-of-way require an encroachment permit from DPW
Permit submission
Applications submitted to DBI with site plan, elevations, and structural details as applicable

The Short Version

San Francisco requires building permits for certain fence and wall construction projects, with oversight from both the Department of Building Inspection (DBI) and the Planning Department. Wood and metal fences under 6 feet generally do not require a building permit but must comply with Planning Code setback and height requirements. Masonry walls, retaining walls over 4 feet, and fences exceeding standard height limits require both building permits and Planning Department review. Due to San Francisco's challenging topography, retaining wall permits with engineered plans are frequently required.

Full Breakdown

San Francisco's fence and wall permit requirements are administered by the Department of Building Inspection (DBI) for structural compliance and the Planning Department for zoning compliance. Both departments may need to review and approve a fence project depending on its scope.

Generally, wood fences, metal fences, and chain-link fences that are 6 feet or under in height and located in side or rear yards do not require a building permit under the San Francisco Building Code. However, all fences — regardless of whether a building permit is required — must comply with the Planning Code's height, setback, and material restrictions. Front yard fences exceeding the 3-foot height limit in residential districts require a Planning Department variance, which involves a public hearing and neighbor notification.

Masonry walls, concrete block walls, and brick walls exceeding 3.5 feet in height require a building permit from DBI. The permit application must include a site plan showing the wall location relative to property lines, elevation drawings, structural details, and specifications for the footing and reinforcement. Retaining walls exceeding 4 feet from the bottom of the footing to the top of the wall require a building permit and structural engineering plans stamped by a California-licensed civil or structural engineer.

Given San Francisco's steep hillside topography, retaining walls are extremely common and represent one of the most frequently permitted fence and wall types in the city. Many residential properties on slopes require retaining walls that simultaneously function as boundary fences, and these structures must meet both structural adequacy requirements under the Building Code and height/setback requirements under the Planning Code.

Fences or walls proposed within the public right-of-way — including the sidewalk area, street tree basins, or median strips — require an encroachment permit from the San Francisco Department of Public Works (DPW). Property owners should verify their exact property boundaries with a licensed surveyor before constructing fences near the property line.

Permit applications are submitted to DBI at the Permit Center at 49 South Van Ness Avenue. Over-the-counter permits for straightforward fence projects may be issued the same day. More complex projects involving variances, retaining walls, or hillside lots require plan review and may take several weeks to several months.

What Happens If You Violate This?

Fences or walls built without required permits are subject to DBI enforcement. Stop-work orders may be issued for active construction. Retroactive permits may be required with penalty fees (typically double the standard permit fee). Non-compliant structures may be ordered removed or modified at the owner's expense. DBI complaints can be filed online or by calling 311. Planning Code violations related to fence height or setbacks are enforced by the Planning Department with administrative penalties up to $250 per day.

Frequently Asked Questions

Do I need a permit to build a wood fence in San Francisco?
For a wood fence under 6 feet in a side or rear yard, typically no building permit is required. However, the fence must comply with Planning Code height and setback rules. Front yard fences over 3 feet require a Planning variance.
Do I need a permit for a retaining wall in San Francisco?
Yes, if the retaining wall exceeds 4 feet from the bottom of the footing to the top. Engineered structural plans by a licensed engineer are required. Given SF's hilly terrain, retaining wall permits are very common.
Where do I apply for a fence permit in San Francisco?
Building permits are submitted to the Department of Building Inspection (DBI) at the Permit Center, 49 South Van Ness Avenue. Simple fence permits may be issued over the counter the same day.

Sources & Official References

How does San Francisco compare?

See how San Francisco's permit requirements rules stack up against other locations.

Submit a Correction

Found something that looks wrong or outdated? Let us know and we'll look into it.