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
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
- Usable capacity = 2,000 mAh × 80% = 1,600 mAh.
- 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
| Load | Battery life | Hours | Load as a C-rate |
|---|---|---|---|
| 1 mA | 66 d 16 h | 1,600 h | 0.0005 C |
| 5 mA | 13 d 8 h | 320 h | 0.0025 C |
| 10 mA | 6 d 16 h | 160 h | 0.005 C |
| 25 mA | 2 d 16 h | 64 h | 0.0125 C |
| 50 mA | 1 d 8 h | 32 h | 0.025 C |
| 100 mA | 16 h | 16 h | 0.05 C |
| 250 mA | 6 h 24 m | 6.4 h | 0.125 C |
| 500 mA | 3 h 12 m | 3.2 h | 0.25 C |
How the usable-capacity setting changes the result
| Usable capacity | Usable mAh | Battery life | Hours |
|---|---|---|---|
| 100% | 2,000 mAh | 1 d 16 h | 40 h |
| 90% | 1,800 mAh | 1 d 12 h | 36 h |
| 80% | 1,600 mAh | 1 d 8 h | 32 h |
| 70% | 1,400 mAh | 1 d 4 h | 28 h |
| 60% | 1,200 mAh | 1 d | 24 h |
| 50% | 1,000 mAh | 20 h | 20 h |
Duty cycle: how the wake-up interval changes the life
| Wakes up every | Awake | Average load | Battery life | Days |
|---|---|---|---|---|
| 10 seconds | 20% | 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
| Battery | 1,000 mAh equals | 10 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
- 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).
- 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.
- 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.
- 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.
- 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
- Analog Devices: Battery Considerations for Today's Low-Power, Long-Life Solid State Devices (drain rate, self-discharge, cut-off voltage)
- Analog Devices (Maxim) AN-505: Lithium Coin-Cell Batteries: Predicting an Application Lifetime
- Energizer A23 datasheet (capacity quoted for a stated load, cut-off voltage and temperature)
- Victron Energy: Battery capacity and Peukert exponent (battery monitor manual)
- Peukert's law, Wikipedia
More free tools
- Ohm's Law CalculatorEnter any two of voltage, current, resistance and power to get the other two, with SI prefixes. Plus series/parallel, LED resistor and voltage divider.
- Generator Size CalculatorAdd up running watts and the largest starting surge for the appliances you want to power, and get a generator size with amps at 120 and 240 volts.
- Electricity Cost CalculatorFind what an appliance or a list of appliances costs to run: kWh and cost per day, month and year from watts (or amps and volts), hours and your rate.
- Voltage Drop CalculatorSingle-phase and 3-phase voltage drop for copper or aluminum wire: volts and percent lost, voltage at the load, and the smallest AWG size within 3% or 5%.
- Resistor Color Code CalculatorRead 3, 4, 5 and 6 band resistor colors (IEC 60062) or turn a value into bands, check it against the E-series, and decode SMD codes including EIA-96.
- LED Resistor CalculatorFind the series resistor for an LED from supply, forward voltage and current: exact and E12/E24 value, color bands, power rating and efficiency.
- Solar Panel CalculatorEstimate the solar system size in kW, the number of panels, roof area and yearly output to offset your electricity use. An estimate, not a site design.