Skip to content
Back to Calculators

Battery Life Calculator

Estimate runtime, required capacity, or maximum current for battery-powered devices.

mA
% duty
mA
% duty

Advanced Settings

Enter values to see results

Tips for Accuracy

  • • Use actual measured current, not datasheet typical values
  • • Account for all power modes (active, sleep, deep sleep)
  • • Consider temperature effects on battery capacity
  • • Add 20-30% safety margin to your estimates

Battery Chemistry Reference

ChemistryNominal VMax DoDSelf-DischargeNotes
Li-ion / LiPo3.7V80-90%2-3%/monthMost IoT applications
LiFePO43.2V80%1-2%/monthLong cycle life
Alkaline1.5V90%2-3%/yearPrimary (non-rechargeable)
NiMH1.2V90%15-20%/monthHigh self-discharge
Lead Acid2V/cell50%3-5%/monthDeep cycle rated
CR2032 (Lithium)3V90%1%/yearCoin cell, very low self-discharge

Understanding Battery Life

Battery runtime depends on capacity, average current draw, and efficiency factors. For devices with multiple power modes, the duty cycle of each mode determines the average current consumption.

Basic Formula

Runtime (hours) = Capacity (mAh) / Current (mA)

A 2000mAh battery at 100mA gives 20 hours. But real-world factors reduce this.

Duty Cycle Average

Iavg = Σ (In × Dutyn)

If a device uses 50mA for 10% of the time and 10µA for 90%, average = 5.009mA.

Power Optimization Strategies

Use Sleep Modes

Modern MCUs can drop to µA levels in sleep. Wake only when needed using interrupts or timers.

Reduce Transmit Time

Radio transmission is the biggest power consumer. Batch data, use compression, and minimize TX power.

Lower Clock Speed

Run at the minimum clock speed needed. Many MCUs scale power linearly with frequency.

Power Gating

Use MOSFETs to completely disconnect unused peripherals like sensors, LEDs, or communication modules.

Efficient Regulators

Switching regulators are more efficient than linear regulators, especially with large voltage drops.

Measure Real Current

Datasheet values are typical. Use a current meter or power profiler to measure actual consumption.

Example Scenarios

IoT Temperature Sensor

  • • Battery: CR2032 (225mAh)
  • • Active: 15mA for 100ms every 10min (0.017% duty)
  • • Sleep: 2µA (99.98% duty)
  • • Average: 2.6µA
  • • Runtime: ~8 years theoretical

GPS Tracker

  • • Battery: 18650 (2600mAh)
  • • GPS Fix: 35mA for 30s every 5min (10% duty)
  • • Transmit: 150mA for 2s every 5min (0.67% duty)
  • • Sleep: 50µA (89.3% duty)
  • • Runtime: ~20 days

Formula Source and Checked Examples

The calculator first works out an average current: each load's current is multiplied by its duty cycle and the results are added. If the duty cycles do not add up to 100%, the total is scaled so that they do. Usable capacity is the rated capacity multiplied by the depth of discharge. The base runtime is usable capacity divided by average current.

Self-discharge is then applied with our own simplified correction: runtime = base / (1 + s × base / 720), where s is the monthly self-discharge as a fraction and 720 is the number of hours in a 30-day month. The capacity and current modes apply the same factor in the other direction. This is a first-order estimate, not a battery model.

The result leaves out the things that most often shorten real battery life: capacity loss at high discharge current and low temperature, the cut-off voltage of your regulator, regulator efficiency and quiescent current, pulse loads on coin cells, and ageing. Use measured currents, and treat the output as an upper estimate.

The rows below were entered in the live calculator (local production build) and checked by hand calculation. Last run: November 20, 2026.

Mode and inputsResultAverage currentAlso shown
Runtime: 2600 mAh, 3.7 V; 50 mA at 10% and 0.01 mA at 90%; 80% depth of discharge; 3% per month17.0 days (408.2 hours)5.01 mAUsable energy 7.70 Wh
Runtime: 225 mAh, 3 V; 5 mA at 1% and 0.002 mA at 99%; 80%; 1% per month4.6 months (3304.0 hours)51.98 µAUsable energy 0.54 Wh
Capacity: 30 days at 3.7 V; 50 mA at 10% and 0.01 mA at 90%; 80%; 3% per month4.64 Ah5.01 mARequired energy 17.18 Wh

Hand check for row 1: average = 50 × 0.10 + 0.01 × 0.90 = 5.009 mA; usable = 2600 × 0.8 = 2080 mAh; base = 2080 / 5.009 = 415.25 h; runtime = 415.25 / (1 + 0.03 × 415.25 / 720) = 408.2 h = 17.0 days. Found an error? Email hello@yourpcb.com.