IoT Battery Life Estimator
Estimate microcontroller sleep cycles and battery life in your browser. Assumptions are shown alongside the results.
Battery and consumption
Sensor sampling scenario
Estimated battery life
1.6 yearsHours
14,004.01
Days
583.5
Years
1.6
- Average current
- 0.1383 mA
- Self-discharge current
- 0.004566 mA
- Effective capacity
- 2,000 mAh
- Estimated cycles
- 840,241
Battery life is dominated by circuit consumption.
Consumption split
Formula: I_avg = (I_active × t_active + I_sleep × t_sleep) / (t_active + t_sleep). C_eff = C × usable% / max(1, I_avg^(k−1)). I_sd = C × annual% / 100 / 8760 h. Life = C_eff / (I_avg + I_sd). 1 year = 8760 h.
About
Estimate IoT battery life from active and deep-sleep current, sampling cycles, the Peukert effect, and annual self-discharge. Includes AA alkaline, 18650 Li-ion, and CR2032 presets and shows the consumption split between active and sleep.
Examples
Weighted average current
estimateBatteryLife({ capacityMah: 1000, activeCurrentMa: 50, sleepCurrentMa: 0.5, activeSeconds: 2, sleepSeconds: 8 }){ averageCurrentMa: 10.4 }(50×2 + 0.5×8) / 10 seconds gives the 10.4 mA duty-weighted mean.
Self-discharge ceiling
estimateBatteryLife({ ..., activeCurrentMa: 0, sleepCurrentMa: 0, selfDischargeAnnualPercent: 10 }){ runtimeHours: 87600, selfDischargeLimited: true }With no load draw, the 10%/year shelf loss alone caps life at ten years.
About this tool
IoT Battery Life Estimator projects sensor-node runtime with estimateBatteryLife({ capacityMah, activeCurrentMa, sleepCurrentMa, activeSeconds, sleepSeconds, peukertExponent, selfDischargeAnnualPercent }): average current is the duty-weighted mean, effective capacity applies an optional Peukert derating, and the final runtime is the minimum of the capacity budget and the self-discharge ceiling.
Duty math is explicit: activeShare/sleepShare split the period, active/sleepConsumptionPercent split the charge, and estimatedCycles counts full wake/sleep periods inside the runtime. BATTERY_PRESETS ships AA (2000 mAh), 18650 (3000 mAh), and CR2032 (220 mAh); SAMPLE_SCENARIOS covers 1-minute, 5-minute, and hourly sampling.
Edge behavior is well-defined: zero average current yields infinite capacity runtime (bounded only by self-discharge), Peukert exponents clamp at ≥1, and identical inputs always return identical results.
How to use this tool
Describe the battery
Set capacityMah directly or copy a BATTERY_PRESETS entry (CR2032 = 220 mAh).
Describe the duty cycle
Enter active/sleep currents plus activeSeconds/sleepSeconds per period — e.g. 1 s awake, 59 s asleep.
Add aging knobs
Optionally set peukertExponent above 1 for high-drain derating and selfDischargeAnnualPercent for shelf-loss ceilings.
Read the limiting factor
Check runtimeHours/Days/Years plus selfDischargeLimited to see whether capacity or shelf life dominates.
Use cases
Sizing sampling intervals
Compare 1-minute versus hourly wakeups to trade data freshness against years of life.
Choosing a cell
Contrast CR2032 coin cells against AA or 18650 packs for the same duty cycle.
Spotting sleep-current leaks
See when sleepConsumptionPercent dominates and justify a lower-quiescent regulator.
Common mistakes
Mistake:Averaging currents without duty weighting.
Fix:Mean current is (active×tActive + sleep×tSleep) / period — a 50 mA burst at 20% duty is only ~10 mA average.
Mistake:Expecting infinite life at zero load.
Fix:Zero draw still hits the self-discharge ceiling — set selfDischargeAnnualPercent to bound shelf life realistically.
Mistake:Applying Peukert to coin cells by default.
Fix:Leave peukertExponent at 1 for low-rate IoT loads; raise it only when high pulse currents actually sag capacity.
Frequently asked questions
What does this tool do?
It projects sensor-node life with estimateBatteryLife: duty-weighted average current, optional Peukert derating, self-discharge ceiling, runtime in hours/days/years, cycle count, and consumption splits, with BATTERY_PRESETS and SAMPLE_SCENARIOS built in.
How long does a CR2032 last sampling once a minute?
With 8 mA active / 5 µA sleep at 1 s per 60 s on a 220 mAh CR2032, average draw is ~0.14 mA — on the order of two months, bounded further by self-discharge settings.
Is my deployment data uploaded or stored?
No. Duty-cycle math and aging projections run entirely in your browser.
Why is my runtime infinite, or self-discharge limited?
Zero average current gives infinite capacity runtime, so the self-discharge ceiling takes over (selfDischargeLimited true). Set selfDischargeAnnualPercent for a realistic shelf-life bound.
Related guides
References & standards
Related tools
Battery Status Monitor
Watch battery level, charging state and discharge rate live with a rolling chart and time-to-empty projection.
Bluetooth Device Inspector
Inspect BLE GATT trees in the browser: services, characteristics, descriptors, live values and notifications.
Browser Benchmark
Measure JavaScript and DOM performance with deterministic, transparent benchmark suites.
Device Information
See what your browser reveals about your device — screen, hardware hints, platform and capabilities.
Digital Bubble Level
Measure surface tilt with a visual bullseye and a ±0.2° level threshold.
Digital Compass
Read a device heading with a manual desktop simulator and magnetic interference guidance.