Battery life calculator for IoT and embedded projects
Estimate how long a battery runs a device that wakes up briefly and sleeps the rest of the time.
Battery life
Most battery projects sleep most of the time. Enter how much current your device draws awake and asleep, and how much of the time it is awake.
I_avg = I_awake × d + I_sleep × (1 − d), life = usable capacity / I_avg
How it works
- Average current = awake current × time awake + sleep current × time asleep.
- Battery life = usable capacity ÷ average current.
- Count only about 80% of the rated capacity: batteries lose some to age, temperature and cut-off voltage.
Worked example
2,000 mAh at 80% usable, 80 mA awake for 2% of the time, 10 µA asleep: average = 1.6 + 0.0098 = 1.61 mA, so 1,600 ÷ 1.61 ≈ 994 hours, about 41 days.
Common questions
How do I measure sleep current?
Put a multimeter in series on its µA range, or use a current sensor such as the INA219. Many dev boards waste current on LEDs and regulators, so the bare chip often sleeps far lower.
Why is my battery life shorter than the estimate?
Common causes are a power LED left on, a regulator with high quiescent current, radio start-up spikes, and cold weather.
More calculators
- Resistor colour codePick the four colour bands and get the resistance, tolerance and the range the real part can fall in.
- Ohm's law and powerEnter any two of voltage, current, resistance and power.
- Voltage dividerTwo resistors in series split the input voltage.
- RC filter cut-offGet the cut-off frequency and time constant of a first-order RC filter, low-pass or high-pass.
- RL filter cut-offGet the cut-off frequency and time constant of a first-order RL filter.
- 555 timer (astable)Get the frequency, high and low times and duty cycle of a 555 timer running in astable mode.
- Op-amp gainGet the gain of an inverting or non-inverting op-amp amplifier, in times and in dB, and the output for a given input.
- Number base converterConvert between decimal, binary, hexadecimal and octal.
- Decibel converterConvert a power or voltage ratio to decibels, or decibels back to a ratio.
- SGPA calculatorEnter each subject’s credits and grade to get your semester grade point average.
- Digital logic toolsTruth tables, K-maps, simplifier and gates.