Battery-powered sensors spend most of their time asleep. Their life depends on the average current over a full wake-sleep cycle.
How to use this calculator
- Enter the battery capacity and the usable fraction (80 % allows for ageing and cut-off voltage).
- Enter the active current and how long each wake-up lasts.
- Enter the sleep current and how often the device wakes.
Formula
Iavg = (Ia × ta + Is × (T − ta)) / T, life = C × k / IavgWorked example
2000 mAh, 80 mA for 2 s every 10 minutes, 10 µA asleep: Iavg = 0.276 mA → about 241 days.
Frequently asked questions
Why is my real battery life shorter?
Self-discharge, cold temperatures, voltage regulator losses and current spikes (Wi-Fi, LoRa TX) all reduce it. Measure your real currents if you can.
What matters most for long life?
Usually the sleep current and how often the device wakes. Cutting a 100 µA sleep current to 5 µA can multiply battery life.
Results are for learning and preliminary design. Check critical work against the relevant codes and a qualified engineer.