Connecting solar panels to a battery and inverter follows a specific sequence: panels to charge controller, charge controller to battery bank, and battery bank to inverter. Getting the order right matters because each component in the chain has polarity and voltage requirements that, if ignored, can damage equipment or create a fire hazard. This guide covers the complete connection process for an off-grid or battery-backup solar system — from wire sizing and fuse placement to the final inverter hookup.

Solar photovoltaic cells

System Overview: How the Components Connect

A battery-based solar system has four core components connected in series:

1. Solar panels generate DC electricity when exposed to sunlight. Depending on how you wire them, they produce either higher voltage (series wiring) or higher current (parallel wiring).

2. Charge controller sits between the panels and the battery. It regulates the charging current and voltage to protect the battery from overcharging. MPPT (Maximum Power Point Tracking) controllers are more efficient; PWM (Pulse Width Modulation) controllers are cheaper and work for smaller systems.

3. Battery bank stores the DC electricity the panels generate. Common battery types include lead-acid (flooded, AGM, gel) and lithium iron phosphate (LiFePO4). The battery bank powers your loads during low-light periods and overnight.

4. Inverter converts stored DC power from the battery into AC electricity for standard appliances. Pure sine wave inverters are required for sensitive electronics; modified sine wave inverters work for simpler loads like lights and power tools.

The connection order is always: Panels → Charge Controller → Battery → Inverter → AC loads. Connecting in any other order risks equipment damage.

Step 1: Wire the Solar Panels

Before connecting anything to the charge controller, decide how to wire your panels — series, parallel, or series-parallel.

Series Wiring (Higher Voltage)

Connect the positive terminal of one panel to the negative terminal of the next. Voltage adds with each panel while current stays the same. For example, three 40 V / 10 A panels wired in series produce 120 V at 10 A. Series wiring is preferred for MPPT controllers because higher voltage improves efficiency and allows longer wire runs with less voltage drop.

Parallel Wiring (Higher Current)

Connect all positive terminals together and all negative terminals together. Current adds while voltage stays the same. Three 40 V / 10 A panels wired in parallel produce 40 V at 30 A. Parallel wiring requires thicker wire to handle the higher current and is typically used with PWM controllers or when system voltage must stay at 12V or 24V.

Series-Parallel Wiring

Combine both methods — wire groups of panels in series, then connect the groups in parallel. This balances voltage and current for larger arrays. For example, two strings of three 40 V panels in series (120 V per string) connected in parallel gives 120 V at 20 A combined.

Wire sizing for the panel array: Use copper wire rated for the calculated amperage plus a 25% safety margin. Standard residential solar uses 10 AWG for most panel runs. Larger arrays or longer runs may require 8 or 6 AWG. Use UV-rated PV wire for any outdoor runs — standard electrical wire degrades in sunlight.

Solar panels on roof

Step 2: Connect Panels to the Charge Controller

Before making any connections, verify the charge controller’s maximum input voltage and current ratings match your panel array output. Exceeding these limits permanently damages MPPT controllers.

Connection steps:

  1. Disconnect all panels from each other temporarily if working with an existing array. Cover panels with an opaque tarp to stop power generation — panels are always producing voltage in daylight and cannot be switched off.
  2. Connect the charge controller to the battery first (before connecting panels). Most MPPT controllers require battery power to initialize their control circuits. Connect the positive battery terminal to the charge controller’s battery positive terminal, and negative to negative. Include an inline fuse rated at 125–150% of the controller’s maximum charge current, placed within 18 inches of the battery positive terminal.
  3. Connect the panel wiring to the charge controller’s PV input terminals. Match polarity carefully — positive to positive, negative to negative. Double-check with a multimeter before connecting if there’s any doubt.
  4. Confirm the controller recognizes the array via its display or indicator lights before restoring panel power (if covered).

Fuse sizing between panels and charge controller: Use a fuse rated for the maximum PV short-circuit current (Isc) × 1.25 × 1.25 (NEC double factor for continuous solar loads). For a 20 A Isc array, the fuse should be at least 31 A. Most installers round up to the next standard fuse size (30 or 40 A).

