What data do I need to calculate battery life?
The battery capacity, the sleep current and, for each active state (measuring and transmitting), the current and how long it lasts per wake-up. Plus how often the device wakes up.
Why does my battery last less than the result?
Rated capacity is measured under ideal conditions. Cold, current peaks, the voltage at which your circuit shuts down and ageing all reduce it. That is why the calculator uses a usable capacity: if your device works outdoors or with strong peaks, lower it.
How do I measure my device's consumption?
Sleep current can be measured with a multimeter in series with the supply. Active states last milliseconds or a few seconds and have peaks: to measure them you need a logging current meter or an oscilloscope with a sense resistor.
Does it work for rechargeable batteries?
Yes. In that case the result is how long it lasts between charges. Bear in mind that rechargeable lithium batteries self-discharge much more than primary lithium cells.
Is the calculator free?
Yes. It runs in your browser, with no sign-up and nothing to download.