How the solar battery size calculation works
A grid-tied home battery is mainly charged by daytime solar surplus and discharged in the evening and at night. Its useful size is therefore set by how much you consume outside solar hours — not by your total daily consumption.
To deliver that energy, the battery must store a little more because of discharge and inverter losses, and its nominal capacity must be larger again because most batteries should not be fully discharged. This calculator works backwards through those two steps.
A battery larger than your typical night-time use will rarely be fully cycled and adds cost without adding much value — unless you also want multi-day backup or tariff arbitrage.
Formula
- η_discharge
- battery + inverter discharge efficiency
- DoD
- allowable depth of discharge
Worked example
- 20 kWh/day with 60 % used outside solar hours: 12 kWh must be delivered.
- With 92 % discharge efficiency: 12 ÷ 0.92 = 13.0 kWh usable.
- With 90 % DoD: 13.0 ÷ 0.90 = 14.5 kWh nominal capacity.
Assumptions and limitations
Assumptions
- Enough solar surplus is available to recharge the battery each day.
- Night-time share is a typical-day average.
Limitations
- In winter, solar surplus may not fill the battery.
- Does not model battery power (kW) limits — high evening peaks may exceed inverter output.
- Capacity fades with age; consider end-of-warranty capacity.
Frequently asked questions
How big a battery do I need for a 5 kW solar system?
Size from consumption, not panels: the energy you use after sunset. Many households use 5–15 kWh in the evening and overnight, but check your own smart-meter data.
Should I include days of autonomy?
Only if you want backup through cloudy days or outages. For daily self-consumption, one day is the normal design basis.
Related calculators
Battery Bank Sizing Calculator
Size a battery bank in Ah, with series/parallel battery counts for 12/24/48 V systems.
Battery Backup Time Calculator
Backup hours for essential loads during a power outage, with outage coverage check.
Battery Depth of Discharge Calculator
Depth of discharge, state of charge and remaining energy after a discharge.
References and data sources
- System Advisor Model (SAM) — National Renewable Energy Laboratory
- Stand-Alone Photovoltaic Systems: A Handbook of Recommended Design Practices (SAND87-7023) — Sandia National Laboratories
Last reviewed: · Formula version 1.0.0 · Methodology