Battery Life Calculator

Runtime from capacity and load, sleep-mode averaging, Peukert for lead-acid, and sizing

Estimate battery runtime from capacity in mAh, Ah or Wh and load in mA, A or W, including devices that sleep most of the time and Peukert's law for lead-acid, or find the battery capacity needed for a target runtime.

EngineeringUpdated October 21, 2026Checked against 6 reference values

What this calculator does

This calculator estimates how long a battery will run a device, or how big a battery you need for a target runtime. Enter the battery's rated capacity in mAh, Ah or Wh, its voltage, and the device's current draw in mA or its power in watts. For devices that sleep most of the time, such as sensors and remotes, add the share of time they are active and their idle current, and it works out the average draw.

Choose the battery chemistry to start from a sensible usable capacity. Lead-acid batteries also get a Peukert correction, because their effective capacity drops at higher currents. The chart shows how runtime changes if the load goes up or down.

The formulas

Runtime (h) = rated capacity (Ah) × usable share ÷ average current (A)

Average current = I_active × duty + I_idle × (1 − duty)

Peukert: t = H × (C ÷ (I × H))^k

Watt-hours are converted to amp-hours by dividing by the battery voltage, and watts to amps the same way. In Peukert's law C is the capacity at the rated discharge time H, usually 20 hours for lead-acid batteries, and k is the Peukert exponent, about 1.1 to 1.3 for lead-acid and close to 1 for lithium cells. Real runtime also depends on temperature, age, cutoff voltage and the efficiency of any voltage converter, which the usable share is meant to cover.

Worked examples

A 3,000 mAh lithium cell at 250 mA. With 90% usable, it runs about 10.8 hours.

A coin cell sensor. A 220 mAh coin cell powering a sensor that wakes 1% of the time at 20 mA and sleeps at 10 µA averages 0.21 mA and lasts about 39.3 days. Cutting the active time matters far more than the sleep current here.

A 100 Ah lead-acid battery at 10 A. Using only half the capacity to protect it and k = 1.25, it runs 3.54 hours, less than the 5 hours a simple division suggests.

Sizing a power bank. To run a 150 mA device for 2 days with 85% usable, you need 8,471 mAh at the cell voltage.

How much of the rating can you use?

ChemistryTypical usable share
Lithium-ion, LiPo80 to 95%
LiFePO₄80 to 95%
NiMHabout 85%
Alkaline50 to 90%, lower at high drain
Lead-acid, deep cycle50% for long life

Guide values; check the manufacturer's datasheet for discharge curves at your current and temperature.

mAh versus Wh

Milliamp-hours measure charge, and only compare batteries of the same voltage. Watt-hours measure energy and allow fair comparisons across voltages. A 10,000 mAh power bank rated at its 3.7 V cells holds 37 Wh, but delivers less at its 5 V USB output, typically 60 to 70% of the rating once the boost converter's losses are counted. Airlines limit carry-on lithium batteries by watt-hours, usually 100 Wh without approval, for the same reason.

Ways to make a battery last longer

Lower the average current: reduce screen brightness, transmit less often, or let a microcontroller sleep between readings. Keep batteries near room temperature, since cold weather can cut available capacity by a third or more. For rechargeable lithium cells, partial charges between about 20% and 80% extend cycle life, and storing them half charged slows aging. For lead-acid batteries, avoid deep discharges, which shorten their life sharply. Check the device's real current with a USB power meter or a multimeter in series, because datasheet figures are often typical rather than worst case and radios can draw short peaks many times the average.

Battery Life Calculator: common questions

How do I calculate battery life?

Divide the usable capacity in amp-hours by the average current in amps. A 2,000 mAh battery at 200 mA lasts about 10 hours in theory; allow 10 to 20% less in practice.

How do I convert Wh to mAh?

Divide watt-hours by the voltage and multiply by 1,000. A 37 Wh battery at 3.7 V is 10,000 mAh.

What is Peukert's law?

An empirical rule that lead-acid batteries deliver less total capacity when discharged quickly. Runtime falls faster than the current rises, controlled by an exponent of about 1.1 to 1.3.

Why does my device run less than the calculation says?

Batteries lose capacity with age and cold, devices draw current in bursts, and voltage converters waste some energy. The usable share setting accounts for this; lower it if your results run long.

How do sleep modes affect battery life?

Hugely. A sensor drawing 20 mA when awake but awake only 1% of the time averages about 0.2 mA, so it can run 100 times longer than at full current.

Sources

  • Battery University, BU-503 How to Calculate Battery Runtime
  • Peukert, W. (1897). Über die Abhängigkeit der Kapazität von der Entladestromstärke bei Bleiakkumulatoren. Elektrotechnische Zeitschrift 18, 287-288
  • IEC 61960-3:2017, Secondary lithium cells and batteries for portable applications (rated capacity definitions)