Skip to content
xmoo.app

Tool · Electrical

Battery Runtime Calculator

How long will the power bank run the fan, the leisure battery the laptop? Or the other way round: how big does the battery need to be for a given runtime? With losses, depth of discharge and the full working.

What do you want to know?
Preset for the assumptions

Needed for mAh and Ah, irrelevant for Wh.

100 if the load is connected straight to the battery.

Such as an inverter’s idle draw.

Runtime
Usable energy

        

Depth of discharge, efficiency and self-consumption are assumptions, not measurements. Where the presets come from is explained further down.

What it is for

mAh or Wh?

Batteries carry two kinds of rating. mAh and Ah describe an amount of charge: how long a given current can flow. Wh describes energy. The two are linked by the voltage, because one watt is one volt times one ampere:

Wh = Ah × V Wh = mAh × V ÷ 1,000

For power banks, the mAh figure refers to the nominal voltage of the cells inside, 3.7 V for most of them. A 10,000 mAh power bank therefore stores about 10,000 × 3.7 ÷ 1,000 = 37 Wh. At the output it converts the voltage, and energy is lost in the process – it never delivers the full capacity printed on it.

That is why you always compare batteries with different voltages in Wh. 100 Ah on a 12.8 V battery is 1,280 Wh – a completely different order of magnitude from 100 Ah at 3.7 V, if such a thing existed.

How the tool calculates

  1. Energy: E = capacity × nominal voltage (directly if given in Wh)
  2. Usable: E × depth of discharge
  3. What the battery has to supply: load ÷ efficiency + self-consumption
  4. Runtime = usable energy ÷ that power

The other way round, it works back from the required runtime to the energy needed and – with the nominal voltage – to Ah and mAh.

The assumptions and where the presets come from

Three values in the tool are assumptions. They depend on the battery, the device and how gently you want to treat the battery. The presets set starting values based on manufacturers’ figures – change them if you know better for your device.

Worked examples

Power bank running a USB fan

Power bank 10,000 mAh, 3.7 V, a fan drawing 5 W (example value), preset “Power bank” – this is what the calculator opens with:

  1. Energy: 10,000 mAh × 3.7 V ÷ 1,000 = 37 Wh
  2. The power bank has to draw 5 W ÷ 0.85 ≈ 5.88 W from its cells.
  3. Runtime: 37 Wh ÷ 5.88 W ≈ 6.3 hours (6 h 17 min)

LiFePO4 battery with inverter running a laptop

LiFePO4 12.8 V with 100 Ah (1,280 Wh), a laptop charger drawing 60 W (example value) through an inverter, preset “LiFePO4”:

  1. Usable: 1,280 Wh × 80 % = 1,024 Wh
  2. The battery supplies 60 W ÷ 0.9 + 6 W ≈ 72.67 W.
  3. Runtime: 1,024 Wh ÷ 72.67 W ≈ 14.1 hours

The other way round: for 10 hours with the same assumptions you need 72.67 W × 10 h ÷ 0.8 ≈ 908 Wh, so about 71 Ah at 12.8 V.

LiFePO4 12.8 V × 100 Ah = 1,280 Wh usable 80 % (assumed) 1,024 Wh Inverter η 90 % (assumed) + 6 W idle Laptop 60 W example The battery must supply: 60 W ÷ 0.9 + 6 W ≈ 72.67 W Runtime: 1,024 Wh ÷ 72.67 W ≈ 14.1 h At 0 °C Victron gives 80 Ah instead of 100 Ah – then about 11.3 h.
From the printed capacity to the runtime: depth of discharge, converter losses and idle draw all cost energy along the way. Values from the second example. Own illustration.

Lead-acid or LiFePO4?

The two battery types cope with deep discharge very differently. Victron’s figures show the difference: an AGM battery manages 400 cycles at 80 % discharge, a LiFePO4 battery 2,500. With lead-acid it therefore makes sense to count on less usable capacity if the battery is to last.

There is more with lead-acid: the nominal capacity applies to a discharge over 20 hours. If the battery is drained in one hour, an AGM battery delivers only 65 % of it according to Victron – and at constant power, such as on an inverter, the usable capacity drops even faster. For large loads on lead-acid the tool therefore comes out too high.

Cold

Batteries deliver less in the cold. Victron rates its 100 Ah LiFePO4 battery at 100 Ah at 25 °C, 80 Ah at 0 °C and only 50 Ah at −20 °C. In the example above, 14.1 hours would become about 11.3 at 0 °C. According to the datasheet these batteries may only be charged between +5 °C and +50 °C. If you want to allow for cold, enter a correspondingly lower capacity.

What to look for when buying

Limits of this tool

Privacy: the calculator runs entirely in your browser. What you enter is not sent to xmoo.app or anyone else.

Sources

Page last updated: 31 October 2026