Simple Counter is now an Android app.Our Android app is here. Become a founding tester and try it before anyone else.

Join the testers

Electrical calculator · Free · No upload

Battery Life Calculator

Short answer

To find battery life, divide the usable energy in watt-hours by the load in watts. A 10000 mAh battery at 3.7 V holds 37 Wh; with 80% usable and 90% efficiency that is 26.64 Wh, which a 500 mA (1.85 W) load uses up in 14.4 hours. Enter the capacity, voltage and load to read the runtime.

Enter capacity, voltage and load, read the runtime.

Enter the capacity in mAh, Ah or Wh, the voltage and the load, and read how long the battery lasts with the sum shown. It takes the usable share and the efficiency, and Peukert's law for lead-acid batteries.

Battery life is how long a battery can power a load: its usable energy in watt-hours divided by the load in watts.

  • No sign-up
  • Nothing uploaded
  • Works offline
  • The sum is shown
  • mAh, Ah or Wh

Key facts

Battery life calculator at a glance
DetailAnswer
InputsCapacity in mAh, Ah or Wh; voltage; load in mA, A or W; usable share; efficiency; optional Peukert exponent and rated hours
FormulaRuntime (h) = Wh × usable share × efficiency ÷ W
ResultRuntime in hours and minutes, with the energy, load and current
PeukertOff by default (exponent 1); allowed from 1 to 1.6
Not includedDischarge curves, temperature, battery ageing, charging time
Where your values goNowhere: they are worked out in this browser

How to use the battery life calculator

Enter the battery, the load and the losses, then read the runtime.

  1. Enter the capacity

    Type the number on the label and choose mAh, Ah or Wh.

  2. Enter the voltage

    Use the nominal voltage on the label, such as 3.7 V for a lithium-ion cell or 12 V for a car-style battery.

  3. Enter the load

    Type the current or power the device draws, and choose mA, A or W.

  4. Set the losses

    Lower the usable share to keep a reserve, and the efficiency if an inverter or converter sits between battery and load.

  5. Read the runtime

    The time is at the top with the sum, and the table shows the energy, load and current.

Who uses a battery life calculator

Anyone who wants to know how long a battery will last before buying or relying on it.

  • Travellers

    How many phone charges a power bank gives, and whether its Wh rating is allowed on a plane.

  • Van, boat and cabin owners

    How long a 12 V battery runs a fridge, lights or an inverter.

  • Makers and electronics hobbyists

    The run time of a sensor, a robot or a board on a cell.

  • Solar and off-grid users

    Sizing a battery bank for the overnight load.

  • Camera and drone owners

    Comparing battery packs in watt-hours rather than mAh.

  • Students

    Checking the working for a physics or electronics exercise.

Battery life formula and worked examples

Battery life is the energy the battery can give divided by the power the load takes. A battery is rated in amp-hours or milliamp-hours (Wikipedia), which is charge, so the voltage turns it into energy: watt-hours = amp-hours × volts. The calculator converts everything to watt-hours and watts, applies the usable share and the efficiency, and divides.

Battery life formulas
You wantFormula
Energy from mAhWh = mAh × V ÷ 1000
Energy from AhWh = Ah × V
Power from currentW = A × V (or mA × V ÷ 1000)
Runtimehours = Wh × usable share × efficiency ÷ W
Runtime from amp-hours onlyhours = Ah × usable share × efficiency ÷ A
With Peukert’s lawhours = H × (C ÷ (I × H))k

Worked examples, each checked by the calculator above:

Worked examples of battery life
You knowWorkingRuntime
10000 mAh at 3.7 V, 500 mA load, 80% usable, 90% efficient37 × 0.8 × 0.9 ÷ 1.85 = 14.4 h14 h 24 min
2000 mAh, 100 mA, nothing lost (100% and 100%)2000 ÷ 100 = 20 h20 h
100 Ah at 12 V, 120 W inverter load, 50% usable, 85% efficient1200 × 0.5 × 0.85 ÷ 120 = 4.25 h4 h 15 min
74 Wh, 10 W load, 100% and 100%74 ÷ 10 = 7.4 h7 h 24 min

How long will it last? Quick table

These are the figures people usually look up. Read across for the load in watts: a 37 Wh power bank running a 5 W device lasts about 5 hours 20 minutes once 80% usable and 90% efficiency are allowed for. To use other factors, multiply the energy by your usable share and efficiency and divide by the load.

