Solar Building & Electrical Codes (2026)

Solar code is what actually drives your roof layout, your inverter location, your conductor sizes, and what your installer has to put in your service panel. Here are the rules that matter in 2026 — fire setbacks, rapid shutdown, working clearances, grounding, IEEE 1547 anti-islanding, and the structural review your bid must reflect — with notes for residential, commercial, and agricultural projects.

Home / Building & Electrical Codes
⚠️ Code adoption varies by state and city: The codes below reflect the current national model codes (NEC 2023 for electrical, IFC 2024 for fire). Your local Authority Having Jurisdiction (AHJ) may be on an older cycle (NEC 2017 or 2020 is still in effect in some states), or have state-specific amendments. Where state-specific setbacks were not separately verified, this page defaults to the Minnesota State Building Code as a representative IFC-2021-with-amendments framework. Always confirm with your local building department before relying on a specific dimension for a contract or bid.

Which codes actually apply to your solar project

CodeWhat it coversWhere adopted
NEC 2023 (NFPA 70)All electrical work on the system — conductor sizing, overcurrent protection, grounding, rapid shutdown, working clearances, disconnects, labeling.Most states. Some still on NEC 2020 or 2017. NEC 2026 publishes mid-2026 with state adoption following over the next 1–3 years.
IFC 2021 / 2024 (or IRC equivalent)Fire setbacks, roof access pathways, smoke ventilation areas, hazard signage.Most states adopt IFC with amendments. California has its own version (CFC).
IRC 2021 / 2024 (residential)Residential structural review, roof loading, attachment design.Most states for one- and two-family dwellings.
IBC 2021 / 2024 (commercial)Commercial structural and life-safety provisions.Most states for everything that's not a 1-2 family residence.
ASCE 7-22Wind, snow, and seismic loading calculations.Referenced by IBC/IRC.
IEEE 1547-2018Grid interconnection requirements: anti-islanding, voltage and frequency ride-through, power quality.Referenced by NEC and required by every utility.
UL 3741PV Hazard Control System listing — an alternative path to NEC 690.12 module-level rapid shutdown.Recognized by NEC 2023; product listings rolling out in 2024–2026.
UL 1741 / UL 1741-SBInverter and converter listing standard. UL 1741-SB is required for grid-supportive functions in CA Rule 21 and similar.National.

Roof setbacks and firefighter pathways (IFC 605.11 / 1204)

Roof-mounted solar arrays have to leave clear space for firefighter access and ventilation. The exact dimensions come from the International Fire Code (IFC), with state and city amendments. The default values below reflect IFC 2021 with Minnesota State Building Code amendments — representative of most U.S. jurisdictions, but always confirm locally.

IFC 605.11 Solar PV photovoltaic systems — roof access and pathways for one- and two-family dwellings.
SetbackDefault dimensionNotes
Ridge setback (each side of horizontal ridge)18 inches if PV covers ≤33% of total roof area
36 inches if PV covers >33%
Sprinklered dwellings can use 18" up to 66% array coverage before triggering 36".
Eave setback36 inches from any eave that doesn't have an alternative pathwayNot always required if other pathways are available; jurisdictions vary.
Hip and valley setback18 inches from any hip or valley with arrays on both sidesPreserves access to structural roof members.
Firefighter access pathway36 inches wide, on at least two roof planesContinuous pathway from eave to ridge.
Smoke ventilation areaRequired if total array exceeds the threshold — usually a 4×8' clear area near the ridgeAllows roof venting in a fire.

Why this matters for your bid: Setbacks reduce usable roof area — sometimes meaningfully. A 1,800 sq ft roof at 33% coverage hits the 18" ridge limit; pushing to 50% triggers 36" and may force the design into a smaller system or a second array. If a bid promises wall-to-wall coverage with no setbacks documented, the design isn't code-compliant and the inspector will reject it.

Rapid shutdown (NEC 690.12)

