Do I Need a Permit for Solar Panels in San Francisco, CA?

San Francisco is paradoxically one of the more challenging cities in this guide for solar installations — not because of permit costs or bureaucracy (though both are real considerations), but because of NEM 3.0. California's Net Energy Metering 3.0 program, which took effect in April 2023 for new PG&E interconnections, dramatically reduced the export credit rate for excess solar generation, fundamentally changing the economics of SF solar installations. Under NEM 3.0, excess generation exported to PG&E earns approximately $0.05 per kWh — compared to the full retail rate of approximately $0.28–$0.35/kWh under previous NEM 2.0 rules. This economic shift has made battery storage paired with solar the dominant approach for new SF solar projects, maximizing the value of self-consumption rather than grid export.

Research by DoINeedAPermit.org Updated April 2026 Sources: San Francisco Department of Building Inspection (DBI), PG&E NEM 3.0 interconnection program, California Public Utilities Commission, SF Historic Preservation Commission, Federal IRA Investment Tax Credit
The Short Answer
YES — solar panel installations in San Francisco require a building permit and an electrical permit from DBI.
San Francisco DBI requires a building permit for the structural roof attachment and an electrical permit for the PV system wiring, inverter, rapid shutdown compliance (2022 NEC Article 690), and grid interconnection. Both permits are filed through permits.sfgov.org by the licensed solar installer (California C-10 electrical and California CSLB-licensed general contractor). PG&E NEM 3.0 interconnection approval is required before the system can export power. DBI permit fees: approximately $350–$900 across both permits. Review time: 4–10+ weeks at DBI. Historic district properties require SF Historic Preservation Commission review for roof-mounted systems visible from public rights-of-way.

San Francisco solar permit rules — the basics

Both the building permit (structural roof attachment) and the electrical permit (PV system) are filed through permits.sfgov.org or at the DBI Permit Center at 49 South Van Ness Avenue. California requires licensed contractors for all permitted solar work: a California CSLB C-10 Electrical Contractor license for the electrical work, and a general contractor or roofing contractor license for any roof penetration work. California's CSLB license requirements provide meaningful consumer protection — verify your installer's license at cslb.ca.gov before signing any contract. The 2022 California Electrical Code (incorporating 2022 NEC Article 690) requires module-level rapid shutdown for all new rooftop PV systems in SF.

PG&E's NEM 3.0 interconnection process is the post-permit step that activates grid export capability. Under NEM 3.0, new solar customers receive export credits at the "Avoided Cost Calculator" rate — approximately $0.05/kWh — rather than the full retail rate that made NEM 2.0 so financially attractive. The shift to NEM 3.0 fundamentally changes how SF solar systems should be designed and what return on investment homeowners should realistically expect. Under NEM 2.0, a well-sized system that covered all annual consumption and exported significant excess earned credits at the full retail rate, with payback periods of 7–10 years. Under NEM 3.0, the optimized strategy is self-consumption maximization — sizing the system to avoid significant exports by matching battery storage capacity to daily generation and consumption patterns, effectively storing excess daytime generation for evening and night consumption.

Battery storage has become nearly standard with new SF solar installations under NEM 3.0. A Tesla Powerwall (13.5 kWh), Enphase IQ Battery, or SolarEdge home battery paired with a 5–8kW rooftop array enables the homeowner to consume most of their own generation, buying from PG&E primarily during peak rate periods (when grid electricity is most expensive) and exporting very little. The NEM 3.0 export credit is low, but the grid electricity rate is high — the economic value of every kWh self-consumed rather than bought from PG&E is $0.28–$0.35/kWh (the full retail rate avoided), not the $0.05/kWh export credit. Battery storage captures this higher self-consumption value. The ITC (30% federal Investment Tax Credit) also applies to battery storage when co-installed with solar.

San Francisco's housing stock creates several installation access challenges beyond the permit process. Victorian and Edwardian flats are typically multi-unit buildings — in an owner-occupied flat, the solar system serves only the owner's unit, and the building's common electrical areas and roof access require coordination that doesn't arise in single-family homes. HOA and TIC agreements govern roof access, structural modifications, and equipment installation in multi-unit SF buildings. In locally designated historic districts (Alamo Square, Liberty Hill, and many others throughout the city), the SF Historic Preservation Commission reviews rooftop solar installations visible from public rights-of-way on contributing structures.

