DIY Solar Wiring Guide: Wire Sizing, Fuses, and Grounding Explained
Meta Description: Complete DIY solar wiring guide covering wire gauge sizing, fuse selection, grounding requirements, DC vs AC wiring, NEC compliance, and common wiring mistakes to avoid.
Target Keywords: DIY solar wiring guide, solar wire size calculator, solar panel fuse sizing, solar system grounding, NEC solar wiring requirements, solar DC wiring
Wiring is where DIY solar projects go from “fun weekend project” to “this could burn my house down.” It’s the least glamorous part of a solar installation, but getting it wrong has the most serious consequences — fire, shock, equipment damage, and failed inspections.
This guide covers the essentials: how to size wires, where to put fuses, how to ground your system, and the mistakes that cause the most problems.
⚠️ Disclaimer: This guide is educational. Solar electrical work may require permits and licensed electrician sign-off in your jurisdiction. Always follow the National Electrical Code (NEC) and local codes. When in doubt, hire a licensed electrician for the final connections and inspection.
Table of Contents
- DC vs AC: Two Different Worlds
- Wire Sizing Fundamentals
- Wire Size Chart for Common Solar Scenarios
- Fuse and Breaker Selection
- Grounding Requirements
- Conduit and Wire Management
- Common Wiring Mistakes
- Wiring Diagrams
DC vs AC: Two Different Worlds {#dc-vs-ac}
Your solar system has two distinct wiring domains:
DC Side (Panels → Inverter/Charge Controller)
- Voltage: 30–500V DC depending on string configuration
- Current: 8–60A depending on panel count and wiring
- Wire type: PV Wire (USE-2 rated) for outdoor, THWN-2 for conduit runs
- DC is more dangerous than AC at the same voltage — DC arcs don’t self-extinguish like AC arcs do. A loose DC connection can start a fire.
AC Side (Inverter → Main Panel)
- Voltage: 120/240V AC (residential US)
- Current: 20–50A depending on inverter size
- Wire type: THWN-2, NM-B (Romex), or USE depending on location
- Standard residential electrical practices apply
Key rule: DC and AC wiring should never share the same conduit.
Wire Sizing Fundamentals {#wire-sizing}
Wire sizing is about two things: ampacity (the wire can safely carry the current without overheating) and voltage drop (the wire doesn’t waste too much power as heat over long runs).
Step 1: Determine Maximum Current
For panel strings:
- Maximum current = Isc (short circuit current) × 1.25 (NEC safety factor) × 1.25 (continuous duty factor)
- Example: Panel Isc = 13.5A → Design current = 13.5 × 1.25 × 1.25 = 21.1A
For battery circuits:
- Maximum current = Inverter continuous power ÷ Battery voltage
- Example: 5000W inverter ÷ 48V battery = 104A → Design current = 104 × 1.25 = 130A
For AC circuits:
- Maximum current = Inverter AC output ÷ (Voltage × Power Factor)
- Example: 5000W inverter at 240V = 20.8A → Design current = 20.8 × 1.25 = 26A
Step 2: Calculate Voltage Drop
Voltage drop should be under 3% for most runs, and under 2% for long runs. Higher voltage drop means wasted energy.
Formula:
Voltage Drop (%) = (2 × Length × Current × Resistance per foot) ÷ System Voltage × 100
Where:
- Length = one-way distance in feet
- Current = maximum operating current in amps
- Resistance = wire resistance per foot (from tables)
Step 3: Choose the Larger Wire
Calculate the minimum wire size for both ampacity AND voltage drop. Use whichever requires the larger (thicker) wire.
Wire Size Chart for Common Solar Scenarios {#wire-chart}
Panel String Wiring (DC)
| Scenario | Current (Isc × 1.56) | Distance | Min Wire Size |
|---|---|---|---|
| Single panel run | 17–21A | 10–30 ft | 10 AWG |
| 2-panel parallel | 34–42A | 10–30 ft | 8 AWG |
| Long roof run | 17–21A | 50–80 ft | 8 AWG |
| Ground mount (100ft) | 17–21A | 100 ft | 6 AWG |
Battery to Inverter (DC) — THE CRITICAL RUN
This is the highest-current run in your system. Undersizing here causes fires.
| Inverter Size | 48V Battery Current | Recommended Wire | Max Length |
|---|---|---|---|
| 3kW | 75A (design: 94A) | 2 AWG | 10 ft |
| 5kW | 115A (design: 144A) | 2/0 AWG | 10 ft |
| 8kW | 185A (design: 231A) | 4/0 AWG | 8 ft |
| 12kW | 275A (design: 344A) | 4/0 AWG parallel | 6 ft |
Keep battery-to-inverter runs as short as possible. Every foot of cable adds resistance and heat. Mount your inverter within 6 feet of your battery bank.
Inverter to Main Panel (AC)
| Inverter Output | Current (× 1.25) | Distance | Min Wire Size |
|---|---|---|---|
| 3kW (240V, 12.5A) | 15.6A | Up to 50 ft | 12 AWG (20A breaker) |
| 5kW (240V, 20.8A) | 26A | Up to 50 ft | 10 AWG (30A breaker) |
| 8kW (240V, 33.3A) | 41.6A | Up to 50 ft | 6 AWG (50A breaker) |
| 12kW (240V, 50A) | 62.5A | Up to 50 ft | 4 AWG (70A breaker) |
Fuse and Breaker Selection {#fuses}
Every current-carrying conductor needs overcurrent protection. No exceptions.
Panel String Fuses
- Rating: Panel Isc × 1.56 (NEC 690.9), rounded up to next standard fuse size
- Type: 15A or 20A DC-rated fuse in combiner box
- Example: Panel Isc 13.5A → 13.5 × 1.56 = 21A → use 25A fuse (next standard size up)
- Only needed when 3+ strings are paralleled. Two strings don’t require string fuses per NEC if the wire is rated for 2× Isc.
Battery Fuse (CRITICAL)
- Rating: Size for maximum inverter current draw + 25%
- Type: ANL or MEGA fuse, Class T fuse for highest protection
- Location: As close to battery positive terminal as physically possible (within 6 inches)
- Example: 5kW/48V inverter = 104A max → 104 × 1.25 = 130A → use 150A Class T fuse
> This is the most important fuse in your system. A short circuit in an unfused battery bank can deliver thousands of amps — enough to vaporize wire and start fires instantly. The battery fuse is your last line of defense.
DC Disconnect
- Required between panels and inverter
- Required between battery and inverter (sometimes combined with fuse)
- Must be rated for DC voltage and current (AC-rated disconnects are NOT safe for DC)
- Why DC-specific matters: DC arcs don’t cross zero like AC does. An AC-rated switch will arc and weld shut on DC circuits.
AC Breaker
- Standard residential breaker in your main panel
- Size matches your inverter AC output circuit design current
- Must include rapid shutdown capability (NEC 2020+ requirement for roof-mounted systems)
Grounding Requirements {#grounding}
Solar system grounding serves two purposes: equipment grounding (safety) and system grounding (functional).
Equipment Grounding
Every metal component that could become energized must be bonded to a grounding conductor:
- Panel frames → grounding lug → equipment grounding conductor (EGC)
- Racking/mounting rails → grounding lug → EGC
- Inverter chassis → EGC
- Combiner box enclosure → EGC
- Disconnect enclosure → EGC
Wire: Bare copper or green insulated, sized per NEC Table 250.122 (usually 8 AWG or 6 AWG for residential solar).
Grounding Electrode
Your solar system grounding must bond to your main electrical service grounding:
- Option 1: Run EGC directly to main panel ground bus bar
- Option 2: Bond to a separate ground rod connected to main panel ground (two rods, 6ft apart minimum)
Panel Grounding
Use WEEB (Washer, Electrical Equipment Bond) clips or dedicated grounding lugs on your racking system. Each panel frame must be grounded — many racking systems provide continuous grounding through the rails if properly installed with WEEB washers.
Conduit and Wire Management {#conduit}
Outdoor Runs
- PV Wire (USE-2): Rated for direct sunlight, wet locations, UV resistant. The standard for panel-to-combiner runs.
- EMT Conduit: Metallic conduit for runs along buildings. Provides physical protection and serves as equipment grounding conductor.
- PVC Conduit: For underground runs (schedule 40 minimum, schedule 80 where exposed above grade).
Wire Management Rules
- Support PV wire every 24 inches along the rack with UV-rated cable clips
- Leave service loops at each panel connection for maintenance access
- Separate DC and AC in different conduits or with maintained separation
- Label everything — each conductor, each disconnect, each combiner position. Your inspector will thank you. Future you will thank you more.
Underground Runs (Ground Mount to House)
- Minimum 18 inches deep in PVC conduit (24″ without conduit, per NEC)
- Use Schedule 80 PVC where conduit is exposed above grade
- Include a pull string for future wire additions
- Seal conduit entries to prevent water and rodent intrusion
Common Wiring Mistakes {#mistakes}
1. Undersized Battery Cables
The #1 cause of DIY solar fires. People use 10 AWG wire on a 48V/5kW battery circuit that draws 100A+. The wire heats up, insulation melts, and the battery bank provides unlimited current to the fault.
Fix: Use the battery wiring chart above. When in doubt, go one size larger.
2. AC-Rated Components on DC Circuits
AC disconnects, AC breakers, and AC-rated fuses are not safe for DC use. DC requires components specifically rated for DC voltage and current.
Fix: Check every component’s DC rating. If it only lists an AC rating, don’t use it on the DC side.
3. No Fuse at the Battery
“My inverter has built-in fusing” — maybe, but the wire between the battery and inverter doesn’t. A fault in that cable with no fuse = uncontrolled short circuit.
Fix: Install a Class T or ANL fuse within 6 inches of the battery positive terminal. Always.
4. Wrong Polarity (Reversed DC Connections)
Connecting panels or batteries backwards. Depending on your equipment, this can range from “nothing happens” to “magic smoke.”
Fix: Use a multimeter to verify polarity at every connection before energizing. Mark positive (red) and negative (black) clearly.
5. Exceeding Inverter Input Voltage
Wiring too many panels in series, especially without accounting for cold-weather Voc increase. When the voltage exceeds the inverter’s maximum input, the MPPT controller or input capacitors can be permanently damaged.
Fix: Calculate maximum Voc at your lowest expected temperature using the temperature coefficient. Stay 10% below the inverter’s maximum.
6. Poor MC4 Crimps
Using pliers instead of proper MC4 crimping tools. The connection looks fine but has high resistance. Over time, the resistive joint heats up, melts the connector, and can cause a fire.
Fix: Use a proper MC4 crimping tool ($40–80). Tug-test every connection. A properly crimped MC4 should hold firm under a strong pull.
7. No Rapid Shutdown
NEC 2020 requires rapid shutdown capability for roof-mounted solar. In an emergency, firefighters need to kill the DC voltage on your roof quickly.
Fix: Use module-level power electronics (microinverters or DC optimizers) or a dedicated rapid shutdown system. Some hybrid inverters have rapid shutdown built in — check the manual.
Wiring Diagrams {#diagrams}
Basic Hybrid System (6kW + Battery)
[Solar Panels] ──DC──→ [Combiner Box] ──DC──→ [DC Disconnect]
│
↓
[Battery Bank] ──DC──→ [Battery Fuse] ──DC──→ [Hybrid Inverter]
│
↓ AC
[AC Disconnect]
│
↓
[Main Panel]
│
↓
[Ground Rod]
Key Connection Points
- Panels to Combiner: PV Wire (10 AWG typical), MC4 connectors
- Combiner to DC Disconnect: PV Wire in conduit (10–8 AWG)
- DC Disconnect to Inverter: Short run (6–4 AWG depending on current)
- Battery to Fuse: Heavy gauge (2/0–4/0 AWG), as short as possible
- Fuse to Inverter: Same gauge as battery cables
- Inverter to AC Disconnect: THWN-2 (10–6 AWG depending on inverter size)
- AC Disconnect to Main Panel: Same as above, in conduit
- Grounding: 6 AWG bare copper throughout, bonded to main panel ground
Final Checklist Before Energizing
- [ ] All wire sizes verified against current and voltage drop calculations
- [ ] Battery fuse installed within 6 inches of positive terminal
- [ ] All DC components rated for DC voltage and current
- [ ] All connections torqued to manufacturer specification
- [ ] MC4 connectors properly crimped and tug-tested
- [ ] Polarity verified at every connection with multimeter
- [ ] Equipment grounding bonded throughout
- [ ] DC and AC disconnects accessible and labeled
- [ ] String voltage measured and matches expected Voc
- [ ] Battery voltage verified before connecting to inverter
- [ ] Permit obtained and inspection scheduled
Once everything checks out, energize in this order:
- Battery → Inverter (turn on inverter, verify it starts)
- Solar → Inverter (close DC disconnect, verify MPPT tracking)
- Inverter → Grid (close AC disconnect/breaker)
Related Guides
- The Real Cost of DIY Solar in 2026 — Full cost breakdown including wiring components
- LuxPower Inverter Setup Guide — Configure your inverter after wiring
- Solar Assistant Walkthrough — Monitor your system once it’s running
- Solar Panel Specifications Explained — Understand the panels you’re wiring
Questions about your solar wiring? Drop a comment below or check out our other solar guides
Affiliate Disclosure: Some links in this article are affiliate links. We may earn a small commission if you purchase through them, at no extra cost to you.
Recommended Wiring Components
- 10AWG Solar Extension Cable – Quality solar wire (50-100ft)
- MC4 Solar Connectors – Reliable connectors (multi-pair pack)
- Solar Crimping Tool Kit – Professional crimper
- ANL Fuse Holder Kit – Safety fuses
This article contains affiliate links. As an Amazon Associate, we earn from qualifying purchases at no cost to you.