sodcalculator

08 Everyday Math

How to Calculate Run Time

Tag 08-3212 · Updated · Standard formula, shown below

The calculator on this page is switched off while it is checked. The formula is below, and the worked example shows how to do the sum by hand.

This guide explains how to calculate the run time (duration) of a device or process, whether you’re estimating how long a battery will last, how long a pump will take to fill a tank, or how long a task will take to complete. You’ll learn the basic formula, step-by-step methods, and common pitfalls to avoid.

Formula

The fundamental formula for run time is:

Run Time = Total Energy / Power Consumption

Where:

  • Run Time – the duration the device operates (hours, minutes, seconds)
  • Total Energy – the energy available (watt-hours, joules, etc.)
  • Power Consumption – the rate at which energy is used (watts, kilowatts)

For batteries, energy is often given in amp-hours (Ah) and voltage (V). To convert to watt-hours: Energy (Wh) = Voltage (V) × Amp-hours (Ah). Then divide by the power draw in watts.

Worked Example

Using the calculator defaults: a device draws 100 watts, and the battery stores 500 watt-hours.

  1. Identify power: 100 W
  2. Identify energy: 500 Wh
  3. Apply formula: 500 Wh ÷ 100 W = 5 hours

The result is 5.00 hours, which matches the calculator output.

When to Use This Calculation

Run time calculations are useful in many everyday situations:

  • Estimating how long a laptop, phone, or power station will last on battery.
  • Planning how long a generator can run on a full tank of fuel (if you know the fuel consumption rate).
  • Determining how long a pump or heater needs to run to achieve a certain effect.
  • Scheduling tasks based on processing speed (e.g., how long a file transfer will take given the data size and transfer rate).

The same principle applies whenever you have a total quantity and a rate of consumption.

How to Read the Result

The result is the theoretical maximum time the device can operate under ideal conditions. Real-world factors like efficiency losses, temperature, and aging components will reduce this. For batteries, the actual run time is often 80-90% of the theoretical value. For example, if the calculation gives 5 hours, expect around 4 to 4.5 hours in practice.

Common Mistakes

  • Unit mismatches: Mixing watts with kilowatts, or amp-hours with watt-hours, without converting. Always ensure both energy and power are in compatible units (e.g., Wh and W, or kWh and kW).
  • Ignoring voltage: For batteries, using amp-hours directly as energy is wrong. You must multiply by voltage to get watt-hours.
  • Rounding too early: Rounding intermediate values can lead to significant errors, especially when multiplying or dividing.
  • Assuming 100% efficiency: Real devices have losses. Inverters, motors, and batteries all have efficiency ratings (usually 80-95%).
  • Forgetting that power draw varies: Many devices don’t use constant power. A laptop under load draws more than when idle. Use the average or worst-case power for your estimate.

Tips

  • Always convert to base units (watts, watt-hours) before calculating.
  • For batteries, check the label for voltage and amp-hours. Multiply them to get watt-hours.
  • If the device has multiple power modes, calculate run time for each mode separately.
  • For a conservative estimate, use a power draw that is 10-20% higher than the rated value.
  • When working with very small or very large numbers, use scientific notation or a calculator to avoid errors.
  • Double-check your units: if you divide Wh by W, you get hours. If you divide kWh by kW, you also get hours.

Troubleshooting

Problem: The calculated run time seems too long or too short.

Check your inputs. Is the power in watts? Is the energy in watt-hours? If you used amp-hours, did you multiply by voltage? Also, consider that the device may not actually draw the rated power continuously.

Problem: The result is negative.

This happens if you enter a negative power or energy. Both should be positive. If your calculator allows negative inputs, ensure you’re entering positive numbers.

Problem: I don’t know the power consumption of my device.

Look for a label on the device or its power adapter. It often lists watts (W) or amps (A) and volts (V). If only amps and volts are given, multiply them to get watts. If you can’t find it, use a plug-in power meter to measure it.

Problem: The battery capacity is in mAh, not Ah.

Convert milliampere-hours to ampere-hours by dividing by 1000. For example, 3000 mAh = 3 Ah.

Problem: The device uses AC power but the battery is DC.

If you’re using an inverter, factor in its efficiency. Divide the DC power by the inverter efficiency (e.g., 0.9 for 90%) to get the AC power draw on the battery.

Frequently Asked Questions

Q: How do I calculate run time for a battery with amp-hours and voltage?

Multiply voltage by amp-hours to get watt-hours, then divide by the power draw in watts.

Q: What is the difference between run time and battery life?

Run time usually refers to a specific session under a given load, while battery life can refer to the total lifespan of the battery (number of charge/discharge cycles). This guide covers run time.

Q: Does temperature affect run time?

Yes. Cold temperatures reduce battery capacity, and high temperatures can increase internal resistance. The calculation assumes standard room temperature.

Q: How do I calculate run time for a fuel-powered generator?

You need the fuel tank capacity (in gallons or liters) and the fuel consumption rate (in gallons per hour or liters per hour). Divide the tank capacity by the consumption rate.

Q: Can I use this formula for non-electrical devices?

Yes, as long as you have a total quantity and a rate. For example, if a printer can print 20 pages per minute and you have 100 pages, run time = 100 / 20 = 5 minutes.

Q: Why does my actual run time differ from the calculated value?

Real-world factors like efficiency losses, power fluctuations, and aging components reduce the actual run time. Always add a safety margin to your estimate.

Related

Formula used
in p | Power (watts) | W | 100 | 1 | 10000
in e | Energy capacity (watt-hours) | Wh | 500 | 1 | 100000
out h | Run time | hours | e / p | 2

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More in this bed

The whole Everyday Math bed →