Battery Life Calculator

A free tool by DeepRit, a Google Ads agency that does PPC and nothing else. We build and run Google Ads accounts so every click is accounted for. Book a free audit call

Free battery life calculator. Estimate run time from capacity in mAh and current draw in mA, allowing for usable capacity, in hours and days.

Days
0
Minutes
0

Free, no sign-up. Runs in your browser: nothing you type is uploaded or saved.

How to use the battery life calculator

  1. Enter the battery capacity in milliamp-hours (mAh), from the battery's label or datasheet.
  2. Enter the device's average current draw in milliamps (mA).
  3. Enter the usable capacity as a percentage. Real batteries rarely deliver their full rated capacity; 80% to 90% is a common allowance.

The battery life calculator shows the estimated run time in hours, days and minutes.

The battery life formula

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

With the default figures, a 2,000 mAh battery powering a device that draws 100 mA, with 85% of its capacity usable, lasts about 2,000 × 0.85 ÷ 100 = 17 hours.

The formula comes straight from the definition of a milliamp-hour: a battery rated at 2,000 mAh can, in theory, supply 2,000 mA for one hour, 1,000 mA for two hours, or 100 mA for 20 hours. The usable capacity factor allows for the ways real batteries fall short of that ideal.

Why use less than 100%?

A battery's rated capacity is measured under specific conditions, usually a low, steady discharge current at room temperature, down to a stated cut-off voltage. In real use, you often get less:

  • Higher currents reduce the usable capacity, especially for alkaline batteries.
  • Cold temperatures reduce capacity, sometimes dramatically below freezing.
  • The device's cut-off voltage may be higher than the battery's rated end point, leaving some energy unused.
  • Ageing reduces the capacity of rechargeable batteries over time and charge cycles.
  • Self-discharge slowly drains batteries even when they're not in use.
  • Voltage conversion inside the device, such as boosting or regulating the voltage, loses some energy as heat.

For a first estimate, 80% to 90% is reasonable for many lithium-ion and NiMH batteries at moderate loads. For alkaline batteries under heavy loads, the usable share can be much lower.

A worked example: a sensor that sleeps

A battery-powered sensor uses 15 mA for 2 seconds every minute while it takes a reading and transmits, and 0.05 mA (50 µA) the rest of the time while asleep. It runs from a 2,400 mAh battery pack, and you allow 80% usable capacity.

  1. Average current: (15 × 2 + 0.05 × 58) ÷ 60 = (30 + 2.9) ÷ 60 ≈ 0.548 mA.
  2. Battery life: 2,400 × 0.8 ÷ 0.548 ≈ 3,500 hours.
  3. In days: about 146 days, or nearly five months.

Enter 2,400, 0.548 and 80 in the battery life calculator to check. The example shows why low-power designs spend most of their time asleep: the sleep current matters as much as the active current when it lasts so much longer.

Working out the average current

Many devices don't draw a steady current. To find the average, multiply each current by the time it lasts, add them up, and divide by the total time:

Average current = Σ (current × time) ÷ total time

Measuring with a multimeter in series with the battery gives the current at a moment; for devices that switch between states, a meter with a min/max function, a current logger or a dedicated power profiler gives a better average. Datasheets for microcontrollers and radio modules list typical currents for each mode.

Capacity in mAh and Wh

Capacity in mAh only makes sense alongside the battery's voltage. A 3,000 mAh single-cell lithium-ion battery at 3.7 V stores about 11.1 Wh, while a 3,000 mAh pack of three cells in series at 11.1 V stores about 33.3 Wh, three times as much energy. When a device has a voltage regulator or converter, it's often more accurate to work in watt-hours and watts: battery life in hours = Wh × usable share ÷ average power in watts. The mAh to Wh converter converts between the two.

Typical battery capacities

Battery Typical capacity
CR2032 coin cell about 220 mAh at 3 V
AAA alkaline about 1,000 to 1,200 mAh at low drain
AA alkaline about 2,000 to 3,000 mAh at low drain
AA NiMH rechargeable about 1,900 to 2,500 mAh
18650 lithium-ion cell about 2,000 to 3,500 mAh
Smartphone battery about 3,000 to 5,000 mAh

Alkaline capacities depend heavily on the load: the same AA cell may deliver far less at high drain than its rated capacity at low drain. Check the manufacturer's datasheet for your conditions.

Who uses a battery life calculator

