Skip to main content
⚡ Electronics & Power

Battery Life Calculator

Estimate how long a battery will last from its capacity and the load current — including active/sleep duty cycle and a real-world derating factor.

Hours & days
Duty cycle
Sleep current
Derating
100% Free
⚡ Open Full Electrical Calculator 📖 Read the Guide

Battery life — Quick answer

Runtime is the usable capacity divided by the average current. Sleep modes cut the average current dramatically.

Life (h) = capacity (mAh) × derating / Iavg (mA)  |  Iavg = Iactive·duty + Isleep·(1−duty)

Worked example: A 2000 mAh battery, device 50 mA active 5% of the time and 0.01 mA asleep, 85% usable: Iavg ≈ 2.51 mA, life ≈ 2000 × 0.85 / 2.51 ≈ 677 h ≈ 28 days.

Runtime at 85% derating (steady load)

Capacity10 mA100 mA500 mA
500 mAh42 h4.3 h0.85 h
2000 mAh170 h17 h3.4 h
5000 mAh425 h42 h8.5 h

Used for: IoT sensors, wearables, remote controls, GPS trackers, portable instruments.

⚡ Battery Life Calculator

Enter the capacity and load. For a duty-cycled device, set the active current, sleep current and the percentage of time active.

Average current
Battery life
In days
Usable capacity

⚠️ Estimate. Real runtime varies with temperature, discharge rate, cut-off voltage, self-discharge and ageing.

Battery life is, at its simplest, how much charge you have divided by how fast you use it. Capacity in milliamp-hours (mAh) divided by load current in milliamps (mA) gives hours. Two refinements make the estimate realistic: a derating factor, because you never get 100% of the rated capacity, and an average current that accounts for low-power sleep modes — the single biggest lever in battery-powered design.

Reviewed: June 19, 2026 · Author: Naveen P N, Founder — AI Calculator · Verified against: battery datasheet discharge methods and Peukert's law references.

The battery-life formula

Runtime
Life (hours) = capacity (mAh) × derating / Iavg (mA)
Average current
Iavg = Iactive × duty + Isleep × (1 − duty)

Keep the units consistent: capacity in mAh and current in mA give hours. For amp-hours and amps, multiply both by 1000 first (1 Ah = 1000 mAh). The derating factor (typically 0.7–0.9) trims the rated capacity to what you can actually use down to your circuit's cut-off voltage.

Worked example — a wireless sensor

Scenario: A sensor wakes for 0.5 s every 10 s (5% duty), drawing 50 mA awake and 10 µA (0.01 mA) asleep, from a 2000 mAh battery at 85% usable.

Average current
Iavg = 50 × 0.05 + 0.01 × 0.95 = 2.5 + 0.0095 ≈ 2.51 mA
Life
2000 × 0.85 / 2.51 ≈ 677 hours ≈ 28 days

If it stayed awake continuously at 50 mA, the same battery would last only 2000 × 0.85 / 50 = 34 hours. The sleep mode multiplies battery life roughly twenty-fold — which is why minimising both the sleep current and the active time dominates low-power design.

Frequently Asked Questions

How do I calculate battery life from mAh?

Life (hours) = capacity (mAh) × derating ÷ average load (mA). A 2000 mAh battery at a steady 100 mA and 85% usable lasts 2000 × 0.85 ÷ 100 = 17 hours.

How do I include sleep mode and duty cycle?

Average = active × duty + sleep × (1 − duty). 50 mA active for 5%, 10 µA asleep ≈ 2.5 mA, so a 2000 mAh battery lasts ≈ 680 hours (28 days).

Why use a derating factor for battery capacity?

Rated capacity is a lab figure. Real runtime drops with high discharge rate, temperature, cut-off voltage, self-discharge and ageing. A 70–90% factor is realistic; use the low end for high current or cold.

How do I convert Ah to mAh?

Multiply by 1000: 1 Ah = 1000 mAh, so 2.5 Ah = 2500 mAh. Convert load amps to mA the same way so units match.

Does a higher discharge current reduce capacity?

Yes — most chemistries give less usable capacity at high rates (Peukert effect for lead-acid, resistance losses for lithium). Near the rated C-rate, lower the derating factor.

Ready to perform complete calculations?

Use the full AI Calculator suite for power, solar and a professional PDF report.

⚡ Open Full Calculator — Free

No registration required · 350+ engineering calculators · PDF report export