Battery Life Calculator Formula
Understand the math behind the battery life calculator. Each variable explained with a worked example.
Formulas Used
Battery Life
life_hours = capacity_mah * eff_fraction / load_current_maBattery Life (days)
life_days = capacity_mah * eff_fraction / load_current_ma / 24Usable Energy (at 3.7 V)
energy_wh = capacity_mah * eff_fraction * 3.7 / 1000Variables
| Variable | Description | Default |
|---|---|---|
capacity_mah | Battery Capacity(mAh) | 2000 |
load_current_ma | Load Current(mA) | 150 |
efficiency_pct | Discharge Efficiency(%) | 85 |
eff_fraction | Derived value= efficiency_pct / 100 | calculated |
How It Works
Battery Life Estimation
Formula
Life (hours) = Capacity (mAh) x Efficiency / Load (mA)
Efficiency accounts for losses from the battery internal resistance, DC-DC conversion, and temperature effects. Typical Li-ion efficiency is 80-90%.
Worked Example
2000 mAh battery, 150 mA load, 85% efficiency.
capacity_mah = 2000load_current_ma = 150efficiency_pct = 85
- 01Usable capacity = 2000 x 0.85 = 1700 mAh
- 02Life = 1700 / 150 = 11.3 hours
- 03Life in days = 11.3 / 24 = 0.47 days
Ready to run the numbers?
Open Battery Life Calculator