tech calculator

Battery Life Calculator

Estimate runtime from battery capacity, average load, and voltage.

Results

Runtime (hours)
6.25
Runtime (days)
0.26
Battery capacity (Wh)
18.50
Percent consumed per hour
16.00%

Overview

Battery-powered devices are everywhere—from phones and laptops to sensors, routers, and DIY electronics projects. When you pick a battery or power bank, you almost always want to know the same thing: how long will this actually run before it dies?

This battery life calculator turns the capacity on a battery label (in milliamp-hours) and your device’s current draw (in milliamps) into a clear runtime estimate. By adding nominal voltage, it also gives an approximate energy figure in watt-hours plus a simple percent-per-hour drain estimate. It’s ideal for IoT prototypes, power bank planning, and quick “is this big enough?” checks without building a full spreadsheet.

How to use this calculator

  1. Enter the battery’s rated capacity in milliamp-hours (mAh) from its label or datasheet.
  2. Enter your device’s average current draw in milliamps (mA). If the device has active and sleep modes, approximate an average using a duty cycle or run separate scenarios for each mode.
  3. Enter the nominal battery voltage for the cell or pack (for example, 3.7 V for a single Li-ion cell, 7.4 V for a 2S pack).
  4. Review the runtime outputs in hours and days, along with the estimated watt-hours and percent of capacity used per hour.
  5. Adjust current draw up or down to model different workloads (screen brightness, radio duty cycle, sensor polling frequency, etc.) and see how they affect runtime.
  6. Use the watt-hour number to compare different battery options on a common energy basis when designing a system or choosing a power bank.

Inputs explained

Battery capacity (mAh)
The nominal capacity of the battery or pack in milliamp-hours. This is often printed directly on the cell or listed in the product specs.
Device draw (mA)
The average current draw in milliamps. For devices with varying loads, you can measure or estimate an average across active, idle, and sleep periods.
Battery voltage (V)
The nominal voltage of the battery or pack used for the watt-hour calculation. Single Li-ion cells are typically around 3.6–3.8 V; multi-cell packs have higher nominal voltages depending on the series configuration.

How it works

Capacity in milliamp-hours (mAh) is a measure of charge: in an ideal linear model, a 5,000 mAh pack could supply 5,000 mA for 1 hour, 500 mA for 10 hours, or 250 mA for 20 hours.

The calculator uses that relationship to estimate runtime with Runtime_hours ≈ Capacity_mAh ÷ Draw_mA, assuming an average current draw that stays roughly constant over the period.

Runtime_days is then derived by dividing hours by 24 so you can quickly see whether you’re talking about hours, days, or fractions of a day.

To estimate stored energy, the tool converts mAh to amp-hours (Ah) by dividing by 1,000 and multiplies by battery voltage: Battery_Wh ≈ (mAh ÷ 1,000) × Voltage. This gives watt-hours, which is helpful when comparing packs with different voltages.

Percent consumed per hour is calculated as (Draw_mA ÷ Capacity_mAh) × 100. If this value is 10%, you can intuitively think “roughly 10 hours of runtime” under ideal conditions.

The underlying model is intentionally simple and does not simulate non-linear discharge curves, converter losses, or depth-of-discharge limits, so real runtimes typically come in below the idealized numbers—especially in cold conditions or with older cells.

Formula

Let C_mAh = capacity (mAh), I_mA = draw (mA), V = voltage (V).\n\nRuntime_hours ≈ C_mAh ÷ I_mA\nRuntime_days ≈ Runtime_hours ÷ 24\nBattery_Wh ≈ (C_mAh ÷ 1,000) × V\nPercent_per_hour ≈ (I_mA ÷ C_mAh) × 100

When to use it

  • Estimating how long a router, modem, or small access point will run on a given power bank during an outage.
  • Planning battery size and replacement intervals for remote sensors, data loggers, or LoRa/IoT nodes.
  • Checking whether a planned battery for a handheld project (like a custom controller or meter) will last a full work shift.
  • Comparing current draw of different firmware builds to see how power optimizations translate into longer runtime.
  • Turning watt-hour ratings on power banks into more intuitive hour/day runtime estimates for specific loads.