Electronics hobbyists use it to plan battery packs for Arduino, ESP32 and Raspberry Pi projects. Product designers use it to estimate run times for wearables, sensors and remote controls. Campers and outdoor enthusiasts use it to estimate how long torches, radios and power banks will last. Drone and RC pilots, security camera installers and IoT developers use it to plan battery sizes and replacement schedules.

Need more customers from Google?

This tool is free and runs in your browser. If your business also needs more leads or sales, Google Ads is where people search with their wallet out. DeepRit is a Google Ads agency that does PPC and nothing else: we build the campaigns, block the searches that waste money, write the ads, set up conversion tracking and send you a short report every week. Request a free PPC audit and we will show you, in dollars, what we would fix first.

Batteries in series and parallel

Connecting batteries in series adds their voltages but keeps the same mAh capacity: two 2,000 mAh cells in series give 2,000 mAh at twice the voltage. Connecting them in parallel keeps the voltage but adds the capacities: two 2,000 mAh cells in parallel give 4,000 mAh. Either way, the total energy in watt-hours doubles. Use the combined capacity in the battery life calculator, and only combine cells of the same type, capacity and state of charge.

Extending battery life

  • Reduce the average current: dim displays, lower radio transmit power, and put the device to sleep whenever possible.
  • Reduce the time spent in high-power states, such as transmitting less often.
  • Use efficient voltage regulators; a switching regulator wastes much less than a linear one when the voltage difference is large.
  • Choose the right chemistry: lithium batteries handle cold and high currents better than alkaline ones.
  • Keep batteries at moderate temperatures.

Common mistakes

  • Using the peak current instead of the average current.
  • Assuming 100% of the rated capacity is usable.
  • Mixing mAh at different voltages when combining batteries.
  • Ignoring sleep current, which can dominate battery life in low-power devices.

Sizing a battery for a target run time

The battery life calculator can also be used in reverse to choose a battery. If a device draws an average of 50 mA and must run for at least 48 hours, the capacity needed is 50 × 48 ÷ 0.85 ≈ 2,824 mAh, allowing 85% usable capacity. A 3,000 mAh battery would leave a small margin; a 3,500 mAh one would leave more. Try different capacities in the battery life calculator until the run time comfortably exceeds your target, and add extra margin for cold weather or ageing batteries.

Power banks and phones

Power banks are labelled with the capacity of their internal cells, usually at 3.6 or 3.7 V, but they output 5 V or more over USB. Converting up to a higher voltage loses energy, and the phone's own charging circuit loses some more, so a power bank typically delivers somewhere around 60% to 80% of its rated capacity to the device. A 10,000 mAh power bank charging a 4,000 mAh phone battery might give roughly one and a half to two full charges, not two and a half. Using watt-hours rather than milliamp-hours makes these comparisons more accurate.

Rechargeable battery ageing

Rechargeable batteries lose capacity with use. Lithium-ion batteries commonly keep around 80% of their original capacity after a few hundred full charge cycles, depending on how they're charged, how hot they get and how deeply they're discharged. If a device's battery life has dropped noticeably, enter a lower usable capacity in the battery life calculator to match what you're seeing, and you'll get a more realistic estimate for planning.

Storage and self-discharge

Batteries lose charge even when unused. Alkaline and lithium primary cells can keep most of their charge for years, while standard NiMH rechargeables lose noticeably more each month; low-self-discharge NiMH types hold their charge far better. For devices that sit idle for long periods, such as emergency torches or smoke alarms, self-discharge can matter more than the device's own current, so the battery life calculator's estimate is an upper limit.

Sources and further reading

Frequently asked questions

How do I calculate battery life?

Battery life in hours = capacity in mAh × usable share ÷ average current in mA.

How long will a 2,000 mAh battery last?

At 100 mA with 85% usable capacity, about 17 hours. At 10 mA, about 170 hours.

Why is real battery life shorter than calculated?

High currents, low temperatures, ageing and voltage conversion all reduce usable capacity.

How do I find the average current?

Multiply each current by how long it lasts, add them, and divide by the total time.

Should I use mAh or Wh?

Wh is better when comparing batteries of different voltages or devices with voltage converters.

Is the battery life calculator free?

Yes. It's free, needs no sign-up, and works in your browser.

Free PPC audit

See where your ad budget leaks.

We look at your Google Ads account before the call, then walk you through what we'd fix first, in dollars. No obligation, no hard sell.

Book a free audit call 30-minute call · Free · The audit is yours to keep