The basic battery life formula is runtime in hours = battery capacity in watt-hours ÷ device power draw in watts. If you only know capacity in amp-hours and voltage, first multiply the two: watt-hours = amp-hours × volts. Then divide by the device's average load in watts. That gives a realistic runtime estimate for phones, laptops, cameras, solar setups, UPS units and smart home sensors. The result is an estimate, not a guarantee, because real devices rarely draw a constant load, batteries lose capacity as they age, and temperature changes the numbers. But if you use the right units and a sensible average load, the formula gets you close enough to plan power for most household electronics.

What You'll Need

  • The battery's rated capacity (in Wh, or in Ah and the nominal voltage)
  • The device's average power draw in watts (from a spec sheet, a label, or a plug-in power meter)
  • The battery's usable depth of discharge, if it is a rechargeable type where you should not drain it fully
  • A calculator, or a notes app for the arithmetic
  • Optionally a plug-in power meter if you want a measured load rather than a rated one

Step-by-Step

  1. Find the battery capacity on the label. Look on the battery, its spec sheet, or the device's manual. Usable types of figures are watt-hours (Wh) or milliamp-hours (mAh) plus a nominal voltage. For example, a power bank marked 20,000 mAh at 3.7 V holds 20 × 3.7 = 74 Wh. A laptop battery often states Wh directly. If you only have mAh, divide by 1,000 to get Ah first.
  2. Convert to watt-hours if needed. Use Wh = Ah × V. This step matters because amp-hour ratings are only comparable at the same voltage. A 12 V 100 Ah battery stores 1,200 Wh, but a 5 V 20,000 mAh bank stores only 74 Wh, even though the second number looks bigger.
  3. Find the device's average power draw. Check the device label or manual for watts (W). If only current is listed, use W = A × V. For devices with a variable load, such as a laptop or Wi-Fi router, use an average rather than the peak. A plug-in power meter that sits between the device and the wall is the most reliable way to get that average: leave the device running normally for a typical hour and read the accumulated watt-hours.
  4. Divide capacity by load. Runtime in hours = Wh ÷ W. A 74 Wh power bank feeding a device that averages 10 W gives about 7.4 hours. A 1,200 Wh battery on a 60 W load gives about 20 hours. Keep the units straight and the arithmetic is trivial.
  5. Apply an efficiency derate. Conversions lose energy. Inverters, voltage regulators and charging circuits typically waste some of what passes through them, and the exact figure varies by product, so read the maker's spec sheet rather than assuming a number. As a rule of thumb, treat the calculated runtime as an upper bound and expect less in practice. If the manufacturer publishes an efficiency figure, multiply watt-hours by it before dividing.
  6. Apply the usable capacity limit for rechargeable chemistries. Many rechargeable chemistries should not be run to zero if you want them to last. If the manufacturer specifies a recommended depth of discharge, multiply usable watt-hours by that fraction first. For example, if only 80 percent of capacity is usable, use 0.8 × Wh before dividing by the load.
  7. Adjust for temperature and age. Cold reduces available capacity, and older cells hold less charge than their label claims. If the battery is more than a couple of years old or will be used outdoors in winter, treat your result as optimistic and plan a margin.
  8. Sanity-check the number. Compare against the device's own runtime estimate if it shows one, or against how long the battery has actually lasted in the past. If your calculated figure is wildly off, the likely culprits are a wrong unit, a peak load used as average, or a battery rating quoted at a different voltage.

Common Mistakes

The most frequent error is mixing amp-hours with watt-hours. Amp-hours say nothing about energy unless you know the voltage, so comparing mAh figures between batteries at different voltages is misleading and will make a small pack look larger than a big one.

Second is using the rated load instead of the average. A device's label often quotes maximum draw, which can be several times its idle consumption. Use an average over a realistic period, or your runtime estimate will be far too short.

Third is forgetting conversion losses. Dividing raw watt-hours by load watts ignores the inverter or regulator sitting in between, so the predicted runtime comes out longer than reality. Fourth, people drain the calculated number to zero when the manufacturer recommends a partial discharge, which shortens battery life. Finally, rounding is easy to get wrong: a single misplaced decimal in the voltage turns a seven-hour estimate into seventy.

Tips

  • Write the calculation down as a formula with units attached, so a unit error is obvious before you trust the answer.
  • Measure average draw with a plug-in meter over one or more complete use cycles, including standby periods.
  • For devices that sleep most of the time, such as smart sensors, average the draw across a day rather than measuring active use alone.
  • Keep a small margin, such as ten to twenty percent, between your calculated runtime and what you actually need.
  • Re-run the calculation when a battery ages or you change the load, because both move the answer.

Troubleshooting

The calculated runtime is far longer than what you observe. Check for conversion losses, a higher real average load than you assumed, an aged battery, or an ambient temperature below the battery's comfort range. Re-measure the load with a meter.

The answer seems absurdly small. You probably entered milliamp-hours instead of amp-hours, or used a voltage that does not match the battery. Recheck the units.

Two batteries with similar labels behave very differently. Compare them in watt-hours, not amp-hours, and check their nominal voltages. Also check whether the listed figure is typical or maximum capacity.

Your device shuts down before the predicted time. Some devices cut off at a higher voltage than the battery reaches when nearly empty, so the last part of the capacity is unusable. Treat that cutoff as another derate.

Frequently Asked Questions

What is the battery life formula in one line?

Runtime (hours) = battery watt-hours ÷ device watts, where watt-hours = amp-hours × volts.

Why can't I compare batteries by mAh alone?

Because mAh measures charge, not energy. A pack at a higher voltage stores more energy per mAh, so convert to watt-hours first.

Does the formula work for phone batteries?

Yes, but phone labels often quote mAh at a nominal voltage, so convert to watt-hours. Screen brightness, signal strength and app use change the average draw, so treat the result as a rough guide.

What is a depth of discharge derate?

It is the fraction of a rechargeable battery's capacity you can safely use. Multiply watt-hours by that fraction before dividing by the load, using the figure the manufacturer recommends.

How accurate is the formula in practice?

It is an estimate. It becomes more accurate the better you know the average load, the conversion efficiency and the battery's real condition. Expect real runtime to be shorter than a raw calculation.

Can I use it for a solar or UPS setup?

Yes, in the same way, as long as you use the usable capacity the manufacturer specifies and account for inverter efficiency. For mains wiring and installation, use a licensed electrician.