Battery Capacity Calculator

Convert between amp-hours, watt-hours and voltage, and estimate runtime under load.
Ah ↔ Wh
Runtime

Energy, Charge & Voltage

Wh = Ah × V  •  Ah = Wh / V  •  mAh = Ah × 1000
100Ah @ 12V
5Ah @ 3.7V (cell)
200Ah @ 48V
Ah
V
Enter values and press Calculate.

Backup Runtime

Runtime (h) = (Wh × DoD% × η) / Load (W)
1200Wh, 300W load
2400Wh, 150W load
Wh
W
%
%
Enter values and press Calculate.

Understanding Battery Capacity

Battery capacity is quoted two ways. Charge capacity (Ah or mAh) counts how much current the battery can deliver over time. Energy capacity (Wh or kWh) is what actually does work, and depends on voltage: Wh = Ah × V. Comparing batteries only by Ah is misleading unless they share the same voltage — a 100 Ah 12 V battery (1200 Wh) stores the same energy as a 25 Ah 48 V battery.

QuantityFormula
EnergyWh = Ah × V
ChargeAh = Wh / V
Milliamp-hoursmAh = Ah × 1000
Runtimet = (Wh × DoD × η) / Load

Usable energy is less than the nameplate figure: you rarely discharge 100% (a depth of discharge of 80–90% is typical for lithium, 50% for lead-acid), and an inverter or converter loses a few percent. The runtime tab applies both factors.

Real-World Applications & Examples

Worked examples

1. 100 Ah, 12 V battery. Wh=100×12=1200 Wh (1.2 kWh).
2. Li-ion cell. 5 Ah at 3.7 V: Wh=5×3.7=18.5 Wh.
3. Power bank. A "20000 mAh" bank at 3.7 V holds 20×3.7=74 Wh — not 20000 Wh, and less at 5 V output after conversion.
4. Ah from energy. A 5 kWh 48 V pack has Ah=5000/48=104 Ah.
5. Backup runtime. 1200 Wh, 300 W load, 80% DoD, 90% efficiency: t=1200×0.8×0.9/300=2.88 h.
6. Lead-acid vs lithium. A 100 Ah lead-acid battery at 50% DoD gives 600 Wh usable, while a 100 Ah lithium at 90% gives 1080 Wh — nearly double.

Frequently Asked Questions

How do I convert Ah to Wh?

Multiply amp-hours by the battery voltage: Wh = Ah × V. A 100 Ah battery at 12 V stores 1200 Wh (1.2 kWh).

How do I convert Wh to Ah?

Divide watt-hours by the voltage: Ah = Wh / V. A 5000 Wh pack at 48 V has about 104 Ah of charge capacity.

How do I convert mAh to Wh?

First convert mAh to Ah by dividing by 1000, then multiply by voltage: Wh = (mAh/1000) × V. A 3000 mAh cell at 3.7 V is 11.1 Wh.

Why can't I compare batteries by Ah alone?

Because energy depends on voltage. A 100 Ah 12 V battery and a 100 Ah 24 V battery hold very different energy (1.2 kWh vs 2.4 kWh). Compare in Wh or kWh for a fair comparison.

What is depth of discharge (DoD)?

DoD is the percentage of the battery you actually use before recharging. Lithium batteries tolerate 80–90% DoD, while lead-acid is usually limited to about 50% to preserve cycle life.

How do I estimate battery runtime?

Runtime = (Wh × DoD × efficiency) / load power. For a 1200 Wh battery, 80% DoD, 90% inverter efficiency and a 300 W load, runtime is about 2.9 hours.

Does a power bank's mAh rating equal its output?

No. The mAh is measured at the cell voltage (about 3.7 V). After boosting to 5 V USB and conversion losses, the usable output is roughly 60–70% of the nominal Wh.

What voltage should I use for the conversion?

Use the nominal voltage: about 3.6–3.7 V for a lithium cell, 3.2 V for LiFePO4, 12/24/48 V for packs. Using the fully-charged voltage overstates the energy slightly.

How does temperature affect capacity?

Cold reduces the deliverable capacity (a battery may give only 70–80% of its rating near freezing), while high temperatures raise capacity slightly but accelerate ageing. Ratings are usually given at 25 °C.

What is the C-rating and does it change capacity?

The C-rate sets how fast you charge or discharge. Discharging faster than the rated rate can reduce the effective Ah delivered (Peukert effect), especially in lead-acid batteries.

How many cells make a given pack voltage?

Divide the pack voltage by the cell voltage. A 48 V lithium pack uses about 13 series cells (13×3.6 V≈48 V); paralleling cells increases the Ah.

What is the difference between nominal and usable capacity?

Nominal is the nameplate rating at full discharge. Usable is what you can safely draw — the nominal energy times the depth of discharge — and is the figure to use for real runtime and range.

Related Calculators

EV RangeC-RateBattery DischargeBattery Pack DesignAll Calculators