# Battery Capacity (mAh) Calculator

URL: https://hifreetools.com/science/battery-capacity-calculator

> This battery capacity calculator computes runtime, energy content, or required capacity for any battery-powered device. Enter your battery's mAh rating, nominal voltage, and average current draw to instantly get operating time and watt-hours.

## Quick answer

Battery runtime is calculated by dividing battery capacity in milliamp-hours (mAh) by the device's average current draw in milliamps (mA): Runtime (h) = Capacity (mAh) / Current (mA). Energy content in watt-hours equals capacity times voltage divided by 1,000: Energy (Wh) = mAh × V / 1,000. To find the capacity needed for a target runtime, multiply current draw by desired hours: mAh = Current (mA) × Time (h). Typical consumer batteries range from 50 mAh for earbuds to 100,000 mAh for large power banks.

## Formula

- Runtime (h) = Capacity (mAh) ÷ Current (mA) × Efficiency
- Required capacity (mAh) = Current (mA) × Runtime (h) ÷ Efficiency
- Energy (Wh) = mAh × V ÷ 1,000

## Inputs

- Battery capacity (mAh) (0 to 1000000000); default 3500
- Nominal voltage (V) (0 to 1000); default 3.7
- Average current draw (mA) (0 to 10000000); default 150
- Efficiency factor (%) (0 to 100); default 85
- Target runtime (hours) (0 to 1000000); default 8
- Average current draw (mA) (0 to 10000000); default 25
- Efficiency factor (%) (0 to 100); default 80

## Worked examples (computed by the page's own function)

- Battery capacity (mAh) = 3500, Nominal voltage (V) = 3.7, Average current draw (mA) = 150, Efficiency factor (%) = 100 → Adjusted runtime, with efficiency (hours) = 23.33, Theoretical runtime (hours) = 23.33, Energy (Wh) = 12.95  (3500 mAh ÷ 150 mA × 100% = 23.333333 h)
- Battery capacity (mAh) = 3500, Nominal voltage (V) = 3.7, Average current draw (mA) = 150, Efficiency factor (%) = 85 → Adjusted runtime, with efficiency (hours) = 19.83, Theoretical runtime (hours) = 23.33, Energy (Wh) = 12.95  (3500 mAh ÷ 150 mA × 85% = 19.833333 h)
- Target runtime (hours) = 8, Nominal voltage (V) = 3.3, Average current draw (mA) = 25, Efficiency factor (%) = 80 → Required capacity, with efficiency margin (mAh) = 250, Theoretical capacity needed (mAh) = 200, Energy (Wh) = 0.825  (25 mA × 8 h ÷ 80% = 250 mAh)

## Verification

Checked against 17 reference cases (expected values computed independently). Reviewed 2026-10-27. Latest change 2026-10-28: Moved to the schema renderer with a sourced ledger; runtime now reads in decimal hours (23.33 h) instead of h + min, energy shows up to 4 decimals, and a zero current, voltage or efficiency is a field error.

## FAQ

**What does mAh mean on a battery?**
mAh stands for milliamp-hours. It measures how much charge a battery can store and deliver over time. A 3,000 mAh battery can theoretically supply 3,000 mA (3 A) for one hour, or 300 mA for ten hours. The higher the mAh rating, the more total energy the battery holds, assuming the same voltage.

**How do I convert mAh to watt-hours (Wh)?**
Multiply the capacity in mAh by the nominal battery voltage in volts, then divide by 1,000: Wh = mAh × V / 1,000. For example, a 5,000 mAh battery at 3.7 V holds 5,000 × 3.7 / 1,000 = 18.5 Wh. Watt-hours are a better comparison metric when batteries have different voltages.

**Why does my device not last as long as the calculator predicts?**
Real runtime is shorter than the theoretical value for several reasons: battery capacity degrades with age and charge cycles, peak loads (screen, radio, motor) spike well above the average current, temperature reduces usable capacity, and the circuit itself has conversion losses of 10–30%. Apply an efficiency factor of 0.7 to 0.85 for a more realistic estimate.

**What voltage should I use — nominal, maximum, or cut-off?**
Use the nominal voltage for runtime and energy calculations. Nominal voltage is the stable mid-discharge voltage: 3.7 V for lithium-ion, 3.2 V for LiFePO4, 1.2 V for NiMH, and 1.5 V for alkaline. The maximum (fully charged) voltage is higher (e.g. 4.2 V for Li-ion) and the cut-off voltage is lower; the nominal value best represents average energy delivery.

**How do I choose the right battery capacity for my project?**
Calculate the required capacity using: mAh = Current Draw (mA) × Target Runtime (h). Then divide by an efficiency factor (typically 0.8) to add a safety margin. For example, a device drawing 50 mA for 24 hours needs 50 × 24 = 1,200 mAh of theoretical capacity, and 1,200 / 0.8 = 1,500 mAh of rated capacity to meet the target reliably.

**Can I add battery cells in series or parallel to increase capacity?**
Connecting cells in parallel doubles capacity (mAh) while keeping voltage the same — two 2,000 mAh cells in parallel give 4,000 mAh at the same voltage. Connecting cells in series doubles voltage while keeping capacity the same — two 2,000 mAh cells in series give 2,000 mAh at twice the voltage. Most multi-cell packs combine both configurations for higher voltage and capacity.


## Sources

- [Battery University — BU-503: Determining Power Delivery by the Ragone Plot](https://batteryuniversity.com/article/bu-503-how-to-calculate-battery-runtime)
- [Battery University — Learn About Batteries](https://batteryuniversity.com/articles)
- [Wikipedia — Ampere hour](https://en.wikipedia.org/wiki/Ampere-hour)
- [Wikipedia — Lithium-ion battery (nominal cell voltage)](https://en.wikipedia.org/wiki/Lithium-ion_battery)

Runs in the browser; nothing is uploaded. Cite as: HIFreeTools, "Battery Capacity (mAh) Calculator", https://hifreetools.com/science/battery-capacity-calculator
