Skip to main content
other

Battery Life Calculator

Estimate battery life based on battery capacity and device power consumption.

Reviewed by Christopher FloiedPublished Updated

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

1

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.

2

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.

3

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.

4

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.

Formula Reference

Battery Life Calculator Formula

See calculator inputs for the governing equation

Variables: All variables and their units are labeled in the calculator interface above. Input fields accept values in multiple unit systems — select your preferred unit from the dropdown next to each field.

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.

About This Calculator

The Battery Life Calculator is a free, browser-based calculation tool for engineers, students, and technical professionals. Estimate battery life based on battery capacity and device power consumption. It implements standard formulas and supports both metric (SI) and imperial unit systems with automatic unit conversion. All calculations are performed instantly in your browser with no data sent to a server. Use this calculator as a quick reference and sanity-check tool during design, analysis, and learning. Always verify results against primary engineering references and applicable standards for any safety-critical application.

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

Battery life estimation uses the fundamental relationship between stored energy (capacity) and energy consumption rate (current draw). Battery capacity is measured in milliamp-hours (mAh) or amp-hours (Ah), representing the amount of current a battery can supply for one hour before depleting. The basic formula, Life = Capacity / Consumption, provides a theoretical maximum. Real-world battery life is typically 70-80% of this theoretical value due to several factors: battery voltage sag under load, temperature effects, self-discharge, and the inability to fully discharge without damaging the battery. Battery chemistry affects performance significantly. Lithium-ion batteries maintain relatively stable voltage throughout discharge but should not be drained below 20% for longevity. Lead-acid batteries can deliver high currents but lose capacity when discharged rapidly (Peukert effect). Alkaline batteries experience significant voltage drop during discharge. For devices with variable power consumption (like smartphones), the average consumption must account for different usage scenarios: screen-on time, wireless connectivity, GPS usage, and processor load. Manufacturers typically test battery life under specific standardized conditions that may not match your actual usage patterns. When designing electronics projects, it is good practice to add a 20-30% safety margin to your battery life calculations. This accounts for real-world inefficiencies and ensures the device operates reliably throughout its intended use period.

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.

Step 1:Theoretical life: 5000 / 250 = 20 hours
Step 2:Days: 20 / 24 = 0.83 days
Step 3:With 80% efficiency: 20 * 0.8 = 16 hours practical runtime

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.