Battery Life Calculator
Estimate device battery life from capacity and current draw.
What Is a Battery Life Calculator?
A battery life calculator estimates how long a battery will power a device before requiring recharge or replacement. By inputting battery capacity (in milliamp-hours or amp-hours) and device current consumption (in milliamps or amps), the tool calculates runtime in hours — critical information for sizing solar systems, planning off-grid adventures, selecting UPS backup, and designing portable electronics.
For a 4,000 mAh smartphone battery consuming 500 mA during typical use, the calculator determines 8 hours of runtime. But draw 2,000 mA during gaming and that drops to 2 hours. Understanding this relationship helps you choose power banks, size battery banks for RVs, and estimate how long your laptop survives a long-haul flight without access to outlets.
Solar installers calculate battery storage for overnight power autonomy. Event planners determine how long wireless microphones last during conferences. Drone operators estimate flight time per battery. Medical device users verify portable oxygen concentrators last through outings. The calculator translates electrical specifications into practical time estimates that inform purchasing and planning decisions.
The Formula Behind Battery Life Calculations
The fundamental formula expresses as: Battery Life (hours) = Battery Capacity (Ah) / Load Current (A)
For milliamp units: Battery Life (hours) = Battery Capacity (mAh) / Load Current (mA)
For a 4,000 mAh battery at 500 mA draw:
Battery Life = 4,000 mAh / 500 mA = 8 hours
When power (watts) is known instead of current: Current (A) = Power (W) / Voltage (V)
A 60W laptop running on 12V draws: 60W / 12V = 5A. With a 100 Ah battery: 100 Ah / 5A = 20 hours theoretical runtime.
Real-world calculations apply efficiency factors:
Effective Capacity = Rated Capacity × Depth of Discharge × Temperature Factor × Age Factor
Lead-acid batteries should not discharge below 50% (Depth of Discharge = 0.50). Lithium batteries can discharge to 80-90% (DoD = 0.80-0.90). At 25°C, temperature factor is 1.0; at 0°C, capacity drops to 0.70-0.80. After 500 cycles, lithium batteries retain 80% capacity (Age Factor = 0.80).
Peukert's Law for lead-acid batteries: Effective Capacity = Rated Capacity × (Rated Current / Actual Current)^(Peukert Exponent - 1)
Peukert exponent ranges 1.1-1.3 for lead-acid. Higher discharge rates reduce effective capacity — a 100 Ah battery might deliver only 70 Ah at high currents.
6 Steps to Calculate Battery Life Accurately
Step 1: Identify Battery Capacity in Amp-Hours or Milliamp-Hours
Battery capacity appears on labels as mAh (smartphones, power banks) or Ah (car batteries, solar batteries). A typical smartphone holds 3,000-5,000 mAh. Laptop batteries range 40-100 Wh (watt-hours). Car starter batteries: 40-100 Ah. Deep-cycle solar batteries: 100-400 Ah. Convert watt-hours to amp-hours: Ah = Wh / Voltage. A 500 Wh laptop battery at 11.4V equals 43.9 Ah.
Step 2: Determine Device Current Consumption
Check device specifications for current draw in amps or milliamps. If only watts are listed, calculate: Amps = Watts / Volts. A 65W laptop charger at 19.5V draws 3.33A. Smartphone screens consume 200-400 mA; processors add 500-2,000 mA under load. LED lights: 1-5A depending on brightness. Use a USB power meter or multimeter to measure actual consumption if specifications are unavailable.
Step 3: Apply Depth of Discharge Limits
Never fully discharge batteries — it damages chemistry and reduces lifespan. Lead-acid (car, AGM, gel): maximum 50% DoD. Lithium-ion (LiFePO4, NMC): 80-90% DoD safe. Nickel-metal hydride (NiMH): 70-80% DoD. For a 100 Ah lead-acid battery, usable capacity is 50 Ah. For 100 Ah lithium, usable is 80-90 Ah. Adjust calculations accordingly to preserve battery health.
Step 4: Account for Temperature Effects
Battery capacity varies with temperature. At 25°C (77°F), capacity is 100%. At 0°C (32°F), capacity drops to 70-80%. At 40°C (104°F), capacity increases to 105-110% but degradation accelerates. For outdoor/winter applications, apply a 0.70-0.80 temperature multiplier. A 100 Ah battery at -10°C might deliver only 60 Ah. Keep batteries insulated or heated in cold climates.
Step 5: Calculate Base Runtime Using the Formula
Apply: Hours = (Capacity × DoD × Temp Factor) / Current. For a 200 Ah lithium battery (90% DoD) at 25°C powering a 10A load: (200 × 0.90 × 1.0) / 10 = 180 / 10 = 18 hours. For lead-acid with same specs: (200 × 0.50 × 1.0) / 10 = 100 / 10 = 10 hours. Lithium provides 80% more usable runtime despite identical rated capacity.
Step 6: Add Safety Margin for Real-World Conditions
Batteries degrade over time. Inverters consume 5-15% efficiency loss converting DC to AC. Wire resistance causes voltage drop. Add 20-30% safety margin for critical applications. An 18-hour calculated runtime becomes 14-15 hours with margin. For emergency backup (medical devices, sump pumps), use 50% margin — design for 12 hours when you need 8 hours of actual runtime.
5 Worked Examples With Complete Calculations
Example 1: Smartphone Battery Life
Battery: 4,500 mAh lithium-ion. Consumption: 350 mA (mixed use: browsing, social media, some video). DoD: 90% (lithium). Temperature: 25°C.
Effective capacity: 4,500 × 0.90 × 1.0 = 4,050 mAh
Runtime: 4,050 / 350 = 11.57 hours = 11 hours 34 minutes
With gaming (1,800 mA): 4,050 / 1,800 = 2.25 hours = 2 hours 15 minutes
With video streaming (800 mA): 4,050 / 800 = 5.06 hours = 5 hours 4 minutes
Example 2: RV Solar Battery Bank
Batteries: 4 × 100 Ah LiFePO4 in parallel = 400 Ah at 12V. Daily consumption: 80 Ah (lights, water pump, fridge, devices). DoD: 80%. Autonomy goal: 3 cloudy days.
Usable capacity: 400 × 0.80 = 320 Ah
Daily usage: 80 Ah
Autonomy: 320 / 80 = 4 days
Meets 3-day goal with 1-day buffer. Add 200W solar to recharge 80 Ah daily (80 Ah × 12V = 960 Wh; 960 Wh / 5 sun-hours = 192W, round to 200W).
Example 3: UPS Backup for Home Office
Equipment: Desktop PC (300W), monitor (50W), router (15W) = 365W total. UPS: 1,500 VA with 2 × 9 Ah batteries at 12V. Inverter efficiency: 90%.
Total battery capacity: 2 × 9 Ah = 18 Ah at 24V (series connection)
Battery energy: 18 Ah × 24V = 432 Wh
Usable (lead-acid 50% DoD): 432 × 0.50 = 216 Wh
Load power from batteries: 365W / 0.90 = 406W (accounting for inverter loss)
Current draw: 406W / 24V = 16.9A
Runtime: 18 Ah / 16.9A = 1.07 hours = 64 minutes
Safe shutdown time: 45-50 minutes (70% of calculated)
Example 4: Electric Bike Range
Battery: 48V, 14 Ah (672 Wh). Motor: 500W nominal. Rider + bike: 95 kg. Terrain: flat. Speed: 25 km/h assistance. Efficiency: 15 Wh/km typical.
Current at 500W: 500W / 48V = 10.4A
Usable capacity (lithium 90%): 14 × 0.90 = 12.6 Ah
Runtime: 12.6 / 10.4 = 1.21 hours
Range: 1.21 hours × 25 km/h = 30.25 km
Alternative method: 672 Wh × 0.90 / 15 Wh/km = 40.3 km (optimistic)
Real-world with hills, stops, wind: 30-35 km realistic range.
Example 5: Portable Medical Oxygen Concentrator
Device: Portable oxygen concentrator, 65W. Battery: External lithium, 100 Wh (airport-safe limit). Flow setting: 2 L/min continuous.
Runtime: 100 Wh / 65W = 1.54 hours = 1 hour 32 minutes
With 20% safety margin: 1.54 × 0.80 = 1.23 hours = 1 hour 14 minutes
For 4-hour outing: need 4 × 65W = 260 Wh battery capacity
Carry 3 × 100 Wh batteries (under 300 Wh FAA limit for spare batteries)
Total runtime: 3 × 1.54 = 4.62 hours, sufficient for 4-hour trip with margin.
4 Critical Mistakes That Shorten Battery Runtime
Mistake 1: Using Rated Capacity Without Depth of Discharge Adjustment
Calculating runtime from a 100 Ah lead-acid battery as 100 Ah / load assumes 100% discharge, which destroys lead-acid batteries in 50-100 cycles. Lead-acid must limit discharge to 50% for reasonable lifespan. A calculation showing 20 hours runtime becomes 10 hours when DoD is applied. Lithium batteries tolerate 80-90% DoD, making them superior for deep-cycle applications despite higher upfront cost.
Mistake 2: Ignoring Inverter Efficiency Losses
Running AC devices from DC batteries requires an inverter, which consumes 10-15% of power as heat. A 500W AC load actually draws 550-575W from the battery. Calculating runtime without this factor overestimates by 10-15%. A 10-hour estimate becomes 8.5-9 hours. High-quality pure sine wave inverters achieve 90-93% efficiency; modified sine wave units may only reach 85-88%.
Mistake 3: Not Accounting for Battery Age and Cycle Degradation
Batteries lose capacity with age and charge cycles. Lithium batteries retain 80% capacity after 500-1,000 full cycles. Lead-acid degrades to 80% after 200-500 cycles. A 2-year-old battery with 300 cycles may deliver only 85% of original capacity. Calculations based on new battery specs overestimate runtime. For critical applications, measure actual capacity annually with a controlled discharge test and update calculations.
Mistake 4: Assuming Constant Current Draw When Load Varies
Devices rarely draw constant current. Smartphones use 50 mA on standby, 2,000 mA during gaming. Fridges cycle on/off (compressor draws 5A, idle draws 0.1A). Calculate weighted average: if a fridge runs 30% of the time at 5A and 70% at 0.1A, average = (0.30 × 5) + (0.70 × 0.1) = 1.57A. Using peak current (5A) underestimates runtime by 3×; using idle current (0.1A) overestimates by 15×.
4 Professional Tips for Maximizing Battery Life
Tip 1: Choose Lithium Over Lead-Acid for Deep-Cycle Applications
Lithium (LiFePO4) batteries cost 2-3× more upfront but last 5-10× longer (3,000-5,000 cycles vs. 500-1,000), provide 80-90% usable capacity vs. 50%, weigh 50% less, and require zero maintenance. For RV, marine, or solar applications cycling daily, lithium's total cost of ownership is lower. A 100 Ah lithium battery ($300-400) replaces two 100 Ah lead-acid batteries ($150 each) that must be replaced twice as often.
Tip 2: Parallel Batteries for Capacity, Series for Voltage
Connecting batteries in parallel (positive to positive, negative to negative) adds capacity while maintaining voltage. Two 100 Ah 12V batteries in parallel = 200 Ah at 12V. Connecting in series (positive to negative) adds voltage while maintaining capacity. Two 12V batteries in series = 24V at 100 Ah. For solar systems, 24V or 48V reduces current, allowing thinner wires and less voltage drop. Match batteries exactly — same age, capacity, and chemistry — when connecting in parallel or series.
Tip 3: Keep Batteries at Optimal Temperature for Maximum Capacity
Batteries perform best at 20-25°C (68-77°F). Below 10°C, capacity drops 1% per degree. Above 30°C, degradation accelerates — every 10°C above 25°C halves battery lifespan. Install batteries in temperature-controlled spaces: insulated enclosures for outdoor solar, climate-controlled compartments for RVs. In cold climates, use battery heating pads (10-20W) powered by the battery itself — the 5% energy cost prevents 30% capacity loss.
Tip 4: Use MPPT Charge Controllers for Solar Charging
Solar charge controllers regulate charging from panels to batteries. PWM (pulse-width modulation) controllers are 70-75% efficient; MPPT (maximum power point tracking) controllers achieve 95-98% efficiency. For a 400W solar array, MPPT harvests 100 Wh more daily than PWM — equivalent to adding an extra 100W panel. MPPT costs $100-200 more but pays for itself in 6-12 months through increased energy harvest.
4 FAQs About Battery Life Calculations
Use the formula: Amp-hours = Watt-hours / Voltage. A 500 Wh laptop battery at 11.4V equals 500 / 11.4 = 43.9 Ah. Conversely: Watt-hours = Amp-hours × Voltage. A 100 Ah 12V battery stores 100 × 12 = 1,200 Wh (1.2 kWh). Always use the battery's nominal voltage: 12V for lead-acid, 3.7V per cell for lithium-ion (11.1V for 3S, 14.8V for 4S), 1.2V for NiMH. Voltage varies during discharge — use nominal voltage for capacity calculations.
Cold temperatures slow the chemical reactions inside batteries, reducing available capacity. At 0°C, most batteries deliver 70-80% of rated capacity. At -20°C, capacity drops to 50-60%. Lithium batteries also cannot be charged below 0°C without permanent damage — BMS systems prevent charging until warmed. Keep batteries warm (insulated cases, hand warmers, heated compartments) in winter. Expect 30-40% reduced runtime in freezing conditions and plan accordingly.
No. Mixing batteries of different ages, capacities, or chemistries causes imbalanced charging and discharging. The older/weaker battery limits the entire bank's performance and degrades faster. When batteries are connected in parallel or series, they must be identical: same manufacturer, model, capacity, age (within 6 months), and cycle history. If replacing batteries in a multi-battery bank, replace all simultaneously, not individually.
Use a USB power meter for USB devices ($10-20, shows voltage, current, mAh). For DC devices, wire a multimeter in series between battery and device (set to amps, not volts). For AC devices, use a Kill-A-Watt meter ($25-40, plugs between outlet and device). Measure over time to capture varying loads — a fridge cycles on/off, a phone varies by activity. Log consumption over 24 hours for accurate daily averages.
Related Calculators
- Solar Panel Calculator: Sizes solar arrays based on daily energy consumption and location sun-hours.
- Inverter Size Calculator: Determines required inverter wattage from appliance power ratings.
- Electricity Cost Calculator: Calculates operating costs from wattage, hours of use, and electricity rates.
- Power Bank Capacity Calculator: Estimates how many device charges a power bank provides based on mAh ratings.
- Wire Size Calculator: Determines appropriate wire gauge for DC systems to minimize voltage drop.