Free tool

Battery life calculator

Work out how long the battery of a sensor or IoT device will last from what it draws in each state: asleep, measuring and transmitting. You get the average current, the battery life and how much of the energy each state uses.

Tools

Estimate the battery life of a battery-powered device

A battery-powered device spends most of its time asleep and wakes up every so often to measure and send data. Pick an example or enter your own values: the calculator splits each cycle into the three states and tells you how long the battery will last.

Battery life calculator

Start from an example and change whatever does not match your device. For the active states, enter the current and how long each one lasts every time the device wakes up.

Battery
Device consumption

The examples are rough guides. Replace them with what you measure on your board: the gap between the chip datasheet and the real board is often large.

Result--The estimated battery life and the consumption breakdown will appear here.

How it is calculated

Each wake-up is one cycle: the device measures, transmits and goes back to sleep until the next one. The calculator adds up what it uses in each part of the cycle.

Average current
  • Charge per state = current × time.
  • Sleep fills the rest of the interval.
  • Average current = total charge ÷ interval.
Battery life
  • Usable capacity = capacity × usable %.
  • Self-discharge becomes an equivalent current: capacity × yearly % ÷ 8,760 h.
  • Battery life = usable capacity ÷ (average current + self-discharge).
What usable capacity to enter
  • Rated capacity is measured under ideal conditions: low current, room temperature and down to the manufacturer's cut-off voltage.
  • 80% is a reasonable starting point. Lower it in the cold, with strong current peaks or if your circuit shuts down before the battery is empty.

Quick guide

What extends and what shortens the battery life of an IoT device

In a device that sleeps most of the time, battery life is decided by the sleep current and the radio. Before touching the firmware, look at the breakdown the calculator gives you: it shows where the energy goes.

Quick read

  • If sleep takes the biggest share, check the board before the code: the voltage regulator, the power LED and the USB converter on many development boards keep drawing current while the chip sleeps.
  • If transmitting takes the biggest share, send less often, batch data into a single message or shorten the connection.
  • Coin cells handle current peaks poorly: with transmissions of tens of mA they deliver noticeably less than their rated capacity.
  • With currents of a few µA, self-discharge can outweigh the device itself: a primary lithium cell is the better choice there.

Average current

The charge of each state, spread over the interval between wake-ups.

I avg = (I sleep × t sleep + I meas × t meas + I tx × t tx) / T

Battery life

Usable capacity divided by total consumption, self-discharge included. k is the usable fraction.

Life (h) = C × k / (I avg + I self-discharge)

FAQ

Frequently asked questions

The usual questions when estimating the battery life of a battery-powered device.

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.

Next step

Designing a battery-powered device?

If your product needs to run for months or years on a battery and you want help with the electronics, the firmware or the choice of battery, we can review your case and point you in the right direction.