Runtime at a steady load, with 80% of the capacity usable and 90% efficiency
BatteryEnergy1 W5 W10 W50 W
2000 mAh at 3.7 V (a phone-sized cell)7.4 Wh5 h 20 min1 h 4 min32 min6 min
5000 mAh at 3.7 V18.5 Wh13 h 19 min2 h 40 min1 h 20 min16 min
10000 mAh at 3.7 V (a small power bank)37 Wh26 h 38 min5 h 20 min2 h 40 min32 min
20000 mAh at 3.7 V (a large power bank)74 Wh2 days 5 h10 h 39 min5 h 20 min1 h 4 min
100 Ah at 12 V (a deep-cycle battery)1200 Wh36 days7 days 5 h3 days 14 h17 h 17 min

The figures are computed, not read from a chart, and assume a steady load for the whole run, which real devices rarely draw.

Why mAh alone is not enough: voltage and power banks

Milliamp-hours measure charge, not energy, so two batteries with the same mAh can hold very different amounts of energy. Energy is charge times voltage: a 1000 mAh cell at 3.7 V holds 3.7 Wh and a 1000 mAh battery at 12 V holds 12 Wh, over three times as much. Compare batteries in watt-hours, and give the calculator the voltage whatever the unit.

The same 1000 mAh holds different energy at different voltages
BatteryVoltageEnergy
1000 mAh lithium-ion cell3.7 V3.7 Wh
1000 mAh lithium iron phosphate cell3.2 V3.2 Wh
1000 mAh at 12 V12 V12 Wh
1000 mAh at 24 V24 V24 Wh

A power bank adds one more step. Its printed capacity is usually quoted at the voltage of its internal cells, around 3.7 V for lithium-ion (Wikipedia), but it delivers 5 V to your phone, and the conversion loses some energy. A 10000 mAh power bank holds 37 Wh, which is 7.4 Ah at 5 V before losses, and about 6.3 Ah at 5 V if the conversion is 85% efficient (85% is an assumption here; the real figure depends on the product). To estimate how many phone charges it gives, work in watt-hours: enter the cell voltage and your conversion efficiency.

Usable capacity and efficiency

The rated capacity is not all available, so the calculator takes the share you can use and the efficiency of whatever sits between the battery and the load. Depth of discharge is the share of the capacity that has been used (Wikipedia); a battery that is never taken to empty lasts more cycles, so people plan to use only part of it. Efficiency covers an inverter, a voltage converter or a charger: a 12 V battery feeding a mains inverter loses part of its energy as heat before the load sees it.

What to enter, as starting points to replace with your datasheet
SituationUsable shareEfficiency
A device that runs until it shuts itself off100%100% if the load is the device’s own draw
A phone charged from a power bank100%Less than 100%: the 5 V conversion loses energy
A lead-acid battery you want to keep healthyAbout 50% is a common rule of thumbInverter losses, if any
A lithium battery bank with a battery management systemCheck the datasheet; often much deeper than lead-acidInverter losses, if any

These are rules of thumb, not figures from a standard. The battery’s datasheet and the maker’s guidance decide the real numbers, and the capacity of any battery falls with age and in the cold.

Peukert's law for lead-acid batteries

A lead-acid battery gives less than its rated capacity when it is drained quickly, and Peukert’s law describes how much less. The law is t = H × (C ÷ (I × H))k, where C is the rated capacity in amp-hours over H hours, I is the current and k is the Peukert exponent (Wikipedia). An exponent of 1 means no effect. Wikipedia lists typical values of 1.05 to 1.15 for AGM, 1.1 to 1.25 for gel and 1.2 to 1.6 for flooded lead-acid batteries.

The calculator leaves the exponent at 1. Enter one and the rated hours (use the figure on your datasheet; 20 is a common rating) and the runtime shortens at a high current. Wikipedia gives no exponent for lithium-ion, so leave it at 1 unless the datasheet states one.

A 100 Ah battery rated over 20 hours with a Peukert exponent of 1.2, at four currents
CurrentRuntime ignoring PeukertRuntime with PeukertCapacity delivered
5 A20 h20 h100 Ah
10 A10 h8 h 42 min87.1 Ah
20 A5 h3 h 47 min75.8 Ah
50 A2 h1 h 16 min63.1 Ah

The 10 A row reproduces the example on the Wikipedia page: about 8.7 hours and about 87 Ah instead of 100 Ah. The formula gives a longer runtime than the simple division when the current is below the rated one, so do not rely on it far outside the range the battery was rated for.

Watt-hour limits for batteries on a plane

For a lithium-ion battery on a plane, the watt-hour rating is what counts, not the mAh. The US Federal Aviation Administration allows lithium-ion batteries of up to 100 Wh in passenger aircraft, allows 101 to 160 Wh with the airline’s approval, two spares at most, and forbids those above 160 Wh (FAA PackSafe; the TSA gives the same two-spare limit). Spare batteries and power banks go in carry-on bags only. Other countries and airlines may differ, so check yours before you fly.

