Battery Runtime Calculator
Estimate battery runtime from capacity (mAh/Wh) and device power consumption. Enter values for instant results with step-by-step formulas.
Reviewed for accuracy by Daniel Agrici, Founder & Lead Developer
Battery Runtime Calculator
Calculator
Adjust values & calculateEnter your values below. Every result is computed in your browser โ no data is sent to any server.
Formula: Runtime (hours) = (Capacity_mAh / 1000 * Voltage * Efficiency) / Power_W
Worked example โ Runtime: 4 hours 10 minutes | Current draw: 1081 mA | C-rate: 0.216C
Formula
Runtime (hours) = (Capacity_mAh / 1000 * Voltage * Efficiency) / Power_W
First converts mAh to Wh by multiplying capacity by voltage, then applies efficiency factor to get usable energy, and finally divides by load power in watts to get runtime in hours.
Worked Examples
Example 1: Smartphone Battery Life Estimation
Problem:A smartphone has a 5000 mAh battery at 3.7V. The average power consumption during mixed use is 4W. Assume 90% efficiency. How long will the battery last?
Solution:Energy = (5000 / 1000) * 3.7 = 18.5 Wh Usable energy = 18.5 * 0.90 = 16.65 Wh Runtime = 16.65 / 4 = 4.16 hours Current draw = (4 / 3.7) * 1000 = 1081 mA C-rate = 1081 / 5000 = 0.216C
Result:Runtime: 4 hours 10 minutes | Current draw: 1081 mA | C-rate: 0.216C
Example 2: IoT Sensor Node on AA Batteries
Problem:An IoT sensor runs on 2 AA batteries in series (3V total, 2500 mAh each). It draws 50mW average. Assume 85% efficiency from the voltage regulator. What is the expected runtime?
Solution:Energy = (2500 / 1000) * 3.0 = 7.5 Wh Usable energy = 7.5 * 0.85 = 6.375 Wh Runtime = 6.375 / 0.05 = 127.5 hours = 5.31 days Current draw = (0.05 / 3.0) * 1000 = 16.7 mA C-rate = 16.7 / 2500 = 0.0067C
Result:Runtime: 127.5 hours (5.3 days) | Current draw: 16.7 mA | C-rate: 0.007C
Frequently Asked Questions
How is battery runtime calculated from mAh and power consumption?
Battery runtime is calculated by first converting the battery capacity from mAh to watt-hours (Wh) using the formula Wh = (mAh / 1000) * voltage. Then you divide the available energy by the power consumption of the device in watts. For example, a 5000 mAh battery at 3.7V has 18.5 Wh of energy. If a device draws 5 watts, the theoretical runtime would be 18.5 / 5 = 3.7 hours. However, real-world runtime is always less due to conversion efficiency losses, voltage regulator overhead, and battery degradation over time.
What is the difference between mAh and Wh for battery capacity?
Milliamp-hours (mAh) measures electric charge capacity and does not account for voltage, while watt-hours (Wh) measures total energy and includes voltage in the calculation. Two batteries can have the same mAh rating but different energy capacities if they operate at different voltages. A 3000 mAh battery at 3.7V has 11.1 Wh, but a 3000 mAh battery at 7.4V has 22.2 Wh, meaning twice the actual energy. Wh is the more meaningful metric for comparing batteries of different chemistries and voltages. Phone manufacturers typically advertise mAh because all phones use similar 3.7V lithium cells, making mAh a reasonable comparison.
What is C-rate and why does it affect battery runtime?
C-rate describes how fast a battery is being discharged relative to its total capacity. A 1C rate means the battery is fully discharged in one hour, 0.5C means two hours, and 2C means 30 minutes. C-rate matters because batteries deliver less total energy at higher discharge rates due to internal resistance losses and chemical reaction limitations. A battery rated at 5000 mAh might only deliver 4500 mAh at a 1C rate and even less at 2C. This phenomenon is described by Peukerts law for lead-acid batteries and similar effects occur in lithium-ion cells. For maximum runtime, keep the C-rate as low as practical.
How does efficiency factor into battery runtime estimates?
Efficiency accounts for energy losses in the power delivery chain between the battery and the actual load. These losses come from voltage regulators (which convert battery voltage to the required device voltage), DC-DC converters, power management ICs, and heat dissipation in the battery itself due to internal resistance. Typical efficiency values are 85 to 95 percent for well-designed switching regulators and 50 to 70 percent for linear regulators. The calculator multiplies the raw battery energy by the efficiency percentage to get usable energy. For example, at 90 percent efficiency, a 20 Wh battery provides only 18 Wh of usable energy to the device.
How does temperature affect battery runtime?
Temperature significantly impacts battery performance and runtime. Most lithium-ion batteries perform best between 20 and 25 degrees Celsius. In cold temperatures (below 0 degrees C), the chemical reactions slow down, internal resistance increases, and available capacity can drop by 20 to 40 percent. At minus 20 degrees C, some batteries may deliver only half their rated capacity. High temperatures above 45 degrees C can temporarily increase available capacity slightly but accelerate permanent degradation and capacity loss. Extreme heat can also trigger thermal runaway, a dangerous condition. For outdoor or automotive applications, always account for the expected temperature range when sizing batteries.
What is battery degradation and how does it affect long-term runtime?
Battery degradation is the gradual, permanent loss of capacity and increase in internal resistance that occurs over a battery lifecycle. Lithium-ion batteries typically retain 80 percent of their original capacity after 300 to 500 full charge cycles, depending on the chemistry and usage conditions. After that, degradation accelerates. Factors that speed up degradation include deep discharges (below 20 percent), charging to 100 percent regularly, high temperatures, and fast charging. A phone with a 5000 mAh battery might effectively have only 4000 mAh after two years of daily charging. To maximize battery longevity, keep the charge between 20 and 80 percent and avoid extreme temperatures.
How do I measure actual power consumption of my device?
There are several methods to measure device power consumption accurately. A USB power meter is the easiest tool for USB-powered devices, displaying real-time voltage, current, and power. For DC circuits, a multimeter in series measures current draw directly. Kill-A-Watt meters work well for AC-powered devices. For embedded systems, current sense resistors with oscilloscopes capture dynamic power profiles. Software tools like Batterymon or Powertop can estimate consumption on laptops. Keep in mind that power draw varies significantly with usage patterns. A smartphone might draw 0.5W when idle, 2W during web browsing, and 5W during gaming. Use average consumption based on your typical usage mix for the most realistic runtime estimate.
What battery chemistry should I choose for maximum runtime?
The best battery chemistry depends on your application requirements beyond just runtime. Lithium-ion (Li-ion) offers high energy density at 150 to 250 Wh/kg and is the standard for consumer electronics. Lithium-polymer (LiPo) provides similar energy density with more flexible form factors. Lithium iron phosphate (LiFePO4) offers 90 to 120 Wh/kg but has much longer cycle life (2000+ cycles) and is safer, making it ideal for solar systems and EVs. Lead-acid batteries have low energy density (30 to 50 Wh/kg) but are inexpensive and reliable for backup power. Nickel-metal hydride (NiMH) at 60 to 120 Wh/kg is good for high-drain applications. For maximum runtime in a portable device, Li-ion or LiPo is typically the best choice.
Can I connect batteries in parallel to increase runtime?
Yes, connecting batteries in parallel increases total capacity and runtime proportionally while maintaining the same voltage. Two 5000 mAh batteries in parallel give 10000 mAh at the same voltage, doubling theoretical runtime. However, there are important considerations. All parallel batteries should be the same chemistry, capacity, age, and state of charge to prevent imbalance currents. Mismatched batteries can cause one cell to charge another, creating heat and potentially dangerous conditions. A small resistance difference between cells causes unequal current sharing. Use battery management systems (BMS) designed for parallel configurations. Series connections increase voltage but not capacity, which is needed when the device requires higher voltage than a single cell provides.
How accurate are battery runtime calculations compared to real-world usage?
Calculated battery runtime typically overestimates actual runtime by 10 to 30 percent due to factors not captured in simple formulas. Real-world power draw fluctuates constantly rather than being a steady value. Battery capacity ratings are measured under ideal conditions at 25 degrees C with a standardized discharge rate, and actual conditions rarely match. Internal resistance increases as the battery discharges, reducing efficiency toward the end of the cycle. Most devices also have a minimum voltage cutoff above zero charge, leaving some energy unusable. For the most accurate prediction, measure actual device power consumption under your typical usage patterns, use the efficiency factor to account for conversion losses, and apply a 10 to 15 percent safety margin.
References
Background & Theory
History
Reviewed for accuracy by Daniel Agrici, Founder & Lead Developer ยท Editorial policy
Related Calculators
๐งฎUps Battery Runtime Calculator
Calculate UPS backup runtime from battery capacity, load, and efficiency.
๐งฎCantilever Retaining Wall Calculator
Calculate cantilever retaining wall with inputs, formulas, and instant results.
๐งฎOpen Channel Manning Calculator
Calculate open channel manning with inputs, formulas, and instant results.
๐งฎPipe Flow Darcy Weisbach Calculator
Calculate pipe flow darcy weisbach with inputs, formulas, and instant results.
๐งฎRoad Superelevation Calculator
Calculate road superelevation with inputs, formulas, and instant results.
๐งฎRlccircuit Impedance Calculator
Calculate rlccircuit impedance with inputs, formulas, and instant results.
๐งฎThree Phase Power Calculator
Calculate three phase power with inputs, formulas, and instant results.
๐งฎTransformer Turns Ratio Calculator
Calculate transformer turns ratio with inputs, formulas, and instant results.