How to Estimate IoT Battery Life From a Duty Cycle
A worked example for a battery-powered sensor node: list every state with its current and time, sum the charge per reporting cycle, fold it into an average current, then derate the cell, add self-discharge and check the pulse the radio draws.
To estimate IoT battery life, list every state the device passes through in one reporting cycle, with its current and its duration. Add up the charge, divide by the cycle length to get the average current, and add self-discharge. Divide the usable share of the cell's capacity by that total. The Battery Life Calculator does the last step.
The method is simple. The work is in the inputs: a real node has more than two states, the sleep floor is rarely the number on the MCU datasheet, and the usable share of the cell depends on your cutoff voltage, load and temperature. This post walks through one complete example with every assumption stated, then shows which inputs move the answer most. For techniques that lower the currents themselves, read Reducing Power Consumption in Battery Devices.
The example: a LoRa sensor node on 2 x AA lithium cells
The node wakes every 15 minutes, reads a sensor, sends one LoRa packet and listens for a reply, then sleeps. The currents below are example bench measurements for a board like this, not figures from a named part. Replace each one with your own measurement before you rely on the result.
Power comes from two AA lithium iron disulfide cells in series. Series cells add voltage, not capacity, so the pack is about 3 V and 3,000 mAh. The 3,000 mAh is the tool's typical figure for an AA lithium cell, not a datasheet value. As one reference point, Energizer's lithium handbook works an AA example at 3,600 mAh for a 100 mA drain to a 0.9 V cutoff. Read your own cell's datasheet at your load and your cutoff voltage.
Step 1: Build the charge budget for one cycle
Charge is current times time. Multiply each state's current by how long it lasts, in mA and seconds, and you get mA·s. The cycle is 15 minutes, 900 s, and the node is awake for 6 s of it, so it sleeps for the other 894 s. Dividing each state's charge by 900 s gives its share of the average current.
| State | Current x time | Charge per cycle | Average over 900 s |
|---|---|---|---|
| Sleep: MCU, regulator, sensor standby, leakage | 18 µA x 894 s | 16.09 mA·s | 17.88 µA |
| Wake and sensor warm-up | 1.5 mA x 2 s | 3.00 mA·s | 3.33 µA |
| Read and process | 3 mA x 0.8 s | 2.40 mA·s | 2.67 µA |
| Radio TX | 45 mA x 1.2 s | 54.00 mA·s | 60.00 µA |
| Receive windows | 12 mA x 2 s | 24.00 mA·s | 26.67 µA |
| Total | 900 s cycle | 99.49 mA·s | 110.55 µA |
Step 2: Fold the awake states into one
The calculator takes two states: a sleep current, and an active current with its time per event. Fold the four awake states into one by adding their charge and their time. Here that is 83.4 mA·s over 6 s, so the equivalent active current is 13.9 mA for 6 s. The fold is exact, because the sleep time is the cycle minus the awake time either way.
Step 3: Add self-discharge and derate the cell
Self-discharge is a slow drain that runs whether the node is awake or not. The model treats a yearly percentage of the rated capacity as a constant current: 3,000 mAh x 1% a year / 8,760 h is 3.42 µA. Then take only the share of the rating you expect to get out, here 85%.
| Line | Value |
|---|---|
| Average load current, from step 1 | 110.55 µA |
| Self-discharge, 1% a year of 3,000 mAh | 3.42 µA |
| Total average drain | 113.97 µA |
| Usable capacity, 85% of 3,000 mAh | 2,550 mAh |
| Life: 2,550 mAh / 113.97 µA | 22,374 hours, about 2.6 years |
The tool rounds the total to 114.0 µA and splits it into active events 81%, sleep 16% and self-discharge 3%. That split tells you where to work next.
Where the charge goes: the radio
The transmit burst is 54 of the 83.4 mA·s the node spends awake, 65% of it. Halve the time on air to 0.6 s and the awake charge falls to 56.4 mA·s over 5.4 s, an equivalent 10.44 mA. The average drops to 84.0 µA and the estimate rises to 30,363 hours, about 3.5 years.
Time on air is not free to cut. A faster data rate shortens the packet and also shrinks the link margin, so check the range with the RF Link Budget Calculator before you trade one for the other.
The sleep floor is where datasheet numbers go wrong
An MCU datasheet quotes deep sleep for the MCU alone. The board's floor also carries the regulator's quiescent current, the sensor in standby, pull-up resistors that are held low and leakage. Measure it on the assembled board. Same node, same 15-minute cycle, four sleep floors:
| Sleep current | Average drain | Life (hours) | Life |
|---|---|---|---|
| 2 µA | 98.1 µA | 26,000 | 3.0 years |
| 5 µA | 101.1 µA | 25,233 | 2.9 years |
| 18 µA | 114.0 µA | 22,374 | 2.6 years |
| 40 µA | 135.8 µA | 18,774 | 2.1 years |
Going from 18 µA down to 2 µA buys 16% more life. Letting the floor drift up to 40 µA costs 16%. In this node the radio dominates, so the floor matters less than it would in a node that wakes rarely. To compare sleep figures across parts before you choose one, start from the MCU Selector, then confirm in each datasheet.
The reporting interval is the biggest lever
Every wake-up costs the same 83.4 mA·s, so the interval scales the largest term directly. Same node, 18 µA sleep:
| Interval | Average drain | Life (hours) | Life |
|---|---|---|---|
| Every 5 minutes | 299.1 µA | 8,527 | 11.7 months |
| Every 15 minutes | 114.0 µA | 22,374 | 2.6 years |
| Every 30 minutes | 67.7 µA | 37,667 | 4.3 years |
| Every 60 minutes | 44.6 µA | 57,225 | 6.5 years |
At 60 minutes the sleep floor has grown to 40% of the budget, so the two levers start to work together. Treat the 6.5 years as arithmetic, not a promise. The model holds temperature, self-discharge and firmware behaviour constant for the whole life, and no bench test before launch can confirm a figure that long.
Derate the cell before you trust the number
The usable share is the input people leave at 100%. The same node, step by step from the raw rating to a more cautious set of assumptions:
| Assumption | Usable capacity | Average drain | Life |
|---|---|---|---|
| Full 3,000 mAh, no self-discharge | 3,000 mAh | 110.55 µA | 27,138 h (3.1 years) |
| 85% usable | 2,550 mAh | 110.55 µA | 23,067 h (2.6 years) |
| 85% usable, 1% a year self-discharge | 2,550 mAh | 113.97 µA | 22,374 h (2.6 years) |
| 70% usable (assumed) | 2,100 mAh | 113.97 µA | 18,426 h (2.1 years) |
| 2 x AA alkaline, 2,500 mAh, 85%, 3% a year | 2,125 mAh | 119.11 µA | 17,841 h (2.0 years) |
| 2 x AA alkaline, 60% usable | 1,500 mAh | 119.11 µA | 12,594 h (17.2 months) |
Where the usable share comes from: the cutoff voltage, the load and the temperature. Energizer's alkaline handbook shows it plainly: an AA cell at 100 mA gives 2,500 mAh to a 0.8 V cutoff and 1,500 mAh to 1.2 V, 60% of it. That is a heavier load than this node draws, so take it as the shape of the effect, not as your number. If your regulator or MCU stops at a high voltage, the last part of the cell stays unused.
Self-discharge depends on the chemistry and on heat. Energizer gives cylindrical alkaline cells about 3% a year at 20 °C, lithium coin cells about 1% a year at room temperature, and AA lithium iron disulfide cells about 95% of capacity retained after 20 years of storage. The tool uses 1% a year for lithium primary cells, the cautious end of the two lithium figures. Warm storage raises all of them.
Cold is less of a problem for lithium iron disulfide than for alkaline. Energizer's lithium handbook gives an operating range of -40 °C to +60 °C and says the AA cell delivers about its full rated capacity at -40 °C at a 25 mA drain. For chemistry choices beyond primary cells, see Choosing a Battery for Your Hardware Product.
Check the pulse, not only the average
An average current says nothing about whether the cell can deliver the burst. Run the same profile on a CR2032 coin cell (225 mAh, the tool's typical figure) and the average is 110.8 µA, about 2.4 months, which is already a poor fit. The worse problem is the 45 mA transmit burst. Energizer's coin handbook puts the starting internal resistance of a 2032 cell near 10 ohms, and says it rises as the cell discharges.
45 mA through 10 ohms is a 0.45 V drop on a fresh cell, and the drop grows as the cell discharges. The tool warns above 15 mA for a CR2032, a deliberately cautious figure, but it only sees the folded 13.9 mA, so here it stays silent: folding averages the burst away. Check the peak of every state yourself. The AA lithium cell has no such problem: its handbook says the AA size can deliver pulses up to 3 A over 100 ms to 2 s. Size the cell for the average and for the peak.
Measure it, then compare with the estimate
- Capture one full cycle with enough time resolution to see the transmit burst and the receive windows as separate shapes.
- Measure the sleep floor over minutes, not seconds, on the assembled board with the firmware you will ship.
- Integrate the charge of each state and put it next to the matching row of your budget table. The row that disagrees is where the estimate was wrong.
- Add the rare events as their own rows: network joins, retries, sensor calibration, firmware updates. Charge per event times events per day, divided by 86,400 s, is that event's share of the average current.
- Re-run the estimate with the measured numbers, and keep the table with the design files.
Rare events add up. A daily 30 s event at 20 mA is 600 mA·s a day, which spreads to 6.94 µA, about 6% of this node's 113.97 µA budget. Instruments and firmware techniques for getting the currents down are in Reducing Power Consumption in Battery Devices.
What the estimate cannot tell you
- Ageing and temperature swings: the model holds both constant for the whole life.
- Cell-to-cell spread: two cells from the same box will not end on the same day.
- Firmware that fails to sleep: one stuck peripheral or a retry loop on a weak link can multiply the average current.
- Field conditions: a node at the edge of coverage transmits more, and longer, than the one on your bench.
Use the estimate to compare designs and to find the dominant term, then keep a margin on whatever you promise. Our firmware development work covers low-power behavior and bring-up on the first prototypes, where these numbers are first measured.
Sources
- Energizer, Cylindrical Primary Lithium Handbook and Application Manual (Form No. 12004-A): capacity example, operating range, cold performance, pulse capability, storage.
- Energizer, Primary Lithium Coin Handbook and Application Manual: 2032 internal resistance, self-discharge, cutoff voltage.
- Energizer, Alkaline Manganese Dioxide Handbook and Application Manual: capacity by cutoff voltage, self-discharge.
Want a second pair of eyes on your power budget before the board is built? Book a call.
Frequently asked questions
How do I measure sleep current accurately?
Measure the assembled board, running the firmware you will ship, over several minutes rather than a few seconds. Use an instrument that resolves microamps and also survives the wake-up bursts. Compare the reading with the sum of the datasheet figures for every part on the rail, and chase any gap before you trust the estimate.
Why is my real battery life shorter than the calculated one?
Usually one of four things. The sleep floor on the board is higher than the MCU figure you used. Rare events such as joins and retries were left out. The cell delivered less than its rating because of the cutoff voltage, the load or the cold. Or the firmware sometimes fails to return to sleep.
How do I estimate battery life from the figures in a manufacturer's datasheet?
Take each part's current in each mode and add the parts that are on together, state by state. Multiply by the time spent in each state, sum the charge for one cycle and divide by the cycle length. Treat the result as a first pass and replace every figure with a measurement once a board exists.
Does a higher-capacity battery always last longer?
Not always. A larger cell lasts longer only if it can deliver the peak current, runs above your cutoff voltage for most of its discharge and does not lose more to self-discharge. A coin cell with high internal resistance can sag below the brown-out threshold during a radio burst while plenty of charge is still left.
How much does the reporting interval change battery life?
In the worked example the interval is the largest lever. With the same node and an 18 µA sleep floor, reporting every 5 minutes gives 11.7 months, every 15 minutes 2.6 years and every 60 minutes 6.5 years on paper. Past a point the sleep floor and self-discharge take over and longer intervals help less.
How inteRFace R&D can help
Building something hardware-shaped?
We help hardware founders go from sketch to certified product. Bring the spec, or just the idea, to a free 30-minute call with a senior engineer. Prefer email? A senior engineer reads every one.
Related articles
I2C Bus Not Working? Check the Pull-Ups and Rise Time
A flaky I2C bus is often a rise-time problem. Here is how to prove it with a scope, work back to the bus capacitance, count the pull-ups already fitted and pick a value inside the window the specification allows.
Embedded SystemsCrystal Oscillator Not Starting? A Bring-Up Checklist
An MCU crystal that will not start, starts only sometimes or runs off frequency has a short list of causes. Here they are in the order to check them, with worked numbers for a 24 MHz and a 32.768 kHz crystal.
Embedded SystemsPWM to Analog Voltage: STM32 Timer and RC Filter Design
A PWM pin and one RC filter make a cheap DAC. Here is the full trade on an STM32G0 at 64 MHz: counts per period, ripple under one count, the settling time that buys, the load, and when a second stage or a real DAC wins.