Which codes actually apply to your solar project
| Code | What it covers | Where 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-22 | Wind, snow, and seismic loading calculations. | Referenced by IBC/IRC. |
| IEEE 1547-2018 | Grid interconnection requirements: anti-islanding, voltage and frequency ride-through, power quality. | Referenced by NEC and required by every utility. |
| UL 3741 | PV 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-SB | Inverter 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.
| Setback | Default dimension | Notes |
|---|---|---|
| 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 setback | 36 inches from any eave that doesn't have an alternative pathway | Not always required if other pathways are available; jurisdictions vary. |
| Hip and valley setback | 18 inches from any hip or valley with arrays on both sides | Preserves access to structural roof members. |
| Firefighter access pathway | 36 inches wide, on at least two roof planes | Continuous pathway from eave to ridge. |
| Smoke ventilation area | Required if total array exceeds the threshold — usually a 4×8' clear area near the ridge | Allows 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.
How installers comply (two paths):
- Module-Level Power Electronics (MLPE): Microinverters (Enphase IQ8) or DC power optimizers (SolarEdge, Tigo) at each module. The MLPE turns off in seconds when the rapid-shutdown initiator is activated, leaving only low-voltage conductors energized. This is the most common 2026 path on residential.
- Listed PV Hazard Control System (UL 3741): A whole-array system that maintains low touch-voltage everywhere on the roof without per-module electronics. Less common but cleaner for some commercial installs and a growing alternative as UL 3741-listed products reach the market.
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:
- Ground-mount systems: If conductors only enter a building used solely to house PV equipment (an inverter shed), rapid shutdown is not required. Once those conductors enter an occupied building, rapid shutdown applies.
- Non-enclosed structures: NEC 2023 explicitly excludes PV on open carports and similar non-enclosed structures from 690.12 because firefighters don't perform rooftop ventilation operations on them.
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.
| Dimension | Minimum | Notes |
|---|---|---|
| Depth in front of equipment | 36 inches (typically) | Measured from the face of the equipment. |
| Width | 30 inches or width of equipment, whichever is greater | Provides room to work without contortion. |
| Height (headroom) | 6 ft 6 in (78 inches) | Below this, you cannot install electrical service equipment. |
| Illumination | Required at all working spaces | For 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:
- PV system DC disconnect — located at the inverter or combiner.
- PV system AC disconnect — usually a service-entrance-rated load-break disconnect outside, near the main panel. Some utilities require a utility-accessible visible-blade disconnect.
- Battery system disconnect — required by NEC 706 for energy storage systems.
- Rapid shutdown initiator — clearly labeled per the standard placard.
- Service entrance equipment label — identifies the building as having a PV system and the location of disconnects for first responders.
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:
- Anti-islanding: The inverter must shut off within 2 seconds of detecting a grid outage to prevent backfeeding utility lines while linemen are working. Tested per UL 1741.
- Voltage and frequency ride-through: The inverter must stay online through brief grid disturbances (low-voltage ride-through, frequency ride-through) rather than tripping off at the first sign of trouble.
- Power quality: Limits on harmonic distortion, voltage flicker, and DC injection.
- Grid-supportive functions: Newer inverters can provide volt-VAR support, frequency-watt response, and reactive power on utility command. Required in CA Rule 21 jurisdictions; optional but increasingly utility-required elsewhere.
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 type | Typical residential value | Notes |
|---|---|---|
| Module dead load | 3–5 lb/sq ft | Modules + racking. Trivial on most roofs but adds up on commercial ballasted systems. |
| Wind uplift | Local 3-second-gust wind speed per ASCE 7-22 maps | Higher 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 + uplift | Per ASCE 7 load combinations | Engineer'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:
- Listed equipment: Batteries must be UL 9540 listed at the system level, with cell-level UL 1973 listings beneath.
- Working clearance: Same NEC 110.26 rules as other electrical equipment — 36" depth, 30" width, 6'6" height.
- Maximum aggregate capacity in a residential location: NFPA 855 limits residential indoor storage to 20 kWh per location (with some local variation). Larger banks must be in a detached garage, dedicated structure, or outdoor cabinet.
- Separation distances: Batteries must be separated from doors, windows, and combustible materials per NFPA 855 distance tables. Manufacturer-specific listings can reduce these distances.
- Smoke and heat detection: Required in the room containing batteries.
- Disconnects: Battery system requires its own labeled disconnect per NEC 706.7.
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.
- Electrical permit: Always required. Filed by the licensed electrical contractor.
- Building permit: Almost always required. Some jurisdictions waive it for systems below a certain weight per square foot, but most don't.
- Structural review: Required when adding meaningful dead load (most installs). Some installers self-certify with manufacturer engineering letters; others hire a licensed structural engineer for a stamped review.
- HOA approval: A separate matter from code, but some HOAs limit panel placement, color, and visibility from the street. Many states (including MN) have "solar access" laws that restrict how much an HOA can prohibit.
- Utility interconnection agreement: Filed separately with the utility. Includes net metering enrollment, meter swap (if needed), and the utility's witness inspection.
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:
- Larger fire setbacks: Commercial buildings often require larger fire access pathways and dedicated smoke vent areas, particularly on flat roofs.
- Structural review depth: Commercial structural review is almost always a full stamped engineering report rather than a manufacturer letter.
- Ballasted (non-penetrating) racking: Permitted on flat commercial roofs as long as ballast loads are within the roof's design capacity. Rare on residential.
- Battery aggregate limits: NFPA 855 commercial limits are higher but require a separate fire-rated battery room in many cases.
- Agricultural: Farm structures and accessory buildings sometimes fall under different occupancy classifications with relaxed setback rules — but the electrical code applies normally. Confirm with the local AHJ before relying on this.
Minnesota-specific code notes (2026)
- Electrical: Minnesota has adopted NEC 2023 effective July 1, 2024 (per the Minnesota State Electrical Code, MN Statute §326B.32). All residential and commercial PV in MN currently follows NEC 2023 with state-specific amendments.
- Building code: The Minnesota State Building Code is based on the IRC/IBC with state amendments. Roof setbacks default to IFC 605.11 with the dimensions described above.
- Snow load: Most MN counties have a 35–50 psf ground snow load. Northeastern MN (Cook, Lake, St. Louis counties) sees higher design loads. Confirm with the local AHJ.
- Solar access law: Minnesota Statute §500.30 restricts homeowner association covenants from unreasonably prohibiting solar — HOAs can regulate placement/aesthetics but not effectively ban solar.
- Licensing: All electrical work on solar must be performed by a Minnesota-licensed electrical contractor (verify at the Department of Labor & Industry).
How to verify your installer is code-compliant
- Ask which NEC cycle they're working under. The answer should be the cycle currently adopted in your state — if they say "NEC 2017" and your state is on 2023, that's a red flag.
- Ask for a code-compliance review on your specific design. Reputable installers can produce a single-line diagram that calls out 690.12 rapid shutdown, 110.26 working clearances, and 690.13/690.15 disconnects.
- Look for a plan set with stamped engineering. The structural and electrical drawings should bear a licensed engineer's stamp (PE) or be approved by your AHJ's plan reviewer.
- Confirm the inverter is UL 1741 SB listed. SB is the current revision required for IEEE 1547-2018 grid-supportive functions.
- Ask about the rapid-shutdown initiator location. It should be at or adjacent to the service entrance, clearly labeled, and operable without keys or tools.
- Look at the bid for grounding hardware. Module-grounding clips, racking-to-roof grounding, and bonding jumpers should all be itemized. If they're not, ask why.
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.