Battery Life Calculator
Calculate battery life with instant, accurate results and clear step-by-step output.
About
The battery life calculator estimates how long a battery of a given capacity (in milliampere-hours, mAh) will power a device drawing a given current (in milliamperes, mA). The core relationship is simple: hours = mAh ÷ mA. A 4,000 mAh battery powering a 400 mA load should last about 10 hours.
In practice, the actual runtime is lower. Voltage regulators lose 5–15% converting between battery voltage and the device rail. Self-discharge slowly drains the cell even when the device is off. Lithium-ion batteries lose ~20% capacity after 500 charge cycles. And cold weather can drop usable capacity by 30–50% at 0 °C and below.
This calculator applies an efficiency derate (default 85% — typical real-world) and reports the equivalent energy in watt-hours (Wh), which is the more accurate unit when comparing batteries of different voltages. Two batteries with the same mAh but different cell voltages deliver different amounts of energy.
For IoT and embedded devices that sleep most of the time, the average current draw is dominated by the sleep current (often 5–50 µA). To estimate battery life for such devices, calculate the active and sleep currents separately and weight them by their duty cycle: I_avg = (I_active × t_active + I_sleep × t_sleep) ÷ (t_active + t_sleep).
Capacity rating is also rate-dependent — a battery rated 4,000 mAh at a 0.2 C discharge (800 mA) may only deliver 3,500 mAh at a 1 C discharge (4,000 mA). This is called the Peukert effect, and it is most pronounced at high discharge rates.
How to Use
- 1Find the battery capacityLook at the battery label or device spec sheet for capacity in mAh. Smartphone batteries are typically 3,000–5,000 mAh; laptop batteries 4,000–10,000 mAh; coin cells 200–500 mAh.
- 2Estimate the device current drawCheck the device datasheet, measure with a USB multimeter, or look up typical draws. A phone screen-on draw is 300–600 mA; an ESP32 with WiFi active draws 100–500 mA.
- 3Choose the efficiency factorUse 100% for an idealized estimate; 85% accounts for voltage conversion and self-discharge; 70% for cold or aged batteries.
- 4Read the runtime estimateThe hero shows the projected hours of runtime. The breakdown converts to days, estimates charge cycles per year, and reports the effective Wh delivered.
- 5Sanity-check against real-world useCompare to manufacturer-claimed screen-on time. If your estimate is more than 20% off, the actual average draw is likely different from what you entered — measure it directly.
Formula
Ideal runtime:
t = Capacity (mAh) ÷ Draw (mA)
Realistic runtime with derate:
t_real = t × η
Energy in watt-hours:
Wh = mAh × V ÷ 1,000
- η = efficiency factor (0–1, default 0.85)
- V = nominal cell voltage (3.7 V for Li-ion, 1.5 V for alkaline)
Worked Example
A 4,000 mAh smartphone battery at 3.7 V, drawing 400 mA, with 85% efficiency.
- Ideal runtime = 4,000 ÷ 400 = 10.0 h
- Real runtime = 10.0 × 0.85 = 8.5 h
- Energy = 4,000 × 3.7 ÷ 1,000 = 14.8 Wh
- Usable energy = 14.8 × 0.85 = 12.58 Wh
- Full charges per year (continuous use) = 24 × 365 ÷ 8.5 ≈ 1,031
Tips
- Use Wh instead of mAh when comparing batteries of different voltages — Wh = mAh × V ÷ 1,000.
- Measure the actual average draw with a USB multimeter; datasheets often quote peak draw, not average.
- For IoT devices, the sleep current (often 5–50 µA) dominates the average — calculate it separately from active current.
- Li-ion batteries lose ~20% capacity after 500 full charge cycles — apply an aging derate for older batteries.
- Cold-weather derate: subtract 30% at 0 °C and 50% at −20 °C for outdoor devices.
Common Mistakes
- Confusing mAh and Wh — mAh only tells you charge at one voltage. Compare batteries of different voltages in Wh.
- Using peak draw instead of average — peak bursts are brief; the average dominates the runtime.
- Ignoring battery aging — a 2-year-old Li-ion battery may only deliver 70–80% of its rated mAh.
- Forgetting that cold weather cuts capacity — apply a 30% derate at 0 °C and 50% at −20 °C.
Frequently Asked Questions
- How is battery life calculated?
- The basic formula is battery life (hours) = battery capacity (mAh) ÷ device current draw (mA). A 4,000 mAh battery powering a device that draws 400 mA will last approximately 10 hours. Real-world life is lower because of voltage conversion losses, aging, and variable draw.
- What is the difference between mAh and Wh?
- mAh (milliampere-hours) measures charge at a single voltage. Wh (watt-hours) measures actual energy and accounts for voltage. Two batteries with the same mAh but different voltages deliver different amounts of energy. For laptops and power banks, Wh is the more accurate unit; mAh is common for phones because the voltage is standardized at around 3.7 V.
- Why does my phone not last as long as the calculator says?
- The simple formula assumes constant draw and ideal efficiency. Real devices have screen brightness fluctuations, background apps, cellular signal searches, and conversion losses in the voltage regulator. A realistic derate of 15–25% accounts for these losses. Battery aging also reduces usable capacity — a 2-year-old battery may only deliver 80% of its original mAh.
- Does cold weather affect battery life?
- Yes. Lithium-ion batteries lose significant capacity at low temperatures because the chemical reactions slow down. At 0 °C (32 °F) you may see only 60–70% of rated capacity under load. At −20 °C (−4 °F) the battery may shut down entirely even when it still has charge. Cold-weather derate of 30–50% is realistic for outdoor use.
- Should I use peak draw or average draw?
- Use the average draw over the operating period for the most accurate estimate. Peak draw (e.g., when the screen turns on or the CPU ramps up) is brief. If you only know the peak, apply a 0.5–0.7 factor to estimate the average. For IoT devices that sleep most of the time, the sleep current dominates the average.
Capacity (mAh)
Battery capacity is measured in milliampere-hours (mAh) — the charge a battery can deliver over 20 hours at room temperature. A 4,000 mAh cell can theoretically deliver 4,000 mA for 1 hour, 1,000 mA for 4 hours, or 200 mA for 20 hours. Higher discharge rates reduce the effective capacity due to internal resistance.
Current draw (mA)
Current draw is the rate at which the device consumes charge, measured in milliamperes (mA). It varies with workload: a phone screen-on draw is 300–600 mA while screen-off standby is 5–30 mA. Measure it with a USB multimeter between the device and power source, or read it from the device datasheet.
Efficiency derate
Real batteries never deliver their rated capacity because of conversion losses (DC-DC regulators lose 5–15%), self-discharge (2–5% per month for Li-ion), and aging (a 500-cycle battery typically retains 80% of original capacity). Apply a derate factor of 0.70–0.85 for realistic estimates.
| Scenario (4,000 mAh typical draw) | Runtime (hours) | Days |
|---|---|---|
| Smartphone (4,000 mAh @ 400 mA) | 8.5 | 0.35 |
| Smartphone standby (4,000 mAh @ 20 mA) | 170 | 7.1 |
| Laptop (10,000 mAh @ 1,500 mA) | 5.7 | 0.24 |
| Coin cell (220 mAh @ 0.5 mA) | 374 | 15.6 |
| Power bank (20,000 mAh @ 2,000 mA) | 8.5 | 0.35 |
Authoritative References
- Battery University — How to Calculate Battery Life— batteryuniversity.comBattery University (Cadex Electronics) reference on battery capacity, discharge rates, and the relationship between mAh rating and runtime.
- Energizer — Battery Application & Implementation Manual— energizer.comEnergizer technical manual covering discharge characteristics, derate factors, and the impact of temperature and load on runtime.
- IEEE — Rechargeable Battery Standards— ieee.orgIEEE 1625 standard for multi-cell mobile computing batteries — defines capacity rating, cycle life, and derate testing methodology.
Try our other free calculators
CalcGenius has 1,200+ free, ad-free, browser-based calculators for finance, health, math, science, and everyday life. No sign-up required.