Battery Life Calculator
Runtime from capacity and load, sleep-mode averaging, Peukert for lead-acid, and sizing
Estimate battery runtime from capacity in mAh, Ah or Wh and load in mA, A or W, including devices that sleep most of the time and Peukert's law for lead-acid, or find the battery capacity needed for a target runtime.
EngineeringUpdated October 21, 2026Checked against 6 reference values
Allows for depth of discharge, aging and converter losses.
Examples
Estimated runtime
10 h 48 min
10.8 hours
Chart data as a table
| Average current (mA) | hours |
|---|---|
| 62.5 | 43.2 |
| 109.4 | 24.7 |
| 156.3 | 17.3 |
| 203.1 | 13.3 |
| 250 | 10.8 |
| 296.9 | 9.09 |
| 343.8 | 7.85 |
| 390.6 | 6.91 |
| 437.5 | 6.17 |
| 484.4 | 5.57 |
| 531.3 | 5.08 |
| 578.1 | 4.67 |
| 625 | 4.32 |
| 671.9 | 4.02 |
| 718.8 | 3.76 |
| 765.6 | 3.53 |
| 812.5 | 3.32 |
| 859.4 | 3.14 |
| 906.3 | 2.98 |
| 953.1 | 2.83 |
| 1000 | 2.7 |
- Average current
- 250 mA
- Average power
- 0.925 W
- Usable energy
- 9.99 Wh
Working
- 1
Average current
250 mA × 100% + 0 mA × 0% = 250 mA - 2
Runtime
usable capacity ÷ average current = 2.7 Ah ÷ 0.25 A = 10.8 h
What this calculator does
This calculator estimates how long a battery will run a device, or how big a battery you need for a target runtime. Enter the battery's rated capacity in mAh, Ah or Wh, its voltage, and the device's current draw in mA or its power in watts. For devices that sleep most of the time, such as sensors and remotes, add the share of time they are active and their idle current, and it works out the average draw.
Choose the battery chemistry to start from a sensible usable capacity. Lead-acid batteries also get a Peukert correction, because their effective capacity drops at higher currents. The chart shows how runtime changes if the load goes up or down.
The formulas
Runtime (h) = rated capacity (Ah) × usable share ÷ average current (A)
Average current = I_active × duty + I_idle × (1 − duty)
Peukert: t = H × (C ÷ (I × H))^k
Watt-hours are converted to amp-hours by dividing by the battery voltage, and watts to amps the same way. In Peukert's law C is the capacity at the rated discharge time H, usually 20 hours for lead-acid batteries, and k is the Peukert exponent, about 1.1 to 1.3 for lead-acid and close to 1 for lithium cells. Real runtime also depends on temperature, age, cutoff voltage and the efficiency of any voltage converter, which the usable share is meant to cover.
Worked examples
A 3,000 mAh lithium cell at 250 mA. With 90% usable, it runs about 10.8 hours.
A coin cell sensor. A 220 mAh coin cell powering a sensor that wakes 1% of the time at 20 mA and sleeps at 10 µA averages 0.21 mA and lasts about 39.3 days. Cutting the active time matters far more than the sleep current here.
A 100 Ah lead-acid battery at 10 A. Using only half the capacity to protect it and k = 1.25, it runs 3.54 hours, less than the 5 hours a simple division suggests.
Sizing a power bank. To run a 150 mA device for 2 days with 85% usable, you need 8,471 mAh at the cell voltage.
How much of the rating can you use?
| Chemistry | Typical usable share |
|---|---|
| Lithium-ion, LiPo | 80 to 95% |
| LiFePO₄ | 80 to 95% |
| NiMH | about 85% |
| Alkaline | 50 to 90%, lower at high drain |
| Lead-acid, deep cycle | 50% for long life |
Guide values; check the manufacturer's datasheet for discharge curves at your current and temperature.
mAh versus Wh
Milliamp-hours measure charge, and only compare batteries of the same voltage. Watt-hours measure energy and allow fair comparisons across voltages. A 10,000 mAh power bank rated at its 3.7 V cells holds 37 Wh, but delivers less at its 5 V USB output, typically 60 to 70% of the rating once the boost converter's losses are counted. Airlines limit carry-on lithium batteries by watt-hours, usually 100 Wh without approval, for the same reason.
Ways to make a battery last longer
Lower the average current: reduce screen brightness, transmit less often, or let a microcontroller sleep between readings. Keep batteries near room temperature, since cold weather can cut available capacity by a third or more. For rechargeable lithium cells, partial charges between about 20% and 80% extend cycle life, and storing them half charged slows aging. For lead-acid batteries, avoid deep discharges, which shorten their life sharply. Check the device's real current with a USB power meter or a multimeter in series, because datasheet figures are often typical rather than worst case and radios can draw short peaks many times the average.
Battery Life Calculator: common questions
How do I calculate battery life?
Divide the usable capacity in amp-hours by the average current in amps. A 2,000 mAh battery at 200 mA lasts about 10 hours in theory; allow 10 to 20% less in practice.
How do I convert Wh to mAh?
Divide watt-hours by the voltage and multiply by 1,000. A 37 Wh battery at 3.7 V is 10,000 mAh.
What is Peukert's law?
An empirical rule that lead-acid batteries deliver less total capacity when discharged quickly. Runtime falls faster than the current rises, controlled by an exponent of about 1.1 to 1.3.
Why does my device run less than the calculation says?
Batteries lose capacity with age and cold, devices draw current in bursts, and voltage converters waste some energy. The usable share setting accounts for this; lower it if your results run long.
How do sleep modes affect battery life?
Hugely. A sensor drawing 20 mA when awake but awake only 1% of the time averages about 0.2 mA, so it can run 100 times longer than at full current.
Sources
- Battery University, BU-503 How to Calculate Battery Runtime
- Peukert, W. (1897). Über die Abhängigkeit der Kapazität von der Entladestromstärke bei Bleiakkumulatoren. Elektrotechnische Zeitschrift 18, 287-288
- IEC 61960-3:2017, Secondary lithium cells and batteries for portable applications (rated capacity definitions)
Related calculators
- Electric Power CalculatorCalculate electric power, voltage, current and resistance from any two known values using P = VI, P = V²/R and P = I²R, with energy used in kilowatt-hours.
- Ohm's Law Calculator, V=IRSolve Ohm's law for voltage, current or resistance with the power dissipated, combine resistors in series or parallel, and calculate an LED's current-limiting resistor.
- Electricity Cost CalculatorCalculate the daily, monthly and yearly electricity cost and CO₂ of up to six appliances from their wattage, hours of use and your rate per kWh, with a ranked breakdown showing which ones drive your bill.
- Energy CalculatorCalculate kinetic, gravitational, elastic, thermal or electrical energy and see it in joules, kilojoules, calories, food Calories, kWh, BTU, electronvolts and foot-pounds.
- Solar Panel CalculatorEstimate solar panel production, cost, first-year and long-term savings and payback from system size or yearly electricity use, peak sun hours, performance ratio, electricity rate and escalation, cost per watt, incentives and degradation.