Battery Life Calculator — Free mAh Runtime & Drain Estimator | AllInOneTools
⚡ Electrical & Energy

Battery Life Calculator

Estimate how long a battery will last based on capacity (mAh) and current drain (mA). Supports duty cycles, efficiency factors, and all common battery types — from coin cells to power banks.

100%
2000 mAh
Estimated runtime
Battery
mAh
V
Load / Current Drain
mA
%
mA
📊
Runtime Breakdown
Energy & Power
🔋
Common Battery Reference
🔋

Battery Life Calculator: How to Estimate Runtime from mAh, Current Drain, and Efficiency

Whether you're designing an IoT sensor node, building an Arduino project, sizing a power bank, or just wondering how long your flashlight will last, understanding battery life calculation is essential. The basic formula is simple, but real-world factors like efficiency, duty cycles, and temperature significantly affect actual runtime. This guide covers everything from basic calculations to advanced optimization techniques.

The Battery Life Formula

Runtime (hours) = Capacity (mAh) ÷ Current (mA) × Efficiency

With Duty Cycle:
Effective Current = (Active mA × Duty%) + (Sleep mA × (100−Duty%))
Runtime = Capacity ÷ Effective Current × Efficiency

Energy: Watt-hours = mAh × Voltage ÷ 1000
Worked Example — IoT Sensor Node
Battery: 18650 Li-ion 3500 mAh, 3.7V
Active: 80 mA (reading sensor + WiFi), 10% of time
Sleep: 0.01 mA, 90% of time
Effective draw: (80 × 0.10) + (0.01 × 0.90) = 8.009 mA
Runtime: 3500 ÷ 8.009 × 0.85 = 371 hours ≈ 15.5 days

Common Battery Types and Capacities

BatteryCapacityVoltageWhType
AA Alkaline2,500 mAh1.5V3.75Disposable
AAA Alkaline1,000 mAh1.5V1.50Disposable
CR2032220 mAh3.0V0.66Coin cell
18650 Li-ion2,500–3,5003.7V9.3–13Rechargeable
AA NiMH2,000–2,8001.2V2.4–3.4Rechargeable
Phone (avg)3,000–5,0003.7V11–18.5Li-ion
9V Alkaline550 mAh9V4.95Disposable
LiPo 1S500–2,0003.7V1.85–7.4RC/Drone

Factors That Reduce Real Battery Life

The theoretical formula gives an optimistic estimate. In practice, several factors reduce actual runtime: Voltage regulation — buck/boost converters are 80–95% efficient, linear regulators waste energy as heat. Peukert effect — higher drain rates reduce effective capacity, especially in alkaline batteries. Temperature — cold weather can reduce lithium battery capacity by 20–40%. Self-discharge — batteries lose 1–5% per month even when idle. Age — rechargeable batteries lose 20% capacity after 300–500 cycles. Using a 0.7–0.85 efficiency factor gives realistic estimates.

Maximizing Battery Life in Projects

For embedded/IoT projects, sleep modes are the single most effective technique. An ESP32 draws 240 mA active but only 10 µA in deep sleep — that's a 24,000× reduction. Design your firmware to sleep as much as possible, waking only to read sensors and transmit data. Other tips: use the lowest voltage regulator that works (LDO vs. switching), minimize LED usage, choose low-power sensors, and reduce wireless transmission frequency and power.

Frequently Asked Questions

How do you calculate battery life?
Runtime (hrs) = Capacity (mAh) ÷ Current (mA) × Efficiency. Example: 2000mAh ÷ 200mA × 0.85 = 8.5 hours. Use 0.7–0.85 efficiency for realistic estimates. For duty-cycled devices, calculate effective current first.
What does mAh mean?
mAh = milliampere-hours = battery capacity. 2000mAh can deliver 2000mA for 1 hour, 200mA for 10 hours, or 20mA for 100 hours. Higher mAh = longer runtime. AA=2500, AAA=1000, 18650=2500-3500, phone=3000-5000.
How long does a 5000 mAh battery last?
Depends on draw: 500mA=10hrs, 1000mA=5hrs, 100mA=50hrs. For smartphones (~500mA average): 8-10 hours active use. For IoT (10mA): ~21 days. Apply 0.85 efficiency for realistic estimate.
How to convert mAh to watt-hours?
Wh = mAh × Voltage ÷ 1000. Example: 3000mAh × 3.7V ÷ 1000 = 11.1 Wh. For power banks rated at 3.7V but outputting 5V: usable capacity ≈ rated mAh × 0.63 due to voltage conversion losses.
Why does my battery last shorter than calculated?
Real-world factors: regulator efficiency (10-20% loss), Peukert effect (high drain reduces capacity), temperature (cold = -20-40%), battery age (20% loss after 300-500 cycles), self-discharge (1-5%/month), peak currents. Use 0.7-0.85 efficiency factor.
How long will Arduino run on batteries?
Arduino Uno: ~45mA. On 4×AA (2500mAh): 2500÷45×0.8 = 44 hours. With deep sleep (0.01mA) waking every 10min: effective ~0.18mA → 11,000+ hours (1.3 years). Sleep modes are essential for battery-powered Arduino/ESP projects.
What battery type lasts longest?
By energy density: Li-ion (150-250 Wh/kg) wins. By cycle life: LiFePO4 (2000+ cycles). For disposable low-drain: lithium primary (10+ year shelf life). For rechargeable everyday: 18650 Li-ion (2500-3500mAh, best capacity/cost ratio).