Free tool

Battery Life Calculator for IoT, BLE and Wi-Fi Devices

Work out how long a battery will last from its capacity, the sleep current and what your device draws each time it wakes. The calculator adds the two corrections hobby calculators skip, usable-capacity derating and self-discharge. Every input lives in the URL, so a copied link reproduces your exact calculation.

Presets are typical starting points, not promises - replace them with your own measurements.

Estimated battery life
14.3 months
Average draw 18.2 µA · usable 191 mAh of 225 mAh
Active events10.0 µA · 55%
Sleep current8.0 µA · 44%
Self-discharge0.3 µA · 1%

Active events is 55% of your budget. Halving active-event consumption would add about 5.4 months of battery life.

The link reproduces these exact inputs - paste it in a review, an issue, or to a colleague.

Email me these results

The full calculation and link, in your inbox. No list, no follow-up sequence.

Talk to an engineer about your design: free 30-minute call

Bring this calculation. We will go through the power budget with you, board and firmware together, and point to where the biggest saving is likely to be. If the firmware is the part you need built, see low-power embedded firmware development.

How this calculator works

Average current is the duty-cycle weighted sum of your two states: active current for the seconds the device is awake, sleep current for the rest of the interval. Battery life is usable capacity divided by that average. Two corrections matter in real designs. First, you never get the rated milliamp-hours - cutoff voltage, temperature and peak-current sag typically leave 80-90% usable. Second, batteries drain themselves: once your average draw is in single-digit microamps, chemistry self-discharge can quietly become the biggest consumer in the budget, which is why a coin-cell design that "should" run nine years dies in four.

What usually dominates

In event-driven designs, sleep current dominates far more often than teams expect - not the MCU itself, but the regulator quiescent current, sensor standby draw and stray pull-ups around it. A board whose MCU sleeps at 2 µA routinely idles at 40 µA as a system. Measure the whole board, not the datasheet. For the design side of that problem, see low-power design for battery devices and choosing a battery: chemistry, safety and UN 38.3.

Frequently asked questions

How do you calculate how long a battery will last?

Battery life in hours is usable capacity divided by average current. The average weights active current by the share of time awake, adds sleep current for the rest, and adds self-discharge as a steady drain. In the Wi-Fi sensor (ESP32) preset, 160 mA for 3 s every 10 minutes averages 0.8 mA; 12 µA of sleep and 3% a year of self-discharge raise it to 0.82 mA. With 85% of a 3,000 mAh 18650 usable, 2,550 mAh / 0.82 mA is about 3,100 hours, or 4.2 months.

How long does a CR2032 coin cell battery last?

About 14.3 months in the default BLE sensor beacon preset: 225 mAh, 85% usable (191 mAh), 8 µA asleep and 6 mA for 1.5 s every 15 minutes, averaging 18.2 µA. Active events are 55% of that and sleep 44%; halving the active-event consumption would add about 5.4 months. Pulse current is the harder limit: above 15 mA the calculator warns that the cell can sag below brown-out during a burst, whatever capacity is left. The Wi-Fi preset's 160 mA is over ten times that.

How long do AA batteries last in a low-power IoT device?

About 5.0 years in the LoRa node preset, on an AA lithium (L91) rated 3,000 mAh with 85% usable, sleeping at 5 µA and drawing 45 mA for 2 s every 30 minutes: an average of 58.4 µA. Active events are 86% of that, and halving their consumption would add about 3.7 years. An AA alkaline is rated 2,500 mAh in the calculator and self-discharges about 3% a year, against about 1% for lithium, so the same node runs for less time on alkaline.

How long does a LiPo battery last on one charge?

About 7.5 days in the always-on wearable preset: a 500 mAh LiPo with 90% usable (450 mAh) and a steady 2.5 mA draw. With no sleep, life is simply usable capacity divided by current, about 180 hours here, so halving the draw would add about 7.5 days. LiPo self-discharge, 3 to 5% a year, barely registers at that current: 5% a year is 2.9 µA, under 1% of the budget.

How accurate is this battery life calculator?

As accurate as the currents you enter. It is the standard duty-cycle average plus the two corrections hobby calculators skip: only the usable share of rated capacity counts, typically 80 to 90%, and chemistry self-discharge is added as a steady drain. Temperature, cutoff voltage and current peaks are not calculated separately; the usable percentage stands in for them, and an active current above a listed cell's typical pulse rating gets a warning. Measure the whole board, asleep and awake, and replace the preset values with your numbers.

When the number matters commercially

If this calculation decides whether your product promise is "replace yearly" or "replace monthly", it is a product decision, not a firmware detail - and it is cheaper to fix in architecture than in recall. That end of the problem is our day job: hardware for startups explains how a first engagement works, and a free 30-minute technical call is the fastest way to sanity-check a power budget against someone who has shipped on coin cells.