Already know you need a permit?
Get the complete solar permit checklist for your SF address — both permits, PG&E NEM 3.0 interconnection steps, historic district CoA review, battery storage considerations, and full incentive eligibility.
Get Your SF Permit Report →
$9.99 · Based on official city sources · Delivered in minutes

Why the same solar installation in three San Francisco neighborhoods gets three different outcomes

Scenario A
Sunset District single-family — 6kW + battery, NEM 3.0 self-consumption optimized
A Sunset District homeowner installs a 6kW solar system with a Tesla Powerwall 3 (15 kWh) battery on their 1950s single-family home. The array is designed for self-consumption — sized to cover approximately 80% of daily consumption, with the battery capturing afternoon excess generation for evening use. Under PG&E NEM 3.0, minimal grid export occurs (most generation is self-consumed or stored). Building and electrical permits filed through permits.sfgov.org. DBI review: approximately 5 weeks. Installation: 2 days (panel + battery). PG&E NEM 3.0 interconnection: 4–6 weeks. Total system cost: $32,000–$44,000 before the 30% ITC (which covers both solar and battery). Net cost after ITC: $22,400–$30,800. Payback under NEM 3.0 self-consumption model: approximately 10–14 years. DBI permit fees: approximately $650.
DBI fees: ~$650 | NEM 3.0: battery essential | ITC on solar + battery | Net cost after ITC: $22,400–$30,800
Scenario B
Noe Valley Victorian flat — TIC roof access coordination, HPC check needed
A Noe Valley homeowner in a TIC (Tenancy-in-Common) converted Victorian wants rooftop solar. The TIC agreement must authorize structural roof modifications and equipment installation. The solar installer assesses the flat roof above the owner's unit — the Noe Valley Victorian has a flat rear roof addition section (common construction type) and a pitched main roof facing the front street. The rear flat roof is not visible from the primary street and not subject to mandatory HPC review. SF Planning Historic Preservation staff confirms administrative clearance for rear roof installation on this property. Building and electrical permits filed after HPC clearance. TIC co-owners must agree to the structural roof modification per the TIC agreement. System: 4.5kW on rear flat roof + Powerwall. DBI fees: approximately $580. Net cost after ITC: $18,200–$24,500. PG&E NEM 3.0 interconnection: 4–6 weeks.
DBI fees: ~$580 | TIC agreement must authorize | Rear roof: no HPC issue | Net cost after ITC: $18,200–$24,500
Scenario C
Pacific Heights landmark Victorian — HPC review, front-roof visibility issue
A Pacific Heights homeowner with a Queen Anne Victorian landmark wants solar. The main pitched roof is visible from the primary street. SF HPC review is required for any rooftop solar visible from the public right-of-way on a landmark or contributing structure. The solar installer designs a system on the rear slope (not visible from primary street) and the less-visible secondary slopes — avoiding the primary street-facing pitch entirely. HPC staff reviews the rear-slope installation: administrative CoA in 3–4 weeks. After HPC CoA, DBI permits are filed. The rear-slope-only system generates less power than a full-roof array but respects the historic integrity. System: 3.5kW + Powerwall. Net cost after ITC: $15,400–$21,000. DBI fees: approximately $520 + HPC fee.
DBI fees: ~$520 + HPC fee | Front-roof visibility: rear-only system | Admin CoA: 3–4 weeks | Net cost after ITC: $15,400–$21,000
FactorSunset Single-FamilyNoe Valley TIC VictorianPacific Heights Landmark
DBI permits (both)?YesYes + HPC adminYes + HPC admin
Battery storage?Yes — NEM 3.0 essentialYes — NEM 3.0 essentialYes — NEM 3.0 essential
HPC review?NoAdmin (rear roof)Admin (rear/side only)
Building type complication?None (single-family)TIC agreement requiredLandmark restrictions
NEM 3.0 export credits~$0.05/kWh~$0.05/kWh~$0.05/kWh
DBI fees~$650~$580~$520 + HPC fee
Net cost after ITC$22,400–$30,800$18,200–$24,500$15,400–$21,000
Your SF property has its own combination of these variables.
Building type and roof access. Historic district HPC review. NEM 3.0 self-consumption optimization. Battery storage sizing. The complete permit and activation path for your San Francisco solar project.
Get Your SF Permit Report →
$9.99 · Based on official city sources · Delivered in minutes

