Electrical calculator · Free · No upload
Battery Life Calculator
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.
| Quantity | Value |
|---|---|
| Battery energy | 37 Wh |
| Usable energy | 26.64 Wh |
| Load | 1.85 W |
| Current drawn from the battery | 0.5 A |
| Runtime | 14 h 24 min |
| Airline check (lithium-ion) | 37 Wh: within the 100 Wh limit |
Everything is worked out in this browser and never sent anywhere; only the boxes are kept here so the page reopens as you left it.
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
| Detail | Answer |
|---|---|
| Inputs | Capacity in mAh, Ah or Wh; voltage; load in mA, A or W; usable share; efficiency; optional Peukert exponent and rated hours |
| Formula | Runtime (h) = Wh × usable share × efficiency ÷ W |
| Result | Runtime in hours and minutes, with the energy, load and current |
| Peukert | Off by default (exponent 1); allowed from 1 to 1.6 |
| Not included | Discharge curves, temperature, battery ageing, charging time |
| Where your values go | Nowhere: 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.
Enter the capacity
Type the number on the label and choose mAh, Ah or Wh.
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.
Enter the load
Type the current or power the device draws, and choose mA, A or W.
Set the losses
Lower the usable share to keep a reserve, and the efficiency if an inverter or converter sits between battery and load.
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.
| You want | Formula |
|---|---|
| Energy from mAh | Wh = mAh × V ÷ 1000 |
| Energy from Ah | Wh = Ah × V |
| Power from current | W = A × V (or mA × V ÷ 1000) |
| Runtime | hours = Wh × usable share × efficiency ÷ W |
| Runtime from amp-hours only | hours = Ah × usable share × efficiency ÷ A |
| With Peukert’s law | hours = H × (C ÷ (I × H))k |
Worked examples, each checked by the calculator above:
| You know | Working | Runtime |
|---|---|---|
| 10000 mAh at 3.7 V, 500 mA load, 80% usable, 90% efficient | 37 × 0.8 × 0.9 ÷ 1.85 = 14.4 h | 14 h 24 min |
| 2000 mAh, 100 mA, nothing lost (100% and 100%) | 2000 ÷ 100 = 20 h | 20 h |
| 100 Ah at 12 V, 120 W inverter load, 50% usable, 85% efficient | 1200 × 0.5 × 0.85 ÷ 120 = 4.25 h | 4 h 15 min |
| 74 Wh, 10 W load, 100% and 100% | 74 ÷ 10 = 7.4 h | 7 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.
| Battery | Energy | 1 W | 5 W | 10 W | 50 W |
|---|---|---|---|---|---|
| 2000 mAh at 3.7 V (a phone-sized cell) | 7.4 Wh | 5 h 20 min | 1 h 4 min | 32 min | 6 min |
| 5000 mAh at 3.7 V | 18.5 Wh | 13 h 19 min | 2 h 40 min | 1 h 20 min | 16 min |
| 10000 mAh at 3.7 V (a small power bank) | 37 Wh | 26 h 38 min | 5 h 20 min | 2 h 40 min | 32 min |
| 20000 mAh at 3.7 V (a large power bank) | 74 Wh | 2 days 5 h | 10 h 39 min | 5 h 20 min | 1 h 4 min |
| 100 Ah at 12 V (a deep-cycle battery) | 1200 Wh | 36 days | 7 days 5 h | 3 days 14 h | 17 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.
| Battery | Voltage | Energy |
|---|---|---|
| 1000 mAh lithium-ion cell | 3.7 V | 3.7 Wh |
| 1000 mAh lithium iron phosphate cell | 3.2 V | 3.2 Wh |
| 1000 mAh at 12 V | 12 V | 12 Wh |
| 1000 mAh at 24 V | 24 V | 24 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.
| Situation | Usable share | Efficiency |
|---|---|---|
| A device that runs until it shuts itself off | 100% | 100% if the load is the device’s own draw |
| A phone charged from a power bank | 100% | Less than 100%: the 5 V conversion loses energy |
| A lead-acid battery you want to keep healthy | About 50% is a common rule of thumb | Inverter losses, if any |
| A lithium battery bank with a battery management system | Check the datasheet; often much deeper than lead-acid | Inverter 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.
| Current | Runtime ignoring Peukert | Runtime with Peukert | Capacity delivered |
|---|---|---|---|
| 5 A | 20 h | 20 h | 100 Ah |
| 10 A | 10 h | 8 h 42 min | 87.1 Ah |
| 20 A | 5 h | 3 h 47 min | 75.8 Ah |
| 50 A | 2 h | 1 h 16 min | 63.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.
| Rating | What the FAA says | Same tier at 3.7 V |
|---|---|---|
| Up to 100 Wh | Allowed | Up to 27027 mAh |
| 101 to 160 Wh | Airline approval, two spares at most | 27028 to 43243 mAh |
| Over 160 Wh | Forbidden | More 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.
| It does | It does not |
|---|---|
| Take mAh, Ah or Wh and always convert through the voltage | Know your battery’s real capacity today |
| Apply a usable share and a conversion efficiency | Measure either of them |
| Apply Peukert’s law when you give an exponent | Look up an exponent for your battery |
| Show the sum with your numbers | Follow a varying load or a changing voltage |
| Check the Wh figure against the FAA tiers for lithium-ion | Replace the airline’s own rules |
| Work in this browser only | Upload 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 calculator | A typical battery life calculator | |
|---|---|---|
| Cost | Free, no sign-up | Free |
| Capacity unit | mAh, Ah or Wh, always through the voltage | Often mAh only |
| Usable share and efficiency | Two separate boxes, both shown in the sum | One safety margin, or none |
| Peukert’s law | Optional exponent and rated hours | Rarely |
| Working shown | The sum with your numbers | Often only the answer |
| Airline Wh check | FAA tiers for lithium-ion | No |
More calculators
Every calculator on the site runs in your browser, needs no sign-up, and sends nothing anywhere.
Electrical6
Voltage, current, resistance and power from any two, with the formula for each and the part to buy.
Ohm's law calculator
Any two of voltage, current, resistance and power give the other two, with every formula, a resistor rating check and an LED resistor.
Open ohm's law calculator →Watt to amp calculator
Watts to amps for DC, single-phase and three-phase AC with power factor, the sum shown and a breaker size check.
Open watt to amp calculator →Amp to watt calculator
Amps to watts for DC, single-phase and three-phase AC with power factor, the sum shown and a breaker's continuous limit.
Open amp to watt calculator →Voltage drop calculator
Voltage drop of copper or aluminium wire in AWG or mm² for DC, single and three phase, at your temperature, with every size checked against your limit.
Open voltage drop calculator →kWh to watt calculator
Kilowatt-hours to average watts over a time from minutes to years, with the sum shown and the answer checked backwards.
Open kwh to watt calculator →Energy cost calculator
Appliance running cost per hour, day, month and year from watts, hours and price, with standby and on-time share.
Open energy cost calculator →
All 42 calculators, by category: Basic maths (1) · Percentages (8) · Fractions & decimals (3) · Statistics (1) · Money (3) · Dates & time (11) · School & grades (2) · Health & fitness (1) · Electrical (7) · Counting & sport (5)
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.
Related guides
Longer answers to the questions behind the numbers.