ECEdge

Exam: GATE 2027 exams are on 6, 7, 13, 14, 20 and 21 February 2027. Official GATE 2027 site

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