EngineerPlay

Battery capacity, energy and runtime formulas

A battery's energy is its voltage times its capacity, E = V × Q: 12 V and 100 Ah store 1,200 Wh. It runs a 300 W load for 1,200 / 300 = 4 hours. Cells in series add their voltages; strings in parallel add their capacities.

The formulas

FormulaWhat it givesSymbols
E = V × QEnergy storedQ = the capacity in Ah (1,000 mAh = 1 Ah) gives E in Wh; 1,000 Wh = 1 kWh
t = Q ÷ IRuntime from a currentQ and I in matching units: Ah and A, or mAh and mA, give t in hours
t = E ÷ PRuntime from a powerE in Wh, P in W; t in hours
V = s × V_cellCells in series: the voltages = the cells in a row; a row has one cell's capacity
Q = p × Q_cellStrings in parallel: the capacityp = the strings side by side; they share one voltage
s = V ÷ V_cell, p = Q ÷ Q_cellCells for a target packV and Q = what the pack must give; V_cell and Q_cell = one cell (3.6-3.7 V Li-ion, 3.2 V LiFePO4, 2 V lead-acid)
n = s × pCells in the packs cells in each of p strings
I = C_r × Q ÷ 1 hCurrent at a C-rateC_r = the C-rate (0.5 for 0.5C); 1C fills or empties the battery in one hour
t = Q ÷ I ÷ ηCharge timeη = the charge efficiency as a fraction (85% = 0.85): only that share of the charge is stored
V_term = V_oc − I × rTerminal voltage under loadV_oc = the voltage with no current, r = the internal resistance in Ω, I in A
r = (V_oc − V_term) ÷ IInternal resistance from two readingsV_oc and V_term read with no load and under the current I
E_use = E × DoDUsable energy at a depth of dischargeDoD as a fraction: about 0.5 for lead-acid, 0.8-0.9 for lithium
t = E_use × η ÷ PRuntime through an inverterη = the inverter's efficiency as a fraction; E_use = V × Q × DoD in Wh
e = V × Q ÷ mEnergy per kilogramm in kg gives e in Wh/kg: about 30-40 lead-acid, 90-160 LiFePO4, 150-250 Li-ion
E_b = E × (x₂ − x₁)Energy put into a batteryx₁ and x₂ = the charge levels before and after, as fractions (20% = 0.2)
E_in = E_b ÷ ηEnergy taken from the socketη = the charger's efficiency as a fraction
c = E_in × pCost of a chargep = the price per kWh, E_in in kWh

Worked example

This example is made by the same code as the practice questions. Open the working to see every step.

A pack with the voltage V and the capacity Q is to be built from cells like the one shown. How many cells does it need in all?

One cell, and the pack to be built from such cellsLabels shown, in drawing order: −, +, 3.6 V, ?, V_cell = 3.6 V, Q_cell = 3 Ah, V = 50.4 V, Q = 15 Ah.−+3.6 V?V_cell = 3.6 VQ_cell = 3 AhV = 50.4 VQ = 15 Ah
Show the working
  1. Write down what is given: V = 50.4 V, Q = 15 Ah, V_cell = 3.6 V, Q_cell = 3 Ah.
  2. Cells in a row set the voltage and strings side by side set the capacity: s = V ÷ V_cell, p = Q ÷ Q_cell.
  3. The cells in a row and the strings side by side: s = 50.4 V ÷ 3.6 V = 14, p = 15 Ah ÷ 3 Ah = 5.
  4. Work it out: 14 × 5 = 70.
  5. Check: the cells in a row times the strings side by side counts every cell. Answer: 70 cells.
Why not the others?
  • 5 cells Counts only the strings side by side; each string needs enough cells in a row for the voltage.
  • 14 cells Counts only the cells in one row; the capacity needs more such strings side by side.
  • 19 cells Adds the cells in a row and the strings; every string has its own row of cells, so multiply.

Remember: Cells in a row s = V ÷ V_cell, strings side by side p = Q ÷ Q_cell; the pack has s × p cells. Formula sheet

Common mistakes

These are the wrong answers the practice questions offer, and the slip that leads to each.

Questions

What is the formula for energy stored?

E = V × Q. Symbols: Q = the capacity in Ah (1,000 mAh = 1 Ah) gives E in Wh; 1,000 Wh = 1 kWh.

What is the formula for runtime from a current?

t = Q ÷ I. Symbols: Q and I in matching units: Ah and A, or mAh and mA, give t in hours.

What is the formula for runtime from a power?

t = E ÷ P. Symbols: E in Wh, P in W; t in hours.