Battery Life Calculator (mAh, Wh) – Estimate Runtime Instantly

Home Battery Life Calculator (mAh, Wh) – Estimate Runtime Instantly
by Moses
🔋

Find out exactly how long your battery will last — from smartphones to solar systems, IoT sensors to laptop batteries. Free, fast, and accurate.

⚡ Battery Runtime Calculator

Choose your input method, enter your values, and get an instant estimate with real-world efficiency adjustment.

mAh
V
hours
%

Battery Type

🔋 Li-Ion 85% efficient
LiPo 87% efficient
🚗 Lead-Acid 50% usable
🔌 NiMH 75% efficient
🔦 Alkaline 70% efficient
85%
50% (Poor) 75% (Fair) 100% (Ideal)

Usable Capacity vs. Theoretical

What Is a Battery Life Calculator and Why Does It Matter?

A battery life calculator is one of the most practical tools you can use in tech. Whether you're powering a smartphone, setting up a solar power backup system, or designing an IoT sensor that runs on a coin cell for months, this calculator tells you exactly how long your battery will last before it dies.

I remember the first time I really needed one. I was camping in the mountains with a portable speaker and a 20,000mAh power bank. I had no idea if it would last the full weekend. I did some napkin math, got it completely wrong, and ended up with a dead speaker on day two. That is the moment I started taking battery life estimation seriously.

This guide covers everything — the core battery life formula, how to convert between mAh, Ah, and watt-hours, how different battery types affect your results, and real examples for common devices. By the end, you will never be caught off guard by a dead battery again.

💡
The basic formula is simple: Battery Life (hours) = Capacity (mAh) ÷ Current Draw (mA). But real-world factors like battery efficiency, temperature, and depth of discharge mean the actual runtime is always lower. Our calculator handles all of this for you.

How to Calculate Battery Life — The Core Battery Life Formula

2.1 The Basic Battery Life Formula

The foundation of any battery runtime calculation comes from a simple relationship between battery capacity and the device's current consumption. According to resources like All About Circuits, the formula is:

Battery Life (hours) = Battery Capacity (mAh) ÷ Load Current (mA)
Or equivalently: Battery Life = Watt-hours (Wh) ÷ Power (W)

This is the theoretical, lab-perfect answer. A 3000 mAh battery powering a device that draws 500 mA would give you exactly 6 hours in a perfect world. But the real world is messy, and batteries are not perfect.

2.2 Converting mAh to Wh (Watt-Hours)

Knowing your watt-hours (Wh) is more useful when comparing batteries of different voltages. For example, you can't directly compare a 10,000 mAh phone power bank at 3.7V to a 10 Ah car battery at 12V — they hold very different amounts of energy.

Wh = (mAh × Voltage) ÷ 1000
Example: A 5000mAh battery at 3.7V = (5000 × 3.7) ÷ 1000 = 18.5 Wh

Then, if you know the device's power in watts, battery life becomes: Wh ÷ Watts. This method is what Omni Calculator recommends for appliances and high-power devices where you know the wattage label rather than the exact amperage.

2.3 Step-by-Step Example

Here is a real-world example. Say you have a 10,000 mAh power bank at 5V and you're charging a tablet that draws 2.5A (2500 mA) through USB.

  1. Convert to Wh: (10,000 × 5) ÷ 1000 = 50 Wh
  2. Device power: 5V × 2.5A = 12.5 W
  3. Theoretical time: 50 ÷ 12.5 = 4 hours
  4. Real-world (85% efficiency): 4 × 0.85 = 3.4 hours

The efficiency factor accounts for heat loss, conversion inefficiency in the charging circuit, and the battery's own self-discharge rate. It is always there. You cannot ignore it.

2.4 Factors That Affect Accuracy

🌡️
Operating Temperature
Cold temperatures can slash a lithium-ion battery's capacity by 20–40%. High heat causes faster self-discharge and reduces cycle life.
📉
Battery Age & Cycle Life
After 300–500 full charge cycles, a Li-ion loses nominal capacity — sometimes 20% or more. Your old laptop battery proves this daily.
Discharge Rate (C-Rate)
Pulling energy out fast — a high C-rate — makes a battery less efficient. This is described by Peukert's Law and is critical in deep cycle battery design.
🔄
Depth of Discharge (DoD)
How deeply you drain a battery matters. Lead-acid batteries should follow the 80% discharge rule — never below 50% — to preserve their lifespan.

