Saved

Press the star next to a tool's name to save it.

All my tools

Battery Life Calculator

Enter your battery's capacity and the current your device draws, and this battery life calculator estimates how many hours it will run, in mAh or Ah.

Restored your last values ·

Leave usable capacity blank to use the battery's full rating.

Estimated battery life

–

Enter a capacity and current.

See full result

A battery life calculator estimates how long a battery will keep a device running. Enter the battery's capacity and the current that the device draws, and this battery life calculator shows the expected runtime in hours and days. It works with both milliampere-hours and ampere-hours, so you can use it for a small sensor, a pair of AA cells, a power bank or a larger lithium pack. An optional box lets you allow for the fact that batteries rarely deliver their full rated capacity in real use.

Battery life formula

Battery life (hours) = capacity (mAh) ÷ current (mA) × usable capacity

The units need to match. If your capacity is in milliampere-hours, then your current must be in milliamperes. The calculator handles the conversion if you use the unit selectors. A capacity of 3,000 mAh is the same as 3 Ah, and a current of 150 mA is the same as 0.15 A.

How to use the battery life calculator

  1. Enter the battery capacity from the label or the data sheet.
  2. Enter the current that your device draws.
  3. Add a usable capacity percentage if you'd like a more realistic estimate.
  4. Press Calculate.

Battery life example

A 3,000 mAh battery powering a device that draws 150 mA would last 3,000 ÷ 150, or 20 hours, at its full rating. If you only count on 85 percent of the capacity, it would last 17 hours. A 2,000 mAh battery with a load of 500 mA would last 4 hours in the best case.

What is an ampere-hour?

An ampere-hour, often written Ah, is a unit of electric charge used to specify the capacity of batteries. It corresponds to the charge carried by a steady current of one ampere flowing for one hour. The commonly seen milliampere-hour, or mAh, is one thousandth of an ampere-hour. For example, an AA dry cell has a capacity of about 2,000 to 3,000 milliampere-hours. A higher number means that the battery can supply the same current for longer.

Why real battery life is shorter

  • Higher currents reduce the usable capacity. A battery delivers less when it's drained quickly.
  • Temperature matters. Cold weather can reduce the output significantly.
  • Age and wear. Rechargeable batteries lose capacity over time.
  • Conversion losses. A power bank's voltage converter uses up some energy.
  • Cut-off voltage. Many devices stop working before the battery is completely empty.

Working with devices that change their current

Few devices draw a steady current. A wireless sensor might sleep at a tiny current and then wake up briefly to send data. To estimate this sort of load, find the average current. Multiply each current by the share of time that it applies, then add the results. If a device draws 100 mA for 1 percent of the time and 1 mA for the other 99 percent, the average is 1 + 0.99, or 1.99 mA.

How do I find my device's current?

Check the product's specifications or its data sheet. If it only gives power in watts, divide the power by the voltage to find the current in amperes. For example, a 3-watt device on a 5-volt supply draws 0.6 amperes, or 600 mA. For the most accurate result, measure the current with a multimeter while the device is running normally.

Batteries in series and in parallel

When identical batteries are connected in parallel, their capacities add up, while the voltage stays the same. When they are connected in series, the voltage adds up, but the capacity in milliampere-hours stays the same. So two 2,000 mAh cells in parallel give you 4,000 mAh, while in series they still give 2,000 mAh at twice the voltage. Only combine batteries of the same type and age.

Power banks and phone charging

Power banks are rated at the voltage of their internal cells, but your phone charges at a different voltage, and the conversion loses energy. As a result, a 10,000 mAh power bank won't charge a 5,000 mAh phone twice in full. Entering a usable capacity of about 60 to 70 percent gives a more realistic idea, although results differ from one product to another.

Battery safety

Don't mix old and new batteries, don't short-circuit the terminals, and use the correct charger for rechargeable cells. Stop using any battery that swells, leaks or becomes hot, and dispose of it through a suitable recycling point.

Choosing the right battery

Work backwards from how long you need your device to run. Multiply the current in milliamperes by the number of hours you want, and then add a margin of about 20 to 30 percent for losses. A device that draws 200 mA and has to run for 10 hours needs at least 2,000 mAh, so a battery of around 2,500 mAh would be a sensible choice.

Common mistakes

  • Mixing mAh and A. Choose the right unit for each value.
  • Assuming a constant current. Use the average for devices that vary.
  • Expecting the full rating. Allow for real-world losses.

Size a home backup with the inverter battery backup calculator, change units with the power converter, and plan your energy use with the solar panel calculator.

What next

Use this often? Add Battery Life to your Home screen.

Frequently asked questions

How does the battery life calculator work?

It divides the capacity by the current to give hours, then reduces that by any usable-capacity percentage you enter.

How long will a 3000 mAh battery last?

At 150 mA, about 20 hours at its full rating.

What does mAh mean?

A milliampere-hour is one thousandth of an ampere-hour, a measure of battery capacity.

Why does my battery run out sooner?

High current, cold, age and conversion losses all reduce the real capacity.

Can I use amps instead of milliamps?

Yes. Choose A and Ah in the unit boxes.

What went wrong?

We only receive the reason you pick, never what you typed into the tool.

Thanks for your feedback.

More Physics & Science Tools