Battery Life Calculator in Watts
Calculate battery endurance from total load wattage, including inverter efficiency losses and Depth of Discharge.
If you’ve measured how many milliamps your circuit pulls, you’re one division away from battery life. This battery life calculator by current draw handles the easy case, a constant load, and the one that trips people up: devices that sleep most of the time and wake briefly to work.
Where the charge goes
Enter your battery capacity in mAh and your device’s current draw in mA. If the device sleeps between tasks, switch to sleep/wake mode and add the sleep current and timings; the calculator works out the average current and the battery life.
Battery capacity. Use the rated mAh from the datasheet. For reference, an 18650 lithium-ion cell is typically 2,500–3,500 mAh, an AA alkaline roughly 2,000–3,000 mAh at light loads, and a CR2032 coin cell about 220–240 mAh.
Load profile. Choose Constant draw for anything that stays on, such as an LED, a motor or a display. Choose Sleep / wake cycle for microcontrollers and sensors that wake on a timer, do their job and go back to sleep.
Active current (mA). The current while the device is running. Measure it with a multimeter in series or take it from the datasheet, and remember to include radio transmit peaks if your device has one.
Sleep current and timing. Enter sleep current in microamps (1 mA = 1,000 µA), then how many seconds the device spends awake and asleep in each cycle. A sensor that wakes for 5 seconds every 5 minutes is 5 s active and 295 s asleep.
Derating. The share of rated capacity you can realistically use. Keep 85% for typical conditions; lower it for cold weather, old cells or coin cells under pulsed loads.
Estimated battery life shows in hours, days or years depending on how long it is. Average current is the single number that decides battery life, so it’s the one to compare against your measurements. In sleep/wake mode, where the charge goes shows whether active time or sleep current is the bigger drain, which tells you where optimizing will pay off.
The battery life calculator by current draw divides the battery’s usable capacity by the average current your device draws. For a constant load, the average is simply the current you measured; for a sleep/wake cycle, it’s a time-weighted average of the two states.
Iactive Current while awake or running, in milliamps (mA)tactive Time awake per cycle, in secondsIsleep Sleep current, converted from µA to mA (µA ÷ 1,000)tsleep Time asleep per cycle, in secondsCapacity Rated battery capacity, in mAhDerating Usable share of capacity as a decimal (85% = 0.85)An ESP32 board on a 2,500 mAh 18650 cell wakes for 5 s at 80 mA, then sleeps for 295 s at 10 µA. Derating is 85%.
Run the same board without sleep and it lasts about 2,125 ÷ 80 ≈ 27 hours. Sleep is what turns a day into two months.
Factors that the inputs don’t capture on their own:
Average current is shown to three decimal places, and battery life switches between hours, days and years automatically.
Practical answers on mA-based runtime, sleep current and measuring real draw.
Divide the capacity in mAh by the current in mA to get hours. A 2,000 mAh battery powering a 100 mA load lasts about 20 hours in theory, or roughly 17 hours after an 85% derating for real-world losses.
Put a multimeter in series with the battery’s positive lead and use the mA range for running current and the µA range for sleep current. Multimeters can miss fast spikes, and their internal resistance can upset low-voltage circuits, so a dedicated power profiler gives more reliable numbers for sleep-heavy designs.
85% is a sensible starting point for most rechargeable and alkaline batteries in mild conditions. Go down to 70% or lower for cold environments, aging cells, or coin cells feeding pulsed loads, where usable capacity drops sharply.
Usually because the real average current is higher than the numbers entered. Radio transmit bursts, status LEDs, sensors left powered and regulator quiescent current all add up, so measure across a full wake/sleep cycle and compare it with the calculator’s average current.
Not when the device draws its current straight from the battery or through a linear regulator, because battery current then equals device current. If a switching regulator sits in between, the two differ, so work from power instead with the battery life calculator in watts.
Yes. Enter sleep current in µA and the calculator converts it to mA for you. When the average gets very low, runtimes can stretch to years, and at that point self-discharge and shelf life, not your circuit, often set the real limit.
Explore our companion calculators designed for different battery metrics, voltage curves, and duty-cycle load profiles.
Calculate battery endurance from total load wattage, including inverter efficiency losses and Depth of Discharge.
Estimate runtime from amp-hour capacity and continuous draw, compensated for high-rate Peukert discharge losses.
Determine usable runtime and total recharge cycles for watt-hour rated batteries and portable power banks.
Translate resting multimeter voltage readings into state of charge (SoC %) and remaining operational runtime.