Battery Life Calculator

How long a battery lasts from its capacity in mAh or Wh and the load in mA or watts.

Average draw — measure it if you can
Nominal, e.g. 3.7 Li-ion
80% is a sensible default
Runtime
16 h 0 min
16.00 hours
Usable capacity
1,600 mAh
Average draw
100.0 mA

Real runtime is usually shorter: capacity drops with high current, cold and age, and converters lose 10–20%.

The basic formula

runtime (h) = capacity (mAh) × usable fraction ÷ load (mA)
mAh = Wh × 1000 ÷ volts      mA = W × 1000 ÷ volts

Use the battery’s nominal voltage when converting between watts and amps: 3.7 V for a Li-ion cell, 12 V for a lead-acid battery, 1.2 V for NiMH.

Usable capacity

  • Lead-acid: only about 50% if you want it to last many cycles.
  • Lithium iron phosphate (LiFePO4): 80–90%.
  • Li-ion / LiPo: 80% is a safe planning figure; a protection circuit cuts off before empty.
  • Alkaline: capacity falls sharply at high current — fine for remotes, poor for motors.

If the load goes through a boost converter or inverter, also allow for its efficiency, typically 80–95%.

Common questions

How long will a 2000 mAh battery last?

At a steady 100 mA, about 20 hours in theory, or 16 hours using 80% of the rated capacity — a more realistic figure.

How do I convert mAh to Wh?

Multiply by the voltage and divide by 1,000. A 3,000 mAh, 3.7 V cell holds 3,000 × 3.7 ÷ 1,000 = 11.1 Wh.

Why does my battery run out sooner than calculated?

Capacity is rated at a low discharge rate and room temperature. High current, cold weather, age and the efficiency of any regulator or inverter all reduce real runtime.

How do I estimate the load of a device that sleeps?

Average it: (active current × active time + sleep current × sleep time) ÷ total time. A sensor drawing 20 mA for 1 s every minute and 50 µA otherwise averages about 0.38 mA.

MathApps is free and ad-free for now. If it helped, buy us some art supplies — supporters never see ads, even if we add them.