How to Hook Up Solar Panels to Batteries: An Installer's Guide

PES Supply, a PES Global Group Company
· 14 min read Reviewed by PES Supply editorial team
Solar charge controller and battery bank wired to a small off-grid solar array

Table of Contents

    Wiring solar panels to a battery bank isn't plug-and-play; it's a critical sequence. For solar installers, EPCs, and project developers, getting this connection right means a safe, efficient, NEC-compliant system. Getting it wrong risks damaged equipment, costly callbacks, and significant safety hazards.

     

    This guide provides a field-tested, no-fluff framework for the entire process. The operational flow is always: Panels > Charge Controller > Batteries > Inverter > AC Loads. Mastering this sequence ensures the raw energy from the sun is captured safely, stored properly, and converted into clean, reliable power for your client's home or facility. We'll cover system sizing, component selection with real brands like Sungrow and FranklinWH, NEC-compliant wiring, and commissioning best practices to avoid common, costly mistakes.


    Understanding Your Core Solar Components

     

     

    A technician inspecting solar panels on a rooftop, symbolizing the first step in setting up a solar energy system.

     

     

    Before a single wire is cut, a solid plan is essential. A reliable solar and battery setup depends on four main components functioning as a cohesive system. Knowing what each one does is crucial for sourcing the right equipment and avoiding mismatches that can kill a project budget and timeline.

    This isn't a niche market anymore. The U.S. energy storage sector is seeing explosive growth, driven by grid instability and incentives like the IRA. This surge underscores how critical reliable, properly installed energy storage has become for residential and commercial projects alike.

    The Four Pillars of Your System


    Think of your system as a team with four key players. Sourcing a high-performing, compatible team is the first step to a successful installation.

     

     

    • Solar Panels (The Generators): These are the workhorses turning sunlight into direct current (DC) electricity. The wattage, efficiency, and voltage (Voc) of your panels determine how fast you can charge your battery bank.
    • Batteries (The Reservoir): This is the energy bank where power is stored until needed. For most residential systems, a 48V battery bank offers a balance of performance and safety. Tier-1 brands like BYD and FranklinWH are common specifications for their reliability and UL listing.
    • Charge Controller (The Gatekeeper): This is the brains of the DC side, sitting between your panels and batteries to manage voltage and current. Its primary job is to prevent overcharging, which destroys expensive batteries and violates warranty conditions. MPPT controllers are the standard for efficiency.
    • Inverter (The Translator): Panels generate DC, and batteries store DC, but buildings run on alternating current (AC). The inverter converts that stored DC energy into usable AC power. Smart, communicating pairings, like a Sungrow hybrid inverter with BYD batteries, optimize performance and simplify commissioning.

    Essential Components and Their Functions

     

     

    This table breaks down the role of each component for quick reference during the specification and procurement phases.

     

    Component Primary Function Key Specification to Check Example Brands
    Solar Panels Convert sunlight into DC electricity. Wattage (Wp), Efficiency (%), Voltage (Voc) JA Solar, Jinko Solar
    Charge Controller Regulates power from panels to batteries to prevent overcharging. Max Input Voltage (V), Amperage (A) Victron Energy, EPEVER
    Batteries Store DC energy for later use. Voltage (V), Capacity (Ah or kWh) BYD, FranklinWH, Enphase
    Inverter Converts stored DC power from batteries into usable AC power for appliances. Continuous Wattage (W), Voltage (V) Sungrow, Sol-Ark, SMA

     

     

    Understanding each component's role is step one. While simple applications might use integrated solutions like internal solar light kits, any custom system requires deep knowledge of these individual parts to ensure performance and compliance.


    Sizing Your System for Real-World Demands


    Guesswork is the enemy of a reliable solar installation. Forget theoretical maximums. The first step that makes or breaks your system is sizing it based on the client's actual, real-world energy consumption.

    This begins with a detailed load analysis—an inventory of every appliance, light, and piece of equipment, its wattage, and its daily run time. This calculation yields the total daily energy consumption in kilowatt-hours (kWh), the single most important number for every subsequent calculation.



    Calculating Your Battery Needs


    With the daily kWh figure, you can size the battery bank. Let's use a common residential scenario: a home that consumes 15 kWh per day, with peak usage in the evening. The goal is to store enough solar energy during the day to power the home through the night, with a buffer for cloudy days or grid outages.


    • Depth of Discharge (DoD): Draining a battery to zero drastically shortens its lifespan. Modern lithium batteries from brands like FranklinWH offer a high DoD of 80-90%, allowing for safe use of most of their rated capacity.
    • System Inefficiencies: Energy is lost during DC-to-AC conversion. A conservative 10-15% loss factor should be included in calculations.



    For our 15 kWh daily need, the calculation is: 15 kWh / 0.90 DoD / 0.85 efficiency = ~19.6 kWh. A 20 kWh battery bank is the correct specification, providing the required energy with a healthy operational buffer. For a deeper dive into sizing for full autonomy, our guide on off-grid solar power solutions provides additional context.



    Matching Solar Panels to Your Battery Bank

     

    Next, the solar array must be large enough to fully charge the 20 kWh bank within a single day's "peak sun hours." This metric varies by location and season, but we'll use a conservative average of 5 hours. To charge a 20 kWh bank in 5 hours, the array must produce 20,000 watt-hours / 5 hours = 4,000 watts. This requires a 4 kW solar array.


    Pro Tip: We advise oversizing the solar array to 4.5 kW or 5 kW. This provides a crucial charging edge on overcast days, accounts for panel degradation over time (per the manufacturer's spec sheet), and ensures the batteries receive a full, healthy charge cycle as often as possible to maximize their lifespan and ROI.

     


    Properly sizing the system from the start is the best way to ensure a predictable solar panel payback period for your client.


    Wiring Your Solar Panels and Charge Controller


    With the system sized, it's time to connect the solar panels to the charge controller. This is where engineering becomes installation, and proper wiring is critical for safety, performance, and code compliance.

    First, you must decide how to wire the panel strings. This choice directly impacts the voltage and amperage delivered to the charge controller and must align with the controller's specifications.



    Series vs. Parallel Wiring Explained

     

     

    • Series Connection: The positive terminal of one panel connects to the negative of the next. This configuration adds the voltages of each panel, while the amperage remains constant. Series strings are common for higher voltage systems (48V) and pair efficiently with MPPT charge controllers.
    • Parallel Connection: All positive terminals are connected, and all negative terminals are connected. This method adds the amperages of the panels, while the voltage remains constant. This is used when higher current is needed without exceeding the charge controller's maximum input voltage limit.



    Choosing the correct wire is as critical as the wiring method. For a full breakdown of NEC-compliant conductors, see our guide on solar PV wire options.

    This visual outlines the essential workflow, from preparation to final safety checks.

     

     

    Infographic about how to hook up solar panels to batteries

     

     

    A solid, safe connection is built on meticulous prep and strict adherence to electrical safety procedures.


    An NEC-Compliant Checklist for Professionals


    For professional installers and EPCs, adhering to the National Electrical Code (NEC) is non-negotiable. It ensures safety, reliability, and project insurability.


    Compliance Watchout: A reversed polarity connection will instantly destroy a charge controller. Always use a multimeter to verify the polarity of the solar array leads before connecting them to the controller. This is a costly, irreversible mistake.



    Here's a field-tested checklist for every installation:


    1. De-Energize the Panels. Before handling wires, cover the solar panels with an opaque material (like their shipping box) to prevent them from producing a live voltage.
    2. Confirm Wire Gauge. Verify that the wire gauge (AWG) is correctly sized for the array's maximum current (Isc) and voltage (Voc), accounting for voltage drop over the length of the run.
    3. Use Proper MC4 Connectors. Use a dedicated MC4 crimping tool to assemble connectors. A secure, weatherproof seal is essential to prevent high-resistance connections, which are a serious fire hazard.
    4. Verify Polarity and Voltage. After wiring the strings but before connecting to the controller, uncover the panels briefly. Use a multimeter to confirm the array's open-circuit voltage (Voc) matches your design calculations and to identify the positive and negative leads.
    5. Ground Everything. The solar panel frames and mounting rack must be properly grounded according to NEC Article 690. This is a critical safety measure to protect against electrical faults.



    Connecting The Battery Bank and Inverter Safely

     

    A close-up of a technician's hands carefully tightening the terminals on a large lithium-ion battery, showing the precision required for safe connections.

     


    Wiring the battery bank is the highest-risk phase of any solar installation. You are dealing with high DC amperages where a mistake can cause a dangerous arc flash, destroy equipment, or start a fire. Meticulous attention to detail is mandatory.

    The order of operations is non-negotiable for safety: always connect the charge controller to the battery bank first. This allows the controller to boot up and sense the battery's nominal voltage before solar power is introduced. Only then should the battery bank be connected to the inverter.


    Cable Sizing and Overcurrent Protection


    Using undersized cables is a common and dangerous shortcut. It creates resistance, heat, inefficiency, and a potential fire hazard. Cables between the battery and inverter must be sized to handle the inverter's maximum continuous current draw.

    For example, a 5,000-watt inverter on a 48V battery bank will draw over 100 amps (5000W / 48V = 104A). This requires heavy-gauge copper, typically 2/0 AWG cable or larger, to manage the amperage and minimize voltage drop. Use a hydraulic crimper to ensure a solid, low-resistance connection on all lugs.

    Equally critical is overcurrent protection. Every ungrounded conductor from the battery bank requires a correctly sized fuse or circuit breaker, located as close to the battery's positive terminal as possible. Different battery chemistries have specific protection requirements, which we detail in our guide comparing lithium-ion vs. lead-acid batteries.

    Wire Gauge and Fuse Sizing Reference

     

    This table provides a starting point for common system sizes. Always verify against manufacturer specifications and local codes.

    System Amperage (Amps) Recommended Wire Gauge (AWG) Required Fuse/Breaker Size (Amps)
    Up to 30A 10 AWG 30A
    Up to 50A 6 AWG 60A
    Up to 100A 2 AWG 125A
    Up to 150A 1/0 AWG 175A
    Up to 200A 2/0 AWG 250A



    Note: For long cable runs, you may need to increase wire size to mitigate voltage drop.



    Final Connections and Terminal Torque


    When making final connections, precision is key. A loose terminal is a primary cause of overheating and catastrophic failure.

    • Keep it Clean: Ensure battery terminals and cable lugs are free of corrosion and debris.
    • Order of Parts: The cable lug connects directly to the battery terminal, followed by any washers, then the nut.
    • Torque It Right: Use a calibrated torque wrench to tighten terminals to the battery manufacturer's exact specification. Do not guess or hand-tighten.

     


    Compliance Watchout:
    NEC Article 480.7 mandates a readily accessible battery disconnect. This allows for safe shutdown during maintenance or emergencies. Failure to install a properly rated DC disconnect is a serious code violation and safety risk.

     


    As the U.S. market rapidly expands its energy storage capacity—with an estimated 18.2 GW projected for 2025 according to industry analysis—mastering these installation details is more critical than ever. The physics remain constant: solar charges batteries, which feed an inverter. Adhering to best practices ensures system longevity and safety. Read more about this rapid growth in energy storage on cleanpower.org.


    Commissioning Your System and Avoiding Common Pitfalls

     

     

    A solar installer using a tablet to monitor and commission a newly installed solar battery system, ensuring all parameters are correct.

     

     

    With the wiring complete, the final step is commissioning. A proper power-up sequence is non-negotiable and separates a healthy, long-lasting system from a future service call.

    The cardinal rule: power up the battery first, with the solar array disconnected. This allows the charge controller to boot up and correctly identify the system's nominal voltage. Only after the controller is stable should the solar array be connected. This sequence prevents high-voltage solar input from hitting an un-referenced controller, a mistake that can easily destroy the component.


    Programming Your Charge Controller


    Default settings are not sufficient. You must program the charge controller with the battery manufacturer's specific voltage parameters. Using incorrect settings will degrade battery performance and shorten its operational life.

    Reference the battery's spec sheet and program these three critical values:


    • Absorption Voltage: The target voltage during the primary charging phase.
    • Float Voltage: A lower maintenance voltage to keep a full battery topped off.

    Equalization Voltage (for lead-acid): This must be disabled for nearly all lithium (LFP, NMC) batteries to prevent cell damage.

     


    Expert Tip:
    Advanced systems like a Tesla Powerwall integrated with platforms like Home Assistant allow for dynamic control. Installers can automate settings to cap the state of charge (SoC) from the grid, leaving capacity for morning solar production. This maximizes self-consumption and improves project economics for the client.

    • Critical Mistakes and Troubleshooting
    • Even experienced installers can make costly commissioning errors. One oversight can lead to poor performance, client dissatisfaction, or permanent equipment damage.
    • Top 3 Commissioning Pitfalls


    1. Reversed Polarity: The most damaging mistake. Always verify solar array polarity with a multimeter before connecting to the charge controller. It is an instant, non-warrantable failure.
    2. Loose Connections: Every terminal must be torqued to the manufacturer's spec. A loose connection creates resistance and heat, posing a serious fire hazard.
    3. Incorrect Battery Settings: Failing to program the charge controller for the specific battery chemistry (e.g., LFP, AGM) will actively damage the battery and void its warranty.


    • If the system isn't performing as expected, use a multimeter to check voltages systematically: from the panels, into the controller, and out to the batteries. This diagnostic path will isolate the problem.
    • Common Questions & Field Fixes


    • On-site questions are inevitable. Here are field-level answers to the most common queries we get from installers.
    • Can I Just Wire My Panels Straight to the Batteries?
    • No. Never connect solar panels directly to a battery bank. The unregulated voltage from the panels will overcharge and destroy the batteries, creating a serious safety hazard. The charge controller is a non-negotiable safety and performance component.
    • What Happens If I Mix Up the Positive and Negative Wires?
    • Reversing polarity is one of the most destructive and immediate mistakes. On the solar input side, it will almost certainly destroy the charge controller. On the battery side, it can cause catastrophic failure. Many modern controllers have reverse polarity protection, but it is not a feature to be tested in the field. Double-check polarity with a multimeter before landing any wires.
    • How Can I Tell If My Charge Controller Is Actually Working?
    • The charge controller's display or indicator lights are your primary diagnostic tool.
    • A quick field checklist:
    • Battery Vitals: Confirm it is reading the correct battery voltage and state of charge (SoC).
    • Solar Input: With sun on the panels, you should see both voltage (V) and current (A). Voltage with zero amps indicates an open circuit (e.g., bad connection, tripped breaker).
    • Charging Stage: Observe the controller cycling through its charging stages—Bulk, Absorption, and Float—as the battery reaches full charge.
    • In a healthy system, amps from the panels should be high in strong sun and taper off as the battery approaches 100% SoC.

    • At PES Supply, we are more than a distributor. We are a project partner, providing the technical expertise, in-stock inventory, and bundled freight logistics to ensure your solar and storage projects are successful. From in-house design review to bulk container pricing, we support professional installers and developers nationwide.
    • Request a Bulk Quote for Your Next Project

    Related Resources:

    Calculate how much storage you need with our battery sizing calculator.

    Check solar incentives available in your state.

    Use our free solar system calculator to size your array.

    Check out our Solar Panel Comparison Tool. Check out our Inverter Sizing Calculator.

    Calculate your solar payback and 25-year savings with our Solar ROI Calculator. Follow our complete DIY solar installation guide for step-by-step instructions. Keep your system running at peak performance with our Solar Maintenance Guide.

    Related Resources

    Need Help Sizing This?

    Our team can help you calculate loads, select the right equipment, and source everything from one PO.

    📞 (502) 790-0600

    Email Our Team
    Solar Panels Generators Batteries / ESS EV Chargers Circuit Breakers Charge Controllers

    One PO. One Invoice. Every Trade Covered.

    PES Supply is the distribution arm of PES Global Group — 50,000+ SKUs from 169 authorized brands, LTL freight shipping from Louisville, KY.

    Get a Quote
    Share: X f in @

    Related Articles

    Solar panel modules stacked at a U.S. port facility with customs documentation overlay, representing Section 232 tariff compliance for solar imports

    Section 232 Solar Tariffs & Minimum Import Prices: The De...

    Aug 14, 2026
    Close-up of an electrical breaker panel with a licensed electrician testing circuits with a multimeter

    How to Size Circuit Breakers: NEC 125% Rule (2026)

    Aug 12, 2026
    Container port at golden hour with crane lifting crated solar panels over the dock

    Solar Module Sourcing in 2026: Regional Costs, Tariff Sta...

    Aug 09, 2026
    Pallets of stacked solar modules in a bright distribution warehouse with forklift and conduit racks

    Module Prices Hit $0.34/W — So Why Did Your Commercial Qu...

    Aug 08, 2026
    Two installers finishing a residential rooftop solar installation at sunset

    The Safe Harbor Deadline Passed. Here's What Actually Hap...

    Aug 07, 2026
    Worker in cleanroom suit inspecting a silicon ingot at a solar polysilicon factory, shipping containers beyond the window

    Section 232 Polysilicon Tariffs Hit Solar: What August 20...

    Aug 06, 2026
    Technician's hands with clipboard and tablet inspecting a home standby generator, shallow depth of field

    Generac Generator Warranty Explained: 5, 7, and 10-Year E...

    Aug 03, 2026
    Residential standby generator installed beside a modern suburban home's electrical service panel at golden hour

    Whole Home Generator Sizing Guide 2026: How Many kW Do Yo...

    Aug 03, 2026
    Wall-mounted home battery storage unit installed in a garage beside a solar inverter

    Battery Storage Incentives by State: 2026 Rebate Programs...

    Jul 30, 2026
    Rows of solar panels in a distribution warehouse, tied to 2026 supply and pricing trends

    Solar Market Outlook H2 2026: Panel Prices, Supply Chain,...

    Jul 29, 2026
    Imported solar panels in shipping crates at a port, subject of 2026 tariff updates

    Solar Industry Tariff Updates: What Installers Need to Kn...

    Jul 27, 2026
    A city skyline at dusk with glowing windows and power transmission lines in the foreground

    Growing Electricity Demand: Why Energy Policy Reform Is M...

    Jul 24, 2026
    A technician installing a wall-mounted mini-split heat pump indoor unit in a bright modern living room

    Mini Split Installation Cost (2026): Equipment, Labor & E...

    Jul 23, 2026
    Solar panels elevated over green farmland with sheep grazing beneath

    Harnessing the Sun and Soil: How Agrivoltaics is Revoluti...

    Jul 21, 2026
    A showroom display of several brand-new black solar panel models angled on stands

    Newest Solar Panels in 2026: Latest Models from Leading U...

    Jul 18, 2026
    From the Field: A Master Electrician's Guide to Solar Commissioning

    From the Field: A Master Electrician's Guide to Solar Com...

    Jul 15, 2026
    A home energy storage system with a smart meter showing zero grid flow

    How Can a Residential ESS Achieve 0W Grid Flow?

    Jul 14, 2026
    Close-up of an automatic transfer switch panel with conduit in a residential utility room

    How Automatic Transfer Switches Work

    Jul 12, 2026
    A large residential rooftop fully covered with solar panels on a sunny day

    Solar Panels for 10,000 kWh/Month: 2026 Sizing Guide

    Jul 06, 2026
    A 26kW standby generator on a concrete pad beside a two-story suburban home at dusk

    26kW Generator Guide 2026: Generac Review, Amps, What It ...

    Jul 01, 2026
    7 Benefits of Switching to Commercial Solar Energy

    7 Benefits of Switching to Commercial Solar Energy

    Jun 30, 2026
    2026 H1 Solar Industry Recap: Record Installations, Tariff Uncertainty, and Storage Dominance

    2026 H1 Solar Industry Recap: Record Installations, Tarif...

    Jun 30, 2026
    How to Successfully Implement Solar Energy in Your Business

    How to Successfully Implement Solar Energy in Your Business

    Jun 30, 2026
    Three different solar panel types displayed side by side on stands outdoors

    The Main Types of Solar Panels: Which Should You Choose?

    Jun 26, 2026
    After Nearly 20 Years, America's Biggest Clean Energy Project Is Finally Operational

    America's Largest Clean Energy Project Goes Live After Ne...

    Jun 26, 2026
    Procurement Strategy: How to Navigate Solar Equipment Sourcing in 2026

    Procurement Strategy: How to Navigate Solar Equipment Sou...

    Jun 15, 2026
    A friendly solar consultant shaking hands with a homeowner on a sunny driveway

    How to Find Local Solar Companies Near Me

    Jun 14, 2026
    How Long Do Solar Panels Last? (2026 Guide)

    How Long Do Solar Panels Last? (2026 Guide)

    Jun 14, 2026
    A homeowner in conversation with a solar consultant on a sunny driveway

    What Questions Should I Ask My Solar Company?

    Jun 14, 2026
    A homeowner on the porch of a solar-equipped suburban home reviewing an energy bill

    Is Solar Worth It for My Home?

    Jun 10, 2026
    A homeowner and contractor reviewing permit paperwork on a clipboard in front of a house with new solar panels

    What Are Solar Permits and How Long Do They Take?

    Jun 07, 2026
    A homeowner at a kitchen table with a calculator and solar quotes

    Solar Panel Cost in 2026: What You'll Actually Pay

    Jun 06, 2026
    How Much Money Can I Save With Solar Panels?

    Solar Panel Savings in 2026: Real Numbers by State

    May 30, 2026
    The New York State Capitol area skyline with rooftop solar installations in the foreground

    New York Boosts Solar Investment in 2027 State Budget

    May 29, 2026
    A compact modular microinverter unit being mounted beneath rooftop solar panels by an installer

    Mango Power modular microinverter hits US residential sol...

    May 29, 2026
    A futuristic solar panel manufacturing facility with robotic arms and rows of new modules

    How Tesla Plans to Scale Solar Production to 100GW by 2028

    May 25, 2026
    A vast Australian solar farm with rows of panels and large battery storage containers

    NSW Seeks 2.5 GW Renewable Capacity, 12 GWh Storage Under...

    May 21, 2026
    Solar Workforce Crisis 2026: Installer Shortage, Training Programs, and Electrician Demand

    Solar Workforce Crisis 2026: Installer Shortage, Training...

    May 15, 2026
    Cows grazing in a green alpine pasture beneath elevated solar panels

    Nestlé Launches Agri-PV “Cow Solar” Project in Allgäu, Bl...

    May 04, 2026
    A row of suburban homes with rooftop solar and small battery cabinets

    FranklinWH Systems to Launch First U.S. City-Owned Reside...

    May 01, 2026
    Three sleek white home battery units wall-mounted in a row in a modern garage

    Tesla Expands Energy Solutions with Three-Phase Powerwall 3P

    Apr 26, 2026
    Solar panel canopies over a California school campus parking lot

    School District in California Deploys 3.1 MW Solar System...

    Apr 14, 2026
    The Future of Solar: 7 Breakthrough Technology Trends in 2026 — Portlandia Electric Supply

    The Future of Solar: 7 Breakthrough Technology Trends in ...

    Apr 12, 2026
    Trainees in safety vests learning solar panel installation at a training facility

    New York Boosts Renewable Workforce Funding with $50 Mill...

    Apr 05, 2026
    Pallets of wholesale solar panels stacked in a warehouse for EPC and installer buyers

    Wholesale Solar Panels: The Complete B2B Procurement Guid...

    Mar 13, 2026
    A large-format bifacial solar panel tilted on a rack at a test yard

    Jinko JKM580N-72HL4-BDV 580W N‑Type TOPCon Bifacial Panel...

    Mar 11, 2026
    Briggs and Stratton 100kW natural gas standby generator 120 240V three-phase outdoor commercial unit by Portlandia Electric Supply

    Briggs & Stratton 100kW Natural Gas Standby Generator (12...

    Mar 06, 2026
    22kW Generator Buying Guide: How to Choose the Right Power Solution

    22kW Generator Buying Guide: How to Choose the Right Powe...

    Mar 02, 2026
    APSystems QS1: The Complete Buyers Guide to Features, Installation, and Performance

    APSystems QS1: The Complete Buyers Guide to Features, Ins...

    Mar 01, 2026
    The Complete Guide to the ATESS HPS100-US-220D 100kW Hybrid Inverter With Integrated Transformer — Portlandia Electric Supply

    The Complete Guide to the ATESS HPS100-US-220D 100kW Hybr...

    Feb 25, 2026

    Get Price Drops & Product Releases

    Weekly digest for installers and project managers — price drops, new stock, NEC code updates.

    PES Supply, a PES Global Group Company