Connecting solar panels to a battery and inverter is a job most homeowners can do themselves on a small off-grid or backup system. The wiring sequence matters. Done in the wrong order, you risk damaging equipment or creating a shock hazard. Done correctly, the whole system comes together in a logical chain: panels charge the battery through a charge controller, and the inverter draws from the battery to produce usable AC power.

This guide covers the correct connection sequence, what each component does, and the safety steps to take before you touch any wiring.

What You Need Before You Start

A basic off-grid solar setup has four components: solar panels, a charge controller, a battery bank, and an inverter. Each piece connects to the next in a specific order. You’ll also need appropriately sized DC cable, a fuse or circuit breaker between the battery and inverter, and basic hand tools.

Size your cable to the amperage each run will carry. Undersized wire gets hot and creates a fire risk. For the battery-to-inverter run especially, use heavy gauge cable (typically 2 AWG or larger for inverters above 1,000W) and keep the run as short as possible. Every foot of cable between your battery and inverter adds resistance and reduces efficiency.

Before doing any wiring, cover your solar panels or disconnect them from sunlight. A solar panel in sunlight is always generating voltage, and you need to eliminate that source before connecting it to anything.

Step 1: Connect the Battery to the Charge Controller

Always connect the battery first. This powers the charge controller and lets it initialize before anything else is connected. Most charge controllers have a display or indicator lights that confirm they’re receiving power from the battery. If the charge controller is already connected to the panels first, you risk damaging the unit or getting a false reading.

Connect the positive battery terminal to the battery positive input on the charge controller. Connect the negative terminal to the battery negative input. Observe polarity carefully. A reversed connection can fry the charge controller instantly, and most entry-level units have no reverse polarity protection.

Once connected, the charge controller should power on and display the current battery voltage. A 12V lead-acid battery at rest typically reads 12.6 to 12.8V when fully charged. A 24V system reads roughly double. If your charge controller has configurable settings (battery type, absorption voltage, float voltage), set those now before connecting the panels.

Step 2: Connect the Solar Panels to the Charge Controller

With the battery connected and the charge controller running, connect the solar panels. Run your panel cable (typically with MC4 connectors from the panels, terminating in bare wire or ring terminals at the charge controller) from the panels to the solar input terminals on the charge controller.

Again: positive to positive, negative to negative. Double-check before making the final connection. The panels are already shaded or covered, so no current is flowing yet. Make your connections, secure the terminals firmly, and then remove the panel covers or move the panels into sunlight.

The charge controller should immediately recognize the panel input and begin the charging cycle. Most modern MPPT controllers show panel voltage, panel current, and battery charging status on the display. If you see a zero-amp reading despite good sunlight, check your polarity and cable connections at both the panel and controller ends.

Step 3: Connect the Inverter to the Battery

The inverter connects directly to the battery, not to the charge controller. The charge controller manages power flow from the panels to the battery. The inverter is a separate load that draws from the battery to produce AC output.

Install a fuse or DC circuit breaker between the battery positive terminal and the inverter’s positive input. This is not optional. An inverter draws enormous current at startup and during heavy loads. A fuse protects the cable and battery in the event of a short circuit or inverter failure. Size the fuse to the maximum continuous current the inverter draws: for a 1,000W inverter on a 12V system, maximum current is roughly 100 amps (1,000W divided by 10, allowing for inverter inefficiency). Use a 125 to 150A fuse for this size inverter.

Keep the battery-to-inverter cable run as short as practical. Six inches to two feet is ideal. Long cable runs on the battery-to-inverter connection cause significant voltage drop under load, which reduces inverter efficiency and can trigger low-voltage shutdowns under heavy loads even when the battery is adequately charged.

Connect positive first (with the fuse installed), then negative. The inverter should power on when you press its power switch, and you can test AC output with a multimeter or by plugging in a small load.

The Correct Connection Order (and Why It Matters)

The safe sequence every time:

Battery to charge controller first. Then panels to charge controller. Then inverter to battery. When disconnecting, reverse the order: disconnect panels from charge controller, disconnect inverter from battery, then disconnect battery from charge controller last.

Never connect the panels directly to the inverter. Off-grid inverters are designed to draw from a battery, not directly from panels. Panel voltage can swing wildly with cloud cover and varies by temperature. Connecting panels straight to an inverter produces unstable power and will damage most inverters not specifically designed for direct panel input.

Never connect the panels to the charge controller before connecting the battery. Some charge controllers can be damaged by panel voltage appearing on their input terminals before they have a battery reference to calibrate against.

MPPT vs PWM Charge Controllers

The connection procedure is the same for both types, but they handle panel voltage differently. MPPT charge controllers extract more power from the panels by converting higher panel voltage down to the charging voltage. A 36V panel can charge a 12V battery efficiently through an MPPT controller. PWM controllers work at the battery voltage, so your panel voltage needs to be close to your battery voltage for efficient charging.

