Permit Required? Sometimes Required
Typical Fee Range $150–$400 Permit required for fences over 6 feet. Fees are based on the standard DBI valuation schedule plus a technology surcharge.
Fee Method Valuation-based

What's Required in San Francisco

  • Building permit required for any fence or wall exceeding 6 feet in height
  • Front yard solid fences are limited to 3 feet in height
  • Front yard fences up to 6 feet are allowed only if they are at least 75% open (e.g., wrought iron)
  • Maximum allowable height in a required rear yard is 10 feet with a permit
  • Neighborhood notification is mandatory for any fence exceeding 10 feet in height
  • Historic District properties require a Certificate of Appropriateness before building permits are issued

How Tall Can a Fence Be Without a Permit in San Francisco?

In San Francisco, the number that matters is 6 feet: a fence taller than that needs a permit from the San Francisco Department of Building Inspection, while anything at or under it can usually go up without one. Front yards are stricter, capped at 3 feet. Even a permit-free fence still has to respect setbacks and corner sight-line rules, so check placement before you dig post holes.

Do You Need a Permit to Build a Fence in San Francisco?

For a typical backyard fence at or under 6 feet, no — you can skip the building permit in San Francisco. Go taller and you'll file with the San Francisco Department of Building Inspection, with permit fees typically in the $150–$400 range. Two cautions before you skip the paperwork: zoning rules (height caps, setbacks, corner visibility) apply to every fence, permitted or not, and HOA or deed rules stack on top of city code. When your plan sits close to the line, a quick call to the department beats rebuilding a fence later.

How to Get a Fence Permit in San Francisco

1

Step 1: Check Height Limits

Determine your yard type (front, side, or rear) and height limits per the SF Planning Code.

2

Step 2: Planning Review

Visit the Planning Counter at PermitSF to verify zoning compliance for fences over 6 feet.

3

Step 3: Submit OTC Application

Apply for an Over-the-Counter permit if the fence is 10 feet or less and meets all standard codes.

4

Step 4: Fee Payment

Pay the valuation-based building permit fee ($150 minimum base) plus the technology surcharge.

5

Step 5: Inspection

Schedule a final inspection via the DBI automated system once the fence is installed.

Frequently Asked Questions

Only if the fence is taller than 6 feet in side/rear yards or 3 feet (solid) in front yards.
Typically 6 feet without a permit and up to 10 feet with a permit in rear yards.
Fees start at approximately $150 and increase based on the total value of labor and materials.