Battery Life Calculator
Free battery life calculator to estimate runtime from battery capacity (mAh) and device current draw (mA). Calculate how long your battery will last, or determine the capacity needed for a target runtime.
Loading calculator
Preparing Battery Life Calculator...
Reviewed & Methodology
Every calculator is built using industry-standard formulas, validated against authoritative sources, and reviewed by a credentialed financial professional. All calculations run privately in your browser - no data is stored or shared.
How to Use the Battery Life Calculator
- 1. Enter battery capacity - input the capacity in milliamp-hours (mAh) from the battery label or datasheet.
- 2. Enter current draw - input the device's average current consumption in milliamps (mA).
- 3. View estimated runtime - see the calculated battery life in hours and minutes.
- 4. Adjust for real-world factors - reduce the estimate by 10-20% for discharge efficiency losses and aging.
- 5. Compare batteries - try different mAh capacities to find the best battery for your runtime requirements.
Battery Life Calculator
This battery life calculator estimates how long a battery will power your device based on capacity (mAh) and average current draw (mA). It is a practical tool for electronics designers sizing batteries for IoT sensors, hobbyists building Arduino or Raspberry Pi projects, and anyone comparing power bank options for portable devices or field equipment.
How Battery Runtime Is Calculated
The fundamental formula is:
Runtime (hours) = Battery Capacity (mAh) / Average Current Draw (mA)
For example, a 5,000 mAh battery powering a device that draws 500 mA lasts approximately 10 hours theoretically. In practice, multiply by an efficiency factor of 0.80-0.90 to account for internal resistance losses, voltage conversion overhead, and capacity reduction at higher discharge rates.
Practical Runtime = (Capacity / Current Draw) x Efficiency Factor
Worked Examples
Example 1 — Smartphone: A phone has a 4,500 mAh battery and the screen-on usage draws an average of 300 mA. Theoretical runtime = 4,500 / 300 = 15 hours. With an 88% efficiency factor, practical runtime is about 13.2 hours of mixed use.
Example 2 — Wireless IoT sensor: An ESP32-based temperature sensor wakes every 10 minutes, takes a reading (240 mA for 2 seconds), then sleeps (10 µA for ~598 seconds). Average current = (240 x 2 + 0.01 x 598) / 600 = 0.81 mA. A 3,000 mAh cell lasts 3,000 / 0.81 = 3,700 hours, or about 154 days.
Example 3 — Power bank charging a tablet: A 10,000 mAh power bank charges a tablet that draws 1,500 mA. Accounting for USB conversion losses (85% efficiency): usable capacity = 10,000 x 0.85 = 8,500 mAh. Runtime = 8,500 / 1,500 = 5.7 hours of continuous charge delivery.
Battery Capacity Reference Table
| Battery / Cell | Nominal Voltage | Typical Capacity | Typical Use Case |
|---|---|---|---|
| AA alkaline | 1.5V | 2,700 mAh | Remotes, clocks, toys |
| AA NiMH | 1.2V | 2,000-2,800 mAh | Rechargeable household devices |
| 18650 Li-ion | 3.7V | 2,000-3,600 mAh | Laptops, flashlights, e-bikes |
| CR2032 coin cell | 3.0V | 220-240 mAh | Watches, key fobs, sensors |
| 9V alkaline | 9V | 550-600 mAh | Smoke detectors, instruments |
| LiPo 1S (drone) | 3.7V | 300-1,500 mAh | Small drones, RC vehicles |
| Smartphone (typical) | 3.85V | 3,000-5,000 mAh | Phones, small tablets |
| Laptop (typical) | 11.1V | 4,000-8,000 mAh | Notebooks, laptops |
| Power bank (typical) | 3.7V | 10,000-30,000 mAh | Portable USB charging |
When to Use This Calculator
- Selecting a battery size for a new electronics project before you commit to a enclosure
- Comparing whether a 2,000 mAh versus 3,000 mAh battery meets your target runtime
- Estimating field deployment life for remote sensors, data loggers, or wildlife cameras
- Checking whether a power bank has enough capacity to fully charge your laptop on a flight
- Sizing backup battery capacity for a device that must survive a specific outage window
Common Mistakes
- Using peak current instead of average current. A device that spikes to 1,500 mA during Wi-Fi transmissions but idles at 80 mA will not drain at 1,500 mA continuously. Measure or calculate the time-weighted average across all operating states — runtime predictions based on peak draw alone are typically 10-20x too pessimistic.
- Ignoring voltage conversion losses. If your 3.7V Li-ion battery feeds a 5V boost converter to power a USB device, the converter is typically 85-90% efficient. A 5,000 mAh battery does not deliver 5,000 mAh at 5V — apply the efficiency factor before dividing by current draw.
- Forgetting the cut-off voltage. Li-ion cells stop supplying usable power below about 3.0V per cell. At high discharge rates, voltage sag can cut runtime 15-20% shorter than the mAh-based formula predicts. Always test under realistic load conditions before finalizing a battery selection.
- Treating rated mAh as delivered mAh. Alkaline batteries at high drain rates (above 200 mA) deliver significantly less than their rated capacity — a 2,700 mAh AA cell may only provide 1,500-1,800 mAh at 500 mA. Li-ion chemistry performs more consistently across discharge rates.
Real-World Applications
Battery life calculations drive decisions in product development, field deployment, and everyday purchasing. Medical device engineers calculating the runtime of a portable monitor use the same formula as a backpacker deciding which battery pack to bring for a five-day trip. Remote weather stations in locations without power infrastructure are sized to run for months between maintenance visits — the average-current calculation accounting for sleep modes is what makes that feasible. EV battery pack designers scale the same math to kilowatt-hours and hundreds of amps, but the underlying ratio of energy stored to power consumed remains identical.
Tips
- Measure actual current draw with a USB power meter or series ammeter rather than relying on datasheets, which often list only peak or typical values.
- For IoT and embedded projects, calculate a duty-cycle-weighted average current across all operating modes — active, transmitting, idle, and deep sleep — weighted by the fraction of time spent in each state.
- Use a boost or buck converter rated at 90%+ efficiency to minimize power conversion losses between the battery and your circuit.
- Never discharge a lithium-ion cell below 2.5V per cell — a protection circuit (PCB or BMS) is required to prevent damage and potential thermal runaway.
- Store Li-ion batteries at 40-60% charge when not in use for extended periods to reduce calendar aging.
- For parallel battery packs, match cells by brand, model, age, and internal resistance to prevent current imbalance during charging and discharging.
Frequently Asked Questions
What does mAh mean and how does it relate to battery life?
What is a discharge rate (C-rate) and why does it matter?
What are the differences between common battery types?
How many charge cycles does a battery last before degrading?
How can I extend the battery life of my device?
Explore More Engineering Tools
Related Engineering Calculators
Aerospace Engineering Calculator
Free aerospace engineering calculator for lift and drag force computation. Enter airspeed, wing area, and aerodynamic coefficients to calculate lift, drag, L/D ratio, and dynamic pressure for aircraft design and flight analysis.
EngineeringBeam Load Calculator
Free beam load calculator for deflection, bending moment, shear force, and support reactions. Analyze simply supported and cantilever beams with point loads and distributed loads to verify structural adequacy.
EngineeringChemical Engineering Calculator
Free chemical engineering calculator for dilution and concentration problems. Use the C1V1 = C2V2 equation to find stock solution volume, solvent to add, and dilution factor for lab and industrial applications.
EngineeringCivil Engineering Calculator
Free civil engineering calculator for beam deflection, bending moment, and shear force analysis. Enter load, span, moment of inertia, and elastic modulus to get instant structural results for simply supported beams.