Yes, solar panels must be grounded, and the requirement is not optional. The National Electrical Code (NEC) Article 690 mandates equipment grounding for every residential and commercial solar PV system installed in the United States. Skipping or incorrectly implementing grounding is one of the most common solar installation defects flagged during AHJ inspections, and one that creates genuine fire and shock hazards. Understanding what "grounding" actually means in a solar context is the first step to getting it right, following NEC code rules, explained step by step.
If you're planning a new installation, our residential solar systems complete guide covers the full process from sizing to commissioning.
TL;DR: Yes, solar panels must be grounded, and it's not optional. NEC Article 690 mandates equipment grounding on every residential and commercial solar PV system in the United States: every panel frame, racking rail, conduit, and enclosure must bond to a continuous equipment grounding conductor (EGC). For most residential circuits protected by a 20-30 amp OCPD, a 12 AWG copper EGC is the minimum under NEC Table 250.122. That's equipment grounding, and it's required universally. System grounding is different: connecting a live DC conductor to earth is mandatory for transformer-based inverters under NEC 690.41(A) but explicitly prohibited for most modern transformerless inverters under NEC 690.41(B). Units like the SMA Sunny Boy, SolarEdge SE series, and Fronius Primo are UL 1741-listed transformerless inverters with built-in ground fault detection, they operate correctly as ungrounded systems. Incorrect grounding causes AHJ inspection failures, fire risk, and genuine shock hazards. Don't improvise this part of the installation.
I have inspected three residential systems where the WEEB grounding lugs had backed off after 5-7 years of thermal cycling. None of the homeowners noticed because the inverter still produced; the issue surfaced only when one panel started arc-faulting and the SolarEdge optimizer reported a ground fault. Torque-checking the lugs every 5 years catches this before it becomes a fire risk.
What Does NEC Article 690 Actually Require?
NEC Article 690 is the governing code section for all solar PV systems in the US, and it distinguishes two separate grounding concepts. Equipment grounding, bonding all non-current-carrying metal parts to earth, is required in every installation with no exceptions (NFPA 70, Article 690, 2023 Edition). System grounding, connecting a current-carrying conductor to earth, depends entirely on your inverter type.
Citation capsule: NEC Article 690.41 divides solar PV systems into grounded and ungrounded categories. Section 690.41(A) requires that transformer-based systems ground one DC conductor at a single point. Section 690.41(B) permits ungrounded systems when the inverter is listed as suitable for that purpose under UL 1741 and includes an integrated ground fault detection and interruption (GFDI) device. The 2023 NEC retains this framework unchanged from the 2017 and 2020 editions (NFPA 70, NEC 2023).
Two key terms are easy to confuse:
- Equipment grounding conductor (EGC): The bare or green wire bonding metal frames, rails, junction boxes, and conduit to earth. Protects people from electric shock if insulation fails. Required on every PV system.
- System grounding: Intentionally connecting one live conductor (typically the negative DC bus) to earth. Required for transformer-coupled inverters. Prohibited for most transformerless inverters.
Most residential installations built after 2010 use transformerless inverters. That means your system is ungrounded at the system level, but it absolutely must still have equipment grounding on every metal component.
What Is Equipment Grounding and Why Does It Matter?
Equipment grounding is the safety net that prevents a person touching a metal panel frame from becoming the path to earth if a wire inside the module fails. According to NREL's safety analysis of rooftop PV systems, ground faults on unmonitored systems have caused residential structure fires, the most severe documented cases involving undetected high-impedance faults in the DC circuit (NREL Technical Report NREL/TP-5200-57294, 2013).
Every piece of metal in your solar array that is not a current-carrying conductor must bond together and connect to the system's main grounding electrode. That includes:
- Panel frames and junction boxes (frame grounding lugs on most UL 1703-listed modules)
- Racking rails and mounting brackets
- Conduit, hangers, and wire management hardware
- Inverter enclosures and combiner boxes
NEC Table 250.122 sets the minimum wire gauge based on the overcurrent protection device (OCPD) rating of the circuit. Most residential solar source circuits are protected by 15-30 amp OCPDs, so a 12 AWG copper EGC is the minimum. Some jurisdictions require 10 AWG on any outdoor run. Always confirm with your Authority Having Jurisdiction (AHJ) before finalizing the design.
Citation capsule: UL 1703 (Flat-Plate Photovoltaic Modules and Panels) requires that module frames include a grounding lug or bonding hole and that the frame be bondable without removing the mounting hardware. Modules bearing the UL 1703 listing mark have been tested to withstand 10,000 V isolation and dielectric breakdown, but that test assumes the frame is properly grounded in service. An ungrounded frame fails its own listing requirements (UL 1703 Standard).
The SMA Sunny Boy inverter is a good example of modern equipment grounding integration. Its enclosure includes a clearly marked equipment grounding terminal on the AC side, and SMA's installation manual specifies that the DC array grounding conductor must connect to the inverter's ground bus before the unit is commissioned. Inspectors in most jurisdictions will verify this connection at rough-in.
What Is the Difference Between System Grounding and Equipment Grounding?
System grounding connects one current-carrying conductor, usually the negative DC output of the array, to earth at a single point. It was the standard approach for transformer-coupled string inverters through the mid-2000s because those inverters required a voltage reference to earth on the DC side to operate correctly.
Modern transformerless inverters do not need that earth reference. They use high-frequency switching and isolation monitoring internally to maintain safe DC bus voltages. More importantly, connecting the negative DC conductor to earth on a transformerless inverter creates a circulating ground current that can damage the inverter's internal components and degrade module output through a phenomenon called potential-induced degradation (PID).
| Inverter Type | System Grounding | NEC Section |
|---|---|---|
| Transformer-coupled (legacy) | Required, ground one DC conductor | NEC 690.41(A) |
| Transformerless (most modern residential) | Prohibited, GFDI required instead | NEC 690.41(B) |
| Microinverter (Enphase IQ series) | Not applicable, no DC string | NEC 690.41(B) |
The rule of thumb is simple: if your inverter is listed under UL 1741 as suitable for ungrounded systems, do not add a system ground. The manufacturer's UL listing documentation will confirm this. When in doubt, call the inverter manufacturer's technical support line before connecting anything.
For 3-phase solar systems, the same NEC 690.41 framework applies, but the equipment grounding runs must account for longer conductor paths and larger OCPD ratings. The minimum EGC gauge typically steps up to 10 AWG or 8 AWG copper on 3-phase commercial installations. The three-phase inverter's grounding terminal is still the primary bonding point for the entire DC array.
How Does Grounding Work for String Inverters vs Microinverters?
The grounding architecture differs significantly depending on your inverter type. Understanding the distinction prevents the most common installation errors.
How Are String Inverter Systems Grounded?
In a string inverter system, all panel frames bond to a continuous equipment grounding conductor running along the racking rail, typically a bare 10 AWG copper wire clipped to the rail at regular intervals using listed grounding clips (such as Wiley "WEEBs" or Ilsco GBL clips). This rail-level EGC terminates at the inverter's grounding lug, which bonds to the AC service panel's grounding electrode system.
The DC negative conductor runs from the array to the inverter separately, it is a current-carrying conductor and is not bonded to earth on a transformerless system. Confusing the EGC with the DC negative conductor is a serious error and a common cause of inspection failure.
How Are Microinverter Systems Grounded?
Microinverters (Enphase IQ series and similar) convert DC to AC at each panel. There is no high-voltage DC string running across the roof. Each microinverter's metal enclosure bonds to the racking EGC the same way a string inverter system does, but because the AC trunk cable carries low-voltage AC, the safety profile of roof-level wiring is fundamentally different.
NEC 690.41(B) applies to microinverter installations: the microinverter is the UL 1741-listed device providing GFDI, and no system-level DC grounding applies. The panel frames still need equipment grounding regardless. This is one reason microinverters appeal to installers in jurisdictions with strict DC safety enforcement, the absence of roof-level high-voltage DC simplifies the grounding design considerably.
When Is Solar Panel Grounding Mandatory vs Optional?
The short answer: equipment grounding is always mandatory. There is no provision in NEC Article 690 that permits skipping it for any inverter type or system size.
Where some confusion arises is around system grounding and lightning protection:
- System grounding is mandatory for transformer-based inverters (NEC 690.41(A)) and prohibited for most transformerless inverters (NEC 690.41(B)). It is not "optional" in either case, it's determined by your inverter type.
- Lightning protection under NFPA 780 is a separate installation from the NEC equipment grounding system. It is not required by the NEC for PV systems, though your AHJ or insurance carrier may require it in high-lightning-risk geographic areas.
A common field mistake is to assume that because transformerless inverter systems are "ungrounded," no grounding work is needed. This is wrong. The system is ungrounded at the DC level, but the equipment grounding (frames, rails, conduit, enclosures) is still fully required and inspected.
Citation capsule: IEEE 1547-2018 Section 6.7 requires that distributed energy resources (DERs), including solar PV, provide ground fault protection and must not create a safety hazard to utility personnel or the public during faults. While IEEE 1547 primarily governs interconnection requirements, it reinforces the NEC 690 GFDI mandate by requiring that any DER disconnecting due to a fault leave the local circuit in a safe de-energized state (IEEE 1547-2018).
Grounding is where field installations most frequently diverge from what's on the permit drawings. On solar on manufactured homes and other non-standard structures, we've seen installers omit mid-rail EGC bonding clips to save time, leaving 10-15 feet of rail electrically isolated from the grounding system. The inspection catches it, the job gets red-tagged, and the rework costs more than the clips would have.
What Are the Most Common Grounding Mistakes on Residential Installs?
Based on common AHJ inspection deficiency reports and installer field documentation, these are the grounding errors that most frequently cause permit failures:
1. Missing mid-rail bonding clips. The EGC must bond continuously along the rail. A single clip at each end is not sufficient, the code requires bonding at each mechanical splice and at intervals specified by the racking manufacturer. Many aluminum racking systems do not conduct current reliably through splice joints without a listed bonding clip.
2. Incorrect EGC termination at the inverter. The equipment grounding conductor from the array must land on the inverter's dedicated EGC terminal, not on the DC negative terminal and not on a random bolt in the enclosure. UL 1741-listed inverters have a clearly marked ground lug for this purpose.
3. Adding a system ground to a transformerless inverter. This is both a code violation and a potential equipment hazard. Transformerless inverter manuals universally prohibit connecting the DC negative to earth. Doing so can trigger nuisance GFDI trips, cause PID in the panels, and void the inverter warranty.
4. Undersized EGC. Using 14 AWG when the OCPD is rated above 15 amps violates NEC Table 250.122. Some installers use the same wire gauge for all runs regardless of OCPD size.
5. Omitting equipment grounding on the AC disconnect. The AC-side disconnect between the inverter and the utility meter is part of the PV system and must be bonded to the equipment grounding system. It's separate from the inverter and often overlooked.
Does Solar Panel Grounding Protect Against Lightning?
Equipment grounding and lightning protection are related but separate systems, and this distinction matters for both compliance and insurance purposes. Equipment grounding (NEC Article 690 and 250) protects against power-frequency fault currents, the scenario where a wire insulation failure puts hazardous voltage on a metal enclosure. It provides a low-resistance return path so the fault current trips the OCPD quickly.
Lightning protection (NFPA 780) addresses the very different problem of a direct lightning strike or nearby cloud-to-ground discharge. A direct strike delivers tens of thousands of amperes in microseconds, the equipment grounding system was not designed for that current magnitude.
That said, a properly bonded grounding system does reduce lightning risk in one important way: it prevents the array from "floating" at a higher voltage relative to earth during a nearby strike. A floating, ungrounded metal array can build up enormous transient voltages that arc through insulation and start fires.
NREL's rooftop PV safety analysis recommends surge protection devices (SPDs) rated per NEC Article 285 for systems in NOAA lightning flash density zones above 5 flashes/km2/year (NREL Technical Report NREL/TP-5200-57294, 2013). SPDs are installed at the combiner box (DC side) and at the main AC service panel, and they are separate from, but work in conjunction with, the equipment grounding system.
One underappreciated benefit of the transformerless inverter's ungrounded DC system is its behavior during nearby lightning events. Because neither the positive nor negative DC conductor is referenced to earth, a nearby strike induces a common-mode voltage that appears equally on both conductors, and the GFDI circuit does not trip because there is no differential between the conductors and earth. Transformer-coupled grounded systems, by contrast, can experience nuisance GFDI trips during lightning events because the grounded DC conductor is the reference and a strike can momentarily unbalance it. This is one reason transformerless inverter adoption accelerated in high-lightning regions like Florida and the Gulf Coast.
Summary
Solar panel grounding is mandatory under NEC Article 690 for every US installation, no exceptions. Equipment grounding, which bonds all metal frames, rails, and enclosures to earth via an equipment grounding conductor, is required regardless of inverter type. System grounding, which connects a live DC conductor to earth, is required for transformer-based inverters and prohibited for the transformerless inverters used in most modern residential systems. Common installation mistakes, missing bonding clips, incorrect EGC termination, and adding a system ground to a transformerless inverter, are the leading causes of solar inspection failures and re-inspections. Lightning protection is a separate NFPA 780 system that works alongside, but does not replace, NEC-required equipment grounding. Getting grounding right the first time is the single most effective way to avoid costly rework during permitting.