Permit Required? Not required up to 6 ft
Typical Fee Range $0–$1,300 Up to 6 ft rear/side or 3 ft front: no permit; up to 10 ft in yards is OTC with plans
Fee Method Exempt within height limits; else valuation DBI + Planning

What's Required in San Francisco

  • No building permit is needed for a fence of 6 feet or less at the side or rear lot lines or 3 feet or less at the front.
  • In the required front setback, a fence may be 3 feet if solid or 6 feet if 75 percent open; open fencing may not be stacked on a solid 3-foot base.
  • In required rear and side yards, fences are limited to 10 feet above grade; exceeding that requires a variance.
  • Fences over 6 feet in side or rear yards or over 3 feet in front need an over-the-counter building permit with plans showing location, setbacks and height.
  • Fences of 10 feet or less need no neighborhood notification; taller fences in the buildable area do, and may get design review.
  • Permitted fences pay DBI plan review plus issuance on valuation, plus Planning's building-permit application fee.
  • Retaining walls up to 4 feet measured from the bottom of the footing are exempt unless they support a surcharge.
  • Lighting or a powered gate on the fence needs a separate electrical permit.

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

Six feet at the side and rear lot lines, three feet at the front. The Planning Department's fence handout, updated May 2026, states that a building permit is not required for a fence that is three feet or less in height at the front of a property or six feet or less at the side or rear property lines, and the Building Code's exemption list matches: fences not over 6 feet at the rear and side lot lines at the rear of the property, and all fences not over 3 feet. Above those heights you need a building permit from the Department of Building Inspection (DBI) with plans, but the review is simple: fences of ten feet or less that meet the Planning Code are usually approved over the counter with no neighborhood notification.

San Francisco Fence Permit Rules by Scenario

What you are doingCity filingRule
Side or rear fence up to 6 feetNoneSF Building Code 106A.2 and Planning fence handout
Front fence up to 3 feet, or 6 feet if 75 percent openNone up to 3 feet; permit abovePlanning Code front setback limit: 3 ft solid, 6 ft open
Side or rear yard fence over 6 feet, up to 10 feetOTC building permit with plansPlanning reviews over the counter; no notification up to 10 feet
Fence over 10 feet in the buildable areaBuilding permit + neighborhood notificationNotice fee $121 plus $4.25 per envelope; design review possible
Fence over 10 feet in a required rear or side yardVariance applicationPlanning Code yard limits cannot be exceeded over the counter
Retaining wall up to 4 feet, no surchargeNoneBuilding Code 106A.2 retaining wall exemption
Fence with lights or a powered gateElectrical permit$305 for up to 10 outlets or devices

How Much Does a Fence Permit Cost in San Francisco?

A fence within the exempt heights costs nothing. A taller fence pays DBI's valuation-based fee under Table 1A-A, effective July 12, 2026, and because plans are required both halves apply: plan review of $310 for the first $2,000 plus $28.35 per additional $1,000 or fraction, and issuance of $266 plus $8.56 per $1,000. DBI's cost schedule values a 6-foot wood fence at $49 per linear foot and tells you to interpolate above that, so 60 feet of 8-foot fence comes in near $4,000 and pays about $310 + 2 × $28.35 = $366.70 plus $266 + 2 × $8.56 = $283.12, roughly $650. Planning charges its own building-permit application fee when it signs off: $504 for work under $10,000, or $516 plus 5.274 percent of the cost above $10,000 up to $49,999. That puts a typical 8-foot backyard fence near $1,150 in city fees, and a 10-foot fence valued around $8,000 near $1,300 ($480 plan review, $317 issuance, $504 Planning). Add the state's $1 minimum building-standards fee and a strong-motion fee of 0.00013 times valuation. A fence over 10 feet adds the $121 plus $4.25-per-envelope notification cost and a much longer wait.

Which Yard Is Your Fence In?

