Battery Life Calculator – Estimate Runtime From Battery Capacity and Current Draw

Estimate battery runtime in hours and days based on battery capacity in mAh, load current draw in mA, and safety discharge thresholds.

AI Quick Summary

Definition & Purpose:

The Battery Life Calculator estimates operational device run time (in hours and days) based on nominal battery cell capacity (mAh), constant load current draw (mA), and safety discharge depth thresholds.

When to Use:

Use this battery estimator when designing IoT microcontrollers, choosing portable power banks, or planning battery backup runtimes.

Key Takeaway Insights:

  • Calculates Estimated Battery Run Time (formatted in days/hours/minutes), Usable Capacity (mAh), and Total Run Hours.
  • Factors in Safety Discharge Margins (typically 15% to 30%) to prevent lithium cell degradation.
  • Explains the difference between milliampere-hours (mAh) and Watt-hours (Wh).
  • Highlights how ambient operating temperatures alter internal battery cell resistance.

Battery Parameters

Runtime Estimates

Estimated Battery Run Time8h 0m
Usable Capacity1,600 mAh
Estimated Run Hours8.00 hours
Share or Export Results

Introduction

Battery Life Calculator – Estimate Runtime From Battery Capacity and Current Draw

Whether you are designing a remote IoT sensor node, sizing a portable power bank for camping, or evaluating smartphone battery performance, estimating operational runtime is a core electrical engineering step. However, simple calculations often overestimate real-world battery life because they assume 100% of a battery's rated capacity can be safely discharged.

This calculator computes Estimated Battery Run Time (formatted), Usable Capacity (mAh), and Estimated Run Hours using nominal capacity, load current, and Safety Discharge Margins.


Discharge Formulas & Depth-of-Discharge (DoD) Mechanics

The calculator converts total rated capacity into usable capacity by subtracting the user-selected Safety Discharge Margin (M_%, default 20%):

1. Usable Battery Capacity (C_usable, in mAh)

C_usable = Nominal Capacity (mAh) × ≤ft( 1 - (Discharge Margin % / 100) )

2. Total Operational Runtime (T_hours, in hours)

Dividing usable capacity by constant device current draw (I, in milliamperes):

T_hours = fracC_usableI

3. Time Formatting Breakdown

Total hours are formatted into integer Days, Hours, and Minutes:

Days = lfloor T / 24 rfloor, quad Hours = lfloor T bmod 24 rfloor, quad Minutes = round((T × 60) bmod 60)


Battery Chemistry & Safety Margin Reference Matrix

Different battery chemistries require distinct Depth of Discharge (DoD) safety margins to prevent permanent cell degradation:

Battery ChemistryTypical Nominal Cell VoltageRecommended Safety Discharge MarginMax Safe Depth of Discharge (DoD)Chemical Degradation Risk at 0%
Lithium-Ion (Li-ion)3.7 V15% – 20% (Baseline)80% – 85%Anode copper dissolution & capacity loss
Lithium Polymer (LiPo)3.7 V20% – 25%75% – 80%Cell swelling & internal resistance spike
LiFePO4 (Lithium Iron)3.2 V10% – 15%85% – 90%Highly resilient; minimal degradation
Lead-Acid (AGM/Gel)12.0 V50%50%Severe plate sulfation if discharged below 50%
NiMH (Nickel Metal)1.2 V10%90%Memory effect & high self-discharge rates

Verified Step-by-Step Worked Example

Let's calculate the runtime for a 2,000 mAh Lithium-ion battery powering a sensor circuit drawing 200 mA with a 20% safety discharge margin:

Step 1: Calculate Usable Capacity (C_usable)

C_usable = 2,000 mAh × ≤ft( 1 - (20 / 100) ) = 2,000 × 0.80 = 1,600 mAh

Step 2: Compute Total Run Hours (T_hours)

T_hours = (1,600 mAh / 200 mA) = 8.00 Hours

Step 3: Format Output Time

Formatted Runtime = 8h 0m


Second Worked Example: 5,000 mAh Power Bank

A 5,000 mAh power bank powering a 500 mA microcontroller with a tighter 15% safety margin (typical for a higher-quality LiPo cell):

C_usable = 5,000 × (1 - 0.15) = 4,250 mAh T_hours = frac4,250500 = 8.50 Hours Days = lfloor 8.5/24 rfloor = 0, quad Hours = lfloor 8.5 bmod 24 rfloor = 8, quad Minutes = round((8.5 × 60) bmod 60) = round(30) = 30 Formatted Runtime = 8h 30m

Even though the second example uses a battery with 2.5x the rated capacity (5,000 mAh vs. 2,000 mAh), the estimated runtime only increases from 8h 0m to 8h 30m, because the device also draws 2.5x more current (500 mA vs. 200 mA). Runtime scales with the ratio of usable capacity to current draw, not capacity alone.

Real-World Factors Reducing Battery Runtime

