Battery Life Calculator
Estimate battery runtime for IoT and portable devices given average current draw, duty cycle, self-discharge rate, and depth-of-discharge cutoff. Suitable for LiPo, alkaline, NiMH, and coin-cell batteries.
Capacity ÷ duty-cycled current · linear self-discharge · DoD cutoffAPI slug battery-life
Load budget
Loads on the battery · current in mA, duty in %, runtime in h| Move up | Load | CurrentmA | Duty% | Σ ImA | Runtimeh | Current share | Load actions | |
|---|---|---|---|---|---|---|---|---|
| Device | 100 | 15.99 | 100.0 % | |||||
Σ columns give each value at the row’s output: the chain cut after that row.
1 to 100 000 mAh
0 to 30 %/month
0 to 80 %
Formula
Nordic Semiconductor PWR Profiler methodology; Texas Instruments SLUA364
| Symbol | Quantity | Your value |
|---|---|---|
| Ieff | Effective current after duty cycle (mA) | 100 mA |
| Iavg | Average current draw (mA) | 100 mA |
| D | Duty cycle (%) | 100.0 % |
| Ik, D_k | Current and duty cycle of the device and each additional load (mA, %) | — |
| C | Battery capacity (mAh) | 2 000 mAh |
| SoCmin | Cutoff state of charge (%) | 20.0 % |
| Rsd | Self-discharge per hour (mAh/h) | 2.0 %/month |
Assumptions
5 items
- 01Each load draws a constant current for its share of the time, so its average is I·D/100; the device and up to seven further loads (MCU, radio, sensor, sleep current) add: I_eff = Σ I_k·D_k/100.
- 02The battery is a fixed charge in mAh: the discharge rate, the temperature, the voltage curve, pulse loads and ageing do not change it, so Peukert’s effect and cold-weather loss are not modelled.
- 03The device stops at the cutoff state of charge, so the usable charge is C·(1 − SoC_min/100); the cutoff is a share of the charge, not a voltage.
- 04Self-discharge is a constant drain of the rated capacity, C·R_sd/100 per 30-day month (720 h), added to the load current for the whole life; real self-discharge falls as the charge does, so this slightly overstates it.
- 05The runtime is the usable charge over the total drain, t = C·(1 − SoC_min/100)/(I_eff + R_sd); a regulator’s efficiency and quiescent current count only if entered as a load.
Worked example
LoRa sensor node on two lithium AA cells
A LoRa sensor node runs from two lithium AA cells of 3 000 mAh, which self-discharge 0.1 % a month, and stops at 10 % charge. It sleeps at 10 µA, and its MCU draws 5 mA for 0.5 % of the time, its radio 44 mA for 0.05 % and its sensor 1.5 mA for 0.2 %. How long do the cells last?
| Step | Expression | Result |
|---|---|---|
| Effective current | 10 µA × 100 % + 5 mA × 0.5 % + 44 mA × 0.05 % + 1.5 mA × 0.2 % | 60 µA |
| Self-discharge drain | 3 000 mAh × 0.1 % / 720 h | 4.167 µA |
| Usable capacity | 3 000 mAh × (1 − 10 %) | 2 700 mAh |
| Runtime | 2 700 mAh / (60 µA + 4.167 µA) | 42 080 h |
| In days | 42 080 h / 24 | 1 753 days |
How it works
The battery life calculator estimates runtime from capacity, load current, and duty cycle — essential for IoT devices, wearables, and portable electronics design. Embedded systems engineers, product designers, and field application engineers use this tool to size batteries and optimize power budgets. For example, a BLE sensor node that draws 15 mA during transmission (1% duty cycle) and 3 µA in sleep mode averages about 153 µA — a 2000 mAh cell provides about 545 days of operation. Battery capacity measurement and Peukert modeling follow IEC 61960 (Secondary lithium cells and batteries for portable applications) and IEC 60086 (Primary batteries) standards. The calculator’s equation, Runtime = Capacity × (1 - Cutoff SoC) / (Average_Current + Self-Discharge drain), assumes constant discharge, but real batteries exhibit nonlinear discharge curves: lithium-ion cells deliver 90% of rated capacity above 3.6 V but only the final 10% between 3.6 V and 3.0 V cutoff. Peukert's equation (Cp = I^k × t) models rate-dependent capacity loss — a 2000 mAh battery at C/10 rate delivers full capacity, but at 1C rate delivers only 1850 mAh (7.5% loss per Energizer application note).
Practical tips
- Per Nordic Semiconductor AN-9102, measure actual sleep current with nA-resolution ammeter (Keithley 6221/2182A or Joulescope) — firmware bugs often cause 100× higher sleep current than specification
- Use Panasonic or Murata battery life calculators for chemistry-specific Peukert corrections — alkaline batteries lose 30% capacity at 100 mA versus 10 mA discharge rate
- Include 20-30% design margin for manufacturing variation, battery aging (10% capacity loss per 500 cycles), and field temperature extremes
Common mistakes
- Using peak current instead of average current — a GPS module drawing 50 mA for 5 seconds every hour has 69 µA average, not 50 mA (720× overestimate)
- Ignoring temperature effects — lithium-ion capacity drops 20% at 0°C and 40% at -20°C per Samsung SDI specifications; size batteries for worst-case operating temperature
- Assuming 100% usable capacity — most devices require minimum operating voltage above battery cutoff; a 3.3 V LDO needs >3.5 V input, losing the bottom 15% of lithium-ion capacity
Frequently asked questions
5 questions
How does temperature affect battery life?
Per Energizer application manual, capacity varies significantly with temperature. At -20°C: alkaline retains 50% capacity, lithium primary retains 85%, lithium-ion retains 60%. At +45°C: self-discharge doubles, reducing shelf life by 50%. Lithium iron phosphate (LFP) offers best cold performance, retaining 80% capacity at -20°C.
What is battery duty cycle?
Duty cycle is the fraction of time a device operates at peak current. A device drawing 100 mA for 10 ms every second has 1% duty cycle and 1 mA average current. IoT devices typically achieve <0.1% duty cycle — LoRaWAN Class A sensors may transmit only 0.001% of the time, enabling 10+ year battery life from AA cells.
Why do batteries have a cutoff percentage?
Cutoff voltage prevents damage from deep discharge. Lithium-ion cells suffer irreversible capacity loss below 2.5 V — copper dissolution from the anode contaminates the electrolyte. Lead-acid batteries experience sulfation below 10.5 V (12 V system). Most devices use 10-20% reserve margin, cutting off at 3.0-3.2 V for Li-ion.
How accurate are battery life calculators?
Calculators provide ±20% estimates under ideal conditions. Real-world factors reducing accuracy: Peukert effect (5-15% loss at high current), temperature variation (20-40% swing), self-discharge accumulation (1-5%/month for NiMH), and load transients. Validate predictions with controlled discharge tests at expected operating conditions.
Do all battery types have similar self-discharge rates?
No — self-discharge varies 100× between chemistries. Per Battery University data: lithium thionyl chloride <1%/year, lithium-ion 2-3%/month, NiMH 15-20%/month (1%/day), lead-acid 3-5%/month. For long-term deployment (>1 year), use lithium primary cells (Tadiran, Saft) with <1%/year self-discharge.
Shop Components
As an Amazon Associate we earn from qualifying purchases.
- DC-DC Buck Converter ModulesAdjustable step-down converter modules for bench and prototype useAmazon →
- LDO Voltage Regulator KitAssorted low-dropout linear regulators for prototypingAmazon →
- Electrolytic Capacitor KitAluminum electrolytic capacitor kit for power supply filteringAmazon →
- Power Inductor KitAssorted shielded power inductors for switching supply designsAmazon →