The Planning Code sets fence heights by location. In the required front setback, which usually averages the neighbors' setbacks up to 15 percent of lot depth or 15 feet, a fence is limited to 3 feet if solid or 6 feet if 75 percent open, like wrought iron; you cannot stack open fencing on top of a 3-foot solid base. In the required rear yard, generally 25 or 45 percent of lot depth, and in required side yards, which lots 28 feet or wider must provide up to 5 feet per side, the maximum is 10 feet above grade, and the Zoning Administrator can allow up to six feet above a retaining wall where grades differ. Inside the buildable area there is no fence-specific cap, but anything over 10 feet triggers neighborhood notification and possibly Residential Design Guidelines review. Exceeding the yard limits needs a variance, and legislated setbacks cannot be varied at all.

How the Process Works

A fence over 6 feet in a side or rear yard, or over 3 feet in front, is on DBI's over-the-counter exterior list. Bring two sets of plans showing the fence's exact location, the required setbacks and its height, plus a diagram of the openness if you are relying on the 75-percent rule in front. Add the owner package or contractor statement and the Green Building form, submit at the Permit Center, get both stamps, pay, and take the job card. Owners may pull the permit and build it themselves or hire a licensed contractor; an unlicensed installer may only take a job under $1,000 that needs no permit. Request the final inspection through PermitSF when the fence is up.

How to Get a Fence Permit in San Francisco

1

Locate the fence on the lot

Use the Property Information Map to find the required front setback, rear yard and any side yard; the height limit depends on which one the fence sits in.

2

Check the height against the exemption

Up to 6 feet at the side and rear lines or 3 feet in front needs no permit; up to 10 feet in a yard is an over-the-counter permit; above that means notification or a variance.

3

Draw the plans

Two sets showing the exact fence location, setbacks and height, with an openness diagram if a front fence relies on the 75-percent rule.

4

Submit at the Permit Center

Bring the plans, owner package or contractor statement and Green Building form; Planning and DBI review over the counter and you pay plan review, issuance and Planning's fee before the job card issues.

5

Build and call for final

Owners may build it themselves or use a licensed contractor; request the final inspection through PermitSF when the fence is complete.

Frequently Asked Questions

No, at the side and rear lot lines. Planning's fence handout and Building Code 106A.2 both exempt fences of six feet or less at the side or rear property lines and any fence of three feet or less. A 6-foot fence in the required front setback is different: it needs a permit and must be 75 percent open, since a solid front fence is capped at 3 feet.
Zero if the fence is within the exempt heights. Above them, DBI charges valuation-based plan review ($310 plus $28.35 per $1,000 over $2,000) and issuance ($266 plus $8.56 per $1,000) on a valuation of about $49 per linear foot for a 6-foot wood fence, interpolated upward, plus Planning's $504 application fee. An 8-foot backyard fence runs about $1,150; a 10-foot fence about $1,300.
Ten feet above grade in a required rear or side yard, approved over the counter with a building permit and no neighborhood notification. Where grades differ between lots, the Zoning Administrator can allow up to six feet above a retaining wall case by case. Going above 10 feet in a required yard takes a variance; inside the buildable area it takes neighborhood notification instead.
Within the required front setback a fence may be 3 feet if solid or 6 feet if at least 75 percent open, meaning the solid parts make up 25 percent or less of its area, like a wrought-iron fence. A picket fence with small gaps does not qualify, and you may not add open fencing above a 3-foot solid section. Anything over 3 feet in front needs a permit with plans.
Not up to 10 feet. Planning's handout says neighborhood notification is not required for fences ten feet or less, and such fences that meet the Code are usually approved over the counter. A fence taller than 10 feet in the buildable area requires notification, which Planning bills at $121 plus $4.25 per envelope, and may be reviewed under the Residential Design Guidelines.
Yes. Property owners can obtain San Francisco building permits and state law lets an owner do the work personally. If you hire help, anyone paid to build a fence that needs a permit, or any job of $1,000 or more, must hold a state contractor license; a licensed contractor needs a San Francisco business license and workers' compensation proof to pull the permit.