How to Use the Battery Life Calculator Above

Our battery life calculator has three input modes to match how you usually think about your device's power consumption:

3.1 mAh / Current Mode (Most Common)

Enter your battery's capacity in milliamp-hours (mAh) or amp-hours (Ah), then enter the device's current draw in mA or A. If you're not sure about the current draw, check the device spec sheet or search the model number on sites like Mouser Electronics. This is the go-to mode for smartphones, earbuds, and small electronics.

3.2 Watts / Voltage Mode

You know your battery's mAh and voltage, and you know the device's wattage. The calculator uses Ohm's Law (Amps = Watts ÷ Volts) to figure out the current draw for you. This mode is perfect for solar power systems, inverters, and household appliances where you only know the load power in watts.

3.3 Percentage Remaining Mode

You already know the full battery life and you want to know how much runtime is left at your current charge level. This is the "I'm at 40% — how much time do I have?" calculation. Useful for laptop battery planning during long flights.

3.4 Example Use Cases

DeviceCapacityVoltageAvg DrawEst. Runtime
Smartphone4500 mAh3.7V200 mA~19 hrs
Wireless Earbuds55 mAh3.7V10 mA~4.7 hrs
Laptop (light use)72 Wh11.1V15W~4.1 hrs
ESP32 IoT Sensor2000 mAh3.7V0.3 mA avg~5,600 hrs
100Ah Deep Cycle100 Ah12V5A~10 hrs*
Security Camera10,000 mAh3.7V300 mA~28 hrs

*Lead-acid applies the 50% depth of discharge rule, so only half the capacity is usable.

3.5 Common Mistakes When Using Battery Calculators

  • Mixing units: Entering mA when the field expects A, or Ah when it expects mAh. Always double-check the unit dropdown.
  • Ignoring voltage: A 10,000 mAh power bank at 5V is not the same as one at 3.7V. Voltage matters for energy density comparisons.
  • Using peak current instead of average: Your device might spike to 2A during startup but sit at 150mA during normal operation. Use the average current draw, not the peak.
  • Forgetting the efficiency factor: No battery is 100% efficient. Skipping the derating step always gives you an overly optimistic result.

Battery Runtime Examples by Capacity (How Long Will X Battery Last?)

🧪
Real-world test note: These estimates use an 85% efficiency factor for Li-ion batteries. Your actual result depends on temperature, battery age, and whether your device has a variable power load (like switching between screen-on and sleep current modes).

4.1 How Long Will a 5000 mAh Battery Last?

A 5000 mAh battery is standard in modern mid-range smartphones. At a typical active current draw of 250 mA (light browsing), you get about 17 hours theoretically, or roughly 14.4 hours in real-world conditions (85% efficiency). If you're gaming or streaming — which might pull 600 mA — that drops to just under 6 hours. Many phones with a 5000 mAh pack, like the ones reviewed on our Windows laptop comparisons, offer all-day use precisely because modern processors are built for low power consumption.

Usage LevelCurrent DrawTheoreticalReal-World (85%)
Standby / Idle50 mA100 hrs85 hrs
Light Use250 mA20 hrs17 hrs
Medium Use450 mA11.1 hrs9.4 hrs
Heavy Use / Gaming700 mA7.1 hrs6 hrs

4.2 How Long Will a 10,000 mAh Battery Last?

A 10,000 mAh power bank is a travel staple. At a charging output of 5V/2A (10W), it can charge a 3500 mAh phone about 2.4 times — accounting for conversion losses. For powering a small device directly at 500 mA, you get about 17 hours of real-world runtime. This is the battery capacity range popular for earbuds charging cases and wireless sensors.

4.3 How Long Will a 100 Ah Battery Last?

A 100 Ah deep cycle battery in a 12V 12V system holds 1,200 Wh of energy. But here is the catch: lead-acid batteries should never be drained below 50% — this is the famous 80% discharge rule (some go to 50%). So you effectively have 600 Wh to work with. Powering a 200W load gives you just 3 hours. At 50W, you get 12 hours. For solar setups, this is where a proper inverter efficiency calculation also matters — a cheap inverter can waste 15–25% of that energy on its own.


Battery vs Power Consumption Scenarios

5.1 How Long Will a 100 Ah Battery Run a 200W Device?

