To calculate battery life, divide the battery’s capacity in milliamp-hours (mAh) by the device’s average current draw in milliamps (mA), then multiply by a derating factor (typically 0.7–0.9) to account for real-world inefficiencies. For example, a 3000 mAh battery powering a device that draws 500 mA gives a theoretical runtime of 6 hours, but with a 0.85 derating factor, expect about 5.1 hours.
What Battery Capacity Actually Means
Battery capacity is rated in milliamp-hours (mAh) or amp-hours (Ah). One amp-hour means the battery can deliver 1 amp of current for 1 hour. However, this rating assumes ideal conditions: a constant current draw, a fresh battery, and room temperature. In practice, capacity varies with discharge rate, temperature, and the battery’s age. For example, a battery rated at 2000 mAh at a 0.2C discharge rate (400 mA) may only deliver 1800 mAh if you draw 2A. This is known as Peukert’s law, which matters most for lead-acid batteries and less for lithium-ion.
The Basic Formula and How to Use It
The simplest formula is: Battery Life (hours) = Battery Capacity (mAh) / Load Current (mA). This gives theoretical runtime. To get a realistic estimate, multiply by a derating factor (usually 0.7–0.9) to account for voltage drop, internal resistance, and conversion losses. For example, if you have a 10,000 mAh power bank and your phone draws 1A (1000 mA) under load, the theoretical runtime is 10 hours. But because the power bank’s voltage conversion is only about 90% efficient, and the phone’s battery charging also loses energy, the actual runtime might be closer to 8 hours.
Measuring the Load Current
To apply the formula, you need to know the device’s average current draw. You can measure it with a multimeter in series with the device, or use a USB power meter for USB devices. For intermittent loads, calculate the average over a cycle. For example, if a sensor wakes up every 10 seconds, draws 50 mA for 1 second, and sleeps at 0.1 mA for 9 seconds, the average current is (50×1 + 0.1×9)/10 = 5.09 mA. If you have a 500 mAh battery, the theoretical runtime is 500/5.09 ≈ 98 hours, but with a 0.8 derating factor, about 78 hours.
Real-World Derating Factors
Several factors reduce actual capacity below the rated value:
- Discharge rate: Higher currents reduce usable capacity, especially for lead-acid and alkaline batteries.
- Temperature: Cold increases internal resistance, lowering capacity. Lithium-ion batteries lose about 20% capacity at 0°C, and lead-acid can lose 50% at -20°C.
- Age: Batteries lose capacity over time and with charge cycles. A lithium-ion battery typically retains 80% capacity after 500 full cycles.
- Voltage cutoff: Devices stop working before the battery is fully depleted. A device with a 3.0V cutoff may leave 10–20% of the battery’s energy unused.
- Conversion efficiency: If you use a boost converter (e.g., to get 5V from a 3.7V battery), efficiency is typically 85–95%.
For a conservative estimate, multiply the theoretical runtime by 0.7. For a best-case estimate, use 0.9.
Using a Battery Life Calculator or Spreadsheet
You can build a simple calculator in Excel. Assume battery capacity in mAh is in B1, load current in mA is in B2, and derating factor in B3. Then the formula in B4 is: =B1/B2*B3. For example, with B1=3000, B2=500, B3=0.85, the result is 5.1 hours. For a more accurate model, you can account for voltage and efficiency. If your battery is 3.7V and you’re powering a 5V device via a boost converter, the effective current drawn from the battery is higher. The formula becomes: =B1/(B2*B4/B5)*B3, where B4 is the device voltage and B5 is the battery voltage. For a 5V device drawing 1A, battery voltage 3.7V, and 90% converter efficiency, the battery current is 1A×5/3.7/0.9 ≈ 1.5A. So a 3000 mAh battery gives 3000/1500×0.85 = 1.7 hours.
Common Mistakes and Misconceptions
One common mistake is using the battery’s capacity rating without considering the device’s cutoff voltage. For example, a 12V lead-acid battery rated at 100 Ah may only deliver 50 Ah if the device stops working at 11V, because the battery’s voltage drops quickly under load. Another mistake is ignoring the difference between mAh and Wh (watt-hours). mAh is only useful if you know the voltage. To compare batteries of different voltages, use watt-hours: Wh = (mAh × V) / 1000. For example, a 2000 mAh battery at 3.7V has 7.4 Wh, while a 2000 mAh battery at 7.4V has 14.8 Wh. Always convert to Wh when comparing.
Battery Life for Specific Devices
- Smartphones: Typical battery 3000–5000 mAh, average discharge 200–500 mA, giving 6–20 hours of mixed use. Screen brightness and cellular signal are major factors.
- Laptops: Battery 40–100 Wh, system draw 10–30 W. Runtime = Wh / W × 0.8. A 50 Wh battery powering a 15 W laptop gives about 2.7 hours.
- IoT sensors: Sleep current is critical. A device that sleeps at 10 µA and wakes at 50 mA for 1 second every minute has an average current of about 0.84 mA, allowing a 1000 mAh battery to last over 1000 hours.
- Electric vehicles (simplified): Range = Battery capacity (kWh) / energy consumption (kWh per km). A 60 kWh battery with 15 kWh/100 km consumption gives 400 km range, but real-world factors like speed and climate reduce it by 20–30%.
Frequently Asked Questions
How do I calculate battery life if I know the wattage instead of current?
If you know the device’s power draw in watts (W) and the battery’s voltage (V), first convert to current: I = P / V. For example, a 5W device on a 3.7V battery draws 5/3.7 ≈ 1.35A (1350 mA). Then use the capacity in mAh. If the battery is 3000 mAh, theoretical runtime is 3000/1350 ≈ 2.2 hours, and with a 0.85 derating factor, about 1.9 hours.
Why does my battery seem to last less than the calculation says?
Most likely because the derating factor is too optimistic. Real-world conditions include voltage drop under load, the device’s cutoff voltage, temperature, and the battery’s internal resistance. Also, the rated capacity is often measured at a low discharge rate (e.g., 0.2C). If you draw a high current, the usable capacity drops. For a more accurate estimate, measure the actual current draw with a multimeter and use a derating factor of 0.7.
What is Peukert’s law and do I need to use it?
Peukert’s law states that a battery’s capacity decreases as the discharge rate increases. It’s expressed as T = C / (I^n), where n is the Peukert constant (typically 1.1–1.3 for lead-acid, close to 1 for lithium-ion). For lithium-ion, the effect is small, so you can ignore it for most consumer devices. For lead-acid batteries (e.g., in solar systems), it’s significant. If you’re using a lead-acid battery at a high discharge rate, multiply the theoretical runtime by a factor derived from the Peukert constant.
How do I calculate battery life for a device with variable power consumption?
Break the usage into states (active, idle, sleep) and calculate the average current over a cycle. For example, if a device is active 10% of the time at 200 mA and idle 90% at 20 mA, the average is 0.1×200 + 0.9×20 = 38 mA. Then use that average in the formula. For more complex patterns, you can use a spreadsheet to sum the mAh consumed per state and divide by the battery capacity.
Should I use mAh or Wh for battery life calculations?
Use Wh when comparing batteries of different voltages or when the device’s power is given in watts. For a single battery and a device with known current draw, mAh is fine. But always convert to Wh if you’re mixing voltages. For example, a 10,000 mAh power bank at 3.7V has 37 Wh, but it can only deliver 5V at 1A, which is 5W, so the runtime is 37 Wh / 5W × efficiency ≈ 6.6 hours, not 10 hours.
Safety and Accuracy Notes
When measuring current, always use the correct multimeter range and never exceed the meter’s fuse rating. For high-current devices, use a clamp meter. When calculating for safety-critical systems (e.g., medical devices), use a derating factor of 0.5 or lower and test the actual device. Battery capacity degrades with age, so recalculate periodically. For lithium-ion batteries, avoid deep discharges below 2.5V per cell, as this can damage the battery. Always follow the manufacturer’s specifications for charging and discharging.
Related
- Excel Merge Cells: How to Combine Cells in Excel
- DB10DL 10.8V Lithium Ion Micro Driver Drill Guide
- BigQuery SELECT from Multiple Tables: 4 Ways
Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.
More in How-to basics
- Split a Cell in Google Sheets: What Actually WorksIn Google Sheets, you cannot divide one ordinary cell into two independently editable cells with a dedicated split-cell…
- Excel Keyboard Shortcuts to Select Cells and RangesIn Excel for Microsoft 365 on Windows, use Ctrl+A to select the current data region, then press it…
- How to Embed Recorded Video in PowerPoint PresentationsTo embed a recorded video in PowerPoint, save the video file on your computer, open the slide where…
- Basic Excel Budget Template: Build a Monthly BudgetA basic Excel budget template needs four columns: category, planned amount, actual amount, and the difference. Add income…
- DAX: Create a Measure Based on a Column ValueYes. In DAX, a measure can return a result based on a column value: use CALCULATE to apply…
- Inventory Spreadsheet App: How to Choose and Use OneAn inventory spreadsheet app is a spreadsheet program used to record items, quantities, locations, and stock movements. Microsoft…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.