NEM 3.0 and why battery storage changed the SF solar equation

California's Net Energy Metering 3.0 program, which PG&E implemented in April 2023, is the single most significant change to SF solar economics in the last decade. Under NEM 2.0 (which grandfathered systems installed before April 2023 for 20 years), every kWh exported to PG&E earned a retail-rate credit — approximately $0.28–$0.35/kWh at current PG&E rates. For a homeowner who wasn't home during peak solar production hours (10am–2pm on sunny days), this meant that excess generation fed back to PG&E at high value, essentially running the meter backward. Under NEM 3.0, that export credit drops to approximately $0.05/kWh — a 6–7x reduction in the value of exported power.

Battery storage flips this equation. A homeowner with a properly sized battery (Powerwall, Enphase IQ, SolarEdge) stores excess solar generation during the peak production window (10am–2pm) and discharges it during the evening demand period (4pm–10pm) when PG&E rates are highest. Every kWh stored and self-consumed replaces PG&E grid power at the full retail rate ($0.28–$0.35/kWh), not the NEM 3.0 export rate ($0.05/kWh). The incremental value of battery storage relative to a solar-only installation under NEM 3.0 is approximately $0.23–$0.30/kWh for every stored kWh — a compelling economic case in PG&E's high-rate territory. The 30% ITC applies to battery storage co-installed with solar, reducing the effective battery cost by nearly a third.

The implication for system design is clear: SF solar systems installed under NEM 3.0 should be designed around storage capacity, not just panel capacity. A 10kW array without battery storage generates far more midday export than PG&E compensates at NEM 3.0 rates. A 5–6kW array with 13–27 kWh of battery storage (one or two Powerwalls) captures most of its daily generation for self-consumption, dramatically improving financial return. This pairing is reflected in the project costs in this guide's SF solar scenarios — the battery storage adds $8,000–$18,000 to project cost (before the 30% ITC applied to the storage portion), with financial return that justifies the addition under current PG&E rate structures.

What the inspector checks on San Francisco solar installations

DBI building and electrical inspections for residential solar are typically combined into a single final inspection after installation is complete. The building inspector verifies weatherproofing at all roof penetrations — each mounting foot must be properly flashed per the 2022 SFBC. The electrical inspector verifies 2022 NEC Article 690 rapid shutdown compliance (module-level rapid shutdown using microinverters or power optimizers), conduit protection for all DC wiring runs on the roof surface, labeling at the main service panel, inverter mounting and clearances, and that installed equipment matches the permitted specifications. PG&E's interconnection inspection verifies anti-islanding protection and the bidirectional meter installation before Permission to Operate (PTO) is issued.

What solar costs in San Francisco

San Francisco solar costs are among the highest nationally — union labor rates, urban roof access challenges, and the regulatory overhead of the DBI permit process all push costs above national averages. A 5–6kW solar-only system runs $18,000–$28,000 installed. Adding a Powerwall 3 (15 kWh) battery adds approximately $10,000–$15,000. Total solar + storage project costs of $28,000–$45,000 before the 30% ITC are typical. After the ITC, net costs run approximately $19,600–$31,500. Payback under NEM 3.0 self-consumption model typically runs 10–15 years — longer than Austin Energy's full retail net metering but still a positive 25-year financial return in PG&E's high-rate territory.

What happens if you install solar without permits in San Francisco

An unpermitted SF solar installation cannot receive PG&E permission to operate — PG&E's NEM 3.0 interconnection process requires documentation of DBI permits and inspections. Without PTO, the system cannot legally export power. DBI Code Enforcement can require removal of unpermitted rooftop installations. California real estate transfer disclosures require disclosure of known permit violations. Permit fees ($350–$900 across both permits) are trivial relative to any system cost in San Francisco's high-value, high-cost construction market.

