Do you need a permit for a patio cover, pergola or retaining wall in San José?
It depends on size and utilities. The City says an open accessory structure of 120 square feet or less needs no permit, unless it includes electricity or plumbing.1 Larger ones do. A retaining wall needs a permit only above the City's height limits.2
CSLB #1050108 · Licensed, bonded and insured

The short version
How the permit works for a patio cover or pergola
The City's steps for accessory structures, in order.1
Measure and list utilities
Measure from the exterior walls. Note any lights, fans, outlets or water lines. Any one of them means a permit, whatever the size.1
Check zoning and design
Read the City's design considerations and the zoning standards for size and placement before you draw plans. Our shed, fence and deck guide covers the accessory building limits.1
Build the application
Project plans, a Building Permit Application and the Single-Family and Duplex Submittal Checklist, with "Accessory Structure" entered under Project Scope. If the owner applies, add the Owner-Builder form.1
Choose the review path
Over-the-Counter is the faster, lower-cost service if the project qualifies. Residential Express is for projects with engineered trusses and simple lateral loads, for a premium fee. Everything else goes through Standard Plan Review.1
Inspect
The Permit Card lists the inspections. Keep it on site with the plans. Schedule at SJPermits.org or call 408-535-3555. See our inspection scheduling guide.1
Patio covers, pergolas and retaining walls
- Patio cover or pergola
- The City names gazebos and trellises as accessory structures. It does not name patio covers or pergolas, and the exemption list in the Municipal Code does not list them either.3 So ask the Permit Center at 408-535-3555 about your design, especially one attached to the house. San José adopts the California Residential Code appendix for patio covers, which defines one as a structure with open or glazed walls used for outdoor living.4, 5
- Roof next to the rear property line
- A roof attached to the house, such as a patio cover, may project up to 4 feet into the required rear setback. It can go farther only under conditions: it may cover no more than 15 percent of the required rear setback area, sit between 7 and 10 feet above grade where it goes past 4 feet, be no more than 36 inches thick there, stay at least 15 feet from the rear property line, and stay unenclosed.6
- Retaining wall
- The municipal code sets the height limits. The building code text exempts walls not over 4 feet, measured from the bottom of the footing to the top of the wall, unless they support a surcharge.3 A wall above the limits needs plans: a site plan, a wall plan with materials, sizes and post spacing, and elevations. It goes through Standard Plan Review.2 See our shed, fence and deck guide for the City's heights.
- Why bother
- A City inspector checks the work for code compliance, and insurance companies may deny claims related to unpermitted work.1
Adding a patio cover or retaining wall? We handle the permit and the work.
Tell us about the yard and the structure. We walk the site, check the size and zoning limits, pull the permit and schedule the inspections through final.
- The city and the lot
- Patio cover, pergola or retaining wall
- Rough size, height, and any lights or fans
Prefer to talk? Call (408) 667-4946 or send a text. Office hours: Monday to Friday, 7 am to 3 pm.
- CSLB #1050108
- Licensed, bonded and insured
- 1-year labor warranty
- BBB A+ rating
David and Tristan, the owners, stay involved from the first walkthrough to the final check. We reply the same business day, Monday to Friday.
Do I need a permit for a patio cover or pergola in San Jose?
What if my pergola has lights or a fan?
What if the patio cover is over 650 square feet?
Do I need a permit for a retaining wall?
How close to the back fence can a patio cover go?
Sources
- 1. City of San José: Accessory Buildings & Structures (updated 04/14/2026)
- 2. City of San José: Fences & Retaining Walls (updated 04/15/2026)
- 3. San José Municipal Code 24.02.120: Building permit exemptions
- 4. San José Municipal Code 24.09.110.5: California Residential Code appendices adopted (Appendix BF, Patio Covers)
- 5. California Residential Code 2025, BF102: Patio cover definition
- 6. San José Municipal Code 20.30.420: Rear setbacks, projections into
This page explains the City's published rules for accessory structures and retaining walls. The City decides what applies to your property. Check the City pages for current details.