What this calculator does
This calculator sizes a solar battery bank from the energy it must deliver. Enter the nighttime consumption in kilowatt-hours, the number of backup nights, the battery bank voltage, and the planned usable discharge in percent. The workbench returns the required battery capacity in amp-hours. Better information usually improves a Solar + Battery Sizing Planner estimate more than extra decimal places.
Short answer: required battery amp-hours = nighttime energy (kWh) × backup nights × 1,000 ÷ (bank voltage (V) × usable discharge (%) ÷ 100). At the workbench defaults — 5 kWh a night, 2 backup nights, a 51.2 V bank, and 85% usable discharge — that is 5 × 2 × 1,000 ÷ (51.2 × 0.85) = 229.8 Ah, or about 230 Ah. The practical value of Solar + Battery Sizing Planner depends on the accuracy of those inputs.
Two things the workbench does not do. It has no efficiency input, so it assumes every watt-hour stored reaches the load; and it has no reserve input, so it sizes exactly to the nights and discharge window you enter. Both adjustments are manual steps, shown in the worked example below. The workbench also sizes storage only — it does not size the solar panels, which is a separate calculation against daily production.
The formulas behind the result
Four formulas cover everything this page calculates. All four are arithmetic on the numbers you enter, so you can check each one by hand.
Delivered energy target (Wh) = nighttime consumption (kWh) × backup nights × 1,000. At 5 kWh a night for 2 nights, the target is 10,000 Wh. Moving from one night to three nights triples the delivered target before discharge limits are even considered. A cautious interpretation of Solar + Battery Sizing Planner includes the relevant operating limits.
Required stored energy (Wh) = delivered energy target (Wh) ÷ usable discharge (as a decimal). At 85% usable discharge, 10,000 Wh of delivered energy needs 10,000 ÷ 0.85 = 11,764.7 Wh of installed storage. The remaining 15% is the part of the bank you do not plan to use, kept as protection for battery life and operating margin.
Required battery capacity (Ah) = required stored energy (Wh) ÷ bank voltage (V). At 51.2 V, 11,764.7 ÷ 51.2 = 229.8 Ah. The same stored energy at 12.8 V would be 919.1 Ah, which is why amp-hours alone cannot be compared across system voltages — watt-hours are the consistent design metric.
Worked example: 5 kWh a night for 2 nights at 51.2 V
Take the workbench defaults: 5 kWh of nighttime consumption, 2 backup nights, a 51.2 V battery bank, and 85% planned usable discharge. Each step below uses those figures, and the table replays them in order. A decision based on Solar + Battery Sizing Planner is easier to audit when the inputs have clear sources.
| Step | Calculation | Result |
|---|---|---|
| Delivered energy target | 5 kWh × 2 nights × 1,000 | 10,000 Wh |
| Required stored energy | 10,000 Wh ÷ 0.85 | 11,764.7 Wh |
| Required battery capacity | 11,764.7 Wh ÷ 51.2 V | 229.8 Ah |
| With 90% efficiency (manual) | 11,764.7 Wh ÷ 0.90 ÷ 51.2 V | 255.3 Ah |
| Plus 10% reserve (manual) | 255.3 Ah × 1.10 | 280.8 Ah |
So the workbench answer is about 230 Ah at 51.2 V, and the planning answer with efficiency and reserve folded in is about 281 Ah. The gap between the two is the whole lesson: the workbench sizes to the numbers you enter, and the real system needs the losses and the margin added by hand. Record these assumptions whenever you use Solar + Battery Sizing Planner with another system.
A second case, kept from the old version of this page because its arithmetic checks out: a system using 2,000 Wh a day with 2 days of autonomy, at 80% depth of discharge and 90% round-trip efficiency. The delivered target is 4,000 Wh. The required stored energy is 4,000 ÷ 0.80 ÷ 0.90 = 5,555.6 Wh. With a 10% reserve margin the planning target becomes 6,111.1 Wh. At 24 V that is 6,111.1 ÷ 24 = 254.6 Ah, or about 255 Ah; at 48 V it is 6,111.1 ÷ 48 = 127.3 Ah, or about 127 Ah. The two banks store nearly the same energy even though the amp-hour numbers look very different.
Required battery capacity by voltage and backup nights
The table below holds the load fixed — 5 kWh a night at 85% usable discharge, exactly as the workbench computes it — and varies the backup nights and the system voltage. It shows the two levers that move the answer most: more nights multiply the energy, and higher voltage divides the amp-hours.
| Backup nights | At 12.8 V | At 25.6 V | At 51.2 V |
|---|---|---|---|
| 1 night | 459.6 Ah | 229.8 Ah | 114.9 Ah |
| 2 nights | 919.1 Ah | 459.6 Ah | 229.8 Ah |
| 3 nights | 1,378.7 Ah | 689.3 Ah | 344.7 Ah |
Two patterns are worth noting. First, doubling the voltage halves the amp-hours for the same energy: the 2-night row reads 919.1 Ah at 12.8 V, 459.6 Ah at 25.6 V, and 229.8 Ah at 51.2 V. Second, adding a night adds the same amp-hours again: at 51.2 V each extra night costs another 114.9 Ah. That is why autonomy is the most expensive decision in the sizing — three nights needs half as much battery again as two nights. This is the uncertainty that a Solar + Battery Sizing Planner worksheet should make visible.
What each input means
Nighttime consumption (kWh) is the energy your loads use during the hours the solar panels are not producing — typically the evening and night. Measure it from a real load list or a meter, not from a guess: add up each load's watts × hours. A fridge, lights, a laptop and a fan can easily total several kilowatt-hours a night, and the sizing is only as good as this number.
Required backup nights is the number of nights the battery must carry those loads without enough solar recharge. It is your storage cushion for night, storms, cloudy weather and seasonal variation. A grid-tied backup battery may only need one night; a fully off-grid home may need several days to stay reliable in poor weather. There is no single correct value — it depends on how critical the loads are and how much solar shortfall you plan for.
Battery bank voltage (V) is the nominal voltage of the bank: 12.8 V, 25.6 V and 51.2 V are the 4-series, 8-series and 16-series LiFePO4 packs sold as 12 V, 24 V and 48 V systems. Enter the nominal voltage, not the full-charge voltage. The workbench divides stored energy by this figure, so the amp-hour answer changes with voltage even though the energy answer does not.
Planned usable discharge (%) is the share of the bank you plan to use — the depth of discharge. At 85%, a 11,764.7 Wh bank treats 10,000 Wh as usable. Higher values shrink the required bank but use more of each cycle; lower values grow the bank but may support longer battery life. The right value depends on chemistry, budget, cycle-life goals and how much margin you want. A second Solar + Battery Sizing Planner scenario can reveal whether that difference matters.
Reading the result — and its limits
Treat the result as a storage size, not a system design. Solar production and battery storage must be sized together: a bank sized for three nights is useless if the panels cannot recharge it on an average day, and oversized panels cannot help a bank that is too small for the night. Check daily solar production against daily consumption as a separate step.
Cold weather can reduce the effective capacity of the bank, which may require more installed storage than a room-temperature calculation suggests. Capacity also declines over time, so a bank sized exactly for day-one needs may feel too small later in life. New appliances, longer usage hours or future expansion can increase daily energy demand beyond the original design.
The calculator cannot approve an installation. Charger profile, inverter voltage range, BMS current limits, cable size, fusing and ventilation must agree with each other and with the manufacturer's documentation. A correct arithmetic result on this page says nothing about whether the wiring is safe. Use Solar + Battery Sizing Planner to examine the numbers, not to override a manufacturer limit.
Where the number matters — buying a battery bank, or sizing backup for an outage — run a low, central and high case by changing the nightly consumption and the backup nights by a plausible amount, and compare the result with measured consumption from your own loads rather than a guessed one.
Sources and verification status
Author: Saqib Jillani · Reviewer: lithiumbattery.info Editorial Team
The formulas and worked numbers on this page are arithmetic from the inputs stated beside them — every figure can be reworked with a pocket calculator. The workbench defaults (5 kWh, 2 nights, 51.2 V, 85%) give 229.8 Ah, which the workbench itself reproduces. The 2,000 Wh-a-day, 2-day, 80% DoD, 90% efficiency case with its 10% reserve step is carried over from the previous version of this page and re-checked here; the efficiency and reserve figures in that case are planning assumptions, not measurements. The 12.8 V, 25.6 V and 51.2 V nominal voltages for 4-series, 8-series and 16-series LiFePO4 packs are the standard conventions used across this site's battery guides; a named cell datasheet citation is still to be added. For background on how batteries store energy, see the U.S. Department of Energy battery reference linked below.