Tips & cautions

  • Actual current draw is rarely perfectly flat—use an average that accounts for peaks, idle periods, and sleep modes for more realistic estimates.
  • DC-DC converters, inverters, and regulators introduce losses. If you know approximate efficiency (for example, 85–90%), divide your ideal runtime by that efficiency to get closer to reality.
  • Capacity falls in cold temperatures and as batteries age. For critical applications, derate capacity by 10–30% to avoid unpleasant surprises in the field.
  • If your device spikes to high current briefly (for radios, motors, or backlights), ensure your battery and regulator can support those peaks even if the average mA value looks safe.
  • For multi-cell packs, check that your device can tolerate the full voltage range—not just the nominal value—throughout the discharge cycle.
  • Assumes constant average current draw and does not model detailed time-varying loads or surge currents.
  • Uses nominal capacity and voltage; it does not account for specific chemistry discharge curves, safety cutoffs, or cell balancing behavior.
  • Does not include converter or inverter inefficiency unless you mentally apply a margin to the results.
  • Does not model self-discharge over long storage periods or capacity fade across many charge/discharge cycles.
  • Intended as a planning-level estimate; you should validate power budgets and runtimes with real measurements before relying on them in production or safety-critical systems.

Worked examples

5,000 mAh pack powering an 800 mA device

  • C_mAh = 5,000; I_mA = 800; V ≈ 3.7 V.
  • Runtime_hours ≈ 5,000 ÷ 800 ≈ 6.25 hours.
  • Runtime_days ≈ 6.25 ÷ 24 ≈ 0.26 days.
  • Battery_Wh ≈ (5,000 ÷ 1,000) × 3.7 ≈ 18.5 Wh.
  • Percent_per_hour ≈ (800 ÷ 5,000) × 100 ≈ 16% per hour under the ideal model.

10,000 mAh pack for a 300 mA sensor gateway

  • C_mAh = 10,000; I_mA = 300; V ≈ 3.7 V.
  • Runtime_hours ≈ 10,000 ÷ 300 ≈ 33.3 hours.
  • Runtime_days ≈ 33.3 ÷ 24 ≈ 1.39 days.
  • Battery_Wh ≈ (10,000 ÷ 1,000) × 3.7 ≈ 37 Wh.
  • Percent_per_hour ≈ (300 ÷ 10,000) × 100 ≈ 3% per hour, implying around 33 hours of ideal runtime.

Comparing two packs with different voltages

  • Pack A: 3,000 mAh at 3.7 V → Battery_Wh ≈ (3,000 ÷ 1,000) × 3.7 ≈ 11.1 Wh.
  • Pack B: 2,500 mAh at 7.4 V → Battery_Wh ≈ (2,500 ÷ 1,000) × 7.4 ≈ 18.5 Wh.
  • Even though Pack B has lower mAh, it stores more total energy in Wh. For regulated systems, Wh is the more meaningful comparison.

Deep dive

This battery life calculator converts battery capacity in mAh and device draw in mA into estimated runtime in hours and days, plus approximate watt-hours and percent of battery used per hour.

Use it to size batteries and power banks, plan IoT and embedded deployments, or sanity-check manufacturer runtime claims. Then layer in real-world losses and aging for production designs.

FAQs

Why is my measured runtime shorter than the calculator’s result?
The calculator assumes an ideal battery and constant load. In reality, converter losses, internal resistance, cutoff voltages, aging, and cold temperatures all reduce usable capacity. Treat this as a best-case estimate and refine it with real measurements.
Can I start from watts instead of milliamps?
Yes. Convert load power to current with mA ≈ (Watts ÷ Volts) × 1,000, using the battery-side voltage, then enter that current as the device draw. Don’t forget to account for converter efficiency when stepping between voltages.
How should I handle devices that sleep most of the time?
Compute an average draw using a duty cycle: I_avg ≈ I_active × duty_cycle + I_sleep × (1 − duty_cycle). Plug I_avg into the calculator to approximate overall runtime.
Does battery aging significantly affect runtime?
Over many cycles or years, batteries can lose 20–30% (or more) of their original capacity. For long-lived deployments, consider derating capacity in the calculator to reflect expected end-of-life performance.
What voltage should I enter for multi-cell packs?
Use the nominal pack voltage (for example, 7.4 V for a 2S Li-ion pack) for the watt-hour calculation. Runtime in hours is still based on mAh and mA; the voltage mainly affects the Wh energy estimate.

Related calculators

This battery life calculator is a simplified planning tool based on nominal capacity, average current draw, and nominal voltage. It does not model detailed discharge curves, thermal effects, converter efficiency, or safety margins. Always validate runtimes with manufacturer specifications and real-world testing, especially for safety-critical or mission-critical designs.