This is one of the most searched questions in solar power and backup power circles. Let's walk through it step by step with a lead-acid battery:

  1. Total energy: 100 Ah × 12V = 1,200 Wh
  2. Apply 50% DoD rule for lead-acid: 600 Wh usable
  3. Apply inverter efficiency (90%): 540 Wh effective
  4. At 200W load: 540 ÷ 200 = 2.7 hours

For lithium iron phosphate (a type of lithium-ion) with 90% DoD allowed, you'd get 1,080 Wh usable — almost double the runtime at the same capacity.

5.2 Runtime Table: Watts vs Battery Size

Device Load50 Ah (12V)100 Ah (12V)200 Ah (12V)
20W (LED lights)15 hrs30 hrs60 hrs
50W (small fan)6 hrs12 hrs24 hrs
100W (TV)3 hrs6 hrs12 hrs
200W (fridge)1.5 hrs3 hrs6 hrs
500W (microwave)36 min72 min2.4 hrs

Estimates use Li-ion at 85% efficiency. Lead-acid users should halve these numbers.


Battery Percentage and Remaining Time — Why Percentages Lie

6.1 How to Estimate Remaining Battery Time

When your phone says "40% battery remaining," it feels straightforward. But battery percentage is not a linear measurement of time. A lithium-ion battery's voltage drops slowly at first, then plunges fast near the end. This is called the discharge curve, and it is why your phone can drop from 20% to dead in 10 minutes while it stayed at 50% for hours.

6.2 Example: 40% Battery Remaining

If a lightweight laptop gets 8 hours on a full charge, 40% sounds like 3.2 hours. But the last 40% of a lithium-ion battery actually delivers less energy than the first 40% because the voltage drop reduces the effective power delivered. In practice, you might get 2.5 to 2.8 hours. Always budget a safety margin.

6.3 Why Percentage ≠ Linear Time

📊
A lithium-ion battery's discharge curve is not a straight line. It looks more like a gentle slope followed by a cliff. The battery management system (BMS) reads voltage and estimates percentage — but this estimation gets less accurate as the battery ages and its nominal capacity shrinks. After 300 cycles, a battery often reads "100%" but holds only 80% of its original charge.

Understanding Battery Capacity — mAh vs Ah Explained

7.1 What Is mAh?

Milliamp-hour (mAh) tells you how much electrical charge a battery can deliver over one hour. A 3000 mAh battery can supply 3000 mA (3 amps) for one hour, or 1500 mA for two hours, or 100 mA for 30 hours. It is simply a measure of battery rating — how big the tank is. You will see mAh on every smartphone, wireless earbud, and small electronic device.

7.2 What Is Ah?

Amp-hour (Ah) is the same concept, just 1000 times bigger. 1 Ah = 1000 mAh. You will see Ah ratings on car batteries, deep cycle batteries, solar power storage banks, and large industrial power supplies. A 100 Ah battery can theoretically deliver 100 amps for one hour or 10 amps for 10 hours.

7.3 Which One Should You Use?

Use mAh for phones, earbuds, IoT devices, and anything running on small lithium cells. Use Ah for solar systems, EVs, backup power, and any 12V or 24V system. When comparing two batteries for the same device, always compare them at the same voltage — mAh alone means nothing without knowing the voltage.


Battery Types and How They Affect Your Calculations

Not all batteries are created equal. The chemistry inside determines how efficiently you can use its rated capacity, how many cycles it lasts, and how it behaves at temperature extremes. Understanding battery chemistry is crucial for accurate battery life estimation.

🔋
Lithium-Ion (Li-ion)
The most common in consumer electronics. High energy density, 85–90% efficiency. Safely use 80–90% of rated capacity. Powers everything from smartphones to gaming laptops.
Lithium Polymer (LiPo)
Flexible form factor, slightly higher efficiency than standard Li-ion. Common in drones, wearables, and thin devices. High discharge rate capability makes it great for high-performance applications.
🚗
Lead-Acid
Cheapest per Wh but heaviest. Never discharge below 50% — doing so destroys the battery rapidly. The depth of discharge (DoD) rule is non-negotiable here. Used in car batteries and large backup systems.
🔌
Nickel-Metal Hydride (NiMH)
Common in AA/AAA rechargeable batteries. About 75% efficiency. Higher self-discharge rate than Li-ion — loses 1–3% charge per day even unused. Good for moderate-drain devices like wireless mice.
🔦
Alkaline
Non-rechargeable but widely available. Capacity loss is significant at high current draws — the faster you drain it, the less total energy you get. Terrible for high-power devices. Great for TV remotes and clocks.
🪙
Coin Cell
Tiny batteries (like CR2032) used in watches, key fobs, and some IoT sensors. Extremely low quiescent current draw is critical here. A CR2032 at 220 mAh running an ESP32 in deep sleep mode (10µA) can last over 2 years.

