Calculate battery runtime from mAh capacity and current draw, the mAh capacity you need, or convert mAh to Wh and Ah at a nominal voltage.

mAh is charge (milliamps × hours), not milliamps per hour.

Use the current drawn from the battery, not a converter’s output current.

Optional settings
Blank means 100% (ideal). Enter a lower value if only part of the rated charge is usable.

Calculator Functions

FunctionWhat it doesWhat it requires
Battery runtimeFinds how many hours a battery lasts at a steady current drawRequires the rated charge capacity in mAh or Ah and the average current in mA or A
Required rated capacityFinds the mAh rating needed to supply a current for a set timeRequires the average current and the duration in hours, minutes or days
Average current drawFinds the current that drains a battery in a set timeRequires the rated charge capacity and the duration
Watt-hours from mAhConverts a mAh rating to energy in watt-hoursRequires the rated charge capacity and the nominal battery voltage, which starts at 3.7 V
Milliamp-hours from WhConverts an energy rating in Wh or mWh to mAhRequires the energy and the nominal battery voltage

The first three functions have an optional Usable rated capacity (%), for a battery that delivers only part of its rating. Left blank it is 100%. Their results also give the charge in Ah and the duration in minutes and days.

Milliamp-Hour Formulas

C = I × t
CCharge capacity (mAh)
IAverage current (mA)
tTime (hours)

A milliamp-hour is a milliamp multiplied by an hour, not milliamps per hour. It is a unit of electric charge: one amp-hour is 3,600 coulombs [1], and 1 Ah = 1,000 mAh.

Battery runtime

t = C × u ÷ I

u is the usable fraction of the rated capacity, which is 1 unless a percentage is entered. A 3,000 mAh battery feeding a 150 mA load runs for 3,000 ÷ 150 = 20 hours. With 80% usable, the same battery runs for 3,000 × 0.8 ÷ 150 = 16 hours.

Milliamp hours to hours

A mAh rating does not convert to hours by itself, because the hours depend on the current being drawn. Hours are the mAh rating divided by the current in mA: 300 mAh lasts 3 hours at 100 mA and 30 hours at 10 mA. The table gives the hours for common ratings with the full rating usable, and multiplying by 60 gives minutes.

CapacityAt 10 mAAt 100 mAAt 500 mAAt 1 A
300 mAh30 h3 h0.6 h0.3 h
450 mAh45 h4.5 h0.9 h0.45 h
1,000 mAh100 h10 h2 h1 h
3,500 mAh350 h35 h7 h3.5 h
5,000 mAh500 h50 h10 h5 h
10,000 mAh1,000 h100 h20 h10 h
20,000 mAh2,000 h200 h40 h20 h

Required rated capacity

C = I × t ÷ u

A device drawing 74 mA for 20 hours needs 74 × 20 = 1,480 mAh. If only 80% of a battery’s rating is usable, the rating has to be 1,480 ÷ 0.8 = 1,850 mAh.

Average current draw

I = C × u ÷ t

A 5,000 mAh battery that lasts 10 hours has supplied an average of 5,000 ÷ 10 = 500 mA.

Watt-hours from mAh

Wh = mAh ÷ 1,000 × V [2]

The mAh rating is divided by 1,000 to get amp-hours and multiplied by the battery voltage [2]. A 10,000 mAh power bank at a nominal 3.7 V holds 10 × 3.7 = 37 Wh. The usable capacity percentage is not applied to this conversion.

Milliamp-hours from Wh

mAh = Wh ÷ V × 1,000

A 96 Wh battery at 12 V holds 96 ÷ 12 × 1,000 = 8,000 mAh, or 8 Ah.

Limits of This Estimate

  • Runtime is an ideal figure for a steady current. Real capacity and runtime change with discharge current, temperature, battery age, cutoff voltage and the device’s circuitry.
  • The current is the current drawn from the battery itself. Where a converter changes the voltage, such as a 3.7 V power bank with a 5 V output, the output current is not the battery current.
  • Watt-hours use one nominal voltage, while a battery’s voltage falls as it discharges. The marked Wh rating on a battery takes priority over a calculated one.

Sources

  1. NIST, Guide for the Use of the International System of Units (SP 811), Appendix B.8: the ampere hour as 3,600 coulombs of charge
  2. Federal Aviation Administration, Airline Passengers and Batteries: watt-hours from volts and amp-hours, and from milliamp-hours