Skip to content
SetbackIQ

Do you need a permit for a fence in San Francisco, CA?

It depends on size and placement.

Fences under 6 ft along the rear and side lot lines behind the house are exempt.

Rules last checked by a person on October 19, 2026. Guidance only; confirm with San Francisco before you build.

Check your exact lot

Setbacks depend on your zoning district, and a flood zone can change the permit answer. Enter your address to see both.

What are you building?

Permits a fence can need in San Francisco

PermitWhen it applies
Building permitSan Francisco's exemption covers only fences under 6 ft along the rear and side lot lines at the rear of the property.Confidence: medium
Floodplain development permitIf the lot is in a FEMA special flood hazard area, all development there needs a permit.

Local details

  • Call 811 at least a few days before you dig footings or post holes. Utility locating is free.
  • HOA covenants and deed restrictions can be stricter than city rules. Check yours before you build.

How to apply

Questions people ask

When does a fence need a building permit in San Francisco?
San Francisco's exemption covers only fences under 6 ft along the rear and side lot lines at the rear of the property. Fences under 6 ft along the rear and side lot lines behind the house don't need a permit.
Where do I apply for a fence permit in San Francisco?
Apply through Check if your project needs a permit (sf.gov), or call (628) 652-3200.

Sources

  1. sf.gov, Check if your construction project needs a permit. Checked 2026-10-19.
    One-story detached accessory buildings... used as tool and storage sheds... projected roof area less than 100 square feet and no taller than 8 feet... Fences less than 6 feet high located at the rear and side lot lines at the rear of the property.
  2. 44 CFR 59.1, definition of development (NFIP). Checked 2026-10-19.
    Development means any man-made change to improved or unimproved real estate, including but not limited to buildings or other structures...
  3. 44 CFR 60.3, floodplain management criteria. Checked 2026-10-19.
    Require permits for all proposed construction or other development in the community...