InfiniteCalcs

Battery Life Calculator

Use this battery runtime calculator to estimate how long a battery can power a device from battery capacity and average current draw.

Battery Life Calculator Tool

Enter your values in the calculator above, then use the explanations below to understand the result, check assumptions, and compare scenarios.

About this calculator

Use this battery runtime calculator to estimate how long a battery can power a device from battery capacity and average current draw. It is useful for portable electronics, IoT devices, sensors, backup equipment, and other DC loads where capacity is expressed in mAh or Ah. The result is a planning estimate: actual runtime can change with battery chemistry, discharge rate, temperature, age, cutoff voltage, converter losses, and load variation.

Battery runtime is commonly estimated by dividing usable battery capacity by average load current. When capacity and current use the same ampere-hour scale, runtime in hours is approximately capacity divided by current. For example, a 10,000 mAh battery supplying an average 500 mA load has an idealized runtime of about 20 hours. Real batteries often deliver less usable energy than their nominal rating under actual operating conditions.

Treat the calculated runtime as an ideal or preliminary estimate rather than a guaranteed operating time. A device with pulsed loads, startup surges, sleep modes, inverter losses, or changing current draw may need an average-current measurement over a representative duty cycle. Lithium-ion, LiFePO4, lead-acid, and other chemistries also differ in usable depth of discharge and voltage behavior, so energy-based watt-hour analysis may be more appropriate when voltage changes or AC inverters are involved.

Worked examples

10,000 mAh battery with a 500 mA load

A portable device averages 500 mA from a battery rated at 10,000 mAh.

  1. Use runtime = capacity รท current
  2. Divide 10,000 mAh by 500 mA
  3. The idealized result is 20 hours

Result: Estimated ideal runtime is about 20 hours before accounting for real-world losses.

2,400 mAh battery with a 120 mA load

A sensor node averages 120 mA and uses a 2,400 mAh battery.

  1. Keep capacity and current in matching mAh and mA units
  2. Divide 2,400 by 120
  3. Runtime = 20 hours

Result: The ideal estimate is about 20 hours; actual runtime may be lower depending on chemistry and operating conditions.

Runtime for an intermittent IoT load

A device alternates between a low-current sleep state and higher-current transmissions.

  1. Determine average current over a representative duty cycle
  2. Use that average current rather than only the peak current
  3. Divide usable capacity by the average current

Result: Duty-cycle averaging gives a more meaningful runtime estimate for intermittent loads.

Practical tips

  • Use measured average current when the load changes over time.
  • Keep mAh with mA or Ah with A so the units cancel correctly to hours.
  • Allow margin for battery aging, temperature, self-discharge, and converter losses.
  • For inverter-powered AC loads, consider a watt-hour or kWh energy calculation instead of current alone.
  • Check the battery manufacturer's discharge curves when runtime is critical.

Common mistakes

  • Dividing mAh directly by watts without accounting for voltage.
  • Using peak current instead of representative average current for a duty-cycled device.
  • Assuming every battery can deliver 100% of its nameplate capacity.
  • Ignoring inverter or DC-DC converter efficiency.
  • Comparing battery capacities at different voltages as though mAh alone represented equal stored energy.

Ideal battery runtime examples

Battery capacityAverage loadIdeal runtime
2,000 mAh100 mA20 hr
5,000 mAh250 mA20 hr
10,000 mAh500 mA20 hr
20 Ah2 A10 hr

Key terms

Amp-hour (Ah)
A battery-capacity unit representing current multiplied by time.
Milliamp-hour (mAh)
One-thousandth of an amp-hour, commonly used for smaller batteries.
Watt-hour (Wh)
An energy unit that accounts for both electrical capacity and voltage.
Depth of discharge
The portion of a battery's stored capacity removed during a discharge cycle.
Duty cycle
The pattern of active and inactive operation that determines a changing load's average current.

Frequently asked questions

How do I calculate battery runtime from mAh?
Divide battery capacity in mAh by the device's average current in mA. A 5,000 mAh battery supplying 250 mA has an idealized runtime of about 20 hours.
Can I calculate battery runtime from watts?
Yes, but an energy-based calculation is more appropriate. Convert battery capacity to watt-hours using voltage and amp-hours, then divide usable watt-hours by load watts while accounting for conversion efficiency.
Why is actual battery runtime shorter than the calculator result?
Nominal capacity may not all be usable. Temperature, battery age, discharge rate, cutoff voltage, wiring loss, converters, inverters, and changing load current can reduce real operating time.
Does this work as a lithium battery runtime calculator?
It provides a useful first estimate when capacity and average current are known. For lithium-ion or LiFePO4 systems, also consider usable depth of discharge, battery-management cutoff limits, voltage, and conversion efficiency.
How do I estimate UPS battery runtime?
UPS runtime is usually better estimated from battery energy in watt-hours, AC load in watts, inverter efficiency, and the UPS manufacturer's discharge data because runtime is not determined by amp-hours alone.
Should I use average or maximum current?
Use representative average current for runtime estimation. Maximum or surge current remains important for verifying that the battery, wiring, and power electronics can safely supply the load.