WHEN LIGHTNING COMES CLOSE

How Solar Panel Grounding And Surge Protection Keep You Safe

Energy Storage
Updated

Lightning Does Not Have To Hit Your Panels

A typical lightning flash carries about 300 million volts and about 30,000 amps. It heats the air to about 50,000 degrees Fahrenheit (about 27,800 °C), roughly five times hotter than the surface of the sun.

It doesn't even need to hit your roof. Lightning can strike up to 10 miles (about 16 km) from its storm. A strike nearby can push a sudden jolt of voltage into your solar wires.

That's where solar panel grounding comes in. It gives stray electricity a safe road into the earth, while surge protection catches the sudden jolts before they reach your expensive boxes.

What Solar Panel Grounding Actually Means

In everyday wiring talk, "ground" (the US word) and "earth" (the UK word) both mean a real connection to the soil, usually through a copper rod. Earth wires are green and yellow, though older or foreign gear may use plain green.

Grounding does three different jobs.

Equipment grounding. All the metal you could touch gets joined by a wire: panel frames, racking, the inverter case, the charge controller case and metal boxes. Electricians call it the "equipment grounding conductor". That's just a fancy name for an escape route for stray current.

If a live wire rubs through its insulation and touches a frame, the current rushes down that escape route instead of through your hand. The rush is big enough to blow the fuse or trip the breaker, so the power is cut.

System grounding. This means tying one current-carrying wire to ground on purpose: the DC negative, sometimes the DC positive, or the AC neutral. Some systems skip it and leave the wires "floating".

The earth electrode. That's the rod or plate in the soil.

Bonding The Panel Frames And Racking

"Bonding" means joining metal parts with a solid electrical connection, like lego bricks clicked into one piece. Victron, a big maker of off-grid inverters, says panel frames can be grounded near the array, or better, to the central ground. That also gives some protection against lightning.

The racking counts too. In the US, a rack may only carry the ground if it's listed for that job, or if jumpers join its separate sections. In Australia and New Zealand, AS/NZS 5033 expects the array frames to be bonded to the earth terminal of the switchboard the inverter connects to.

One Ground Bond, Not Two

This rule catches a lot of people. Each side of the system gets at most one bond between its current-carrying wires and ground: one on the DC side, one on the AC side, never two on the same side.

Morningstar, a charge controller maker, says there should be only one DC negative-to-ground bond in the whole system. A second bond can also stop ground-fault protection from seeing a fault.

Think of current as water from a hose running downhill. With one path, all of it flows past the safety gear that's watching. A second bond lets some of it sneak down another path, so the safety gear only sees part of it.

That's a "ground loop", and it can trip safety switches for nothing or hide a real fault.

Victron's off-grid advice is to ground close to the battery and make that the most reliable, visible ground connection in the system. The inverter and charge controller cases get grounded too, and a high-power generator goes to the same central ground.

The neutral-to-ground bond on the AC side

A residual current device (RCD) is a safety switch that notices current leaking out of a circuit, for example through a person. It cuts the power within 25 to 40 milliseconds.

An RCD only works when the AC neutral wire is tied to earth somewhere, and many off-grid inverters make that bond themselves. On Victron inverters of 1600 VA and up, the neutral is tied to the case, so grounding the case grounds the neutral too.

Victron's Multi and Quattro use a ground relay, a small switch inside. It closes when the inverter runs on its own and opens before outside AC power comes in. Turn it off, and a neutral-to-earth link has to be hard-wired elsewhere in the system, which is a job for an electrician.

So check your manual for where the bond already lives, and leave it at one. A double neutral-to-earth link makes RCDs trip for no reason.

And put the RCD after the inverter. Before it, the earth protection is gone whenever the inverter runs.

Floating or grounded DC?

In a floating system, no wire is tied to ground. Touching one wire gives the current no path through you, but touching both is still dangerous.

Your gear decides a lot here. Victron says not to ground the PV positive or negative on its solar charge controllers, because that causes ground currents. Its inverters do allow the battery positive or negative to be grounded, so check the manual of every box before you bond anything.

Solar Surge Protection: How An SPD Works

A surge protection device, or SPD, waits for a sudden spike of voltage. When one arrives, it sends the extra into the ground wire, like the overflow hole in a bathtub. So an SPD only works when its earth lead is connected to the equipment ground.

There are two main kinds. A Type 1 SPD is built for direct strikes, while a Type 2 SPD handles a strike nearby that pushes a surge into the wire loops of your array.

The names differ by country. US gear is rated under UL 1449 (Type 1, Type 2), while IEC-based countries use IEC 61643 (Class I and II, or T1 and T2).

SPDs have limits, though. A direct hit on the panels will likely damage the panels and the inverter anyway.

