Battery Life Calculation Formula Calculator
Estimate how long a battery can power your device using capacity, voltage, load, discharge depth, and efficiency. This premium calculator helps you convert mAh, Ah, or Wh into realistic runtime, then visualizes how battery life changes as load increases or decreases.
Runtime estimate
Enter your battery and load details, then click Calculate Battery Life.
Battery life calculation formula: the complete expert guide
The battery life calculation formula is one of the most practical equations in electronics, solar design, mobile devices, robotics, backup power, and embedded engineering. Whether you are estimating how long a phone battery lasts, sizing a UPS bank, or checking the runtime of an IoT sensor, the core question is the same: how much usable energy is stored in the battery, and how quickly is the device consuming it?
At the most basic level, battery runtime is determined by dividing available battery energy by the load power. In simple terms, if a battery stores 20 watt-hours and a device consumes 5 watts, the ideal runtime is 4 hours. Real life, however, is not ideal. Voltage conversion losses, battery aging, temperature, depth of discharge limits, and varying load profiles all affect the final answer. That is why a serious battery life calculation formula should include both efficiency and usable depth of discharge, not just raw capacity.
The core battery life formula
To make this more realistic, engineers often expand the equation:
If your battery is rated in amp-hours instead of watt-hours, first convert it:
And if the battery is listed in milliamp-hours, convert mAh to Ah first:
This is why a 5000 mAh battery at 3.7 V does not automatically mean 5 hours of operation. First, it contains about 18.5 Wh of nominal energy. Then you must compare that number against the actual power draw of the device.
Why watt-hours are the best way to compare battery runtime
Many people focus on mAh because it appears on battery labels, especially for phones, power banks, and small electronics. The problem is that mAh alone does not account for voltage. A 5000 mAh battery at 3.7 V stores much less energy than a 5000 mAh pack at 12 V. That is why watt-hours are the preferred unit for runtime calculations. Watt-hours combine both current capacity and voltage into a direct measure of energy.
If you compare batteries only by mAh, you can make expensive planning mistakes. For example, an e-bike battery, a laptop pack, and a USB power bank may all use cells with similar current ratings, but their runtime depends on the total energy delivered at their system voltage. In design work, converting everything into Wh makes apples-to-apples comparisons possible.
Quick example
- A battery is rated at 10 Ah and 12 V.
- Energy = 10 × 12 = 120 Wh.
- If only 85% is usable and the system is 90% efficient, usable output = 120 × 0.85 × 0.90 = 91.8 Wh.
- If the device consumes 15 W, runtime = 91.8 ÷ 15 = 6.12 hours.
That final number is much more realistic than simply using 120 Wh and ignoring losses.
Common forms of the battery life equation
Different applications use slightly different forms of the same formula. The right version depends on what information you have available.
1. When capacity is already in Wh
Use this when battery energy is printed directly on the pack, as is common with aviation-compliant power banks, laptops, and many backup systems.
2. When battery capacity is in Ah
Use this for deep cycle batteries, lead-acid systems, marine batteries, and many solar storage products.
3. When both battery and load are expressed as current
If the battery and device operate at the same voltage and you are comfortable with current-only assumptions, you can estimate:
This shortcut is useful, but it is less flexible than a Wh-based method because it assumes voltage compatibility and stable conditions.
Real statistics: typical battery energies and estimated runtimes
The table below uses common nominal values found in mainstream electronics and energy storage products. These are representative industry figures used for planning and educational calculations.
| Battery type | Typical nominal rating | Approximate energy | Estimated runtime at 5 W load | Estimated runtime at 20 W load |
|---|---|---|---|---|
| AA alkaline cell | 2000 mAh at 1.5 V | 3.0 Wh | 0.6 hours | 0.15 hours |
| 18650 lithium-ion cell | 3000 mAh at 3.6 V | 10.8 Wh | 2.16 hours | 0.54 hours |
| Smartphone battery | 5000 mAh at 3.85 V | 19.25 Wh | 3.85 hours | 0.96 hours |
| Laptop battery | 60 Wh pack | 60 Wh | 12 hours | 3 hours |
| 12 V 100 Ah battery | 100 Ah at 12 V | 1200 Wh | 240 hours | 60 hours |
These estimates are ideal and do not yet factor in discharge limits or conversion losses. In practical use, a lead-acid battery may only be regularly discharged to about 50% for long life, while many lithium systems allow much deeper use, often 80% to 95% depending on battery management strategy.
How depth of discharge changes runtime
Depth of discharge, often shortened to DoD, describes how much of the battery capacity you are willing to use. This is a major factor in realistic runtime calculations. If a 100 Wh battery is only discharged to 80%, the usable energy is 80 Wh, not 100 Wh. This is especially important for chemistries that degrade faster when deeply discharged.
- Lead-acid systems are often planned around 50% DoD for good cycle life.
- Lithium iron phosphate systems are commonly used at 80% to 90% DoD.
- Consumer lithium-ion products often use battery management systems that protect cells from damaging over-discharge.
By including DoD in the formula, you move from a laboratory style number to a design number that is much more useful in the field.
How efficiency affects the battery life calculation formula
Efficiency matters whenever energy passes through converters, regulators, inverters, charge controllers, or internal power electronics. A battery might store 100 Wh, but the device may only receive 85 Wh after losses. For low-voltage DC systems, a high-quality converter may exceed 90% efficiency. For AC inverter systems, losses can be more substantial, especially at low loads or idle conditions.
As a result, the best battery life calculation formula includes an efficiency factor:
This is why the calculator above asks for system efficiency. If your setup includes a DC to DC converter, an inverter, or a battery management stage, using 85% to 95% is often more realistic than assuming perfect power transfer.
Real statistics: battery chemistry comparison
Battery chemistry strongly influences weight, size, usable depth of discharge, and expected life. The following ranges are widely cited across technical literature and energy system references.
| Chemistry | Typical specific energy | Typical practical DoD target | Common use cases |
|---|---|---|---|
| Lead-acid | 30 to 50 Wh/kg | About 50% | UPS, starter batteries, basic backup systems |
| Nickel-metal hydride | 60 to 120 Wh/kg | Moderate to high | Consumer electronics, medical devices, older hybrid systems |
| Lithium-ion | 150 to 250 Wh/kg | Often 80% to 95% | Phones, laptops, power tools, EV packs |
| Lithium iron phosphate | 90 to 160 Wh/kg | Often 80% to 90% | Solar storage, RV, marine, stationary backup |
These ranges matter because higher specific energy generally means more runtime per kilogram. Still, chemistry selection is not just about energy density. Safety, cost, temperature behavior, charging speed, and cycle life are equally important depending on the application.
Step by step method to calculate battery runtime correctly
- Identify battery capacity in mAh, Ah, or Wh.
- Convert capacity to Wh if necessary.
- Estimate the device load in watts. If you only know current, multiply by system voltage.
- Apply a realistic depth of discharge percentage.
- Apply efficiency losses for converters and electronics.
- Divide usable battery energy by load power.
- Add a safety margin if uptime is critical.
Following this process avoids the most common mistake in battery planning, which is confusing charge capacity with actual delivered energy.
Common mistakes people make when using the battery life formula
- Ignoring voltage. A battery rated in mAh is not enough by itself to estimate energy.
- Using ideal capacity. Nameplate capacity is not always fully usable in real operation.
- Skipping efficiency losses. Converters and inverters always waste some energy.
- Assuming constant load. Many devices have spikes, standby modes, or dynamic workloads.
- Ignoring battery aging. Runtime decreases over the life of the pack.
- Overlooking temperature effects. Cold conditions can significantly reduce effective capacity and output.
Battery life in phones, laptops, solar systems, and IoT devices
Phones and tablets
Consumer mobile devices are usually advertised in mAh because cell voltage is relatively standardized. For these products, converting to Wh helps you compare different brands more accurately. A 5000 mAh phone battery at about 3.85 V stores around 19.25 Wh. If the average system draw is 2.5 W, the theoretical runtime is around 7.7 hours before accounting for conversion losses and power management behavior.
Laptops
Laptop batteries are commonly listed in Wh, making runtime estimates easier. A 60 Wh laptop battery powering a system averaging 15 W can theoretically last 4 hours. If usage varies between web browsing and video editing, the actual result can swing widely, which is why average load matters more than peak load for user-facing runtime estimates.
Solar and backup systems
For off-grid systems, battery life calculations become central to system sizing. If a cabin uses 800 Wh overnight and the battery bank provides 2400 Wh of nominal storage, the design may still fail if only 50% DoD is allowed. In that case, usable energy may be only 1200 Wh before efficiency losses. The formula is the foundation of reliable autonomy planning.
IoT and low-power electronics
Sensors and wireless devices often run on tiny batteries for months or years. Their average current can be extremely low, but sleep cycles, burst transmissions, and self-discharge matter. For these products, using average power over time gives much better results than focusing only on active-mode current.
Authoritative references and further reading
For broader context on battery technologies, energy use, and electric system fundamentals, review technical resources from reputable institutions such as NREL, U.S. Department of Energy, and U.S. Environmental Protection Agency. These sources are useful when you want to understand battery performance, system losses, and energy planning from a research-backed perspective.
Final takeaway
The battery life calculation formula is simple in concept but powerful in application. Start with energy, not just current capacity. Convert mAh or Ah into Wh, estimate your device load in watts, then apply depth of discharge and efficiency to reflect real operating conditions. That process gives you an answer you can actually design around.
If you need a fast estimate, use the calculator above. It handles the unit conversion, computes usable energy, estimates runtime, and visualizes how changing the load affects battery life. For anyone selecting a battery, designing a power system, or comparing product claims, this is the most dependable way to think about runtime.