California / San Francisco

Fence Permit in San Francisco, California

It depends

Sometimes, depending on the project

Before building a fence taller than 6 feet in a side or rear yard, or taller than 3 feet in the front yard.

Confirmed on official page Verified

Issued bySan Francisco Department of Building Inspection (DBI)

By Mario Bailey, verified against official sources

Quick answer

The City and County of San Francisco is a consolidated city and county, so there is no separate county building department and no unincorporated area: the San Francisco Department of Building Inspection (DBI) issues building, electrical, plumbing and mechanical permits citywide, and the Planning Department reviews zoning separately where a project needs it. Work on structures owned and occupied by the federal or state government (Building Code 106A.2 item 15) and on Port property (which also needs a Port construction permit) sits outside the ordinary DBI path. DBI says fences taller than 6 feet in a side or rear yard, or taller than 3 feet in the front yard, need a permit, with 10 feet as the maximum; shorter fences do not need a permit.

Typical threshold: fences in a side or rear yard; the figure is 3 feet for a fence in the front yard.

Who is pulling this permit?

Hire it out

Sponsored

Fence installers usually handle any required permit as part of the job. Compare a few bids before you commit.

Compare fence installer quotes on Angi

Sponsored link. PermitNotebook may earn a fee if you request quotes through it. Partners never influence our permit data.

When a permit is usually needed

Before building a fence taller than 6 feet in a side or rear yard, or taller than 3 feet in the front yard.

What a fence permit costs in San Francisco

Line item
fence permitBy formulaBuilding permit fees are valuation-based under Table 1A-A Building Permit Fees ("July 2026", applying "to all building permits issued on and after July 12, 2026"): "The Building Permit Fee is the Plan Review Fee plus the Permit Issuance Fee." For a valuation of $1 to $2,000 the plan review fee is "$181 for the first $500 plus $8.60 for each additional $100 or fraction thereof" and the permit issuance fee is "$206 for the first $500 plus $4 for each additional $100 or fraction thereof"; for $2,001 to $50,000 they are "$310 for the first $2,000 plus $28.35" and "$266 for the first $2,000 plus $8.56" for each additional $1,000.
Fee schedule in forceOfficial scheduleRead . Fees are the jurisdiction’s; we do not mark them up or estimate them.

How San Francisco compares in California

Across the California jurisdictions we have verified, the same threshold runs from 6 to 7, so a project that is exempt here may still need a permit one county over.

JurisdictionPermit needed?Threshold
Alameda CountyIt dependsPermit exemption height limit: 7 feet for fences of light materials, 5 feet 9 inches for fences of concrete, masonry, or similar heavy materials
Contra Costa CountyIt dependsheight of a fence, with concrete and masonry walls treated as walls rather than fences
Fresno CountyIt dependsFences not over 7 feet high are on the county's published list of work exempt from a building permit
Sacramento CountyIt dependsfence height, measured from the grade on the right-of-way side when the fence sits within 5 feet of the public right-of-way and otherwise from the highest grade on either side
San Bernardino CountyIt dependsheight of a fence or block wall
San Franciscothis pageIt dependsfences in a side or rear yard; the figure is 3 feet for a fence in the front yard
Santa Clara CountyIt dependsfence height at which the County Residential Code permit exemption stops applying

Closest fence permit thresholds outside California

Jurisdictions we cover whose limit sits nearest San Francisco's 6 feet in height.

  • Anne Arundel County, Maryland, height of a fence accessory to a residential structure; any fence on waterfront property or a corner lot with intersecting streets needs a permit regardless of height
  • Bernalillo County, New Mexico, height of a fence or freestanding masonry wall above grade, measured on the lowest side; open-style fences such as chain-link any height as determined by the building official
  • Hawaii County, Hawaii, height of a fence; retaining walls follow a separate four foot rule
  • Honolulu, Hawaii, fence height at which a building permit is required; the exemption does not apply on a street corner or in a flood zone

How to apply in San Francisco

In San Francisco, most residential fences fall under the model code's 7-foot building-permit exemption, so the real approval step is a lightweight zoning or land-use permit built around a simple site plan showing the fence's location, height, and material, checked against setbacks and any corner-lot sight-triangle rule. A fence that will serve as a required swimming-pool barrier is the exception, since barrier fences carry life-safety requirements of their own.

