Home › Calculators › Battery Life Calculator

Battery Life Calculator

Enter the battery capacity and what your device draws to see how many hours or days it will run, including sleep and wake cycles for IoT devices and losses in real batteries.

Last updated:

Battery
V
Load
Real-world losses
%
%
Estimated battery life–
Hours–
Days–
Average current–
Usable energy–

Battery pack builder (series & parallel)

V
mAh
Series adds voltage; parallel adds capacity. Energy = cells × voltage × capacity.
Advertisement
Advertisement

How to use the Battery Life Calculator

  1. Pick a battery preset or enter the capacity and nominal voltage yourself.
  2. Describe the load: a constant current, a power in watts, or a duty cycle with sleep current and active states.
  3. Set real-world losses: efficiency, usable depth of discharge and, for lead-acid, Peukert's law.
  4. Read the estimated battery life in hours and days with the formula shown.
  5. Build a pack from cells in series and parallel, then press Use this pack above to calculate its runtime.

Battery life formulas

  • Current load: hours = capacity (mAh) × efficiency × depth of discharge ÷ load current (mA)
  • Power load: hours = energy (Wh) × efficiency × depth of discharge ÷ power (W), where Wh = mAh × V ÷ 1,000
  • Duty cycle: average current = sleep current × (1 − active fraction) + Σ (active current × its fraction of time)
  • Peukert (lead-acid): t = H × (C ÷ (I × H))k, with C in Ah, I in A, H the rated hours and k the Peukert exponent

Example: a 12 V 100 Ah lead-acid battery running a 10 A load. Without Peukert it would last 100 ÷ 10 = 10 h. With k = 1.2 and a 20-hour rating, t = 20 × (100 ÷ (10 × 20))1.2 = 20 × 0.51.2 = 8.71 h to fully discharged, and only about 4.4 h if you stop at 50% depth of discharge to protect the battery (before efficiency losses).

Typical battery capacities

BatteryNominal voltageTypical capacityEnergy
AA alkaline1.5 V2,000–3,000 mAh (at low drain)≈ 3–4 Wh
AAA alkaline1.5 V≈ 1,000–1,200 mAh≈ 1.5 Wh
AA NiMH1.2 V1,900–2,500 mAh≈ 2.4–3 Wh
CR2032 coin cell3 V≈ 225 mAh (at very low drain)≈ 0.7 Wh
9 V alkaline9 V≈ 400–600 mAh≈ 4.5 Wh
18650 Li-ion3.6–3.7 V2,500–3,500 mAh≈ 9–12.6 Wh
Power bank "10,000 mAh"3.7 V (cells)10,000 mAh37 Wh
12 V 100 Ah lead-acid12 V100 Ah (20-hour rate)1,200 Wh

Alkaline capacity falls sharply at high current: an AA that delivers about 2,500 mAh at 25 mA may give well under half that at 1 A. Coin cells are rated at microamp loads and lose capacity with pulse currents above a few milliamps.

Why a power bank doesn't charge your phone as often as you'd expect

Power banks quote the capacity of their 3.7 V cells. Charging a phone involves boosting to 5 V (or higher for fast charging) and then charging the phone's own cell, losing roughly 20–35% along the way. A 10,000 mAh (37 Wh) bank typically delivers about 25–28 Wh to the phone, which is roughly 1.5–1.8 charges of a 4,500 mAh (17.3 Wh) phone battery.

Tips for longer battery life

  • For battery-powered electronics, the sleep current usually dominates. Cutting it from 100 µA to 5 µA can extend life many times over.
  • Lead-acid batteries last far longer if regularly discharged only to about 50%; LiFePO4 tolerates 80–100% depth of discharge.
  • Cold reduces available capacity, especially for alkaline and lead-acid chemistries; allow extra margin in winter.
  • Self-discharge matters for multi-year designs: alkaline and lithium primary cells lose only a few percent a year, NiMH much more unless it is a low-self-discharge type.

Frequently asked questions

How do I calculate battery life from mAh?

Divide the capacity by the load current: battery life (hours) = capacity (mAh) ÷ current (mA). A 3,000 mAh battery powering a 250 mA load lasts about 12 hours in theory, or about 10.2 hours with an 85% derating factor.

Why use an efficiency or derating factor?

Real batteries rarely deliver their full rated capacity: capacity drops with high current, cold temperatures and age, and voltage regulators waste some energy. Using about 70–90% of the rating gives a more realistic estimate.

How do I convert mAh to Wh?

Multiply by the nominal voltage and divide by 1,000: Wh = mAh × V ÷ 1,000. A 10,000 mAh power bank at 3.7 V holds 37 Wh. Use Wh when comparing batteries with different voltages.

How do I estimate battery life for an IoT sensor?

Work out the average current: sleep current for the time asleep plus each active current multiplied by the fraction of time it runs. A device sleeping at 10 µA that transmits at 120 mA for 0.1% of the time averages about 0.13 mA before other loads, so a CR2032 can last months.

What is Peukert's law?

Lead-acid batteries deliver less capacity at higher currents. Peukert's law, t = H × (C ÷ (I × H))^k, adjusts the runtime using the rated discharge time H (often 20 h) and an exponent k of about 1.1–1.3 for lead-acid. Lithium batteries are close to k = 1.

Do batteries in series or parallel last longer?

Cells in series add voltage at the same mAh; cells in parallel add mAh at the same voltage. Either way the energy (Wh) is the sum of all cells, so runtime depends on how much power the device draws.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

