What's Required in San Jose
- Fences not over 7 ft (other than pool barriers) need no building permit (SJMC 24.02.120.A.2)
- Zoning Table 20-80: 3 ft maximum in the front setback area, 7 ft in rear and side setback areas of R-1 lots
- Corner lots: 3 ft within 5 ft of the street-side line, 7 ft beyond; 3 ft inside the corner triangle
- Height is measured from the grade of the public right-of-way or existing grade; 6 ft cap where grade differs more than 2 ft across the line
- Gates and trellises up to 8 ft high and 5 ft long allowed if at least 15 ft from an intersection; posts up to 4 ft and 18 in wide
- Barbed wire, razor wire, electric fences, glass and sharp materials are prohibited on residential lots
- A fence taller than Table 20-80 allows needs a fence variance under Chapter 17.24; over 7 ft it also needs a building permit
- Retaining walls over 4 ft (footing to top) or supporting a surcharge need a building permit; zoning caps them at 2 ft without a special use permit
Do You Need a Permit for a Fence in San Jose?
Two separate rules decide this, and the old advice usually mixes them up. The building code exemption in San Jose Municipal Code 24.02.120 covers fences, other than swimming pool barriers, not over seven feet high, so a fence at 7 feet or under needs no building permit. The zoning code then limits how tall a fence may be in each part of the lot: Table 20-80 allows a maximum of three feet in the front setback area and seven feet in the rear and side setback areas of an R-1 lot. A fence that meets Table 20-80 needs no approval from the Planning director; a fence that exceeds it is only allowed by variance, and Chapter 17.24 of the code exists specifically for fence variances on residential lots. So a 6-foot front-yard fence is not a permit question, it is a variance question.
San Jose Fence Rules by Scenario
| What you are doing | City filing | Rule |
|---|---|---|
| Wood or vinyl fence up to 7 ft in the rear or side setback of an interior lot | No permit | SJMC 24.02.120.A.2; Table 20-80 |
| Fence in the front setback area, up to 3 ft | No permit | Table 20-80 front setback area maximum three feet |
| Fence over 3 ft in the front setback, or over 7 ft anywhere | Fence variance (Ch. 17.24) and, above 7 ft, a building permit | SJMC 20.30.600; 24.02.120 |
| Corner lot, fence along the street side | 3 ft within 5 ft of the property line; 7 ft beyond that | Table 20-80 corner lot, adjacent to a street |
| Corner lot next to a key lot's side yard | 3 ft for 12.5 ft from the street line and 15 ft from the rear lot line | Table 20-80 |
| Grade drops more than 2 ft across the shared property line | Fence on that line capped at 6 ft | SJMC 20.30.620 |
| Pool barrier fence | Building permit as part of the pool permit; 4 ft minimum height | SJMC 24.02.120.A.2 exception; Ch. 17.28 |
How Much Does a Fence Permit Cost in San Jose?
Nothing for a code-compliant fence at 7 feet or under, which is nearly every residential fence. When a fence does need a building permit, the Schedule of Fees and Charges effective July 1, 2026 lists a Fence permit processing line at 1.0 hour, $211. On top of that the building permit is charged at $315 per hour of inspection time in tiers of 40, 70, 130 or 250 minutes, and plan check runs $325 per hour with a 30-minute minimum for an over-the-counter review. A Tier 1 fence permit is therefore about $211 + $210 + $162.50, roughly $585. A fence variance is a Planning application with its own fee that the Planning fee schedule sets; that document was not reachable for this guide, so ask Planning for the current amount before you apply. Building a permit-required fence without a permit costs two times the plan review and inspection fees as a penalty.
How Is Fence Height Measured?
Section 20.30.610 measures fence height from the grade of the public right-of-way along a street, and from existing grade on every other property line, which matters on sloped lots. Posts and columns up to 4 feet tall and 18 inches wide, and pedestrian gates or trellises up to 8 feet tall and 5 feet long, are allowed as long as the entry is at least 15 feet from an intersection. Within the corner triangle at an intersection the cap is 3 feet. Barbed wire, razor wire, electric fences, glass and other sharp materials are prohibited on residential property.
Who Builds It and What About Retaining Walls?
A homeowner may build a fence under California's owner-builder exemption, and any contractor hired for a job of $1,000 or more must hold a state license. A retaining wall is a different exemption: walls not over 4 feet measured from the bottom of the footing to the top, and not supporting a surcharge, need no building permit, but the zoning table limits retaining walls to 2 feet unless a special use permit approves more. Utility easements are recorded on your title report; the city does not clear them for you.
How to Get a Fence Permit in San Jose
Locate the fence on the lot
Front setback area means 3 ft; rear and side setback areas allow 7 ft. Corner lots and key lots have their own lines in Table 20-80.
Check height against 7 ft
At or under 7 ft and within Table 20-80, no building permit and no Planning approval are needed. Confirm easements on your title report.
Apply for a variance if the design exceeds zoning
Chapter 17.24 fence variances go through Planning; ask for the current application fee, which the Planning fee schedule sets.
File a building permit above 7 ft
Submit a site plan and fence detail; pay $211 processing, the tiered inspection fee at $315 per hour and plan check at $325 per hour.
Schedule the final inspection
Permitted fences are inspected for height and location; cancel or reschedule by 2 pm two business days ahead.