For most residential off-grid and backup setups installed today, MPPT is the right choice. The efficiency advantage (15-30% more power in non-ideal conditions) pays back the price premium quickly, and MPPT controllers handle panel strings with higher open-circuit voltage without issue.

Grounding

A properly installed solar system needs a grounding conductor connecting the panel frames, charge controller chassis, and inverter chassis to a ground rod driven into the earth. Grounding protects against lightning-induced surges and reduces shock risk from a fault in the system.

The grounding requirements for solar installations follow NEC Article 690 and vary by system voltage and configuration. For small 12V or 24V systems, a single 8-foot ground rod with 6 AWG copper wire bonded to all metal chassis and the battery negative bus is a common approach. Larger or higher-voltage systems require a more thorough grounding design.

Testing After Connection

Once everything is connected and the panels are in sunlight, check these readings before considering the system complete. Your charge controller should show panel voltage (open-circuit panel voltage minus a small drop), charging current flowing into the battery, and battery voltage. The inverter, when switched on, should produce AC voltage close to 120V (in the US) with no load and maintain it under a moderate test load.

If the charge controller shows panel voltage but zero charging current on a sunny day, the battery may already be fully charged (the controller stops charging at the float setpoint) or there’s a wiring issue. If the inverter produces the right voltage unloaded but shuts down under load, check your cable gauge and fuse size on the battery-to-inverter run. Voltage drop under load is the most common cause of this symptom.

Frequently Asked Questions

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

Connect battery to charge controller first. Then connect panels to charge controller. Then connect inverter to battery. This sequence lets the charge controller initialize with a battery reference before panel voltage appears, and keeps the inverter isolated until everything else is stable.

Can you connect solar panels directly to a battery without a charge controller?

You can, but you shouldn’t for any system you care about. Without a charge controller, panels will push voltage into the battery regardless of state of charge, leading to overcharging, battery damage, and potentially a swollen or venting battery. A charge controller is inexpensive insurance for your battery bank, which is the most expensive component in the system.

Can you connect solar panels directly to an inverter?

Not with a standard off-grid inverter. Inverters designed for battery systems expect stable DC input from a battery. Panel output fluctuates constantly with sun angle and cloud cover. Connecting panels directly to a battery-based inverter will produce unstable AC output and will damage most inverters. Some specialized grid-tie inverters are designed to connect directly to panels, but these are a different product entirely.

Do I need a fuse between the battery and inverter?

Yes, always. A fuse on the battery-to-inverter positive cable protects against cable fires in the event of a short circuit. Inverters can draw hundreds of amps during startup surges, and an unprotected cable that shorts out is a serious fire hazard. Size the fuse to 125% of the inverter’s maximum continuous current draw.

What cable size do I need to connect solar panels to a charge controller?

It depends on the amperage and cable length. For most residential panel setups with an MPPT controller, 10 AWG or 8 AWG handles runs up to 30-40 feet at typical panel current levels. The panel-to-controller run carries lower current than the battery-to-inverter run, so cable sizing is less critical there. Use a voltage drop calculator to confirm your gauge for your specific current and distance.

What is the difference between an MPPT and PWM charge controller?

MPPT controllers convert higher panel voltage down to the battery charging voltage, extracting more power from the panels, especially in cold weather and partial shading. PWM controllers simply connect and disconnect the panels as needed, which wastes potential power when panel voltage exceeds battery voltage. MPPT costs more but recovers 15-30% more energy and is worth it for any system with more than a couple of panels.

How far can the inverter be from the battery?

As close as possible. Every foot of cable between the battery and inverter adds resistance and causes voltage drop under load. For most residential inverters, the battery-to-inverter cable should be under 3 feet if possible, and rarely over 6 feet. Longer runs require heavier gauge cable to compensate, which gets expensive quickly. Design your system layout to keep these two components adjacent.

What safety precautions should I take before wiring a solar system?

Cover or disconnect your solar panels before starting any wiring. A panel in sunlight is always generating voltage and cannot be switched off. Use insulated tools, wear rubber-soled shoes, and work with one hand where possible to avoid creating a path for current across your body. Follow the correct connection sequence (battery first, panels second, inverter third) and install fuses before connecting the inverter. If you’re unsure about any step, consult an electrician familiar with DC solar systems.

Summing Up

The connection sequence for a solar panel, battery, and inverter system is straightforward once you understand why the order matters. Battery connects to charge controller first to give it a reference. Panels connect to charge controller second. Inverter connects directly to the battery with a fuse in the positive line. Keep cable runs short, size your wire for the current, ground the system properly, and test each stage before calling the job done.

If you’re considering a grid-tied solar installation for your home rather than an off-grid setup, call (855) 427-0058 or get a free local assessment to see what a professionally designed system would look like for your property.

Updated