What most fence permit applications include:

  • For San Francisco, a fence 7 feet or under is exempt from the model code's building permit, the same threshold the IRC uses for other small projects (IRC 2021 R105.2).
  • That exemption only removes the building-code permit. It does not authorize skipping a jurisdiction's own zoning approval, which is why an exempt fence can still need its own land-use or zoning permit rather than a building permit (IRC 2021 R105.2).
  • Whatever your jurisdiction calls that approval, the application centers on a basic site plan: a drawing of the property showing the fence's location, height, and material, and how it relates to the property lines (common local zoning practice).
  • For San Francisco, the same plan is checked against required setbacks and, on corner lots or near intersections, a sight-triangle rule that caps fence height so it does not block sightlines for drivers (common local zoning practice).
  • For San Francisco, a fence that will serve as a required swimming-pool barrier is handled as life-safety work rather than the light zoning process, and at least one state's adopted residential code requires a building permit for barrier fences regardless of the general fence exemption (Oregon Residential Specialty Code 2021, R101.2.2).

General submittal guidance from International Residential Code (IRC), 2021 edition, Section R105.2. Source. San Francisco Department of Building Inspection (DBI) sets the exact checklist for San Francisco.

Where to apply in San Francisco:

San Francisco Department of Building Inspection (DBI)

Fence Permit in San Francisco compared with nearby California localities

LocalityPermit needed?ThresholdWhat each California schedule saysVerified
San FranciscoIt dependsfences in a side or rear yard; the figure is 3 feet for a fence in the front yard...Fee is the Plan Review Fee plus the Permit Issuance Fee." For a valuation of $1 to...
Alameda CountyIt dependsPermit exemption height limit: 7 feet for fences of light materials, 5 feet 9 inches for fences of concrete, masonry, or similar heavy materials...using the Schedule A building permit fee table, which starts at a '$140.00 minimum...
Contra Costa CountyIt dependsheight of a fence, with concrete and masonry walls treated as walls rather than fences..."Fences Greater than 7ft": Building Permit / Inspection, chain-link or wood $116.00...
Fresno CountyIt dependsFences not over 7 feet high are on the county's published list of work exempt from a building permitThe Master Schedule of Fees publishes no flat fence permit fee
Los AngelesIt dependsmasonry or concrete fence up to 6 ft in height may be built without a permit if it meets LADBS construction specifications in IB-P-BC2014-080; a solid masonry infill panel between pilasters may not exceed 3 ft 6 in with lightweight open material filling the remaining height; non-masonry fence height threshold not confirmed from official pageValuation-based building permit per LAMC 91.113 Table 1-A

Inspections and closing out your permit

In San Francisco, inspection follows the permit: a fence that never needed one gets no inspection at all under the model code, and a permitted fence typically gets a single final check rather than the staged inspections used for a house. The exception is a fence serving as a swimming-pool barrier, which gets its own dedicated barrier inspection covering height, gaps, and gate hardware.

  1. In San Francisco: inspection duty attaches only to work for which a permit is required, so a fence that qualified for the permit exemption carries no inspection obligation under the model code (IRC 2021 R109.1).
  2. In San Francisco: where a fence permit was issued, the process skips the staged foundation, frame, and rough-in inspections used for buildings and goes straight to one final inspection once the fence is finished (IRC 2021 R109.1.6).
  3. In San Francisco: that single check is typically a zoning compliance inspection rather than a structural review, confirming the fence matches the approved height and site plan (common local practice).
  4. A fence built as a swimming-pool barrier breaks that light-touch pattern in San Francisco: it is separately inspected for barrier compliance, commonly required before the pool itself can be signed off (ISPSC 305; local pool-barrier inspection programs).
  5. In San Francisco: that barrier inspection checks dimensional rules from the swimming pool and spa code rather than ordinary fence rules, including the minimum 48 inch barrier height and limits on openings and gaps a young child could pass through (ISPSC 305).
  6. Gate hardware is inspected too in San Francisco: a self-closing, self-latching gate is part of the barrier requirement, since an unlatched gate defeats the fence's purpose as a barrier (ISPSC 305).

Schedule each inspection in advance and pass the final before you use the work or close the permit. Request inspections through the San Francisco permit portal or by phone at (628) 652-3200.

Inspection sequence from International Residential Code (IRC), 2021 edition, Section R109, and ISPSC 2021 Section 305 (barriers). Source. An open permit left un-inspected can surface later in a title search or home sale.

Frequently asked questions