Step 3: Connect the Battery Bank

Battery connections carry the highest current in the system. Incorrect wiring or poor connections here cause most solar installation failures.

Battery Bank Sizing

Battery capacity is rated in amp-hours (Ah) or kilowatt-hours (kWh). For a 12V / 200 Ah battery bank: 12V × 200 Ah = 2.4 kWh total. Lithium (LiFePO4) batteries can typically discharge to 80–90% depth of discharge (DoD). Lead-acid batteries should not exceed 50% DoD without significant lifespan reduction. A 200 Ah lithium bank provides roughly 1.9 kWh of usable energy; a 200 Ah lead-acid bank provides about 1.2 kWh usable.

Wiring Multiple Batteries

Multiple batteries can be wired in series (increase voltage), parallel (increase capacity), or series-parallel (increase both). For a 24V system from two 12V batteries: wire them in series. For more capacity at 12V: wire them in parallel. Always use identically-rated batteries from the same manufacturer and production batch when connecting multiple units.

Cable Sizing for Battery Connections

Battery cables carry the full system current and must be adequately sized. A 2,000 W inverter drawing from a 12V battery requires up to 166 A — which demands 2/0 AWG welding cable or equivalent. Use the shortest possible runs between battery and inverter to minimize resistance losses. Include a main fuse or circuit breaker rated for 125% of maximum current within 18 inches of the battery positive terminal.

Sun on solar panels

Step 4: Connect the Inverter

The inverter connects directly to the battery bank — not to the charge controller or panels. It draws DC from the batteries and outputs AC.

  1. Size the inverter for your peak load. If your largest single load is a 1,500 W microwave, your inverter must handle at least 1,500 W continuous, plus headroom for startup surges. A 2,000–2,500 W inverter is typical for a small off-grid cabin; a whole-home backup system may require 5,000–10,000 W.
  2. Connect inverter positive to battery positive and negative to negative using correctly-sized cable. Install a fuse or DC circuit breaker between battery positive and inverter positive — sized to the inverter’s maximum input current (check the spec sheet; typically 1.25× the rated input amperage).
  3. Ground the inverter chassis to the system ground and, where required, to the building’s grounding electrode system. Proper grounding prevents shock hazards and is required by NEC Article 690 for grid-tied and Article 710 for standalone systems.
  4. Turn on the inverter only after all DC connections are secure. Never connect or disconnect DC cables under load.

Safety: Fuses, Breakers, and Grounding

A properly protected solar system includes fusing or breakers at three points:

  • PV-to-controller fuse: Protects the wiring between panels and charge controller from overcurrent.
  • Controller-to-battery fuse: Protects the charge controller’s output circuit.
  • Battery-to-inverter fuse: The most critical protection — protects against a catastrophic short circuit in the highest-current part of the system. This fuse must blow before the wiring can overheat.

Use class T fuses or ANL fuses for high-current battery connections. Standard automotive blade fuses are not rated for the DC voltages and sustained currents in solar systems. Install a battery disconnect switch on the positive conductor between battery and inverter for safe maintenance shutdowns.

Grounding: All metal enclosures, charge controllers, inverters, and panel frames should be bonded to a common ground bus. In a residential installation, that ground bus connects to the building’s grounding electrode. In a mobile installation (RV, van), bond to the vehicle chassis.

Tools and Materials Needed

  • Multimeter (DC volts/amps measurement)
  • Wire stripper and crimper for MC4 connectors (panel wiring) and ring terminals (battery/inverter)
  • Appropriate wire: 10 AWG PV wire for panels, 4–2/0 AWG welding cable or battery cable for battery/inverter runs
  • ANL or class T fuse holder with correctly-rated fuses
  • DC circuit breaker (optional but cleaner than a fuse for battery disconnect)
  • MC4 connectors and MC4 tool (for panel-side connections)
  • Cable ties, conduit, and mounting hardware

