# Battery Capacity Calculator

C = I·t both ways — runtime from capacity or capacity from runtime — with optional voltage for Wh and W.

> Canonical page: https://elysiatools.com/en/tools/battery-capacity-calculator

- **Category:** Science & Education

- **Keywords:** battery capacity, battery runtime, ampere hours, mah to hours, battery life calculator, milliamp hours

## Overview

The Battery Capacity Calculator solves the fundamental battery relationship C = I·t in both directions, computing operating runtime from known capacity and load or calculating required capacity to sustain a specific runtime. It supports standard capacity units (mAh, Ah), current draws (mA, A), and timeframes (minutes, hours, days), with optional nominal voltage input to compute total energy in watt-hours (Wh) and average power draw in watts (W).

## Inputs

- **Solve for** (select)
- **Battery capacity C** (number): e.g. 4500
- **Capacity unit** (select)
- **Load current I** (number): e.g. 300
- **Current unit** (select)
- **Runtime t** (number): e.g. 48
- **Time unit** (select)
- **Nominal voltage (V, optional)** (number): e.g. 3.85

## When to use

- Estimating how long a portable device or battery pack will run under a known average current draw.
- Sizing the required battery capacity in mAh or Ah for an IoT device, sensor, or microcontroller project targeting a specific operating lifespan.
- Converting battery capacity and nominal voltage into watt-hours (Wh) and average power consumption in watts (W).

## How it works

- Select the calculation mode to solve either for runtime (t = C / I) or required battery capacity (C = I · t).
- Enter the known parameters including capacity, current draw, or target runtime along with your preferred units (mAh/Ah, mA/A, min/h/d).
- Optionally enter the battery's nominal voltage to automatically calculate total energy in watt-hours (Wh) and power draw in watts (W).
- Receive instant, formatted results detailing runtime, required capacity, and electrical energy metrics.

## Use cases

- Electronics hobbyists sizing lithium-ion or LiPo batteries for DIY Arduino and ESP32 projects.
- Embedded hardware engineers calculating battery life requirements for remote sensors and IoT nodes.
- Field technicians assessing the expected runtime of portable instruments and backup power packs.

## Frequently asked questions

### What formula does this calculator use?

It uses the linear battery equation C = I · t, where C is capacity, I is average current, and t is time, along with P = V · I and E = V · C when nominal voltage is provided.

### How do I convert mAh to watt-hours (Wh)?

Multiply the capacity in milliampere-hours by the nominal voltage in volts and divide by 1,000: Wh = (mAh × V) / 1000.

### Does this tool account for Peukert's law or discharge efficiency?

No, this calculator provides theoretical baseline values based on ideal linear discharge without Peukert derating or ambient temperature losses.

### Which units are supported for capacity and current?

You can select milliampere-hours (mAh) or ampere-hours (Ah) for capacity, and milliamperes (mA) or amperes (A) for current.

### Is entering nominal voltage required?

No, nominal voltage is optional. If left blank, the tool calculates runtime or capacity without watt-hour and watt energy metrics.

## Related tools

- [Arrhenius Equation Calculator](https://elysiatools.com/en/tools/arrhenius-equation-calculator): k = A·e^(−Ea/RT) solved for k, A, or Ea (two-point form), with Ea in kJ/mol and kcal/mol.
- [Beer-Lambert Law Calculator](https://elysiatools.com/en/tools/beer-lambert-law-calculator): A = ε·c·l both ways, with T = 10⁻ᴬ, %T, unit selectors, and the 0.05–1.0 working-range check.
- [Boiling Point Elevation](https://elysiatools.com/en/tools/boiling-point-elevation): ΔT_b = K_b·m·i from a solvent preset table with van't Hoff factor support and custom solvents.
- [Parallel-Plate Capacitance Calculator](https://elysiatools.com/en/tools/capacitance-calculator-parallel-plate): C = εᵣ·ε₀·A/d with area or square-side input, dielectric permittivity, and auto-scaled output from fF to µF.
- [Conductivity Cell Constant Calculator](https://elysiatools.com/en/tools/conductivity-cell-constant): K = κ/G and κ = K·G with unit selectors for κ, G and K — calibrate the cell or convert a reading into conductivity.
- [Mass-Energy Equivalence Calculator](https://elysiatools.com/en/tools/energy-mass-conversion): E = mc² both ways: mass to rest energy (J, kWh, eV-scale, TNT) and energy to mass (kg, g, u, electron masses).
- [Capacitor Energy Calculator](https://elysiatools.com/en/tools/energy-stored-capacitor): U = ½·C·V² with capacitance and voltage unit selectors, the stored charge Q = C·V, and auto-scaled energy output.
- [Faraday Electrolysis Calculator](https://elysiatools.com/en/tools/faraday-electrolysis): m = M·I·t/(n·F) with unit selectors for current and time: charge passed, moles of electrons, and the mass deposited.

## Samples

- [Web Image Processing Python Samples](https://elysiatools.com/en/samples/web-image-processing-python): Web Python image processing examples using PIL/Pillow including reading, saving, resizing, and format conversion
- [Android Image Processing Java Samples](https://elysiatools.com/en/samples/android-image-processing-java): Android Java image processing examples including reading/saving images, scaling, and format conversion
- [Android Image Processing Kotlin Samples](https://elysiatools.com/en/samples/android-image-processing-kotlin): Android Kotlin image processing examples including reading/saving images, scaling, and format conversion
- [Web Image Processing Rust Samples](https://elysiatools.com/en/samples/web-image-processing-rust): Web Rust image processing examples including image read/save, scaling, and format conversion
