Battery Life Calculator
Calculators · Added
Divide capacity by current and you get a runtime — but it is always longer than the real one, because a cell never gives back every milliamp-hour on its label. This works the division both ways: the theoretical figure, and the figure once you have set how much of the pack you actually expect to use. It also reports the C-rate, which is the number that tells you whether the whole calculation is even close.
How to use the battery life calculator
- 1Enter the battery capacity in milliamp-hours, or pick one of the common cells.
- 2Enter the average current the circuit draws — the average over a whole duty cycle, not the peak.
- 3Set the usable-capacity percentage. 85% is a reasonable default; 100% gives the theoretical maximum.
- 4Add the pack voltage if you also want the energy in watt-hours and the average power.
- 5Read the runtime, and check the C-rate line before trusting a high-current result.
Examples
A sensor on a AA pair
- Input
- 2500 mAh, 5 mA average, 85% usable
- Result
- 425 hours — about 17 days
The kind of low, steady draw where this arithmetic is at its most reliable.
A phone battery under load
- Input
- 4500 mAh, 600 mA average, 85% usable, 3.85 V
- Result
- 6 h 22 min, and 17.3 Wh of stored energy
0.13C is a gentle rate for a lithium cell, so the estimate holds up well.
A high draw that breaks the assumption
- Input
- 1000 mAh, 2000 mA average
- Result
- 30 min at 100% usable, but flagged at 2C
At twice the pack's own capacity per hour, the cell delivers noticeably less than rated and the answer is optimistic.
About the battery life calculator
What a capacity rating actually promises
A milliamp-hour is a quantity of charge: one milliamp flowing for one hour. A 2000 mAh cell should therefore supply 2000 mA for an hour, or 20 mA for a hundred hours, and to a first approximation it does. That first approximation is the calculation on this page, and for gentle, steady loads it is accurate enough to plan around.
The rating is measured under specific conditions, which the datasheet states and marketing does not. Typically that means a constant current discharge at a low rate, at around 20 °C, down to a defined cut-off voltage. Change any of those and the number changes. Discharge faster and internal resistance wastes energy as heat inside the cell rather than delivering it to your circuit. Run it cold and the chemistry slows down. Stop at a higher cut-off voltage — which your regulator decides, not the cell — and some of the charge is simply left behind.
None of this makes the rating dishonest, but it does make it a ceiling rather than a forecast. The usable-capacity percentage on this page exists so the forecast can be separated from the ceiling, and so the assumption is visible instead of buried in the arithmetic.
Getting a useful average out of a bursty circuit
Most battery-powered designs are deliberately bursty, because sleeping is cheap and working is expensive. The way to handle that is to work in charge rather than current: for each phase of the cycle, multiply its current by its duration, add the products, and divide by the total cycle time. A device drawing 100 mA for 2 seconds and 0.05 mA for 598 seconds uses 200 mA-seconds plus 29.9 mA-seconds over 600 seconds, which averages 0.38 mA.
That figure is what goes in the box above, and the result usually surprises people — the sleep current, which looks negligible, often dominates the total once it is multiplied by the time spent in it. Halving the transmit power of a device that sleeps 99% of the time changes almost nothing. Halving the sleep current can double the battery life.
The one thing an average cannot capture is whether the cell can supply the peak at all. A coin cell has a high internal resistance, so a brief 30 mA demand may collapse its voltage enough to reset the circuit even though the average draw is microamps. That is a question about the cell's internal resistance rather than its capacity, and it needs the datasheet rather than this page.
Frequently asked questions
Why does the calculator want an average current rather than the peak?
What is a C-rate and why does it matter here?
Why can I not use 100% of the capacity?
Does this apply to rechargeable and disposable cells alike?
How do I convert milliamp-hours to watt-hours?
Related tools
Ohm's Law Calculator
Calculators
Enter any two of voltage, current, resistance and power to get the other two.
LED Resistor Calculator
Calculators
Work out the series resistor an LED needs, and what to actually buy for it.
Electricity Bill Calculator
Calculators
Estimate a monthly bill from appliance usage, on flat or slab tariffs.