How an SPD sends a surge into the ground wireTwo pictures of the same DC line from the solar panels to the inverter, with a surge protection device, an SPD made for DC, joined to the line. Its earth lead runs to the equipment ground. On a normal day the power flows past to the inverter and the SPD waits. When a sudden spike of voltage arrives, for example from a strike nearby, the SPD sends the extra into the ground wire, like the overflow hole in a bathtub, before it reaches the inverter. It only works when its earth lead is connected to the equipment ground, and a direct hit on the panels will likely damage the panels and the inverter anyway.Normal daythe power goes past, the SPD waitsDCSolarpanelsInverterSPDmade for DCEarth lead to theequipment groundWaitsA sudden spikelike a bathtub's overflow holeDCSolarpanelsInverterSPDmade for DCEarth lead to theequipment groundStrike nearbyThe extra goesinto the groundCaught beforethe inverterA direct hit on the panels will likelydamage the panels and inverter anyway.
  • DC power (one line for the plus and minus pair)
  • Earth lead (ground wire)
  • Where the extra goes
One DC line and one SPD, as the article explains it. A Type 2 SPD handles a strike nearby; a Type 1 is built for direct strikes. A sketch, not a wiring plan: where each SPD goes, the AC side, fuses and the rest of the ground wiring are not shown.

Where Does A Surge Protection Device For Solar Panels Go?

A Littelfuse guide reprinted in IAEI Magazine, the electrical inspectors' magazine, says a Type 2 SPD should go on each MPPT charge controller and inside string inverters and array boxes. The length of your DC cable matters too:

  • DC cable under 10 metres (about 33 feet): one SPD near the inverter.
  • Over 10 metres: one near the inverter, plus one in a box near the panels.
  • DC SPDs fitted: add SPDs on the AC side too.
  • Inverter more than 30 metres (about 100 feet) from the combiner box, where the strings of panels meet: an extra DC SPD at the inverter input. That comes from the US lightning standard NFPA 780, as cited by IAEI.
Where the surge protection devices go: DC cable from the panels to the inverter under 10 m (about 33 ft)A sketch of where surge protection devices sit when the DC cable from the solar panels to the inverter is under 10 metres, about 33 feet: one SPD made for DC near the inverter, and, because DC SPDs are fitted, SPDs on the AC side too. Each SPD's earth lead runs to the equipment ground.DC cable from the panels to theinverter under 10 m (about 33ft)One SPD near the inverter. DC SPDsfitted: add SPDs on the AC side too.DC cableunder 10 mAC sideEquipmentgroundSPDmade for DC,near theinverterSPDAC side, withDC SPDs fittedSolarpanelsInverter
Where the surge protection devices go: DC cable from the panels to the inverter over 10 mA sketch of where surge protection devices sit when the DC cable is over 10 metres: one SPD made for DC near the inverter, plus one in a box near the panels, and SPDs on the AC side. Each SPD's earth lead runs to the equipment ground.DC cable from the panels to theinverter over 10 mOne SPD near the inverter, plus onein a box near the panels. DC SPDsfitted: add SPDs on the AC side too.DC cableover 10 mAC sideEquipmentgroundSPDmade for DC, ina box near thepanelsSPDmade for DC,near theinverterSPDAC side, withDC SPDs fittedSolarpanelsInverter
Where the surge protection devices go: Inverter more than 30 m (about 100 ft) from the combiner box, where the strings meetA sketch of where surge protection devices sit when the inverter is more than 30 metres, about 100 feet, from the combiner box, where the strings of panels meet: a DC SPD at the inverter end and, because DC SPDs are fitted, SPDs on the AC side. The text asks for an extra DC SPD at the inverter input, from the US lightning standard NFPA 780 as cited by IAEI, and does not say whether that is a second device or the same one near the inverter, so one is drawn. If the DC cable is also over 10 metres, the over-10-metre rule still asks for an SPD in a box near the panels. Each SPD's earth lead runs to the equipment ground.Inverter more than 30 m (about100 ft) from the combiner box,where the strings meetAn extra DC SPD at the inverter input(NFPA 780, as cited by IAEI). Thetext does not say whether that is asecond device or the same one nearthe inverter, so one is drawn. DCSPDs fitted: add SPDs on the AC sidetoo. If the DC cable is also over 10m, the over-10 m rule still asks foran SPD in a box near the panels (seethat tab).Combiner boxto inverterover 30 mAC sideEquipmentgroundDC SPDnear theinverter /extra one atthe inverterinputSPDAC side, withDC SPDs fittedSolarpanelsCombinerboxstrings meetInverter
  • DC cable from the panels, plus and minus as one line, arrow the way the power runs
  • AC side after the inverter
  • Earth lead from each SPD to the equipment ground: keep the wire to the busbar under 2.5 m (about 8 ft)