Real-World Device Battery Comparisons

8.1 Smartphones with Large Batteries (5000–7000 mAh)

The race for battery life in smartphones is real. Modern 5000 mAh flagships manage 1–2 days of mixed use because their processors use intelligent power profiles — ramping down to idle current during inactivity and boosting only when needed. This is similar to how embedded microcontrollers like the ESP32 or Holtek MCUs manage sleep current to stretch battery life in IoT devices.

If you want the longest battery life in headphones, the same logic applies — the best wireless headphones last 40–60 hours because their audio chips are engineered to minimize energy consumption during quiet passages.

8.2 What Bigger Batteries Actually Mean for Usage

Bigger capacity does not always mean proportionally more time. A 6000 mAh phone does not always last twice as long as a 3000 mAh phone. Screen brightness (one of the biggest power hogs), 5G signal strength, and background app activity all affect the average current draw. That said, for simple devices with stable power loads — like a GPS tracker or a LoRaWAN sensor — the math is much more predictable.

In our tests of wireless headphones with long battery life, we found that rated battery hours typically matched real-world use within 10–15%, which aligns with an 85–90% efficiency factor — exactly what this calculator uses.


Advanced Concepts: Peukert's Law, Duty Cycles, and IoT Power Budgeting

Peukert's Law — When Discharge Rate Matters

Peukert's Law states that the faster you discharge a battery, the less total capacity you get. If you drain a 100 Ah battery in 1 hour (pulling 100 A), you'll get far less than 100 Ah due to internal resistance and heat generation. Lead-acid batteries are especially affected. Lithium-ion is much better, but the effect still exists at extreme C-rates. Most battery calculators ignore this — ours uses a simplified efficiency factor which captures the same idea for everyday use.

Duty Cycles in Embedded Systems

For engineers designing IoT sensors, wireless sensors, or any microcontroller (MCU)-based device, the concept of duty cycle is everything. The device spends most of its time in deep sleep mode (consuming maybe 10–50 µA of sleep current) and wakes periodically to take a reading and transmit data over LoRaWAN, BLE, or another protocol.

The average current can be calculated as:

Average Current = (Active Current × Active Time + Sleep Current × Sleep Time) ÷ Total Period
Example: 30mA active for 1 second, 0.01mA sleep for 59 seconds = (30×1 + 0.01×59)/60 ≈ 0.51 mA average

This kind of analysis is what allows an embedded systems engineer to design a sensor that runs for years on a pair of AA batteries — a feat that would be impossible without understanding quiescent current, leakage current, and transmission interval optimization.

⚠️
PCB Design Tip: If you're designing a battery-powered product, check your leakage current carefully. A poorly chosen voltage regulator or a pull-up resistor left enabled during sleep can drain your battery completely in days instead of years. Resources from Analog Devices have excellent application notes on this.

Tips to Extend Battery Life — Make Your Battery Last Longer

  • Reduce screen brightness. The display is often the largest power load in a smartphone. Even 50% brightness can cut energy consumption dramatically.
  • Turn off unused radios. Bluetooth, Wi-Fi, and especially 5G constantly search for signals. If you don't need them, off is always better. This directly reduces your active current.
  • Keep batteries at moderate temperatures. Store and use batteries between 15°C and 35°C. Cold kills capacity temporarily; heat kills it permanently through accelerated chemical degradation.
  • Avoid full discharges for Li-ion. Lithium-ion batteries prefer partial cycles. Deep discharges to 0% stress the chemistry. The ideal range is 20–80% for maximum cycle life.
  • Use manufacturer-rated chargers. Fast chargers push high current, which generates heat and shortens battery longevity. Use them when needed, not constantly.
  • Check for background app activity. Apps running in the background add to your average current draw without you realizing. On phones, this is the hidden battery killer.
  • For lead-acid: never exceed 50% DoD. This single rule doubles or triples the lifespan of a deep cycle battery in a solar or backup system.
  • Store at 40–60% charge for long-term. If you're putting a device away for months, don't store it at 100% or at 0%. Both damage Li-ion battery chemistry over time.