Rapid shutdown is the single biggest code-driven design decision on a residential or small-commercial PV project. NEC 690.12 requires that, when initiated, the system rapidly de-energizes high-voltage DC conductors so first responders can safely access the building.

NEC 690.12(B) Within 1 ft of the array (inside boundary): conductors must reduce to 80V or less within 30 seconds. Outside the array boundary: 30V or less within 30 seconds.

How installers comply (two paths):

Initiation: A clearly-labeled rapid shutdown switch must be located at a service-entrance-accessible location (typically next to the main electrical disconnect) and labeled per NEC 690.56(C) / 690.12(D) with the standard red placard. The placard must be permanently affixed and weather-durable.

Exceptions worth knowing:

Working clearances around inverters and battery equipment (NEC 110.26)

Every inverter, battery, combiner, and disconnect needs clear access space — both for installation and for ongoing service. This is the most commonly violated code on residential projects because installers run out of wall space in cramped utility rooms.

NEC 110.26(A)(1) Working space depth: 36 inches in front of any equipment with energized parts ≤150V to ground (standard residential PV/storage). Increases to 42–48" at higher voltages or where opposing energized panels exist.
DimensionMinimumNotes
Depth in front of equipment36 inches (typically)Measured from the face of the equipment.
Width30 inches or width of equipment, whichever is greaterProvides room to work without contortion.
Height (headroom)6 ft 6 in (78 inches)Below this, you cannot install electrical service equipment.
IlluminationRequired at all working spacesFor service safety.

What this means in practice: A Sol-Ark 15K + battery bank wall-mounted in a basement utility room needs roughly 4 ft of clear floor space in front. If the room has a 28" wide aisle, the install is non-compliant and will fail inspection. Confirm working clearance at site survey, not at install day.

Disconnects, labeling, and signage (NEC 690.13, 690.15, 690.56)

Solar systems need clearly-labeled disconnects at multiple points to allow safe shutoff for service and emergencies:

NEC 690.56(C) Buildings with rapid-shutdown PV systems must display a permanent placard at the service equipment that says "SOLAR PV SYSTEM EQUIPPED WITH RAPID SHUTDOWN. TURN RAPID SHUTDOWN SWITCH TO THE 'OFF' POSITION TO SHUT DOWN PV SYSTEM AND REDUCE SHOCK HAZARD IN THE ARRAY." Specific wording, typeface, and color are required.

Grounding and bonding (NEC 690.43, 690.45, 690.47)

Solar grounding has two parts: equipment grounding (everything metallic in the array bonded back to the ground bus) and system grounding (DC negative or transformer reference, depending on inverter type). Modern transformerless string inverters and microinverters are typically functionally grounded rather than solidly grounded — which still requires the equipment grounding path even if the DC system itself is floating.

Practical bid check: every module frame, every section of racking, the inverter case, the combiner, and the disconnect all bond to the same equipment grounding conductor (EGC). On a metal-roof install, the racking-to-roof bonding path also requires a UL-listed grounding component. Watch for bids that don't itemize grounding hardware — that's a common cost-cutting omission that fails inspection.

IEEE 1547-2018 grid interconnection

Every grid-connected solar system must comply with IEEE 1547-2018 (the standard for distributed-resource grid interconnection). The headline requirements:

Practical bid check: every inverter on a U.S. residential install should be UL 1741 SB listed (the "Supplement B" revision that covers IEEE 1547-2018 grid-supportive functions). Older UL 1741 SA listings are still grid-legal in many areas but won't pass interconnection in CA, HI, NV, or any state that has adopted 1547-2018 in its tariff.

Wind and snow load (ASCE 7-22)

Roof-mounted PV adds dead load (the panels) and changes the wind-load profile (uplift on tilted modules). The structural review must confirm the existing roof can carry the additional load and resist uplift in the local wind speed and snow design conditions.

