Battery Life Calculator

This battery life calculator estimates the battery life based on the nominal capacity and average current consumed by the load.

Unit Explanation

  • Battery capacity is usually measured in ampere hours (Ah) or milliampere hours (mAh)
  • 1 ampere hour (Ah) = 1000 milliampere hours (mAh)
  • Watt-hour (Wh) conversion formula: Ah = Wh / V (V is the nominal voltage of the battery)
Calculation Formula
Battery Life =
Battery Capacity (mAh) Load Current (mA)
0 weeks 0 days 0 hours 0 minutes
Estimated Battery Life:
0.00 weeks
* Results based on ideal conditions

Important Notes

Calculation Result Explanation

The above result is a theoretical estimate based on ideal conditions. Actual usage time may be affected by the following factors:

  • Battery condition and usage years
  • Environment temperature
  • Discharge rate
  • Other external factors

Best Usage Conditions

Under these conditions, the calculation result is closest to the actual value:

  • Using a new high-quality battery
  • Working in a room temperature environment
  • Working time between 1 hour and 1 year
PCB TOOLS / ELECTRONICS WORKBENCH

Three-State Average Current and Battery Life

Estimate ideal runtime from repeating idle, standby and run intervals. The original capacity field uses Ah: 0.25 Ah equals 250 mAh.

Inputs and reverse calculation

Enter Ah, not mAh. Internally converted to coulombs Q=Ah×3600.
App zero-link: editing this current or idle duration to zero also clears its partner.
App zero-link: editing this current or standby duration to zero also clears its partner.

Calculated results

Default example / current valid result
Weighted average current343 µA
Ideal runtime (hours)728.863 h
Runtime (years / days / hours / minutes / seconds)30 days, 8 hours, 51 minutes, 46 seconds
Total repeating cycle duration60 s
Usable charge (Ah × 3600)900 C

How to interpret the result

Each state has a constant current, and the three durations form a continuously repeating cycle. Enter capacity in Ah; multiplying by 3600 converts it to charge in coulombs. Runtime is shown in hours and as years, days, hours, minutes and seconds. Run current and duration describe the remaining active state in each cycle.

Formulas and units

T=Tidle+Tstby+Trun. Iavg=(Iidle·Tidle)/T+(Istby·Tstby)/T+(Irun·Trun)/T, retaining the original three divisions before addition. Q=3600·capacity(Ah), runtime t=Q/Iavg seconds and th=capacity(Ah)/Iavg hours. 1 Ah=1000 mAh=3600 C; a year is 365 days.

Worked example

For a 2 Ah battery, use idle 1 mA×50 s, standby 10 mA×5 s and run 100 mA×5 s. The cycle is 60 s, average current is (0.05+0.05+0.5)/60=0.01 A, and ideal runtime is 200 h (720000 s, or 8 days 8 hours). The default 0.25 Ah, 10 µA×58 s and 10 mA×2 s gives 343 µA and about 728.863 h.

Scope and limitations

The App idle/standby zero-link is retained: editing either current or duration to zero clears its partner and shows a notice; the run pair is not linked. To retain an ideal zero-current interval, first zero its current and then enter its duration. Negative values, zero total period, zero average current and nonfinite results are rejected atomically. The estimate omits self-discharge, cutoff voltage, discharge-rate effects, temperature, aging, regulator losses and load-dependent capacity. Ah measures charge, not Wh energy.

Common questions

What should I enter for 250 mAh?

Enter 0.25 Ah. Entering 250 Ah would increase the runtime estimate by a factor of 1000. The tool does not guess capacity units.

Why does standby duration clear when its current is changed to zero?

This is the original App input linkage, and a notice is shown. Zero the current first, then enter duration to represent an ideal zero-current wait interval.

Does this guarantee actual runtime?

No. Use measured state currents and usable capacity under the actual conditions, then account for the battery data sheet, leakage, self-discharge and supply efficiency.

Related tools

Formula and data sources

Rebuilt from the extracted Electrodoc Pro 5.2 specification. Added, inferred and corrected behavior is identified in the limitations. Updated 2026-11-15.