Skip to main content
ponderloop

Battery Life Calculator

Battery life in hours is the usable capacity divided by the average load. A 2,000 mAh battery with 80% of its capacity usable, feeding a constant 50 mA, lasts 1 d 8 h (32 h). For a device that wakes briefly, the same battery with 80 mA for 2 seconds every 10 minutes and 0.02 mA asleep averages 0.2866 mA and lasts ≈ 232 d 14 h 41 m 37 s. Turn it around to size the battery: running that 50 mA load for 30 days needs 45,000 mAh of rated capacity. These are estimates: the usable percentage is yours to choose from the datasheet, because real cells give less at high drain, in the cold and near the cut-off voltage.

Updated Runs in your browser: nothing you enter is uploadedHow this tool works

Your estimate: 100 uses the whole rating. Take it from the datasheet; 80 is only an example.

Needed only for Wh with amps, or Ah with watts.

An estimate, not a guarantee: real runtime depends on the cell, the temperature, the drain and the cut-off voltage. Check the battery datasheet.

2,000 mAh at 80% usable, 50 mA

Battery life: 1 d 8 h

Rated capacity
2,000 mAh
Usable capacity
1,600 mAh (80%)
Load
50 mA
Load as a C-rate
0.025 C
Hours
32 h
Days
≈ 1.33 days

The working

  1. Usable capacity = 2,000 mAh × 80% = 1,600 mAh.
  2. Runtime = usable capacity ÷ load = 1,600 mAh ÷ 50 mA = 32 hours = 1 d 8 h.

Battery life of a 2,000 mAh battery by constant load

Runtime of a 2,000 mAh battery with 80% usable, for typical loads in milliamps. The 80% is an example setting, not a datasheet value.
LoadBattery lifeHoursLoad as a C-rate
1 mA66 d 16 h1,600 h0.0005 C
5 mA13 d 8 h320 h0.0025 C
10 mA6 d 16 h160 h0.005 C
25 mA2 d 16 h64 h0.0125 C
50 mA1 d 8 h32 h0.025 C
100 mA16 h16 h0.05 C
250 mA6 h 24 m6.4 h0.125 C
500 mA3 h 12 m3.2 h0.25 C

How the usable-capacity setting changes the result

The same 2,000 mAh battery and 50 mA load. Every 10 points of usable capacity you give up shortens the life in proportion.
Usable capacityUsable mAhBattery lifeHours
100%2,000 mAh1 d 16 h40 h
90%1,800 mAh1 d 12 h36 h
80%1,600 mAh1 d 8 h32 h
70%1,400 mAh1 d 4 h28 h
60%1,200 mAh1 d24 h
50%1,000 mAh20 h20 h

Duty cycle: how the wake-up interval changes the life

A 2,000 mAh battery at 80% usable, active at 80 mA for 2 seconds each time and drawing 0.02 mA asleep.
Wakes up everyAwakeAverage loadBattery lifeDays
10 seconds20%16.016 mA≈ 4 d 3 h 54 m≈ 4.16 days
1 minute≈ 3.3333%2.686 mA≈ 24 d 19 h 40 m 53 s≈ 24.82 days
10 minutes≈ 0.3333%0.2866 mA≈ 232 d 14 h 41 m 37 s≈ 232.61 days
1 hour≈ 0.0556%≈ 0.064433 mA≈ 1,034 d 15 h 52 m 3 s≈ 1,034.66 days

mAh, Ah and Wh at common battery voltages

Energy in watt-hours is charge in amp-hours times voltage. Nominal voltages; a real cell varies as it discharges.
Battery1,000 mAh equals10 Wh equals
1.5 V (one alkaline AA or AAA)1.5 Wh≈ 6,666.7 mAh
3 V (lithium coin cell, two AAs)3 Wh≈ 3,333.3 mAh
3.7 V (one lithium-ion or LiPo cell)3.7 Wh≈ 2,702.7 mAh
7.4 V (two lithium-ion cells in series)7.4 Wh≈ 1,351.4 mAh
12 V (lead-acid battery)12 Wh≈ 833.3 mAh

How to calculate battery life

  1. Enter the battery capacity. Type the rated capacity and pick mAh, Ah or Wh. The example is 2,000 mAh. If the capacity is in Wh and the load in amps, or the capacity in Ah and the load in watts, also enter the battery voltage (3.7 V in the example).
  2. Set the usable capacity. Enter the percentage of the rated capacity you expect to use. 100% assumes the whole rating; a lower figure allows for high drain, cold, the cut-off voltage or a depth-of-discharge limit. Take it from the battery's datasheet. The example uses 80%, which is a setting, not a datasheet value: at 100% the example lasts 1 d 16 h instead of 1 d 8 h.
  3. Enter the load. For a constant load, type the current in µA, mA or A, or the power in mW or W. For a device that sleeps, choose the duty-cycle mode instead and enter the active and sleep loads, how long it is active and how often it wakes. The example averages 0.2866 mA.
  4. Read the battery life. The result is shown as days, hours and minutes, with the hours, days and (from a year up) years below it, plus the working. 2,000 mAh at 80% into 50 mA is 1 d 8 h.
  5. Or find the capacity you need. Switch to "Capacity needed", enter the runtime you want and read the rated capacity to buy. 30 days at 80% usable, 50 mA needs 45,000 mAh, which is 166.5 Wh at 3.7 V.