Load typeTypical residential valueNotes
Module dead load3–5 lb/sq ftModules + racking. Trivial on most roofs but adds up on commercial ballasted systems.
Wind upliftLocal 3-second-gust wind speed per ASCE 7-22 mapsHigher in coastal hurricane zones, tornado-alley states, and exposed sites. Drives racking attachment density.
Snow load (Minnesota)35–50 psf ground snow load (most counties)Higher in northeast MN (Cook, Lake counties). Modules pivot easily through snow, but the drift load from snow piling against the array still applies.
Combined dead + snow + upliftPer ASCE 7 load combinationsEngineer's structural review documents the worst-case combination.

For commercial ballasted (non-penetrating) systems, the structural review also has to confirm that the ballast doesn't exceed the roof's allowable point loads. Some older roofs need spreader plates or alternative attachment methods.

Battery storage code (NEC 706, NFPA 855)

Energy storage systems have their own dedicated code chapter (NEC Article 706) and a fire-safety standard (NFPA 855). Key residential-relevant requirements:

Permits and structural review

Most PV installs require both an electrical permit and a building permit. Some jurisdictions have a streamlined "SolarAPP+" online permitting process for small residential systems; others still require a full plan review by the building department.

Code differences for commercial and agricultural systems

Most of the codes above apply to all roof-mounted PV regardless of building use, but a few residential-specific rules don't apply commercially:

Minnesota-specific code notes (2026)

How to verify your installer is code-compliant

⚠️ Common code-related red flags in solar bids: wall-to-wall panel coverage with no documented setbacks; "we'll figure out the rapid-shutdown method during install"; missing structural engineering review on a 25+ year roof; no permit or interconnection fees in the bid (these are not optional); inverter brand or model not listed (so you can't verify UL 1741 SB compliance). See solar proposal red flags.

Worried your bid skipped the code review?

Upload your solar proposal — the analyzer flags missing rapid-shutdown specs, undocumented setbacks, structural-review gaps, and inverter listings that don't match your state's adopted NEC cycle.

Analyze My Bid →

Frequently asked questions

Does my project need a structural engineer's stamp?

Usually yes. Some jurisdictions accept manufacturer engineering letters for typical residential installs. Most require a licensed PE stamp for commercial. The Authority Having Jurisdiction (AHJ) decides — ask your installer what their AHJ requires before you sign.

Can my installer skip the building permit on a small system?

Almost never legally. Some jurisdictions have streamlined permitting (SolarAPP+, online review) but full code compliance still applies. An installer offering "no-permit" work is a red flag — you'll have problems at home sale, with the utility, and with insurance.

What's the difference between MLPE and a PV Hazard Control System?

MLPE (microinverters or optimizers) puts power electronics at every module — the standard NEC 690.12 compliance path. A UL 3741 PV Hazard Control System achieves the same low-touch-voltage outcome at the array level without per-module electronics. UL 3741-listed products are reaching the market and may become a cost-effective alternative on commercial.

Why does my roof have to leave a 36" pathway? My panels would fit if I covered everything.

The pathway is for firefighter access and ventilation. Solar covers a roof's strongest path; without the pathway, firefighters can't safely walk the roof to vent during a fire. Code is non-negotiable on this.

Is the rapid-shutdown switch the same as the AC disconnect?

No. They're different devices, in different code sections, and serve different purposes. Rapid shutdown initiates module-level de-energization for firefighter access. The AC disconnect cuts the AC output to the home and grid. Both are required and both must be labeled.

How is my battery code-different from my solar?

Energy storage adds NEC Article 706 (battery-specific electrical) and NFPA 855 (fire safety, separation distances, aggregate capacity limits). Working clearances are the same, but battery placement is more restrictive — especially for indoor installs over 20 kWh aggregate.

What if my installer's design doesn't match what the inspector approves?

The inspector wins. Your contract should make it clear that any design changes required by the AHJ are the installer's responsibility and don't trigger change orders. Read the change-order language carefully — some bids try to push code-compliance changes onto the homeowner.