Battery Life Calculator
Battery life from a sleep, active and transmit duty cycle, with self-discharge, usable capacity, regulator efficiency and the pulse sag a coin cell can take.
Battery
Lithium coin cell. ESR climbs past 30 Ω as it empties.
mAh, from the datasheet at low drain.
% of the rating you will really get. 80 is realistic.
% of capacity lost per month.
Volts.
Ohms. Coin cells are tens of ohms.
Where the MCU or radio resets.
Current profile, per wake-up
µA, everything on the board while asleep.
Seconds between wake-ups.
mA while measuring or computing.
ms per wake-up.
mA during a radio burst or the like.
ms per wake-up.
%. 100 for an LDO; 85–95 for a buck.
Estimated life
180 mAh usable ÷ 7.81 µA average = 23,057 hours7.5 µA308 nA7.81 µA1,383,4172.7 V (sag 300 mV)20 mA is above the 10 mA or so this cell type delivers comfortably; capacity at that pulse current will be well below the rating.
Sleep current is 64 % of the drain. Every microamp there is worth more than any change to the active phases.
Where the charge goes
Charge per wake-up by phase. The biggest share is the one worth optimising, and it is usually not the biggest current.
| Phase | Per wake-up | Share | |
|---|---|---|---|
| Sleep | 300 µC | 64.0% | |
| Active | 50 µC | 10.7% | |
| Peak | 100 µC | 21.3% | |
| Self-discharge | 18.5 µC | 3.9% |
Average current is the only number that matters
A battery holds a certain amount of charge and the device takes it out at some average rate; life is the ratio. Everything difficult about the estimate is in the word average. A sensor node that sleeps at 5 µA, wakes for 10 ms at 5 mA and transmits for 5 ms at 20 mA does not draw "about 5 mA" or "about 20 mA" — it draws the charge of each phase summed over a wake-up, divided by the interval. For a 60 s interval that is 0.3 mC asleep, 0.05 mC active and 0.1 mC transmitting: 0.45 mC per minute, or 7.5 µA. The 20 mA burst that looks like the whole story is a fifth of the drain.
Sleep current wins or loses it
That arithmetic is why sleep current dominates almost every low-power design. It is small, but it is on for 99.97 % of the time. Cutting the transmit burst in half saves 0.05 mC per wake-up; cutting sleep current from 5 µA to 2 µA saves 0.18 mC. The breakdown table shows the share each phase takes, and the phase with the biggest share is the one to work on — which is usually the one with the smallest current.
The sleep figure has to be the whole board's, not the microcontroller's. A 100k/100k divider to sense the battery voltage draws 15 µA from a 3 V cell continuously, three times the MCU's sleep current, and it is the kind of thing that appears on a schematic without anyone thinking of it as a load. LDO quiescent current, pull-ups, the brown-out detector, an unused peripheral clock, a debug pin left driving a pull-down — measure the board asleep with a meter that resolves microamps, then put that number in.
Rated capacity is not usable capacity
The mAh on the label was measured at a low, steady current down to a cutoff voltage, at room temperature, on a fresh cell. Your device runs pulses, may reset above that cutoff, sits in the cold, and the cell has been on a shelf. Each takes a slice. Eighty percent is a fair working figure for a gentle load; a coin cell delivering radio bursts may give half its rating, because the pulses pull the voltage below the device's minimum while plenty of charge is still inside. The usable field is where that judgement goes, and the tool reports the usable figure it actually divided by.
Self-discharge is a load too
Every cell leaks. A lithium coin cell loses about a percent a year, an alkaline two or three, a modern low-self-discharge NiMH a percent or two a month, an older NiMH twenty. The tool converts the rate into an equivalent current and adds it to the load, and for a device that wakes rarely the comparison can be startling: a 225 mAh coin cell at 1 % a year is leaking 0.3 µA, which is a third of a well-designed node's sleep current before the device does anything at all. When self-discharge takes the biggest share, the chemistry is the lever, not the firmware.
Coin cells and the pulse problem
Capacity is not the only thing a cell has to supply. A CR2032 has an internal resistance of ten to twenty ohms fresh and thirty or more as it empties. A 20 mA radio burst through 15 Ω drops 0.3 V; through 40 Ω, 0.8 V. The cell that reads 3.0 V at rest is at 2.2 V during the burst, and if the radio's minimum is 2.3 V the device resets mid-packet with most of the charge still in the cell. The tool computes the voltage under the largest pulse and compares it with the device minimum you give it. The standard fix is a capacitor across the cell — a few hundred microfarads supply the burst and recharge slowly between them — or a cell that can deliver the current. Lithium thionyl chloride cells have superb shelf life and the same weakness; the hybrid-layer-capacitor versions exist for exactly this reason.
Regulators: what the efficiency field means
An LDO passes the load current through: what the load draws, the battery supplies, plus the regulator's own quiescent current, which belongs in the sleep figure. Set efficiency to 100 for an LDO. A buck converter draws less current from a higher-voltage battery — power in equals power out over efficiency — and the field lets you account for it. But most bucks are efficient at milliamps and poor at microamps, and their quiescent current can exceed the sleep load; check the datasheet's light-load curve rather than the headline figure before assuming a buck helps a device that mostly sleeps.
Measure, then calculate
The estimate is exactly as good as the currents you type in, and the currents are the part that surprises people. The active and peak figures come from the datasheets and are usually close; the sleep figure comes from the board and is usually not. Measure it. Then the wake interval is a firmware decision, and the timer prescaler calculator gives the register values for the RTC or timer that sets it. If the device senses its own battery, the voltage divider calculator shows what that divider draws — and it is a reason to switch it through a transistor rather than leave it connected.
Frequently asked questions
Why not just divide capacity by the average current?
That is exactly what the tool does — the work is in getting both numbers right. The average has to be built from charge per wake-up across sleep, active and peak phases, and the capacity has to be the amount you will actually get out, not the figure on the label. Most estimates that are wrong by a factor of two got one of those two inputs wrong, not the division.
What should I put for usable capacity?
Around 80 % is realistic for most cells. The rated figure is measured at a low, steady drain down to a cutoff voltage your device may not reach; cold, age and pulse loads all take more off. A coin cell feeding radio bursts may deliver only half its rating. Set it to 100 to see the datasheet-ideal figure, then decide how much margin the product needs.
How do I measure the sleep current?
With a meter that resolves microamps, on the battery lead, with the device genuinely asleep — and expect the first reading to be higher than the datasheet. Pull-ups, a brown-out detector, an LDO's quiescent current, a voltage-sense divider, a debug pin left driving: each adds microamps that the microcontroller's own sleep figure does not include. The sleep field is for the whole board.
Why does the tool warn about the pulse on a coin cell?
A CR2032 has tens of ohms of internal resistance, rising as it empties. A 20 mA radio burst through 15 Ω drops 0.3 V; through 40 Ω, 0.8 V, and the cell that reads 3.0 V open-circuit is at 2.2 V during the burst. If that is below the radio's minimum, the device resets mid-transmission long before the cell is empty. The usual fix is a capacitor across the cell to supply the pulse, or a cell with lower resistance.
Does a switching regulator help battery life?
It can, but not in the way the efficiency figure suggests. A buck converter at 90 % efficiency draws less current from a higher-voltage battery, which this tool models through the efficiency field. But at microamp loads most bucks are far below their headline efficiency, and their own quiescent current can exceed the load. For a device that sleeps nearly all the time, an LDO with a few hundred nanoamps of quiescent current often wins.
The estimate says fifteen years. Is that real?
No. Past about ten years the cell's seal, its self-discharge and the electrolyte set the limit rather than your load — primary lithium cells are typically rated for ten years of shelf life. The tool flags it. If the arithmetic gives fifteen, you have margin; plan on the shelf-life figure.
Related tools
- I²C Pull-Up Resistor CalculatorThe window between pulling low and rising in time, with the standard values inside it.
- NTC Thermistor CalculatorADC counts to temperature, with the resolution and self-heating the divider decides.
- Ohm's Law CalculatorAny two of V, I, R and P give the other two, and it shows its working.