Battery Sizing Calculator for Solar | SolarMathDesk
Battery Capacity & Wiring Layout

Battery Sizing Calculator
for Solar

Figure out the battery Amp-Hours (Ah), total battery count, and series-parallel wiring layout you need from your load watts, runtime, and battery size.

Published by: SolarMathDesk Engineering Lab • Updated:
✓ IEEE 1013 & IEEE 1562 Method
Step 01

Load & Battery Specs

Load Demand, Bus Voltage & Individual Battery Size
W
Average watts your appliances draw while running
hrs
How many backup hours you want on battery power
Target DC voltage of your inverter or charge controller
How far you can safely drain the battery before recharging
Ah
Amp-hour rating printed on a single battery unit
Nominal voltage of each individual battery module
Formulas:
Required Ah: Ah = (Load W × Runtime hrs) ÷ (System V × DoD)
Wiring Layout: Series = ceil(System V ÷ Battery V) • Parallel = ceil(Required Ah ÷ Battery Ah)

How to Size a Solar Battery Bank and Plan Series-Parallel Wiring

Knowing you need "a few hundred amp-hours" is only half the job. When you actually buy batteries, you have to figure out how many individual 12 V, 24 V, or 48 V blocks to order and how to wire them together so they match your inverter voltage.

This calculator on SolarMathDesk takes your load watts, backup hours, bus voltage, and Depth of Discharge, then turns them into a clear Amp-Hour target and an exact series-parallel layout (S × P).

The Battery Sizing Equations

Here is how the numbers step from watts down to individual batteries:

Total Energy Needed (Wh)  = Load Power (W) × Desired Runtime (hrs)
Required Bank Capacity    = Total Energy Needed (Wh) ÷ (System Voltage × DoD)
Series Count (S)          = ceil(System Voltage ÷ Battery Voltage)
Parallel Strings (P)      = ceil(Required Ah ÷ Battery Ah)
Total Batteries           = Series Count × Parallel Strings

Let us walk through a quick example. Suppose you want to run a 500 W load for 5 hours on a 12 V system using 12 V 100 Ah AGM lead-acid batteries (50% DoD):

  • Energy Needed: 500 W × 5 hrs = 2,500 Wh
  • Required Capacity: 2,500 Wh ÷ (12 V × 0.50) = 416.7 Ah
  • Series Count: 12 V system ÷ 12 V battery = 1 in series (1S)
  • Parallel Strings: 416.7 Ah ÷ 100 Ah = 4.17, rounded up to 5 in parallel (5P)
  • Total Batteries: 1 × 5 = 5 batteries (6.0 kWh total installed, 3.0 kWh usable at 50% DoD)

Series vs. Parallel Wiring Explained

Wiring Method How It Connects Effect on Voltage Effect on Amp-Hours
Series (e.g., 4S) Positive of one battery to negative of the next Adds voltages together (4 × 12 V = 48 V) Stays the same (100 Ah stays 100 Ah)
Parallel (e.g., 4P) Positives together, negatives together Stays the same (12 V stays 12 V) Adds amp-hours together (4 × 100 Ah = 400 Ah)
Series-Parallel (e.g., 4S × 2P) Two series strings wired in parallel Scales voltage (48 V) Scales amp-hours (200 Ah)

Depth of Discharge: Lead-Acid vs. LiFePO4

  • Lead-Acid, AGM, and Gel (50% DoD): Keep daily cycling at or above 50% state of charge. Draining lead-acid near zero leaves hard sulfate deposits on the lead plates, cutting lifespan from around 1,000 cycles down to under 300.
  • Lithium-ion and LiFePO4 (80% to 90% DoD): Lithium iron phosphate holds steady voltage through deep discharges and comfortably delivers 3,500 to 6,000+ cycles at 80% to 90% DoD.

One Important Rule: Never Mix Batteries

Always build your battery bank from identical, brand-new batteries from the same batch. Mixing old batteries with new ones, or pairing different brands and amp-hour sizes, creates resistance mismatches where the weaker unit drags down the rest and creates uneven heating.

Want to test how long an existing battery bank will run your gear? Check our Battery Runtime Calculator, or verify your continuous inverter size with the Solar Inverter Size Calculator.

Topics: battery sizing calculator for solar, solar battery bank calculator, off grid battery capacity calculator, lithium lead acid battery sizing, amp hour calculator, series parallel battery calculator, SolarMathDesk.
SM

Calculation Methodology & Engineering Standards

Battery capacity and string wiring calculations follow energy storage standards in IEEE 1013 and stand-alone solar sizing practices in IEEE 1562. Maintained by the SolarMathDesk Engineering Lab.

FAQs About Solar Battery Sizing & Wiring

1. How do I calculate the number of batteries needed for a solar setup?
Multiply your load power in watts by your runtime in hours to get total watt-hours, then divide by your system voltage multiplied by your Depth of Discharge limit to find required amp-hours (Ah). Divide system voltage by one battery's voltage for the series count, divide required Ah by one battery's Ah for parallel strings, and multiply those two numbers together.
2. How does series vs. parallel wiring affect battery bank voltage and capacity?
Wiring batteries in series (positive to negative) adds their voltages together while keeping amp-hours the same. Wiring batteries in parallel (positive to positive, negative to negative) keeps voltage the same while adding amp-hour capacities together.
3. Can I mix different battery brands, capacities, or ages in the same solar bank?
No. Mixing batteries of different ages, brands, or capacities creates internal resistance mismatches. The weaker or older battery drags down the rest of the bank, causing uneven charging, heat buildup, and early failure.
4. Why should I use a 50% Depth of Discharge for lead-acid vs. 80% to 90% for LiFePO4?
Lead-acid batteries form hard sulfate buildup on their internal plates if drained past 50% regularly, cutting lifespan sharply. LiFePO4 lithium cells stay stable down to 80% or 90% discharge and still deliver thousands of cycles.
5. Is it better to use one 48 V battery or four 12 V batteries in series?
If you are building a 48 V system, native 48 V batteries are usually easier to manage because each unit has its own internal Battery Management System and does not drift out of balance like four separate 12 V batteries wired in series.