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.
Load & Battery Specs
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.
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.