Battery Life Calculator
Estimate battery life based on battery capacity and device power consumption.
This free online battery life calculator provides instant results with no signup required. All calculations run directly in your browser — your data is never sent to a server. Enter your values below and see results update in real time as you type. Perfect for everyday calculations, homework, or professional use.
Battery capacity in milliamp-hours
Average current draw of the device in milliamps
Results
Battery Life
20 hours
Battery Life
0.83 days
How to Use This Calculator
Enter your input values
Fill in all required input fields for the Battery Life Calculator. Most fields include unit selectors so you can work in your preferred unit system — metric or imperial, whichever matches your problem.
Review your inputs
Double-check that all values are correct and that you have selected the right units for each field. Incorrect units are the most common source of calculation errors and can produce results that are off by factors of 2, 10, or more.
Read the results
The Battery Life Calculator instantly computes the output and displays results with units clearly labeled. All calculations happen in your browser — no loading time and no data sent to a server.
Explore parameter sensitivity
Try adjusting individual input values to see how the output changes. This is a quick and effective way to develop intuition about how different parameters influence the result and to identify which inputs have the largest effect.
When to Use This Calculator
- •Use the Battery Life Calculator when you need accurate results quickly without the risk of manual computation errors or unit conversion mistakes.
- •Use it to verify calculations made by hand or in spreadsheets — an independent check can catch errors before they lead to costly decisions.
- •Use it to explore how changing input parameters affects the output — a quick way to develop intuition and identify the most influential variables.
- •Use it when collaborating with others to ensure everyone is working from the same numbers and applying the same assumptions.
Related Calculators
Battery Capacity Calculator
Calculate the required battery capacity for a desired runtime and power consumption.
Download Time Calculator
Estimate how long it takes to download a file based on your internet connection speed.
RAID Calculator
Calculate usable storage capacity, fault tolerance, and performance characteristics for different RAID levels.
Bandwidth Calculator
Calculate bandwidth requirements and data transfer rates for files and streaming.
Binary to Decimal Converter
Convert between binary (base 2) and decimal (base 10) numbers. Essential for computer science, networking, and digital electronics.
BPM Calculator
Calculate tempo in beats per minute (BPM) and related musical timing values.
About Battery Life Calculator
The Battery Life Calculator estimates how long a battery will last based on its capacity and the device's power consumption. This is useful for electronics projects, IoT devices, portable equipment, and understanding smartphone battery claims. Enter the battery capacity in milliamp-hours (mAh) and the average current draw in milliamps (mA) to calculate the expected runtime.
The Math Behind It
Formula Reference
Battery Life
Life (hours) = Capacity (mAh) / Consumption (mA)
Variables: Capacity = battery capacity in milliamp-hours, Consumption = average current draw in milliamps
Worked Examples
Example 1: IoT sensor battery life
A wireless sensor uses a 5000mAh battery and draws an average of 250mA.
The sensor will run for approximately 20 hours theoretically, or about 16 hours accounting for real-world efficiency losses.
Common Mistakes & Tips
- !Not accounting for the Peukert effect, where high discharge rates reduce effective capacity.
- !Ignoring self-discharge; batteries lose charge over time even when not in use.
- !Using peak power consumption instead of average, leading to overly pessimistic estimates.
- !Forgetting to convert between mAh and Ah (1 Ah = 1000 mAh).
Related Concepts
Used in These Calculators
Calculators that build on or apply the concepts from this page:
Frequently Asked Questions
Why does my device not last as long as calculated?
Real-world battery life is typically 70-80% of the theoretical value due to voltage sag, internal resistance, temperature effects, and the fact that devices cannot fully drain batteries without risking damage.
Does temperature affect battery life?
Yes, significantly. Cold temperatures reduce battery capacity (a lithium-ion battery may lose 20-30% capacity at freezing temperatures), while high temperatures increase self-discharge and accelerate degradation.
Embed this calculator on your site
Paste this snippet into your blog, course page, or documentation to drop a live, interactive Battery Life Calculator into your page.
Free to embed — includes a link back to MegaCalc.