Battery Life Calculator for IoT Devices

Estimate how long a battery-powered device will run when it spends most of its time asleep and wakes up periodically to measure and transmit.

Average current
Battery life
In hours
Wake-ups per day

Runs entirely in your browser. Nothing you enter is sent anywhere.

How it works

Battery life depends on the average current, not the peak. A device that draws 80 mA for 2 seconds every 10 minutes and sleeps at 10 µA the rest of the time averages well under 1 mA.

Real batteries don't deliver their full rated capacity, especially in the cold, at high pulse currents or near end of life, so the usable-capacity setting derates it. 70–85% is a reasonable starting point.

I_avg = (I_active × t_active + I_sleep × (T − t_active)) / T
Life (h) = Capacity (mAh) × usable% / I_avg (mA)

Worked example

A 2,000 mAh battery powers a sensor that draws 80 mA for 2 s every 600 s and sleeps at 10 µA. Average current is (80 × 2 + 0.010 × 598) / 600 = 0.277 mA. At 80% usable capacity it lasts 1,600 / 0.277 ≈ 5,780 hours, about 241 days.

Frequently asked questions

Why is sleep current so important?

A device sleeps for more than 99% of its life in many IoT designs, so even a few extra microamps in sleep, from a regulator or a pull-up resistor, can cut battery life dramatically.

Does this account for battery self-discharge?

Not directly. For multi-year designs, lower the usable capacity to cover self-discharge, which varies by chemistry (very low for lithium primary cells, higher for NiMH).

Related tools