The formula
Usable energy needed = daily kWh × days of autonomy
Battery capacity (kWh) = usable energy ÷ (depth of discharge × inverter efficiency)
Amp-hours at system voltage = capacity (kWh) × 1,000 ÷ system voltage
Batteries in series = system voltage ÷ battery voltage; parallel strings = total batteries ÷ series count
Inverter (continuous) ≈ largest continuous load × 1.25
Solar array (W) = daily kWh × 1,000 ÷ (peak sun hours × 0.8)
Worked example
- A cabin uses 10 kWh a day and needs one day of backup on a 48 V system with LiFePO4 batteries (90% usable) and a 92% efficient inverter.
- Capacity = 10 ÷ (0.9 × 0.92) = 12.1 kWh, or 12,077 ÷ 48 = 252 Ah at 48 V.
- Using 12 V, 100 Ah batteries (1.2 kWh each): 12.1 ÷ 1.2 = 10.1, so 4 in series × 3 parallel strings = 12 batteries.
- A 3,000 W peak load needs a 3,000 × 1.25 = 3,750 W, so a 4,000 W inverter rated for at least a 6,000 W surge.
- Recharging 10 kWh in 4.5 peak sun hours needs 10,000 ÷ (4.5 × 0.8) = 2,778 W: seven 400 W panels and a charge controller of about 58 A at 48 V.
Start with your energy use
Battery sizing starts with how much energy you need between charges, measured in kilowatt-hours. For a backup system, list the essential loads you want to keep running during a power cut, such as the fridge, lights, internet, a furnace fan and medical devices, and how many hours each will run. For off-grid homes and cabins, use your average daily consumption, ideally from the worst month. Our appliance electricity calculator shows the kWh of individual appliances, and your utility bill shows household totals.
Depth of discharge and battery chemistry
Batteries shouldn't be fully emptied every day. Lead-acid batteries, including AGM and gel types, last longest when discharged no more than about 50%, so you need twice the usable energy in nameplate capacity. Lithium iron phosphate (LiFePO4) batteries tolerate 80–100% depth of discharge, last 3,000–6,000 cycles or more and are now the most common choice for homes and RVs despite their higher upfront cost. The calculator divides the energy you need by the usable fraction and by inverter efficiency to find the nameplate capacity.
Choosing system voltage
Higher system voltages mean lower currents for the same power, so thinner cables, smaller fuses and less loss. As a guide, 12 V suits small systems under about 1–2 kW such as vans and boats, 24 V systems of about 2–4 kW, and 48 V larger homes and off-grid systems. Batteries are wired in series to reach the system voltage and in parallel to add capacity. Many modern home batteries are integrated, high-voltage units rated directly in kWh, such as 10–15 kWh wall-mounted packs; use the kWh figure for those.
Sizing the inverter
The inverter converts the battery's DC into AC for household appliances. Its continuous rating must exceed the total load running at the same time, with a margin of about 25%, and its surge rating must handle motors starting, which can draw three times their running power for a moment. Choose a pure sine wave inverter for sensitive electronics and motors. Hybrid inverters combine the inverter, solar charge controller and grid charging in one unit, and can switch to backup automatically.
Recharging with solar
To keep a battery topped up from solar, the array must produce your daily energy in the sun hours available, allowing for losses of around 20% in charging and wiring. In winter, when sun hours may be half the annual average, off-grid systems often need much bigger arrays or a generator; our generator size calculator helps size one. The charge controller must handle the array's current at the battery voltage; MPPT controllers are more efficient than PWM, especially with higher-voltage panel strings.
Battery lifespan and cost
Battery life is measured in charge cycles and calendar years. Quality LiFePO4 batteries are typically rated for 3,000–6,000 cycles at 80% depth of discharge, or 10–15 years of daily cycling, while flooded lead-acid batteries may last only 500–1,200 cycles at 50%. Heat shortens the life of all chemistries, so install batteries somewhere cool and ventilated. When comparing prices, divide the cost by the usable kWh and the number of cycles to get a cost per kWh delivered over the battery's life: lithium is usually cheaper on that basis despite its higher purchase price.
Safety and installation
Battery systems store a lot of energy. Use correctly rated cables, fuses or breakers between batteries and the inverter, keep all battery cables in a bank the same length, and follow the manufacturer's installation and ventilation requirements. Lead-acid batteries can release hydrogen when charging. Grid-connected systems must be installed by qualified electricians and approved by your utility in most countries. For payback on a grid-tied system, see the solar payback calculator.