Skip to content
Battery life calculator icon

Battery Life Calculator

Estimate battery life for your device from capacity, load current and duty cycle. Enter battery specs and operating profile to see runtime, energy use and safety margin.This calculator is part of Xindustra’s Industrial Electrical Calculation Tools, a collection of practical calculators designed for electrical and automation applications.

* Results are estimates only. Actual battery life varies with cell quality, temperature, discharge profile, and other conditions.

BATTERY LIFE FORMULA
Battery Life (hours) =  Battery Capacity (mAh) Load Current (mA)
Capacity and current must be in compatible units (e.g. mAh and mA, or Ah and A). Internally, the calculator converts everything to mAh and mA.
Battery diagram
--
Estimated Battery Life:
--
*Based on ideal conditions and continuous load current.

Battery life estimation for embedded and industrial devices

When a device runs from batteries, one of the most important questions is “How long will it last?” A battery life calculator turns capacity, load current and duty cycle into a practical runtime estimate so you can size the battery correctly and set realistic maintenance intervals.

Typical use cases include:

  • Wireless sensors and data loggers
  • Portable HMIs and handheld testers
  • Back-up supplies for PLCs and controllers
  • IoT nodes running from primary cells or small packs

Basic battery life equation

The simplest runtime estimate assumes a constant current draw and ideal battery behavior:

Battery life (hours) = Capacity (mAh) / Load current (mA)

For example, a 2000 mAh battery feeding a constant 100 mA load gives:

Battery life ≈ 2000 / 100 = 20 h

In real designs, however, current is often not constant. Devices sleep most of the time and wake briefly to measure, transmit or update the display. The calculator therefore lets you model active and sleep currents and combines them into an average current.

Average current with duty cycle

If a device alternates between active and sleep states:

  • Iactive – current during active time
  • Isleep – current during sleep
  • D – duty cycle (fraction of time active, 0–1)

then the average current is:

Iavg = D × Iactive + (1 − D) × Isleep

Battery life becomes:

Battery life (hours) = Capacity (mAh) / Iavg (mA)

Peukert effect and derating

Real batteries do not deliver their full rated capacity at every load current. At higher discharge rates, the effective capacity drops; at very low rates, it may increase slightly. Temperature, age and cutoff voltage also influence usable capacity.

To account for these factors, many engineers apply a simple derating factor:

  • Usable capacity = Nominal capacity × Derating factor

For example, with a 20% safety margin:

Usable capacity = 0.8 × Nominal capacity

The calculator can show both the ideal runtime and a derated runtime so you can plan maintenance or replacement intervals more conservatively.

Quick reference examples

The table below shows rough runtimes for a 2000 mAh battery at different average loads (ideal case, no derating):

Average current (mA) Estimated life (hours) Estimated life (days) Typical scenario
10 mA ≈ 200 h ≈ 8.3 days Small display, light sensors
1 mA ≈ 2000 h ≈ 83 days Low-power wireless node, frequent updates
100 µA ≈ 20,000 h ≈ 2.3 years Sensor with long sleep intervals
10 µA ≈ 200,000 h ≈ 22.8 years* Ultra-low sleep current (practically limited by battery self-discharge)

*At very low currents, self-discharge and aging limit real lifetime long before the theoretical number is reached.

Using the Battery Life Calculator

  1. Enter battery parameters: Specify nominal capacity (mAh), number of cells if applicable, and an optional derating factor for real-world conditions.
  2. Describe the load: Enter either a single constant current or separate active and sleep currents with a duty cycle.
  3. Review average current and runtime: The tool calculates Iavg, ideal runtime and derated runtime in hours, days and (for low currents) years.
  4. Iterate on design choices: Adjust duty cycle, optimize sleep current, or choose a larger battery until the runtime meets your requirements.

Design tips for realistic battery life

  • Measure real currents: Use a low-burden ammeter or power analyzer to capture actual active and sleep currents instead of relying only on datasheet values.
  • Consider temperature: Capacity drops in cold environments and self-discharge increases at high temperature; both reduce real runtime.
  • Account for cutoff voltage: Many devices shut down before the battery is completely empty. Use the capacity available between full charge and cutoff, not the theoretical value to 0 V.
  • Plan for aging: Lithium and lead-acid batteries lose capacity over time and cycles. For long-life installations, design around end-of-life capacity, not fresh-cell capacity.

This battery life calculator gives you a quick, engineering-grade estimate of runtime for portable, backup and remote systems, helping you choose the right battery, optimize power consumption and reduce unplanned downtime in the field.

FAQ about Battery Life Calculator

Why is real battery life often shorter than the ideal calculation?

The simple formula assumes:


  • Full rated capacity is usable

  • Current is constant

  • Temperature is moderate

  • Battery is new

    In reality, capacity is reduced by high load currents, cold temperatures, aging, self-discharge and device cutoff voltage. A derating factor (for example 70–80% of nominal) usually gives a more realistic estimate.
Do voltage and chemistry matter, or is capacity (mAh) enough?

mAh alone describes charge, not energy.

For comparing different chemistries or pack voltages, watt-hours (Wh) are more meaningful:


  • <code>Energy (Wh) ≈ Capacity (Ah) × Nominal voltage (V)</code>

    Different chemistries also have different discharge curves, internal resistance, temperature behavior and cycle life. The calculator focuses on current and mAh, but final cell choice should consider chemistry-specific factors.
How should I model devices with many different operating modes?

Group similar modes together and calculate a weighted average:


  • Break the duty cycle into states (sleep, measure, transmit, display on, etc.)

  • Multiply current in each state by its time fraction

  • Sum to get total average current

    The calculator can approximate this by treating the most important states as “active” and everything else as “sleep,” or you can pre-calculate I<sub>avg</sub> and enter it directly.

Compare products

{"one"=>"Select 2 or 3 items to compare", "other"=>"{{ count }} of 3 items selected"}

Select first item to compare

Select second item to compare

Select third item to compare

Compare