Where the Littelfuse guide in IAEI Magazine puts the SPDs, as the text lists them; it also wants a Type 2 SPD on each MPPT charge controller. A sketch of positions, not a wiring plan and not to scale: fuses, switches, the charge controller, the battery, bonds and ground wire sizes are not shown. The DC side needs SPDs made for DC with a high enough voltage rating (MCOV), and a direct hit on the panels will likely damage the panels and the inverter anyway. Call an electrician to choose your earthing system and ground rods.

Choosing the right SPD

  • Made for DC on the DC side. An AC SPD there is a hazard.
  • High enough voltage rating. Its MCOV, the highest voltage it can handle all day, must be at or above your PV system's maximum voltage.
  • Strong enough. It must withstand more short-circuit current than your strings can make.
  • Short leads. Keep the wire to the busbar under 2.5 metres (about 8 feet).

Keep The Wires Close Together

A nearby strike pushes current into any loop of wire, and a bigger loop picks up more. Run the plus wire down one side of the array and the minus back along the other, and you've made a giant hula hoop.

So keep wire loops small. The same guide also says to route AC, DC and data cables together with the bonding wires. Bundling cuts the surge but doesn't remove it, so you still need SPDs.

A big wire loop picks up more from a nearby strike than a small oneTwo drawings of the same solar panel array and its cables to the inverter, with lightning striking nearby. Left: the plus wire runs down one side of the array and the minus wire comes back along the other side, so the two wires enclose a big area, a giant hula hoop that picks up more voltage from the strike. Right: the plus and minus wires run close together, so the loop between them is small and picks up less. Bundling cuts the surge but does not remove it, so you still need SPDs.Big loopplus down one side, minus back the otherSolar panel arrayA giant hula hoop:picks up moreInverterLightningnearbySmall loopplus and minus run close togetherSolar panel arraySmall loop:picks up lessInverterLightningnearbyBundling cuts the surge but doesn'tremove it, so you still need SPDs.
  • Plus (+) wire
  • Minus (−) wire, dashed
  • The loop between the two wires
The same array and cable run twice, from the guide the article quotes. A sketch of the cable shape, not a wiring plan: how the panels are wired to each other, fuses, the SPDs, the ground wire and the AC and data cables are not shown.

A Solar Panel Grounding Diagram, In Words

The pieces often line up like this. Treat it as a sketch for your electrician, not a build plan.

  1. Panel frames and racking sections, bonded to each other.
  2. A ground wire from the array to the central ground point.
  3. The charge controller and inverter cases, each wired to that central ground.
  4. In Victron's off-grid layout, the central ground sits close to the battery.
  5. One DC bond, only if your system is grounded and your gear allows it.
  6. One neutral-to-ground bond on the AC side.
  7. SPDs at the inverter, and near the panels on a long run, with their earth leads on the equipment ground.
  8. The earth electrode on the central ground, if your local practice uses one.
Off-grid solar grounding diagramEvery ground wire runs to one central ground point; in Victron's off-grid layout it sits close to the battery. 1: the panel frames and racking sections are bonded to each other. 2: one ground wire runs from the array to the central ground point. 3: the charge controller case and the inverter case are each wired to the central ground. 4: in Victron's off-grid layout the central ground point sits close to the battery. 5: one DC bond from the battery side, only if your system is grounded and your gear allows it, drawn dotted. 6: one neutral-to-ground bond on the AC side, which many inverters make themselves, so check the manual. 7: SPDs at the inverter, and in a box near the panels when the DC run is over 10 metres, with their earth leads on the equipment ground. 8: the earth electrode on the central ground, if your local practice uses one. The main power cables are not drawn.Panel frames andrackingbonded to each otherSPD near the panelson a DC run over 10 mCharge controller caseBatteryone DC bond, only if yoursystem is grounded and yourgear allows itInverter caseAC side: oneneutral-to-ground bond,many inverters make itthemselves, check yourmanualSPD at the inverterearth lead on the equipmentgroundCentral ground point:close to the batteryin Victron's layoutEarth electrode, if your localpractice uses one
  • Ground wire
  • DC bond: only if your system is grounded
The numbers match the list above. Every ground wire meets at one central ground point; in Victron's off-grid layout it sits close to the battery. Each side gets at most one bond: one DC bond (only if your system is grounded and your gear allows it) and one neutral-to-ground bond on the AC side. The main power cables between the boxes are not shown, and wire sizes and ground rods are for your electrician to set. A sketch for your electrician, not a build plan.

For how the main power cables run between these boxes, see our guide to wiring the system.

What Size Grounding Wire Do Solar Panels Need?

There's no single number for everyone. The ground wire must be thick enough to carry the fault current until the fuse blows, with tight connections, and Victron says to follow your local rules for the size.

