Battery Life Calculator
Estimate how long a battery will last from its capacity and load. Work in mAh and current, or watt-hours, voltage, and power, with depth of discharge.
https://hexacalculator.com/calculators/other/electronics/battery-life-calculator
Other
Electronics
Battery Life Calculator
Estimate how long a battery will last from its capacity and load. Work in mAh and current, or watt-hours, voltage, and power, with depth of discharge.
Battery Life Calculator
Calculation mode
Current mode: enter the battery capacity (mAh or Ah) and the current your device draws (mA or A). Runtime is capacity divided by current.
Enter any two values and the calculator solves for the third. Leave the field you want to find blank.
Battery and load
Real-world losses
Apply real-world losses (depth of discharge and efficiency)
Derate the ideal estimate by usable depth of discharge and system efficiency.
Charts and reference
A battery runtime calculator estimates the amount of time a battery will power a device before it is discharged. The basic math principle is simple: the amount of energy stored in the battery is divided by the rate at which the device consumes electricity. This version supports two methods. For smartphones, sensors and small electronic devices, milliamp hours (mAh) and the device's power consumption are entered. For inverters, solar batteries and off-grid systems, you can switch to the energy mode where amp hours, system voltage and load in watts can be entered.
What is battery life?
The battery life defined here is the time a fully charged battery can power a device continuously. This is distinct from the lifespan (number of charge and discharge cycles) which indicates how many cycles a battery can endure before it loses its performance. The runtime depends on two adjustable factors; the amount of available energy stored in the battery, and the power consumption of the device. Real losses also play a role reducing the ideal value.
How to use this calculator:
Select a mode. In the Current Mode you enter battery capacity and load current and the tool will calculate runtime. In the Energy Mode you enter ampere-hours, system voltage and load in watts. Both modes support conversion: if you don't know one value leave it blank and enter the other two values and the tool will calculate the result. If you leave runtime blank you can find out how long a battery lasts. If you leave capacity blank you can determine the specification of the required battery to achieve a given runtime. By enabling "real losses" you can set discharge depth and system efficiency, which reduces estimated runtime to a level useful for planning purposes.
Formula for calculating battery life:
In the current mode, run time (in hours) is the result of dividing capacity by load current, provided that units for capacity and load current are consistent.
If a battery with 2000 milliamp hours is powering a load of 150 milliamps, the approximate operating time would be:
In the energy mode, the energy has to be calculated. The capacity is multiplied by the voltage to convert it into watt hours, then the available depth of discharge is taken into account and finally divided by the load power.
If a battery with 100 amp hours and 12 volts of electricity is powering a load of 100 watts, the available energy at an 80% depth of discharge would be approximately 960 watt-hours, and the approximate runtime would be:
The table below shows the individual input parameters with examples.
Symbol | Meaning | Example |
|---|---|---|
Capacity | Charge the battery holds | 100 Ah |
Voltage | Nominal system voltage | 12 V |
Load | Current or power the device draws | 100 W |
DoD | Usable depth of discharge | 80 percent |
Efficiency | Inverter and wiring efficiency | 90 percent |
t | Runtime | result |
Factors that affect actual battery life.
This calculation equation is based on ideal conditions. The actual operating time may be lower than the calculated values due to various factors and is usually about 10 to 30% less.
The rate of discharge is important. A high current discharge reduces the available capacity. This phenomenon is explained by Peukert's law and is particularly pronounced in lead-acid batteries. Temperature also plays a role, as low temperatures can reduce the effective capacity of the battery by 20 to 30%. Additional losses may occur due to the inverter and wiring if DC power is converted to AC or if inadequate wiring is used, which can result in an additional loss of 5 to 15%. Additionally, all batteries age over time, and their capacity gradually decreases as they undergo more charge cycles. Therefore, batteries that have been in use for several years may not be able to deliver the rated power listed on the data plate.
Discharge depth and battery life
How deep a battery is discharged in each charge cycle represents a tradeoff between runtime and lifespan. Lithium iron phosphate (LiFePO4) cells can have lifespans well over 3000 cycles if operated with an 80% depth of discharge. However, the same cell run to 100% depth of discharge may only achieve about 2000 cycles. Lead acid batteries are more sensitive in this regard, and frequent use beyond half capacity can reduce their lifespan by as much as half. By adjusting your depth of discharge you can find a balance between extending current runtime and prolonging the life that will last for many years to come.
Tips to get closer to reality
Start with the nominal capacity listed on the data plate and account for actual losses to make the result more realistic. Set the depth of discharge based on the chemical makeup of the battery; Lithium batteries should use values close to 80-90%, while lead acid batteries should use a value closer to 50%. Account for inverter and wiring efficiency when determining power output. If the load varies, such as with devices that repeatedly go into sleep mode and then wake up again, estimate the runtime for each state separately and weight them according to how much time each state occupies.
This calculator provides estimates for planning and learning purposes only. Actual runtime will vary with battery age, temperature, discharge rate, and load. For mission critical systems, you should test the results under actual conditions before relying on them.
Frequently asked questions
- What factors affect actual battery life?
Actual battery life will vary from the calculated values due to factors such as aging and quality of the battery, temperature, rate of discharge, efficiency of device, and slow self-discharge. Both high currents and cold environments reduce available capacity.
- Can this calculator be used for all types of batteries?
Yes. As long as the rated capacity is known, it can be applied to most chemical compositions including Lithium-ion batteries, LiFePO4 batteries, Nickel-metal hydride batteries, Lead-acid batteries and Alkaline batteries. The chemical composition of the battery mainly determines the recommended discharge depth.
- How accurate are the results?
The results are estimates. The actual runtime can vary by 10 to 30 percent depending on the application and conditions. To obtain realistic values for planning purposes, enable real loss data and perform tests under load.
- What is the difference between rated capacity and actual capacity?
The nominal capacity is the value stated by the manufacturer. The actual capacity will be lower and decrease due to battery aging and cycles, as well as can drop at high discharge rates or low temperatures.
- How can I extend my battery life?
Use efficient components, reduce standby power consumption, keep the battery in room temperature environment, avoid deep discharge of rechargeable batteries and use power saving mode. Increasing system voltage can also reduce power consumption and line loss.
Related calculators






Disclaimer: This calculator is provided for general informational and educational purposes only. Our calculators are under active development, and results may be inaccurate, incomplete, or unsuitable for your situation. Always verify the figures independently and seek advice from a qualified professional before relying on them. We make no warranties and accept no liability for any loss or decision arising from use of this tool.
References
- Wikipedia: Ampere-hour
Definition of the amp-hour and how battery capacity relates to current and time.
- Wikipedia: Peukert's law
Why higher discharge current reduces the usable capacity of a battery.
- Battery University: BU-501 Basics About Discharging
Educational reference on discharge rate, depth of discharge, and capacity.