San Francisco Department of Building Inspection (DBI) 49 South Van Ness Avenue, San Francisco, CA 94103
Phone: (628) 652-3700 | permits.sfgov.org

PG&E — NEM 3.0 Interconnection
pge.com → Solar & Renewables → Interconnection

SF Historic Preservation Commission (via SF Planning)
Phone: (628) 652-7600 | For solar on contributing structures in SF historic districts
Ready to get your SF solar system permitted?
Get a complete permit report for your address — both DBI permits, PG&E NEM 3.0 interconnection steps, historic district CoA review, and battery storage optimization for your roof configuration.
Get Your SF Permit Report →
$9.99 · Based on official city sources · Delivered in minutes

Common questions about San Francisco solar panel permits

How many DBI permits does an SF solar installation require?

Two: a building permit for the structural roof attachment and an electrical permit for the PV system. Both filed through permits.sfgov.org by licensed California contractors (C-10 electrical, CSLB-licensed general contractor). DBI review: 4–10+ weeks. PG&E NEM 3.0 interconnection approval (PTO) follows DBI inspections, typically 4–6 additional weeks. Total permit fees: approximately $350–$900. Total timeline from application to PTO: typically 3–5 months.

What is PG&E NEM 3.0 and how does it affect SF solar economics?

PG&E's NEM 3.0 (effective April 2023) pays approximately $0.05/kWh for excess solar generation exported to the grid — down from the $0.28–$0.35/kWh retail rate under NEM 2.0. The shift makes battery storage economically essential for new SF solar installations: stored solar power self-consumed at home avoids buying PG&E electricity at the full retail rate, which is 6–7x more valuable than the export credit. Battery-paired solar under NEM 3.0 has payback periods of 10–15 years in SF; solar-only systems without storage have substantially longer payback.

Does my SF Victorian require HPC review before solar installation?

If your property is a contributing structure in a locally designated SF historic district, a Category A or B landmark, or a historic resource, rooftop solar visible from the public right-of-way requires a Certificate of Appropriateness from the SF Historic Preservation Commission. Rear-roof or other installations not visible from any public street or alley typically qualify for administrative HPC approval (3–4 weeks). Contact SF Planning Historic Preservation at (628) 652-7600 before designing a system for any potentially historic property — the HPC clearance must precede the DBI permit application.

Can I install solar on a San Francisco multi-unit TIC or flat?

Technically yes — a solar system serving an individual unit in a TIC or flat building is feasible, but requires authorization from co-owners (per the TIC agreement) for the structural roof modification and equipment installation. The solar system can only legally serve the unit whose electrical system the inverter is connected to; in a two-unit flat, the system serves one unit's panel, not the entire building. The permitting process is the same (building and electrical permits through DBI), but the TIC/HOA authorization is a prerequisite that must be resolved before installation can begin.

Does California's solar sales tax exemption apply in San Francisco?

California does not have a general solar sales tax exemption equivalent to Indiana's IC §6-2.5-5-27. California's sales tax exemption for manufacturing and agricultural solar equipment does not apply to residential installations. However, the 30% federal Investment Tax Credit (ITC) applies to all residential solar and battery storage installations in San Francisco through 2032 — a direct 30% reduction in federal tax liability for the full installed cost (labor + equipment). California does offer a property tax exclusion for solar installations (Revenue & Taxation Code §73), preventing a solar installation from increasing the homeowner's property tax assessment.

How long does the full SF solar permit and activation process take?

Typically 3–6 months: DBI permits 4–10 weeks; installation 2–3 days; DBI inspections 1–2 weeks; PG&E NEM 3.0 interconnection 4–6 weeks. Historic district HPC cases add 3–8+ weeks before DBI permit can be filed. Multi-unit TIC authorization negotiations can add additional time before the installer can even begin the permit application. Starting in fall or winter may help with installer availability, though DBI and PG&E queue times are less seasonal than solar demand.

Disclaimer: This guide is based on publicly available information from SF DBI and PG&E as of April 2026. NEM 3.0 export credit rates and PG&E tariffs are subject to change. Always verify current requirements with DBI at (628) 652-3700 and PG&E before beginning any solar installation. This is not financial advice.