Electrical · Power and Wiring
Battery life calculator icon showing a battery with a clock for its runtime

Battery life calculator

This battery life calculator estimates how long a battery will run a load: enter its capacity in mAh, Ah or Wh and the load current or power, allow for the usable capacity and the inverter or converter efficiency, and get the runtime in hours. It also handles devices that sleep most of the time and battery packs built from cells in series and parallel.

The battery life calculator assumes a constant load, a fully charged battery and room temperature. Cold, high current, old cells and the cut-off voltage of your device all shorten the real runtime, so plan with a margin.

Battery life calculator: runtime from capacity and load

The battery life calculator uses runtime = usable capacity / load current, or usable energy × efficiency / load power.
The rated capacity printed on the battery or in its datasheet.
Li-ion 3.6–3.7 V per cell, LiFePO4 3.2 V, NiMH 1.2 V, alkaline 1.5 V, lead-acid 2 V per cell (12 V battery). Used to convert between Ah and Wh.
%
About 85–95 % for an inverter or DC-DC converter; 100 % if the load runs straight from the battery.
%
The share of the rated capacity you plan to use. Lower it for lead-acid batteries, aged batteries and cold weather.
1.00 = no rate effect. Victron uses 1.25 as an average for lead-acid (range 1.00–1.50); lithium is close to 1. Leave empty to ignore.
Capacity rated at the 20-hour rate (C20) is usual for lead-acid.

Battery life calculator for devices that sleep and wake

Average current = (active current × active time + sleep current × sleep time) / cycle period.
%
Below 100 % because the device stops at its minimum supply voltage before the battery is empty.
%
From the battery datasheet. Treated as an extra constant current.

Battery life calculator for packs in series and parallel

Series cells add voltage; parallel strings add capacity. Energy = cells × cell voltage × cell capacity.
From the cell datasheet.

How to use the battery life calculator

The first panel answers the everyday question “how long will this battery last?”. Type the capacity from the label in mAh, Ah, Wh or kWh and the nominal voltage. Choose whether you know the load current or the load power, then set how much of the capacity you will really use. For a load given in watts through an inverter or a DC-DC converter, also enter its efficiency. The battery life calculator returns the runtime in hours and minutes, or in days and years for long runtimes. It also shows the energy in watt-hours, the current drawn from the battery and the discharge rate in C. Lead-acid users can add a Peukert exponent to allow for the capacity lost at high current.

The second panel is a battery life calculator for sensors, trackers, remote controls and other devices that sleep most of the time and wake up briefly. It turns the active and sleep currents into an average current. The third panel works out the voltage, capacity and energy of a pack built from cells in series and parallel, and draws the layout.

Battery life calculator formulas

Capacity in ampere-hours tells you how much charge a battery delivers; multiplied by the nominal voltage it gives the stored energy in watt-hours. The runtime is the usable part of that capacity divided by the load. These are the relations taught in the University of Utah ECE 2210 notes on batteries, which also define the C-rate as the current divided by the capacity.

E (Wh) = Q (Ah) × V and C-rate = I / Q
t (h) = Q × usable fraction / I or t = E × usable fraction × η / P
Average current = (I_active × t_active + I_sleep × t_sleep) / T
Peukert: t = H × (Q / (I × H))^k

Q is the rated capacity, V the nominal voltage, I the current drawn from the battery, P the load power, η the converter or inverter efficiency and T the cycle period. In Peukert’s law H is the rated discharge time (20 h for most lead-acid batteries) and k the Peukert exponent. With k = 1 the capacity does not depend on the current. Victron Energy’s battery monitor manual uses 1.25 as an average value for lead-acid batteries, allows 1.00 to 1.50, and notes that lithium batteries are much less affected.

Worked example with the battery life calculator

Phone-size Li-ion cell. A 2000 mAh, 3.7 V cell powers a circuit that draws 150 mA, and you plan to use 90 % of the capacity. The stored energy is 2.0 Ah × 3.7 V = 7.4 Wh. The usable capacity is 2000 × 0.90 = 1800 mAh, so the runtime is 1800 mAh / 150 mA = 12.0 h, or 12 h 0 min. The discharge rate is 0.15/2.0 = 0.075 C, a gentle load. These are the default values of the first panel of the battery life calculator.

Same cell, load in watts. In the battery life calculator, switch to “Load power”: 0.5 W through a converter with 90 % efficiency gives t = 7.4 × 0.90 × 0.90 / 0.5 = 11.99 h, and the cell supplies 0.5/(0.9 × 3.7) = 0.150 A.

Sensor that wakes every 10 minutes. In the second panel a 2400 mAh battery feeds a device that draws 20 mA for 2 s and 10 µA for the other 598 s of each cycle. The charge per cycle is 40 mA·s awake plus 5.98 mA·s asleep, so the average current is 45.98/600 = 0.07663 mA = 76.63 µA. With 85 % usable, the battery life is 2400 × 0.85 / 0.07663 = 26,620 h, about 3.04 years. Add a self-discharge of 2 % per year and the extra 5.48 µA cuts it to about 2.83 years. That is why the self-discharge field of the battery life calculator matters for long-life devices.