Do you need a fence permit in San Francisco?
The City and County of San Francisco is a consolidated city and county, so there is no separate county building department and no unincorporated area: the San Francisco Department of Building Inspection (DBI) issues building, electrical, plumbing and mechanical permits citywide, and the Planning Department reviews zoning separately where a project needs it. Work on structures owned and occupied by the federal or state government (Building Code 106A.2 item 15) and on Port property (which also needs a Port construction permit) sits outside the ordinary DBI path. DBI says fences taller than 6 feet in a side or rear yard, or taller than 3 feet in the front yard, need a permit, with 10 feet as the maximum; shorter fences do not need a permit. Fences in a side or rear yard; the figure is 3 feet for a fence in the front yard. Always confirm with the office before starting.
How much does a fence permit cost in San Francisco?
Building permit fees are valuation-based under Table 1A-A Building Permit Fees ("July 2026", applying "to all building permits issued on and after July 12, 2026"): "The Building Permit Fee is the Plan Review Fee plus the Permit Issuance Fee." For a valuation of $1 to $2,000 the plan review fee is "$181 for the first $500 plus $8.60 for each additional $100 or fraction thereof" and the permit issuance fee is "$206 for the first $500 plus $4 for each additional $100 or fraction thereof"; for $2,001 to $50,000 they are "$310 for the first $2,000 plus $28.35" and "$266 for the first $2,000 plus $8.56" for each additional $1,000. See the official fee schedule for current amounts.
Where do you apply for a fence permit in San Francisco?
You can apply through the San Francisco permit portal or contact the San Francisco Department of Building Inspection (DBI) directly. The links are listed on this page.
Can a homeowner pull a fence permit themselves in San Francisco?
Under California law (Business & Professions Code 7044(a)-(b); Business & Professions Code 7031.5): California exempts an owner from contractor licensing under section 7044 when they personally perform all the work on their own property, or any work they do not perform themselves is done by their own employees paid only wages, and none of the improvements are intended or offered for sale. It also exempts an owner who directly contracts with licensed contractors for each trade, as long as no more than four of the single-family residential structures involved are intended or offered for sale in a calendar year; this route does not apply if the owner instead contracts with a general contractor for the construction. A homeowner may also improve their own principal residence without a license, as long as the work is done before any sale, they have actually resided there for the 12 months before completion, and they have not used this exemption on more than two structures more than once in any three-year period. Selling a self-built structure within one year of completion creates a rebuttable presumption that it was built for sale, which defeats the exemption, and selling five or more structures within a year makes that presumption conclusive. Separately, every city or county that requires a permit must also require the applicant to file a signed statement giving their contractor license number or the basis of their claimed exemption; a false or missing statement carries a civil penalty of up to $500. Confirm how San Francisco applies this before you apply.

From the Library

What else needs a permit in San Francisco

Every other permit type we have verified for this jurisdiction, with the rule that applies here.

ProjectPermit needed?ThresholdTypical fee
Bathroom Remodel PermitPermit requiredAny size...(Table 1A-C, "CATEGORY 1P" includes "a single kitchen or bathroom remodel", $290)...
Deck PermitIt dependsheight of the deck walking surface above grade...Fee is the Plan Review Fee plus the Permit Issuance Fee." For a valuation of $1 to...
Electrical PermitPermit requiredAny size...up to 10,000 sq. ft.": "Up to 10 outlets and/or devices (1 inspection)"...
EV Charger PermitIt dependsBefore installing, altering or modifying any part of the electrical system for an EV......1 residential wiring applies ("Up to 10 outlets and/or devices (1 inspection)"...
HVAC PermitPermit requiredAny size...gas appliance (furnace, hydronic heat, heat pump)" "(maximum two inspections)"...
Plumbing PermitPermit requiredAny size...or a single kitchen or bathroom remodel" "(maximum two inspections)"...
Pool PermitIt dependsprefabricated pools with walls entirely above grade, accessory to a one- or two-family dwelling (Group R-3)...Fee is the Plan Review Fee plus the Permit Issuance Fee." For a valuation of $1 to...
Roof Replacement PermitIt dependsarea reroofed in any 12-month period, with no roof sheathing installed, repaired or removedDBI's reroofing page: "$514 and up for single-family homes and duplexes." and "$714 and...
Shed PermitIt dependsone-story detached storage shed or playhouse; a 10-foot height limit also applies...Fee is the Plan Review Fee plus the Permit Issuance Fee." For a valuation of $1 to...
Solar PermitPermit requiredAny size...Installations: "Solar Photovoltaic Systems" "10 KW rating or less"...
Water Heater PermitPermit requiredAny sizethe residential single-unit plumbing category is "CATEGORY 1P" at $290 and "CATEGORY...

Fence Permit in other California localities

Everything above, sourced

Code references

National and state model-code sections the general guidance on this page is drawn from. They are not San Francisco documents; the office above sets the local rules.

How this fence permit page for San Francisco was verified. 2 official sources: sf.gov, sf.gov; fee schedule: official document. Last checked by Mario Bailey, not confirmed with San Francisco Department of Building Inspection (DBI). Rules change; confirm before you build. How we verify.

Last checked: Report an error on this page

Compare Fence Permit requirements across California localities

Fence permit rules nationwide

It depends
Get quotes