Frequently asked questions

How do I calculate battery life?
Divide the usable capacity by the load: hours = capacity × usable share ÷ load. For 2,000 mAh, 80% usable and 50 mA that is 2,000 × 0.8 ÷ 50 = 32 h, or 1 d 8 h. With watts, divide watt-hours by watts instead. This is an estimate: it assumes the load stays constant and the battery delivers the share of its rating you entered.
What usable capacity should I enter?
Use the figure the manufacturer's data supports for your load, temperature and cut-off voltage; this page does not claim a typical value. Datasheets quote capacity for a stated load, cut-off voltage and temperature (Energizer's A23 datasheet, for example, gives its capacity to 6.0 V on a 20 kilohm load at 21 °C), and Analog Devices notes that higher drain reduces the usable capacity, that very light loads lose capacity to self-discharge, and that an alkaline cell needs to run down to 0.8 V to reach its rated capacity. The default of 80% is only an example setting. At 100% the example lasts 1 d 16 h; at 80%, 1 d 8 h.
How do I convert mAh to Wh, and what voltage do I use?
Watt-hours = amp-hours × volts, so 1,000 mAh at 3.7 V is 3.7 Wh and 10 Wh at 3.7 V is ≈ 2,702.7 mAh. Use the nominal voltage printed on the battery. The calculator needs the voltage only when you mix charge and energy: 10 Wh at 80% usable, 50 mA gives ≈ 1 d 19 h 14 m 36 s, and 2,000 mAh at 80% usable, 0.5 W gives 11 h 50 m 24 s.
How does the duty-cycle mode work?
It averages the load over one cycle: (active load × active time + sleep load × sleep time) ÷ cycle time. Waking for 2 seconds every 10 minutes at 80 mA with 0.02 mA asleep averages 0.2866 mA, and the device is awake only ≈ 0.3333% of the time, yet the active bursts still use ≈ 93.04% of the charge. That is why cutting the wake-up rate or the active time helps far more than trimming the sleep current.
How much battery capacity do I need for a target runtime?
Multiply the average load by the hours, then divide by the usable share. 30 days at 80% usable, 50 mA needs 45,000 mAh. The duty-cycle device in the example needs only 257.94 mAh for 30 days. In watt-hours the first answer is 166.5 Wh.
What does the C-rate mean?
The C-rate is the load divided by the rated capacity, so 1 C drains the whole rating in one hour. The example load is 0.025 C. A 100 mAh battery at 1 A is 10 C and the calculator warns that such a heavy drain usually delivers less than the rated capacity. Check the datasheet's capacity-versus-current curve and lower the usable percentage.
Does this work for lead-acid batteries?
It gives a first estimate, but lead-acid capacity falls faster than a straight line as the load rises (Peukert's law). Wikipedia's example is a 200 Ah battery rated over 20 hours: a 10 A load lasts 20 hours, but at 20 A it may last only about 5 hours and deliver around 100 Ah. Wikipedia gives Peukert exponents of 1.05 to 1.15 for AGM, 1.1 to 1.25 for gel and 1.2 to 1.6 for flooded batteries, and Victron's battery-monitor manual uses 1.25 as an acceptable average. Enter the capacity the maker rates at your discharge rate, and set the usable percentage to the depth of discharge the maker recommends.
Why does a battery usually run for less time than calculated?
The formula assumes a constant load and that the whole usable share is delivered. In practice capacity drops with higher drain and low temperature, the cell is cut off at a voltage the device may need to stay above, the load changes, and the cell self-discharges. For multi-year coin-cell applications Analog Devices' application note AN-505 describes its lifetime prediction as conservative and dependent on the current drawn from the cell, and asks users to evaluate the lifetime in their own application. Treat the result as a planning figure and test with the real device.
Are my numbers sent anywhere?
No. The capacity, load and duty-cycle figures are worked out in your browser and are never sent to a server or saved.

How it works

Every number you type is read as an exact decimal fraction and combined as fractions of whole numbers (BigInt arithmetic), so nothing is rounded along the way; only the displayed figures are rounded, and a rounded figure starts with ≈. The model is runtime in hours = rated capacity × usable share ÷ average load, with capacity in mAh (charge) or mWh (energy) and the load in mA or mW. Ah is 1,000 mAh, Wh is 1,000 mWh, A is 1,000 mA and W is 1,000 mW. When the capacity is charge and the load is power, or the other way round, the battery voltage links them: power = current × voltage, and energy = charge × voltage; the voltage is treated as constant, which is an approximation because a real cell's voltage changes as it discharges. In duty-cycle mode the average load is (active load × active seconds + sleep load × sleep seconds) ÷ cycle seconds, where the sleep time is the cycle minus the active time. For the reverse, capacity needed = average load × hours ÷ usable share. The usable share is a number you choose, not one the calculator knows: it stands for everything that makes a real cell deliver less than its label, such as drain rate, temperature, the cut-off voltage and a depth-of-discharge limit, and it is an assumption, not a measurement. Self-discharge, ageing, Peukert effects in lead-acid batteries and changing voltage are not modeled. The C-rate is the load divided by the rated capacity. Everything runs in your browser and nothing you type is sent anywhere.

Sources

All measure & buildAll toolsHome & DIY calculators