- Constant-Current Assumption: This calculator assumes a steady, constant current draw. In real devices, background Wi-Fi transmission spikes, display backlight toggles, and CPU burst loads increase average current draw. - Peukert's Law (High Discharge Rates): Discharging a battery at extremely high rates (e.g. discharging a 2,000 mAh cell at 4,000 mA) causes internal resistance heating, reducing effective delivered capacity by 20% to 30%. - Cold Temperature Impact: Operating batteries in sub-zero temperatures (<32^circF / 0^circC) increases electrolyte viscosity, temporarily suppressing available voltage and capacity.

To calculate data transfer times during network syncs, check out our Download Time Calculator or estimate daily tech power usage with the Data Usage Calculator.


Frequently Asked Questions (FAQ)

  • Q1: How do I convert Watt-hours (Wh) to mAh?
  • A1: Use the formula: mAh = (Wh / Voltage) × 1,000. For example, a 37 Wh laptop battery at 11.1V equals 3,333 mAh.
  • Q2: Does a battery self-discharge when not in use?
  • A2: Yes. Lithium batteries self-discharge at roughly 1% to 2% per month, while NiMH batteries can lose up to 10% to 20% in the first month of storage.
  • Q3: Why do the days, hours, and minutes in the formatted runtime not always add up exactly to the decimal hours figure?
  • A3: The formatted breakdown uses floor division for days and hours but rounds the minutes to the nearest whole minute, so a runtime like 8.499 hours displays as "8h 30m" even though 8.499 × 60 = 509.94 minutes rounds to 510 (8h 30m) - a small, expected rounding step for readability.

Formula & Variables Explained

UsableCapacity (mAh) = Capacity * (1 - Margin%/100) | Runtime (Hours) = UsableCapacity / CurrentDraw (mA)

This tool utilizes standard equations formulated under standard rules.

Variables:

  • Input parameter: Values supplied to resolve the output formula.

How to Calculate (Step-by-Step)

  1. Input the required parameters into the form.
  2. Click the calculate or auto-compute option.
  3. The outputs will refresh instantly with step-by-step variables.

Worked Examples Calculation

12,000 mAh Battery with 200 mA Load (20% Safety Discharge Margin)

Inputs Given:

Battery Capacity = 2,000 mAh, Device Current Draw = 200 mA, Safety Discharge Margin = 20%

Step-by-Step Calculation:

Step 1: Usable Capacity = 2,000 (1 - 0.20) = 2,000 0.80 = 1,600 mAh. Step 2: Total Run Hours = 1,600 / 200 = 8.00 hours. Step 3: Formatted runtime = 8h 0m.

Result Obtained:

Estimated Battery Run Time = 8h 0m | Usable Capacity = 1,600 mAh | Estimated Run Hours = 8.00 hours

25,000 mAh Power Bank powering 500 mA Microcontroller (15% Safety Margin)

Inputs Given:

Battery Capacity = 5,000 mAh, Device Current Draw = 500 mA, Safety Discharge Margin = 15%

Step-by-Step Calculation:

Step 1: Usable Capacity = 5,000 * (1 - 0.15) = 4,250 mAh. Step 2: Total Run Hours = 4,250 / 500 = 8.50 hours (8h 30m).

Result Obtained:

Estimated Battery Run Time = 8h 30m | Usable Capacity = 4,250 mAh | Estimated Run Hours = 8.50 hours

Real-World Applications

Widely used in student curriculum, professional projections, and quick estimations.

Limitations & Common Mistakes

Caution & Mistakes:
  • Entering incompatible unit formats (e.g. Mixing Metric and Imperial).
  • Typographical mistakes in numeric entry fields.
Limitations:

Assumes a constant current load. Real devices experience dynamic power spikes from wireless radios (Wi-Fi/Bluetooth) and screen brightness changes.

Frequently Asked Questions (FAQ)

Q:What does mAh (Milliampere-hour) measure?

mAh measures electric charge capacity - the continuous current (in milliamperes) a battery can deliver for one full hour before reaching its cutoff voltage.

Q:Why should I include a Safety Discharge Margin (Depth of Discharge)?

Draining rechargeable batteries (especially Lithium-Ion, LiPo, or Lead-Acid) to 0% nominal voltage causes chemical copper shunting, permanent cell capacity loss, and reduced total cycle life. Maintaining a 15% to 20% safety threshold prolongs battery health.

Q:What is the difference between mAh and Watt-hours (Wh)?

mAh measures electric charge regardless of cell voltage. Watt-hours (Wh) measures true total energy capacity by factoring in voltage (Wh = Ah × Volts). A 10,000 mAh battery at 3.7V provides 37 Wh of energy.

Last Updated: 2026-08-14
Formula Verified
Written By

CalculationDesk Editorial Team

Content & Calculation Editors

The CalculationDesk Editorial Team consists of math educators, technical writers, and product specialists dedicated to ensuring accuracy and clarity for everyday calculations.

Reviewed By

CalculationDesk Review Team

Quality Assurance & Formula Verifiers

Our internal Review Team ensures that every calculator logic corresponds precisely to established academic standards and industry specifications.

Was this calculator helpful?

Embed this Calculator

You are welcome to embed this tool on your own blog or website. Simply copy the code snippet below and paste it into your HTML code.