🔬
🔬 Science & engineering

Battery Life Calculator (mAh & load)

Results update as you type.

Your numbers

Understanding the battery life calculator — concept and principle

This calculator estimates how long a battery will power a device from its rated capacity in milliamp-hours (mAh) and the device's average current draw. It is useful for sizing batteries for sensors, remote controls, IoT nodes, flashlights and portable gadgets, or for comparing two battery options before you buy.

A 2,000 mAh battery drawn as 40 blocks of 50 mAh2,000 mAh is 40 blocks of 50 mAh. 85% of it, 1,700 mAh or 34 blocks, is usable; at 50 mA each block lasts one hour, so the battery runs 34 hours, about 1.42 days.Count the usable blocks, one per houreach square = 50 mAh = 1 hour at 50 mAusable 85% = 1,700 mAh (34)kept back 15% = 300 mAh (6)1,700 ÷ 50 mA = 34 habout 1.42 days
Only the usable 1,700 mAh counts: at 50 mA that is 34 hours, about 1.42 days.

How it is calculated

The usable fraction (for example 85%) discounts the rated capacity for real-world losses: cut-off voltage, temperature, ageing and the fact that rated capacity is measured under gentle test conditions. Capacity and current must use the same unit (mAh with mA, or Ah with A).

The principle

A milliamp-hour is a quantity of electric charge: 1 mAh is a current of 1 mA flowing for one hour (3.6 coulombs). If a battery can deliver a certain charge and the device takes charge at a steady average rate, the time it lasts is simply charge divided by rate. For devices that sleep and wake, use the time-weighted average current: (I_active × t_active + I_sleep × t_sleep) ÷ total time.

Worked example

  1. Inputs: capacity 2000 mAh, average current 50 mA, usable fraction 85%.
  2. Usable charge = 2000 × 0.85 = 1700 mAh.
  3. Run time = 1700 ÷ 50 = 34 h.
  4. Days = 34 ÷ 24 = 1.416666667 days.
How Run time (h) changes with Average current (mA)How Run time changes with Average current025507510012515012.52537.55062.575100Example: 34Average current (mA)
Each point is the calculator re-run with only “Average current (mA)” changed; the gold point is the default example. Change the inputs above and this chart follows your numbers.
Average current (mA)Run time (h)
12.5136
2568
37.545.33333333
5034
62.527.2
7522.66666667
10017

How to read the result

Treat the result as an estimate. For high currents relative to capacity, real run time is often shorter because internal resistance causes voltage to sag to the cut-off earlier; alkaline cells are especially affected. Cold temperatures reduce available capacity, and self-discharge matters for devices that run for months or years. If the result is close to your requirement, choose a larger battery or reduce the average current; cutting sleep current is usually the biggest win for low-power devices.

Common mistakes

Keep in mind: Real battery life depends on chemistry, temperature, discharge rate, age and cut-off voltage. Use the manufacturer's discharge curves for important designs.

Frequently asked questions

How long will a 5000 mAh power bank last with a 500 mA load?

Ideally 10 hours, but power banks list cell capacity at about 3.7 V; after conversion to 5 V and losses, usable output is often around 60–70% of that rating.

Why does my battery run out faster than calculated?

Common reasons are a higher real average current, cold weather, an aged battery, or a device that shuts off at a higher voltage than expected.

What usable fraction should I use?

There is no single value; 80–90% is a reasonable starting assumption for a new battery at moderate load and room temperature.

Sources: K. W. Beard (ed.), Linden's Handbook of Batteries, 5th ed., McGraw-Hill

Checked 8 Nov 2026. Standard textbook formulas in SI units, computed in your browser. For learning and estimates — real designs must follow your local codes and be checked by a qualified engineer.

🔬 All science & engineering tools →🌍 Calculators by country →