So it depends on your local code, your fuses and your system, and an electrician sets it. When they name a gauge, our AWG conversion chart shows what it means in square millimetres.

Do You Need A Ground Rod Off-Grid?

That depends on where you live. Practice differs by country: the NEC in the US, AS/NZS 5033 in Australia and New Zealand, and IEC-based rules such as BS 7671 in the UK. Installers even disagree about small off-grid systems, so ask your local electrician.

Vans And Boats

A van or a boat has no earth rod. Instead, you bond all the touchable metal together (chassis or hull, pipes, railings, engine), so it acts as a local earth.

A boat on shore power leans on the marina's earth, which is often unreliable on long cables. Once the system has an earth and a neutral-to-earth link, for example when the inverter makes one, it needs an RCD. Boat and van wiring has its own rules, so ask a marine or vehicle electrician.

What You Can Check, And When To Call An Electrician

You can check these by looking, without opening any box or touching any terminal. Solar panels make voltage whenever light hits them, so switching off does not make the panel wires safe:

  • Every frame, rail section and metal box has a ground wire attached.
  • The array cabling has no big loops of wire.
  • DC-side SPDs are made for DC and have short earth leads.
  • Your manuals say where the neutral-to-ground bond lives, and whether the PV side may be grounded.
  • The RCD sits after the inverter.

One classic mistake isn't on that list: trusting an RCD on an AC output that has no neutral-to-earth link (a floating output). It can't see leaks there.

Call an electrician to choose your earthing system and ground rods, size the ground wires, check that every connection is tight, and set up RCDs and ground-fault protection. Do the same for a 48 volt battery bank and for all solar panel wiring: Victron's guide only calls the DC side safe to touch at a nominal voltage of 28 volts or lower, with the inverter case grounded, and panel strings usually run higher than that.

Your local electrical code applies, and your electrician knows it.

Sources

Hard Words

TermWhat it means
Grounding (earthing)Connecting a system to the soil, so stray current has a safe road away.
Equipment grounding conductorThe wire that joins all touchable metal (frames, racking, cases) so a fault blows a fuse.
BondingJoining metal parts with a solid electrical connection, so they act as one piece.
Ground loopA second bond or second path to ground that splits the current and confuses the safety gear.
Neutral-to-ground bondThe one place where the AC neutral wire is tied to earth. An RCD needs it to work.
RCD (residual current device)A safety switch that cuts the power when current leaks out of a circuit, for example through a person.
Floating systemA system where no current-carrying wire is tied to ground.
SPD (surge protection device)A box that sends a sudden voltage spike into the ground wire before it reaches your gear.
MCOVThe highest voltage an SPD can handle all day without reacting. It must match your PV system.
Combiner boxThe box where several strings of solar panels join before the cable runs to the inverter.

Common Questions

Do solar panels need to be grounded?

The metal parts do. Panel frames, racking and the inverter and charge controller cases are joined to a ground wire, so a fault blows a fuse instead of making the metal live. Whether a current-carrying wire is also grounded depends on your equipment and your country, so check your manuals and ask a local electrician.

Do solar panels need a surge protector?

A surge protection guide reprinted by IAEI says yes: a Type 2 surge protection device should sit on each MPPT charge controller and inside string inverters and array boxes. It protects your gear from surges that a nearby lightning strike pushes into the wires. A direct hit on the panels will likely still damage the panels and inverter.

What size grounding wire do solar panels need?

There's no single size for everyone. The ground wire must be thick enough to carry the fault current until the fuse blows, and the exact size follows your local electrical code, your fuses and your system. An electrician sets it, and an AWG conversion chart helps you read the gauge they choose.

Do I need a ground rod for an off-grid solar system?

It depends on where you live. Practice differs by country, with the NEC in the US and AS/NZS 5033 in Australia and New Zealand, and installers disagree about small off-grid systems. How many rods you need and where they go is a decision for your local electrician, who knows your soil and your rules.

Can I have more than one ground bond?

Not on the same side. Keep one neutral-to-ground bond on the AC side and at most one DC negative-to-ground bond. A second bond splits the current, which can trip RCDs for no reason or stop ground-fault protection from catching a real fault. Check whether your inverter, generator or main panel already makes the bond before adding one.

Can I use an AC surge protector on the DC side?

No. The DC side needs an SPD made and rated for DC, because using the wrong type is a hazard. Its voltage rating (MCOV) must be at or above the maximum voltage of your PV system, and if you fit DC surge protection, the AC side needs SPDs too.

Where should the surge protector go?

Near the inverter at least. If the DC cable from the panels to the inverter is longer than 10 metres, add a second SPD in a box near the panels. Keep the lead from the SPD to the busbar under 2.5 metres, and connect its earth lead to the equipment ground.

On this page

Work it out