IoT battery-life calculator
Estimate battery life for a device with sensors and a radio. Compare consumption during sensor measurement, data processing, radio activity and sleep.
For example, a wireless temperature monitor wakes every 60 seconds, reads its sensors, processes the readings and handles the radio communication. It then returns to sleep. Replace the example inputs with your device’s currents and timings.
Sleep time per cycle: 59.8 s · Active portion of cycle: 0.283 %
Where does the battery charge go?
These shares represent consumed charge. At constant voltage they also represent energy shares.
What if the cycle runs half as often?
The comparison keeps all three active-state durations and currents unchanged. The cycle interval doubles and sleep time increases.
| Cycle | Average current | Calculated runtime |
|---|---|---|
| Current cycle: 60 s | 48 µA | 1,670 days |
| Doubled cycle: 120 s | 27.5 µA | 2,910 days |
Method and assumptions
Iavg = (Isleep × tsleep + Isense × tsense + Iprocess × tprocess + Iradio × tradio) / T + Iconstant
t (h) = C (mAh) × usable (%) / 100 / Iavg (mA)
The formula uses each state’s average current in milliamps and its duration in seconds. Iradio and tradio cover the complete radio event. Sleep time equals the cycle length minus the combined sensing, processing and radio activity durations. Runtime in days = runtime in hours / 24.
Check example: 1,000 mAh, 100% usable capacity and a continuous 10 mA draw give a calculated runtime of 100 hours, or about 4.17 days.
The estimate assumes a repeating cycle and battery-side currents that already account for voltage-conversion losses. Combine simultaneous activities into one state. The model does not simulate battery chemistry, self-discharge, temperature, cutoff voltage or voltage droop during current pulses. Verify actual runtime with measurements; the result is not a guarantee.
Sources
Your inputs stay in your browser. Nothing is sent to Haksi unless you choose to submit an enquiry.
Help with a hardware project
Haksi works on electronics, firmware and manufacturing. Tell us what you are building and where you need help.
Contact Haksi →You can review and edit the message before sending it.