About the Battery Life Calculator
Power banks, UPS batteries, solar systems and gadgets all raise the same question: how long will the battery last? This battery life calculator combines the capacity in mAh, Ah or Wh with the load in mA, A or W and allows for the share of capacity you can actually use: a 12 V, 100 Ah battery holds 1.2 kWh, enough to run a 300 W load for about 4 hours in theory, and noticeably less in practice, especially with lead-acid batteries that should not be fully drained. Inverter losses reduce runtime further, so the calculator lets you set an efficiency figure for a realistic estimate.
Runtime in hours = usable capacity ÷ load. With capacity in mAh and load in mA, divide one by the other. With watts, convert first: Wh = Ah × V, and a load in watts draws W ÷ V amps. Not all of the rated capacity is available: voltage converters lose energy, batteries lose capacity with age and cold, and lead-acid batteries should not be drained below about 50% to protect their life. The usable capacity setting covers this; 80 to 90% suits most lithium devices.
Example: a 3,000 mAh, 3.7 V battery holds 11.1 Wh. Running a 250 mA load with 85% usable capacity, it lasts 3,000 × 0.85 ÷ 250 = 10.2 hours, or 10 hours 12 minutes. A 100 Ah, 12 V lead-acid battery running a 60 W load at 50% usable capacity lasts 100 × 12 × 0.5 ÷ 60 = 10 hours.
Real devices rarely draw a constant current, so use an average load. For power and current conversions use the watts volts amps calculator and Ohm's law calculator, and for running costs the electricity cost calculator.
How to use the Battery Life Calculator
- Enter the capacityIn mAh, Ah or Wh, and the battery voltage.
- Enter the loadThe device's current in mA or A, or its power in W.
- Set the usable capacityAbout 85% for lithium devices, 50% for lead-acid.
- Read the runtimeSee hours and minutes, the energy and the current drawn.
Battery Life Calculator features
- Capacity in mAh, Ah or Wh
- Load in mA, A or W
- Battery voltage for unit conversion
- Usable capacity allowance
- Runtime in hours, minutes and days
- Energy in Wh and current drawn
- Works for power banks and car batteries
Common uses
- Power bank and phone charging estimates
- Camping and RV battery planning
- Electronics and Arduino projects
- UPS and solar battery sizing
- Drone and flashlight runtimes
Battery life in practice: router backups for load-shedding, laptops, solar lanterns, heat and battery care
Battery life estimates turn a battery's capacity and a device's power use into hours of running time. They are especially useful in Pakistan, where small backup batteries keep routers, lights and fans running during load-shedding. This guide works through a router backup, compares battery types, explains why real runtimes are shorter than the label suggests and covers looking after batteries in hot weather.
A worked example: a router backup
A Wi-Fi router uses about 12 V at 1 A, or 12 W. A 12 V, 7 Ah battery, common in small backup units, stores about 84 Wh. Using about 80% of its capacity, it can run the router for roughly 7 × 0.8 = 5.6 hours. Adding a second device, such as an optical network terminal, increases the load and shortens the runtime accordingly.
Mini UPS units for routers are popular because they keep internet connections alive through typical load-shedding periods.
Battery types
- Lead-acid: cheap and common in UPS systems, but heavy, and their life shortens if regularly discharged deeply.
- Lithium-ion and lithium iron phosphate: lighter, longer-lasting and able to use more of their capacity, but more expensive.
- Small lithium cells: in phones, laptops and power banks, rated in mAh at about 3.7 V.
Comparing batteries in watt-hours, rather than amp-hours at different voltages, gives a fair comparison.
Why real runtimes are shorter
Inverters and converters lose some energy, often 10 to 20%. Batteries deliver less capacity when discharged quickly, when cold or when old. Devices may also draw more power than their label suggests at times. Allowing a margin of a quarter or more avoids being left without power before load-shedding ends.
Laptops
A laptop with a 56 Wh battery that uses an average of 10 W while browsing and writing runs for about five and a half hours, a little less after conversion losses. Video calls, gaming and high screen brightness raise power use and shorten battery life considerably.
Solar lanterns and lights
Solar lanterns and rechargeable LED lights store energy in small batteries. A 5 Wh battery running a 1 W LED gives about five hours of light. Charging them fully in the sun each day keeps them ready for evenings and outages.
Heat and battery life
High temperatures speed up battery ageing. Leaving phones in parked cars, placing UPS batteries in hot, unventilated spaces or charging devices under pillows can shorten battery life significantly. Keeping batteries cool and ventilated, especially in Pakistani summers, helps them last longer.
Charging habits
For lithium batteries, many manufacturers suggest avoiding very full and very empty charges for long periods, so keeping charge between roughly 20 and 80% can extend lifespan for devices that are always plugged in. Lead-acid batteries, by contrast, prefer to be recharged fully soon after use.
Common mistakes
- Comparing batteries in amp-hours at different voltages.
- Assuming the full rated capacity is usable.
- Keeping batteries in hot places.
- Forgetting inverter losses in UPS systems.
Related tools
To convert watts, volts and amps, use Watts Volts Amps Calculator. For basic electrical relationships, try Ohm's Law Calculator, and to estimate running costs, Electricity Cost Calculator.
Sizing a home UPS
For a home UPS, add up the watts of everything you want to run, choose an inverter rated above that total and size the battery for the hours you need. A 600 W load for four hours needs about 2,400 Wh of usable energy, which from lead-acid batteries used to half capacity means about 4,800 Wh of rated capacity.
Battery health over time
All rechargeable batteries lose capacity with age and use. A phone battery may hold noticeably less charge after a few years, and UPS batteries usually need replacing every few years depending on type and care. Noting how long backup lasts each season shows when a replacement is due.
Electric bikes and scooters
Electric bikes and scooters list battery capacity in watt-hours and range in kilometres. Range falls with heavier riders, hills, headwinds and very hot or cold weather, so real range is often lower than advertised. Regular charging and avoiding full discharges extend battery life.
Safety
Damaged, swollen or overheating batteries can catch fire. Using the manufacturer's charger, avoiding counterfeit batteries and keeping batteries away from heat and sharp impacts reduce the risk. Swollen batteries in phones, laptops or power banks should be replaced promptly by a qualified technician.
Measuring real use
Plug-in power meters and USB meters show how much power devices really draw. Measuring a router, fan or laptop for a day gives more accurate runtime estimates than the label, which often shows maximum rather than typical power.
Storing batteries unused
Batteries left unused for months slowly lose charge, and lead-acid batteries left flat can be permanently damaged. Charging spare and seasonal batteries every few months, and storing lithium batteries partly charged in a cool place, keeps them ready for use.
Limits
Runtimes are estimates. Real battery performance depends on age, temperature, discharge rate and the efficiency of chargers and inverters.
Frequently asked questions
How do I calculate battery life?
Divide the battery capacity by the load: hours = mAh ÷ mA. A 2,000 mAh battery powering a 100 mA device lasts about 20 hours in theory, or 17 hours with 85% usable capacity.
How do I convert mAh to Wh?
Multiply by the voltage and divide by 1,000: Wh = mAh × V ÷ 1,000. A 10,000 mAh power bank with 3.7 V cells holds 37 Wh.
How long will a 100 Ah battery last?
It depends on the load and battery type. At 12 V a 100 Ah battery stores 1,200 Wh; a 100 W load drains it in 12 hours, or 6 hours if a lead-acid battery is only used to 50%.
Why does my battery not last as long as calculated?
Voltage converters waste 10 to 20%, batteries lose capacity with age, cold reduces output, and high loads cut effective capacity. Devices also draw more power at peaks than their average.
How many times can a power bank charge my phone?
Divide the power bank's Wh by the phone battery's Wh and multiply by about 0.65 for conversion losses. A 20,000 mAh bank (74 Wh) charges a 15 Wh phone about three times.
What is usable capacity?
The part of the rated capacity you can actually use. Lithium devices use about 80 to 90% after conversion losses; lead-acid batteries should stay above 50% charge to last.
What is the difference between mAh and Wh?
mAh measures charge and Wh measures energy. Wh includes the voltage, so it is the fairer way to compare batteries with different voltages, such as a laptop battery and a power bank.
Can I carry my power bank on a plane?
Most airlines allow power banks up to 100 Wh in cabin baggage, and 100 to 160 Wh with approval. Spare lithium batteries are not allowed in checked baggage. Check your airline's rules.