When to Hire a Professional

DIY battery-based solar systems are legal in most US jurisdictions for off-grid applications. Grid-connected systems — including battery systems that interact with the utility grid — require licensed electrician involvement and utility approval in all 50 states. Even for off-grid systems, consider hiring a NABCEP-certified solar installer if:

  • Your system exceeds 2–3 kW in capacity
  • The battery bank operates at 48V or higher
  • Wiring must pass a building inspection (required for permitted structures)
  • You’re uncertain about any connection or safety requirement

Incorrect connections in a battery-based system can cause fires, equipment destruction, or serious injury. The cost of a professional installation review is small compared to the cost of a mistake.

Frequently Asked Questions

What order do you connect solar panels to a battery and inverter?

Always connect in this order: (1) charge controller to battery first, (2) panels to charge controller second, (3) inverter to battery last. This sequence ensures the charge controller initializes properly and prevents voltage spikes from an unloaded panel array reaching the controller or inverter. Never connect panels to a charge controller before the battery is connected.

Do I need a charge controller between solar panels and a battery?

Yes, in nearly all cases. Without a charge controller, solar panels will overcharge a battery once it’s full — damaging the battery and potentially causing swelling, leakage, or fire. The only exception is a very small trickle-charging setup (a 1–5 W panel charging a large battery) where the charging current is so low it can’t realistically overcharge the battery. Any practical solar charging setup requires a charge controller.

Can I connect solar panels directly to an inverter without a battery?

Most inverters are designed for battery input, not direct panel input — they need a stable DC voltage, which panels don’t provide. Some specialized “grid-tie” inverters connect directly to panels without batteries, but these require a utility grid connection and are a different product category. For off-grid use, you need batteries between panels and inverter.

What wire size do I need to connect a battery to an inverter?

Wire size depends on inverter wattage and battery voltage. A 2,000 W / 12V inverter draws up to 167 A — requiring 2/0 AWG copper cable for runs under 3 feet. A 2,000 W / 24V inverter draws half the current (83 A) and can use 4 AWG for short runs. Always check the inverter manufacturer’s wire gauge recommendation in the spec sheet for your specific model and cable length.

How do I wire solar panels in series vs parallel?

Series wiring: connect positive of one panel to negative of the next panel across the string. The string’s open-circuit voltage (Voc) multiplies by the number of panels; current stays the same. Parallel wiring: connect all positive terminals together and all negative terminals together. Current multiplies; voltage stays the same. Series is preferred for MPPT controllers; parallel is used when system voltage must remain fixed or with PWM controllers.

Where does the fuse go in a solar system?

Fuses go between the positive terminal of the battery and every component drawing from it — charge controller, inverter, and any DC loads. The fuse must be placed within 18 inches of the battery positive terminal on the positive conductor. This placement ensures the fuse protects the entire wire run from a short circuit. Never place fuses on the negative conductor only.

Is it safe to connect a solar battery system myself?

Small off-grid systems (under 2 kW) can be safely DIY’d with careful attention to wire sizing, fusing, and grounding. For anything larger, or any system that connects to the grid, hire a licensed electrician or NABCEP-certified solar installer. Battery-based systems operate at voltages and currents that can cause severe injury or fire if improperly wired. The NEC (National Electrical Code) Articles 690 and 710 provide the required standards — review them before starting.

Summing Up

Connecting solar panels to a battery and inverter follows a straightforward sequence — panels to charge controller, controller to battery, battery to inverter — but each connection requires correctly-sized wire, properly-rated fuses, and careful attention to polarity. The most common mistakes are undersized battery cables, missing fuses, and connecting panels before the battery. Get these right and a battery-based solar system is both reliable and safe.

If you’re planning a residential or commercial solar-plus-battery installation and want professional design and installation, qualified installers can handle everything from system sizing to permitting and interconnection. Call (855) 427-0058 for a free consultation with a NABCEP-certified solar installer serving all 50 states.

Updated