Battery life calculator (Ah, Wh and Peukert)
Calculate how long a battery lasts with a load in amps or watts, or the capacity you need. With depth of discharge, inverter, Peukert and Ah to kWh.
How many hours will a battery last with an appliance connected? What battery do you need for it to last all night? This calculator solves it both ways: with the capacity (Ah) and the load (in amperes or in watts) it gives you the runtime; with the runtime you want, the capacity you need or the maximum load. It takes into account the depth of discharge, the inverter efficiency and, if you want, Peukert's law, and it gives you the battery energy in Wh and kWh.
How to use the calculator
- Choose whether the load is in amperes (what the battery delivers) or in watts (the power of the appliance). With watts, enter the inverter efficiency if the appliance runs on 230 V, or 100% if it is DC.
- Enter the battery voltage (12, 24, 48 V…) and the depth of discharge: the share of the capacity you are going to use.
- If you want to fine-tune with lead-acid batteries, choose With Peukert and enter the exponent k and the discharge time of the rated capacity (20 h if the battery says C20).
- Of capacity, load and runtime, enter two: the one you leave empty is calculated, in the unit you choose (mAh, minutes, days…).
Battery runtime formula
Without Peukert's law, the runtime is the usable capacity divided by the current:
Where C is the capacity in Ah, I the current in A, DoD the depth of discharge (0.8 for 80%) and t comes out in hours. If the load is a power P in watts, the current drawn from the battery is:
with V the battery voltage and η the inverter efficiency (0.9 for 90%; 1 if there is no inverter). Solving for the others, the capacity needed is C = I · t / DoD and the maximum load, I = DoD · C / t.
From amp-hours (Ah) to kWh
Ah are electric charge; Wh and kWh, energy. To convert from one to the other you need the battery voltage:
| Battery | Energy | Usable at 50% | Usable at 80% |
|---|---|---|---|
| 100 Ah at 12 V | 1.2 kWh | 0.6 kWh | 0.96 kWh |
| 200 Ah at 12 V | 2.4 kWh | 1.2 kWh | 1.92 kWh |
| 100 Ah at 24 V | 2.4 kWh | 1.2 kWh | 1.92 kWh |
| 100 Ah at 48 V | 4.8 kWh | 2.4 kWh | 3.84 kWh |
That is why you cannot compare the Ah of batteries with different voltages: a 100 Ah battery at 48 V stores four times as much energy as a 100 Ah battery at 12 V.
Depth of discharge
A battery should not be drained completely: the deeper it is discharged in each cycle, the fewer cycles it lasts. Usual values:
| Battery type | Recommended depth of discharge |
|---|---|
| Flooded lead-acid or starter battery | 50% (starter batteries, much less) |
| AGM and gel | 50 to 60% |
| Lithium (LiFePO₄) | 80 to 90% |
Always check the manufacturer's datasheet: it usually gives a chart of cycle life vs. depth of discharge.
Peukert's law
The capacity stated on a battery is for a specific discharge time, usually 20 hours (C20): a 100 Ah battery delivers 5 A for 20 h. If you discharge it faster, it delivers less capacity. Peukert described this with an exponent k:
Where H is the discharge time of the rated capacity (20 h for C20). With k = 1 you get the simple formula. The calculator also gives the real capacity at that current, C · (C / (I · H))k − 1, and the effective current, the one that would use up the rated capacity in the same time. The exponent is given by the manufacturer; as a guide: lithium 1.02 to 1.05, AGM and gel 1.1 to 1.25 and flooded lead-acid 1.2 to 1.4. Peukert only holds for constant-current discharges at room temperature; in the cold the capacity drops even more.
Worked example
A 100 Ah, 12 V battery with a 5 A load and 80% depth of discharge:
If the load is a 60 W, 230 V fridge with a 90% inverter, the battery delivers I = 60 / (12 · 0.9) ≈ 5.56 A and lasts 0.8 · 100 / 5.56 = 14.4 h. At 10 A with Peukert (k = 1.2, C20): t = 0.8 · 20 · (100 / (10 · 20))1.2 ≈ 6.96 h, instead of 8 h without Peukert: at that current the battery only delivers about 87 Ah.
The other way around: for 60 W over 10 hours with a lead-acid battery at 50% you need C = 5.56 · 10 / 0.5 ≈ 111 Ah, that is, a 120 Ah battery.
Frequently asked questions
How do you convert amp-hours (Ah) to kWh?
Multiply by the voltage and divide by 1000: kWh = Ah · V / 1000. A 100 Ah, 12 V battery stores 1.2 kWh; a 100 Ah, 48 V one, 4.8 kWh. The other way around: Ah = kWh · 1000 / V.
How long does a 100 Ah battery last?
It depends on the load and how deeply you can discharge it. At 5 A and 80% depth of discharge, 100 · 0.8 / 5 = 16 hours. If it is lead-acid and you only discharge it to 50%, 10 hours. With a 60 W load on 12 V and a 90% inverter, the current is 60 / (12 · 0.9) ≈ 5.6 A.
What is depth of discharge?
The share of the capacity you use before recharging. The deeper it is, the fewer cycles the battery lasts: lead-acid batteries should not go below 50% and lithium ones handle 80 or 90% well.
What is Peukert's law?
That a battery delivers less capacity the faster it is discharged. The Ah on the label are at a given rate (usually 20 hours); if you discharge it in 5 hours, it delivers less. With the manufacturer's exponent k: t = H · (C / (I · H))^k. It is very noticeable in lead-acid (k from 1.2 to 1.4) and almost nil in lithium (k ≈ 1.05).
How do I size the battery I need?
Enter the load and the runtime you want and leave the capacity empty: C = I · t / DoD (without Peukert). For 5 A over 10 hours at 50% depth of discharge you need 100 Ah. Add margin for cold and aging.