Ohm's Law CalculatorSolve voltage, current, resistance and power from any two values.LED Resistor CalculatorFind the resistor for an LED, with nearest standard value and wattage.Voltage Divider CalculatorVout from R1, R2 and Vin, with loaded and unloaded output.Power Factor CalculatorCalculate power factor, kW, kVA and kVAR, and correction capacitor size.Amps to kWConvert amps to kilowatts (A to kW) instantly, with formula and chart.Amps to WattsConvert amps to watts (A to W) instantly, with formula and chart.Drone Flight Time CalculatorEstimate drone flight time from battery mAh, voltage, discharge, weight and amp draw.kVA to kWConvert kilovolt-amperes to kilowatts (kVA to kW) instantly, with formula and chart.Resistor Color Code CalculatorRead 4, 5 and 6 band resistor colors, or find colors for a value.Electricity Cost CalculatorEstimate kWh usage and electricity costs.Capacitor Code CalculatorDecode 3-digit capacitor codes to pF, nF and µF, and back.EV Charging Cost CalculatorCost to charge an electric car, per charge, per mile and per km.Series & Parallel Resistor CalculatorAdd resistors in series or parallel and find standard value combinations.555 Timer CalculatorAstable frequency, duty cycle and monostable pulse width for the NE555 timer.Wire Size CalculatorFind the AWG or kcmil wire size for a load from amps, distance, voltage and allowed voltage drop.Solar Panel CalculatorEstimate solar system size, number of panels and roof area from your monthly kWh and sun hours.Resonant Frequency CalculatorLC resonant frequency f = 1/(2π√LC), or solve the inductance or capacitance you need.Capacitor Series and Parallel CalculatorTotal capacitance of capacitors in series or parallel, plus stored energy ½CV² and charge.Generator Size CalculatorAdd appliance running and starting watts to find the generator size you need.LED Savings CalculatorYearly savings, kWh saved and payback time when switching old bulbs to LED.Battery Bank Size CalculatorSize a solar or off-grid battery bank: Ah, kWh and battery count from daily Wh and autonomy.Battery Charge Time CalculatorHow long to charge a battery: mAh or Ah, charger current, efficiency and current charge %.Circuit Breaker Size CalculatorBreaker size from watts or amps, voltage and the 125% continuous rule, with a wire gauge.Conduit Fill CalculatorCheck conduit fill % against the NEC 40% limit for EMT, PVC, RMC and more, with pass/fail.Home Electrical Load CalculatorHome service load in VA and amps with NEC demand factors and a 100/150/200 A recommendation.EV Charging Time CalculatorHow long to charge an EV: battery kWh, charge levels and charger kW, with Level 1/2/DC presets.RLC Impedance CalculatorSeries or parallel RLC impedance, phase angle, resonant frequency and Q at any frequency.Inverter Size CalculatorFind the inverter size for your appliances: continuous watts, surge and battery current.ND Filter CalculatorLong exposure shutter speed for any ND filter in stops, ND number or density.Op Amp Gain CalculatorInverting, non-inverting or differential op amp gain in V/V and dB, with output voltage.PCB Trace Width CalculatorMinimum PCB trace width for a current per IPC-2221, for internal and external layers.RC Filter Cutoff CalculatorRC low-pass or high-pass cutoff frequency, solve R or C, with a Bode magnitude chart.Reactance CalculatorInductive and capacitive reactance at any frequency, or solve for L, C or frequency.SMD Resistor Code CalculatorDecode 3-digit, 4-digit and EIA-96 SMD resistor codes, or find the code for a value.Solar Panel Tilt Angle CalculatorBest fixed tilt, seasonal and monthly solar panel angles and direction for any latitude.Transformer Turns Ratio CalculatorSolve transformer voltage, turns or turns ratio, with primary/secondary current and VA.UPS Runtime CalculatorEstimate UPS battery backup time from battery V, Ah, count, efficiency and load, with Peukert.PC Power Supply CalculatorEstimate your PC's load watts and the PSU wattage you need, with efficiency running costs.4-20mA CalculatorScale a 4-20 mA signal to a process value and back, with percent and shunt voltage.Antenna Length CalculatorDipole, quarter-wave and 5/8-wave antenna lengths for any frequency or radio band.Battery Pack Calculator18650, 21700 or LiFePO4 series/parallel pack: voltage, Ah, Wh, max current and weight.DC Circuit SimulatorDraw batteries, resistors, bulbs and switches and see voltages and currents flow live.E-Bike Range CalculatorEstimate e-bike miles or km per charge from battery Wh, assist level, weight, speed and hills.Lewis Structure GeneratorDraw Lewis dot structures with valence electrons, lone pairs, formal charges and VSEPR shape.Motor Full Load Current CalculatorFull load amps from motor hp or kW, voltage, phase, efficiency and power factor, with NEC values.Population Growth CalculatorExponential or logistic population growth over time with carrying capacity, table and chart.Rocket Launch ScheduleUpcoming orbital rocket launches with live countdowns, launch windows, pads and filters.Transformer Sizing CalculatorTransformer kVA needed from volts and amps or kW and PF, next standard size and full-load amps.Wire Resistance CalculatorWire resistance from material, AWG or diameter, length and temperature, plus voltage drop.Power to Weight Ratio CalculatorVehicle hp per tonne, lb per hp and kW/kg from power and weight; compare cars and bikes.Solar Charge Controller Size CalculatorSize an MPPT or PWM charge controller in amps from panel watts, Voc, Isc and battery voltage.
See all 51 Electrical & Electronics Calculators →