Lithium-ion battery watt-hour tiers for passenger aircraft (FAA)
RatingWhat the FAA saysSame tier at 3.7 V
Up to 100 WhAllowedUp to 27027 mAh
101 to 160 WhAirline approval, two spares at most27028 to 43243 mAh
Over 160 WhForbiddenMore than 43243 mAh

The calculator’s last row applies these tiers to the battery energy you entered. This is a reading of the published tiers for lithium-ion batteries, not airline advice, and it does not apply to lead-acid batteries.

What this battery life calculator does not do

This turns a capacity, a voltage and a steady load into an estimated runtime. It does not model a real discharge curve, and it gives no advice on charging or on the safety of a battery. Do not size a battery for a medical device, an alarm or anything where running out matters from this estimate alone.

What this battery life calculator does and does not do
It doesIt does not
Take mAh, Ah or Wh and always convert through the voltageKnow your battery’s real capacity today
Apply a usable share and a conversion efficiencyMeasure either of them
Apply Peukert’s law when you give an exponentLook up an exponent for your battery
Show the sum with your numbersFollow a varying load or a changing voltage
Check the Wh figure against the FAA tiers for lithium-ionReplace the airline’s own rules
Work in this browser onlyUpload the values

For what the same load costs on mains power, use the energy cost calculator; to turn watts into amps, the watt to amp calculator.

This calculator or a typical one

What this page adds to a typical online battery life calculator.

This battery life calculator compared with a typical one
 This calculatorA typical battery life calculator
CostFree, no sign-upFree
Capacity unitmAh, Ah or Wh, always through the voltageOften mAh only
Usable share and efficiencyTwo separate boxes, both shown in the sumOne safety margin, or none
Peukert’s lawOptional exponent and rated hoursRarely
Working shownThe sum with your numbersOften only the answer
Airline Wh checkFAA tiers for lithium-ionNo

More calculators

Every calculator on the site runs in your browser, needs no sign-up, and sends nothing anywhere.

Frequently asked questions

How do you calculate battery life?

Divide the battery's usable energy in watt-hours by the load in watts. Energy is the amp-hours times the voltage. A 10 Ah battery at 3.7 V holds 37 Wh, and a 1.85 W load drains 80% of it in 16 hours if nothing is lost. Real runtime is shorter once conversion losses and age are allowed for.

How long will a 10000 mAh battery last?

It depends on the load and the voltage. At 3.7 V, 10000 mAh is 37 Wh, so a 5 W device runs about 5 hours 20 minutes with 80% usable and 90% efficiency. A 500 mA load at 3.7 V (1.85 W) runs 14 hours 24 minutes. Enter your own load for the figure.

How do you convert mAh to Wh?

Multiply the milliamp-hours by the voltage and divide by 1000. 10000 mAh at 3.7 V is 10000 × 3.7 ÷ 1000 = 37 Wh. The voltage is required: 1000 mAh holds 3.7 Wh at 3.7 V but 12 Wh at 12 V, so mAh alone cannot be compared across batteries.

How long does a 100Ah battery last?

A 100 Ah 12 V battery holds 1200 Wh. Divide that by the load in watts: a 100 W load runs 12 hours if all of it is used, or 6 hours at 50% usable, as is often advised for lead-acid. Inverter losses shorten it further, so enter the efficiency too.

Why does a battery not last as long as the calculation says?

The estimate assumes a steady load, the full rated capacity and no losses. Cold, age, a converter's efficiency, a varying load and, for lead-acid, a high current all cut the runtime. Lower the usable share and efficiency, and add a Peukert exponent for lead-acid.

What is Peukert's law?

Peukert's law says a lead-acid battery gives less than its rated capacity when drained quickly: t = H × (C ÷ (I × H))^k. Wikipedia's example, a 100 Ah battery rated over 20 hours with k = 1.2 at 10 A, lasts about 8.7 hours and delivers about 87 Ah.

How many watt-hours can I take on a plane?

The FAA allows lithium-ion batteries up to 100 Wh, and 101 to 160 Wh with airline approval, two spares at most. Over 160 Wh is forbidden. A 3.7 V power bank reaches 100 Wh at about 27000 mAh. Spares go in carry-on, and airlines and countries can differ.

Is the data I enter sent anywhere?

No. The values are worked out in your browser and the page makes no request with them. They are kept on your device only so the page reopens as you left it, and Back to the default values clears them. There is no sign-up and nothing to install.

Open the battery life calculator

Free, no sign-up, and what you enter stays in your own browser.