Battery Life Calculator
Estimate how long a device runs on a battery from its capacity in milliamp-hours and the average current it draws in milliamps. The tool divides capacity by draw for the ideal hours, then multiplies by an efficiency factor (85% by default) to reflect real losses such as heat, voltage regulation and faster-than-rated discharge. The runtime is shown both as a decimal and in Xh Ym form.
How to use the battery life calculator
- Enter the battery capacity in milliamp-hours (mAh), for example 2000.
- Enter the average current the device draws in milliamps (mA), for example 200.
- Leave efficiency at 85% for a realistic estimate, or set it to 100% for the theoretical maximum.
- Read the runtime shown as Xh Ym and as a decimal number of hours.
- Click the copy button to grab the result for a spec sheet or note.
Examples
2000 mAh at 200 mA, realistic
2000 mAh, 200 mA, 85%
8h 30m (8.5 hours)
2000 mAh at 200 mA, ideal
2000 mAh, 200 mA, 100%
10h 0m (10 hours)
3000 mAh at 500 mA, realistic
3000 mAh, 500 mA, 85%
5h 6m (5.1 hours)
Frequently asked questions
How do you calculate battery life from mAh?
Divide the capacity by the current draw, both in the same milli unit, then multiply by an efficiency factor. In full: hours = (mAh / mA) times (efficiency / 100). At 100% efficiency a 2000 mAh pack driving 200 mA lasts 2000 divided by 200, which is 10 hours.
Why apply an efficiency factor at all?
Rated capacity is measured under an ideal, slow discharge at a friendly temperature. In real use, voltage regulators waste some energy, cells warm up, and a faster discharge yields less than the label promises. The default 85% derating turns the optimistic textbook figure into a more honest estimate.
What efficiency value should I choose?
For everyday electronics 80 to 90 percent is a reasonable range, so 85% is a sensible default. Set it to 100% only when you want the theoretical ceiling for comparison. Very high-drain or cold-weather use can justify a lower figure, while a well-matched, gently loaded circuit can sit near the top of the range.
What current draw should I enter?
Use the average current across the whole cycle you care about, not the peak. A device that idles most of the time and only bursts occasionally will outlast what its peak draw suggests, so measure or estimate an average over a realistic period of use.
Does battery voltage matter for this estimate?
Not for a runtime in hours. Because capacity in mAh and draw in mA already assume the same nominal voltage, the volts cancel out of the division. Voltage only matters when you convert to energy in watt-hours or compare packs of different voltages.
How is the Xh Ym value rounded?
The decimal hours are converted to total minutes and rounded to the nearest minute before splitting into hours and minutes. So 8.5 hours reads as 8h 30m, and a value like 9.4444 hours rounds to 9h 27m. The decimal figure beside it keeps more precision.
Why does it reject zero or negative numbers?
Capacity and current draw must be greater than zero, and efficiency must be between 0 and 100 percent. A zero current draw would imply infinite runtime, which is not a meaningful answer, so the tool asks for a positive value instead.
How accurate is the result in practice?
Treat it as a planning estimate, not a guarantee. Real runtime shifts with temperature, battery age, discharge rate and how bursty the load is, so measured life can land above or below the number. It is most useful for comparing options and sizing a battery, not for predicting the exact minute a device dies.
Is my input sent anywhere?
No. The math runs entirely in your browser, so the capacity, current and efficiency you enter never leave your device and nothing is stored.
Learn more
- mAh, current draw and real battery runtime
What a milliamp-hour rating really promises, why devices rarely hit it, and how average current draw and an efficiency factor shape true runtime.
Related tools
Ohm's Law Calculator
Solve Ohm's law online. Enter any two of voltage, current, resistance or power and get the other two, with the V, I, R and P formulas shown.
Resistor Calculator
Add resistors in series or parallel and get the total resistance in ohms. Enter any number of values and the calculator shows the result with the formula.
555 Timer Calculator
Calculate 555 timer astable frequency, period, high and low times and duty cycle from R1, R2 and the timing capacitor. Free oscillator design helper.
Absolute Humidity Calculator
Calculate absolute humidity in grams of water vapor per cubic meter from air temperature and relative humidity. Fast, free and works in your browser.
Allele Frequency Calculator
Find allele frequencies from genotype counts. Enter the number of AA, Aa and aa individuals to get the A and a allele frequencies and allele totals.
Angular Acceleration Calculator
Find angular acceleration from a change in angular velocity over time, and the torque from a moment of inertia. Enter start and end rad/s and the time.