For devices you review and compare, like the ones covered in our guide to how long headphones usually last, proper battery care can mean the difference between 2 years and 5+ years of use.


Frequently Asked Questions About Battery Life

How do you calculate battery lifespan?
Battery lifespan (total service life) is different from battery runtime. Battery runtime is how long it lasts on a single charge — calculated as Capacity ÷ Current Draw × Efficiency. Battery lifespan refers to how many charge-discharge cycles it can complete before losing significant nominal capacity. A typical Li-ion lasts 300–500 full cycles before dropping to 80% capacity. A deep cycle battery designed for solar storage may handle 1,000–3,000 cycles with proper care (never exceeding the recommended depth of discharge).
How many hours is a 10,000 mAh battery good for?
It depends entirely on your device's current consumption. At 500 mA draw, a 10,000 mAh battery lasts about 17 hours (with 85% efficiency). At 2,000 mA (2A), about 4.25 hours. At 100 mA (like a small sensor), nearly 85 hours. Use our calculator above with your specific values for an accurate answer. Remember that output efficiency of the power bank itself (typically 85–90%) reduces effective capacity when charging other devices.
Does higher mAh mean longer battery life?
Yes — for the same device with the same power draw. Higher milliamp-hour (mAh) means a bigger tank. But a phone with 5000 mAh and an inefficient processor can actually last less than a phone with 4000 mAh and an optimized chip. Battery capacity is only half the equation. The device's power consumption is the other half. A high-mAh battery in a power-hungry device will still drain quickly.
Why does my battery drain faster than expected?
Several reasons: (1) Battery age — after 300+ cycles, capacity loss means the battery holds less than its rated mAh. (2) Temperature — cold weather temporarily reduces capacity. (3) Background activity — apps increasing current draw without your knowledge. (4) Signal searching — a weak cellular or Wi-Fi signal forces the radio to work harder, spiking energy consumption. (5) Screen brightness at max. Any of these can cut your battery life by 30–50%.
What is the 80% discharge rule for lead-acid batteries?
The 80% discharge rule (sometimes called the 50% rule depending on the source) means you should never discharge a lead-acid battery below 50% of its rated capacity. Doing so causes irreversible sulfation — crystals form on the lead plates, permanently reducing capacity. A 100 Ah lead-acid battery should only deliver 50 Ah per cycle. This is why lithium-ion and LiPo batteries are increasingly preferred for solar and backup applications — they can safely use 80–90% of their capacity without damage.
How does temperature affect battery life?
Temperature is one of the most underestimated environmental factors in battery service life. At 0°C, a lithium-ion battery can lose 20–30% of its effective capacity temporarily. At -20°C, it may barely function. At high temperatures (above 40°C), the chemical reaction that stores energy also accelerates degradation — shortening the cycle life and increasing the self-discharge rate. The sweet spot for both performance and longevity is 15–25°C. This is especially important for outdoor wireless sensors and security systems in extreme climates.
What is quiescent current and why does it matter?
Quiescent current (or standby current) is the tiny amount of electricity a circuit consumes when it's "doing nothing" — no active processing, no radio transmission. In a desktop application, this is trivial. But in a battery-powered IoT sensor or embedded system, quiescent current determines whether your device lasts weeks or years. An MCU pulling 5µA during sleep vs one pulling 500µA can mean the difference between 5 years and 18 days on the same battery. This is why engineers obsess over sleep current in PCB design.
How accurate is this battery life calculator?
This calculator gives a strong real-world estimate by applying an efficiency factor (you can adjust it with the slider). For most consumer devices with stable loads, the estimate is accurate within 10–20%. For complex systems with variable loads (like a smartphone switching between apps), treat the result as a useful ballpark. For mission-critical applications (medical devices, industrial electronics), always validate with actual bench testing and consult resources from specialists like those at Analog Devices or All About Circuits.

🔗
More from Techozea: Learn about headphones with the longest battery life, discover which wireless headphones last the longest, or check out our guide on best business laptops with all-day battery life. You might also enjoy our breakdown of gaming laptop battery life and whether they're worth it for everyday use.