Find out exactly how long your battery will last — from smartphones to solar systems, IoT sensors to laptop batteries. Free, fast, and accurate.
Choose your input method, enter your values, and get an instant estimate with real-world efficiency adjustment.
Battery Type
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.
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:
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.
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.
- Convert to Wh: (10,000 × 5) ÷ 1000 = 50 Wh
- Device power: 5V × 2.5A = 12.5 W
- Theoretical time: 50 ÷ 12.5 = 4 hours
- 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
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
| Device | Capacity | Voltage | Avg Draw | Est. Runtime |
|---|---|---|---|---|
| Smartphone | 4500 mAh | 3.7V | 200 mA | ~19 hrs |
| Wireless Earbuds | 55 mAh | 3.7V | 10 mA | ~4.7 hrs |
| Laptop (light use) | 72 Wh | 11.1V | 15W | ~4.1 hrs |
| ESP32 IoT Sensor | 2000 mAh | 3.7V | 0.3 mA avg | ~5,600 hrs |
| 100Ah Deep Cycle | 100 Ah | 12V | 5A | ~10 hrs* |
| Security Camera | 10,000 mAh | 3.7V | 300 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?)
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 Level | Current Draw | Theoretical | Real-World (85%) |
|---|---|---|---|
| Standby / Idle | 50 mA | 100 hrs | 85 hrs |
| Light Use | 250 mA | 20 hrs | 17 hrs |
| Medium Use | 450 mA | 11.1 hrs | 9.4 hrs |
| Heavy Use / Gaming | 700 mA | 7.1 hrs | 6 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:
- Total energy: 100 Ah × 12V = 1,200 Wh
- Apply 50% DoD rule for lead-acid: 600 Wh usable
- Apply inverter efficiency (90%): 540 Wh effective
- 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 Load | 50 Ah (12V) | 100 Ah (12V) | 200 Ah (12V) |
|---|---|---|---|
| 20W (LED lights) | 15 hrs | 30 hrs | 60 hrs |
| 50W (small fan) | 6 hrs | 12 hrs | 24 hrs |
| 100W (TV) | 3 hrs | 6 hrs | 12 hrs |
| 200W (fridge) | 1.5 hrs | 3 hrs | 6 hrs |
| 500W (microwave) | 36 min | 72 min | 2.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
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.
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:
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.
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.