18650 pack. In the third panel of the battery life calculator, four 3.6 V, 3000 mAh cells in series and three such strings in parallel (4S3P) make a 14.4 V, 9 Ah, 129.6 Wh pack of 12 cells. With 10 A per cell the pack can supply 30 A, or 432 W.

Battery life calculator reference: nominal cell voltages

The voltage you enter in the battery life calculator should be the nominal (average) voltage, not the full-charge voltage. Values from Battery University BU-303, Confusion with Voltages and the Utah notes:

ChemistryNominal voltage per cellNotes
Lead-acid2.0 V12 V battery = 6 cells; about 2.1 V/cell open circuit when charged, charged to about 2.4 V/cell
NiCd, NiMH1.2 VIndustrial cells are sometimes rated 1.25 V
Alkaline (primary)1.5 VNot rechargeable
Li-ion (cobalt based)3.6 VOften marked 3.7 V; charged to 4.2 V, discharged to about 2.8–3.0 V
Li-ion (manganese)about 3.7 VAverage voltage
LiFePO4 (lithium iron phosphate)3.2–3.3 V4 cells make a “12 V” battery of about 12.8 V
Lithium titanate2.4 VLong cycle life, lower energy

Runtime of a 12 V, 100 Ah battery

Computed with the battery life calculator for 1,200 Wh, 80 % usable and a 90 % inverter. The last column is the approximate DC current at 12 V:

AC loadRuntime (h)RuntimeBattery current
25 W34.56 h34 h 34 min2.31 A
50 W17.28 h17 h 17 min4.63 A
100 W8.64 h8 h 38 min9.26 A
200 W4.32 h4 h 19 min18.5 A
500 W1.728 h1 h 44 min46.3 A
1,000 W0.864 h0 h 52 min92.6 A

For a lead-acid battery the high-load rows are optimistic, because its capacity falls at high current (Peukert effect). Lithium batteries hold their capacity much better.

Practical uses of a battery life calculator

Makers use a battery life calculator to choose a cell for an Arduino or ESP32 project and to judge how much deep sleep helps. Campers and boat owners size a house battery for a fridge, lights and a laptop. IT staff estimate how long a UPS will hold a router or a server. Engineers check the runtime of handheld instruments and IoT sensors before field tests. To find the power of a load from its voltage and current, use the Electrical Power Calculator. Turn the energy into a running cost with the Energy Cost Calculator. The Ohm’s Law Calculator gives the current of a resistive load.

Common mistakes the battery life calculator helps you avoid

Mixing mAh and Wh. A power bank labelled 10,000 mAh usually means 3.7 V cells, or 37 Wh. At its 5 V USB output that is only about 7,400 mAh before converter losses. Using the full rated capacity. Devices stop at a cut-off voltage, batteries fade with age, and Battery University (BU-503) suggests designing so the device still works when the pack has faded to 70–80 % of its new capacity. Ignoring the converter. An inverter running a 100 W load takes about 110 W from the battery. Averaging the wrong way. For a device that sleeps and wakes, average the charge (current × time), not the two currents. Forgetting the cold. Batteries deliver much less at low temperature. Series pack confusion. Cells in series raise the voltage but not the mAh; only parallel strings add capacity. A good battery life calculator estimate is a starting point, so confirm it with a measured discharge test when runtime matters.

Related calculators

More tools for circuits and power systems are on the electrical calculators hub. Convert energy and time units with the Unit Converter. The kVA Calculator and the Transformer Calculator cover AC supply sizing.

Frequently asked questions

How do I calculate battery life in hours?

Divide the usable capacity by the load current: hours = mAh × usable fraction / mA. A 2000 mAh battery at 150 mA with 90 % usable lasts 1800/150 = 12 hours. For a load in watts, use watt-hours × usable fraction × efficiency / watts.

How do I convert mAh to Wh?

Multiply by the nominal voltage and divide by 1000: 3000 mAh × 3.6 V / 1000 = 10.8 Wh. The battery life calculator shows both for any capacity you enter.

How long will a 100Ah battery last?

At 12 V it stores 1,200 Wh. Using 80 % through a 90 % efficient inverter, a 100 W load runs for about 8.6 hours and a 500 W load for about 1.7 hours. A lead-acid battery gives less at high loads. Enter your own numbers in the battery life calculator to check.

What is the C-rate of a battery?

The discharge current divided by the capacity. 1 C empties the battery in about an hour; 0.5 C (C/2) in about two hours. High C-rates reduce the capacity you actually get and heat the battery.

Do batteries in series last longer?

No. Series cells raise the voltage while the mAh stays the same; the energy grows because the voltage does. Parallel strings add capacity. Either way the runtime depends on the total energy and the load, which the pack panel of the battery life calculator shows.

Is this battery life calculator free?

Yes. It runs in your browser, needs no sign-up and does not store or send the values you enter.

Results are for study and planning. Electrical installations must follow your local wiring code and be done or checked by a qualified electrician; check component ratings in the datasheet. Back to electrical calculators or CalcSwiftly home.

Reviewed by: CalcSwiftly · Last reviewed: