Battery Life Calculator

Estimate how long your device battery will last based on capacity, usage, and power consumption.

Embed this tool
Watt-Hours
18.5 Wh
Active Runtime
9.3h
Standby Runtime
370h

Advertisement

Ad

What This Tool Does

The Battery Life Calculator estimates how long a rechargeable or disposable battery will power an electronic device before requiring replacement or recharging. You provide four inputs: battery capacity in milliampere-hours (mAh), nominal voltage in volts (V), active power consumption in milliwatts (mW), and standby drain in milliwatts. The calculator converts the electrical charge capacity into actual energy storage (watt-hours), then divides that energy by your device's power draw to produce runtime estimates for both active use and idle standby. This gives hardware designers, hobbyists, and everyday consumers a quick way to compare batteries, plan device usage, or diagnose unexpectedly short runtimes.

How It Works: The Formula

The calculation rests on a two-step conversion. First, because milliampere-hours measure charge rather than energy, we convert to watt-hours using the battery voltage:

Wh = (mAh x V) / 1000

For example, a smartphone battery rated at 5000 mAh with a nominal voltage of 3.7 volts stores (5000 x 3.7) / 1000 = 18.5 watt-hours of energy. This is the total work the battery can perform before depletion.

Second, we divide the stored energy by the device's power consumption, converted from milliwatts to watts:

Runtime (hours) = Wh / (mW / 1000)

If that same smartphone draws 2000 mW (2 watts) during active use, the theoretical runtime is 18.5 / 2 = 9.25 hours. Standby runtime uses the same formula but substitutes the lower standby drain — often 20 to 100 mW for modern phones — yielding standby times measured in days or weeks. These figures represent ideal laboratory conditions; real-world efficiency losses from voltage converters, temperature variation, and battery aging typically reduce actual runtime by 10-20 percent.

Worked Example: Flashlight Runtime

Suppose you have a compact flashlight powered by a single 18650 lithium-ion cell and want to know how long it will last on a camping trip. You look up the cell specifications and find 3400 mAh capacity at 3.7V. The manufacturer rates the LED at 3000 mW (3 watts) on high mode, with a parasitic drain of 10 mW when the switch is off.

Step 1 — Convert capacity to watt-hours: (3400 x 3.7) / 1000 = 12.58 Wh.

Step 2 — Calculate active runtime on high: 12.58 Wh / 3 W = 4.19 hours, or roughly 4 hours and 11 minutes of continuous bright light.

Step 3 — Calculate standby time if left switched off in a backpack: 12.58 Wh / 0.01 W = 1,258 hours, about 52 days before the cell self-discharges and parasitic drain deplete it.

In practice, you would get slightly less because LED drivers are not 100% efficient and cold temperatures reduce lithium-ion performance. Still, the estimate tells you that one fully charged 18650 cell is sufficient for several nights of intermittent use.

Common Battery Types Compared

TypeNominal VoltageEnergy DensityCycle LifeTypical Use
Lithium-Ion (18650)3.6-3.7V250 Wh/kg300-500 cyclesLaptops, flashlights, power tools
Lithium-Polymer3.7V200-260 Wh/kg300-500 cyclesSmartphones, drones, wearables
LiFePO43.2V90-120 Wh/kg2000+ cyclesSolar storage, electric vehicles
NiMH Rechargeable1.2V60-120 Wh/kg500-1000 cyclesCameras, toys, household devices
Alkaline (AA)1.5V100-140 Wh/kgSingle useRemotes, clocks, low-drain devices
Lead-Acid2.0V (cell)30-50 Wh/kg200-300 cyclesCar starters, UPS systems
Solid-State (emerging)3.5V+300-500 Wh/kg1000+ cyclesNext-gen EVs, aerospace

Data sourced from Battery University (Cadex Electronics) and manufacturer datasheets.

When to Use This Calculator

Product design and prototyping: Hardware engineers use battery life estimates early in development to select appropriately sized cells. A wearable that must last 7 days between charges needs a fundamentally different battery chemistry and capacity than one recharged nightly.

IoT and sensor deployment: Remote sensors running on solar-charged batteries or primary cells in inaccessible locations require precise runtime calculations to determine maintenance intervals. Underestimating drain leads to failed data collection; overestimating means unnecessarily large and expensive batteries.

Consumer purchasing decisions: Comparing two power banks both rated at 10000 mAh is misleading if one operates at 3.7V and the other at 5V output. Converting both to watt-hours reveals which stores more usable energy.

Troubleshooting unexpected drain: If your device dies faster than specifications claim, measuring actual power draw with a USB meter and plugging values into this calculator identifies whether the battery is degraded or the device is consuming more power than designed.

Related Reading

Frequently Asked Questions

Battery life depends on capacity (mAh), voltage (V), and power consumption (mW). The calculator first converts capacity to watt-hours, then divides by power draw to estimate runtime. Higher capacity and lower usage mean longer battery life. Temperature, battery age, and efficiency losses also affect real-world performance.

Related Tools