Battery Calculator (mAh, Wh and Run Time)

A battery's size is printed in milliamp-hours (mAh) or watt-hours (Wh). Milliamp-hours count the charge it holds; watt-hours count the energy, which also depends on the voltage. Enter the capacity and voltage to convert one to the other, or switch to "Run time" to see how long it can power a device: a 5,000 mAh, 3.7 V battery holds 18.5 Wh.

mAh
V
Energy
18.5 Wh

5,000 mAh at 3.7 V holds 18.5 Wh.

In amp-hours 5 Ah
In joules 66,600 J
Capacity

How to convert milliamp-hours (mAh) to watt-hours (Wh)

Multiply the milliamp-hours by the voltage and divide by 1,000. One amp-hour is 3,600 coulombs of charge and one watt-hour is 3,600 joules, so 1 amp-hour at 1 volt is exactly 1 watt-hour. Going the other way, mAh = Wh × 1,000 ÷ volts.

Wh = mAh × V ÷ 1,000

Here it is with your numbers:

  1. Multiply the milliamp-hours by the volts and divide by 1,000: 5,000 × 3.7 ÷ 1,000 = 18.5 Wh.

It means a full battery stores 18.5 Wh of energy.

Source NIST Guide to the SI (SP 811) · Appendix B.8, factors for units listed alphabetically ↗

How to calculate battery run time

Divide the watt-hours by the watts the device uses, or the milliamp-hours by the milliamps it draws. Energy is power × time, so time is energy ÷ power. A 5,000 mAh, 3.7 V battery powering 2 W lasts 9 hours 15 minutes.

hours = Wh ÷ W (or mAh ÷ mA)

Here it is with your numbers:

  1. Multiply the milliamp-hours by the volts and divide by 1,000: 5,000 × 3.7 ÷ 1,000 = 18.5 Wh.
  2. Divide the watt-hours by the watts: 18.5 ÷ 2 = 9.25 hours.

It means a full battery runs this load for 9 hours 15 minutes, if all of its stored energy reaches the load.

This is the ideal run time: it assumes all the stored energy reaches the device, so treat it as an upper limit.

Source OpenStax College Physics 2e · 20.4 Electric Power and Energy ↗

mAh to Wh chart

mAhAt 3.7 VAt 3.85 V
1,000 mAh3.7 Wh3.85 Wh
2,000 mAh7.4 Wh7.7 Wh
3,000 mAh11.1 Wh11.55 Wh
5,000 mAh18.5 Wh19.25 Wh
10,000 mAh37 Wh38.5 Wh
20,000 mAh74 Wh77 Wh
26,800 mAh99.16 Wh103.18 Wh

Every figure is rounded to 6 significant figures. The voltage to use is the battery's nominal voltage, printed on it or its label.

Why mAh alone doesn't compare batteries

Milliamp-hours leave out the voltage. The same 5,000 mAh holds 18.5 Wh at 3.7 V but 60 Wh at 12 V, so a battery with fewer mAh can hold more energy. Watt-hours put both on the same footing.

Sources

Related calculators