How to use the battery life calculator
- Pick a common battery from the list, or enter the capacity and voltage of your own in mAh, Ah or Wh.
- Enter how many batteries are in series and in parallel, for a pack.
- Describe the load: a steady current, a power in watts, or a device that wakes for a moment and then sleeps.
- Read the battery life in hours and in days, the average current and the energy stored, with the life at other loads below. Choose “Capacity needed” to size a battery for a runtime instead.
The battery life formula
Battery capacity is a quantity of charge: an amp-hour is one amp flowing for one hour, and a milliamp-hour is a thousandth of that. So a battery’s life is its capacity divided by the current it supplies. With the capacity in mAh and the current in mA, the answer comes out in hours: a 3,000 mAh battery running a 500 mA load lasts 3000 ÷ 500 = 6 h. The same battery at 250 mA lasts twice as long, and at 1 A half as long; the table under the result shows the life at other loads.
The answer is an estimate. A battery’s rated capacity holds at the current it was rated at, and real batteries give less as they age, in the cold and at high current. The calculator lets you allow for this with the usable share, self-discharge and Peukert’s law below.
Watt-hours and loads in watts
Some batteries are rated in watt-hours, which is energy rather than charge: Wh = Ah × V. Divide by the voltage to get amp-hours, so an 11.1 Wh battery at 3.7 V holds 3 Ah, and runs the 500 mA load for 6 h, the same as 3,000 mAh. A load given in watts draws a current equal to the power divided by the battery voltage. A 60 W load on a 12 V battery draws 5 A, so a 100 Ah battery runs it for 20 h, and stores 1200 Wh in all. A converter between the battery and the load wastes some energy, so expect less in practice.
Batteries in series and in parallel
Batteries in series add their voltages but keep the capacity of one battery, because the same current flows through each. Two AA cells in series give 3 V; at 2,700 mAh each and a 100 mA load they last 27 h. Batteries in parallel keep the voltage and add their capacities, so two 3,000 mAh batteries in parallel run the 500 mA load for 12 h. Either way the energy stored is the sum over all the batteries.
Devices that sleep
Many battery devices, such as sensors and remotes, spend most of their time asleep and wake briefly to do their work. Their battery life depends on the average current, which weights the current while awake and while asleep by the time spent in each: I = (Iawake × tawake + Iasleep × tasleep) ÷ (tawake + tasleep). Choose “Awake and asleep” as the load. A sensor that wakes for half a second at 10 mA every 5 minutes and sleeps at 2 µA averages 18.636 µA, so a 225 mAh CR2032 coin cell runs it for 503 days 2 h. Cutting the sleep current or the time awake is usually the best way to make such a device last.
Usable capacity
Not every battery should be run flat. Some guides recommend never taking a lithium-polymer battery below 20% of its charge, to avoid damaging it, and a device may shut down before its battery is empty. Set the usable share to allow for this: with 80% usable, the 3,000 mAh battery runs the 500 mA load for 4 h 48 min instead of 6 h.
Self-discharge
A battery slowly loses charge even when nothing is connected. For devices that draw only microamps this can matter as much as the load itself. Wikipedia’s table of typical rates gives 2–3% a month for lithium-ion, 4–6% for lead–acid, and as little as 0.25% a month for low self-discharge NiMH, while lithium primary cells have a shelf life of about 10 years. The calculator treats self-discharge as an extra steady current that loses the same charge each month. At 100 µA, the 3,000 mAh battery lasts 3.425 years without self-discharge, but only 559 days 20 h at 3% a month.
Peukert’s law for high currents
A battery’s rated capacity is usually given at a stated discharge time, often 20 hours, and many batteries deliver less when emptied faster. Peukert’s law describes this for lead–acid batteries: t = H × (C ÷ (I × H))^k, where H is the rated discharge time, C the rated capacity and k the Peukert exponent. Wikipedia gives k as typically 1.1 to 1.3 for lead–acid: 1.05 to 1.15 for AGM, 1.1 to 1.25 for gel and 1.2 to 1.6 for flooded batteries. Its example is a 100 Ah battery rated at 20 hours with k = 1.2, discharged at 10 A: it lasts 8 h 42 min, delivering 87.06 Ah instead of 100, where the simple formula gives 10 h. At its rated current of 5 A it gives the full 20 h. Leave k at 1 to switch the law off.
Typical battery capacities
The battery list fills in the typical capacity Wikipedia’s list of battery sizes gives for each type. A real cell’s capacity depends on the brand, the load and the temperature, so check its datasheet where it matters.
| Battery | Capacity | Voltage |
|---|---|---|
| AA alkaline | 2700 mAh | 1.5 V |
| AAA alkaline | 1200 mAh | 1.5 V |
| C alkaline | 8000 mAh | 1.5 V |
| D alkaline | 12,000 mAh | 1.5 V |
| 9 V alkaline | 565 mAh | 9 V |
| CR2032 coin cell | 225 mAh | 3 V |
The capacity a runtime needs
Choose “Capacity needed” to work the other way: enter the load and how long it must run, and the calculator gives the capacity and energy needed. To run 100 mA for 3 days from AA alkaline cells in pairs, two in series for 3 V, you need 7.2 Ah, so the cells needed are 6: 3 in parallel × 2 in series. With self-discharge there is a limit: a battery large enough also loses more charge each month, so beyond some runtime no capacity is enough, and the calculator says so.
Your values stay on your device
Everything is worked out in your browser. Nothing you type is sent anywhere or stored.
Frequently asked questions
How do I calculate battery life?
Divide the battery capacity by the current the device draws. With the capacity in mAh and the current in mA, the answer is in hours: a 3,000 mAh battery running a 500 mA load lasts 3000 ÷ 500 = 6 h. Real batteries give somewhat less, so treat it as an upper estimate.
How long will a 100 Ah battery last?
It depends on the load. At 10 A, a simple estimate is 100 ÷ 10 = 10 hours, but a lead–acid battery rated at the 20-hour rate gives less at higher current: with a Peukert exponent of 1.2 it lasts about 8 h 42 min. Running 60 W from a 12 V 100 Ah battery draws 5 A, which gives 20 h.
How do I convert watt-hours to mAh?
Divide the watt-hours by the battery voltage to get amp-hours, then multiply by 1000 for milliamp-hours. An 11.1 Wh battery at 3.7 V holds 11.1 ÷ 3.7 = 3 Ah, which is 3,000 mAh.
How long will a CR2032 coin cell last?
A 225 mAh CR2032 running a sensor that wakes for half a second at 10 mA every 5 minutes and sleeps at 2 µA averages 18.636 µA, which gives about 503 days 2 h. Coin cells suit small currents: Wikipedia lists the CR2032’s maximum discharge current as 3 mA.
Do batteries in parallel last longer?
Yes. Batteries in parallel add their capacity at the same voltage, so two 3,000 mAh batteries in parallel run a 500 mA load for 12 h instead of 6 h. Batteries in series add their voltage instead, and keep the capacity of one battery.
Is anything I type sent anywhere?
No. Everything is worked out in your browser, and nothing you type is sent anywhere or stored.