# Battery capacity calculator: theoretical mAh/g, C-rate and energy density

> Theoretical specific capacity Q = nF/(3.6M) in mAh/g for LiFePO₄, NMC, graphite, Si and more, C-rate to current, and energy density in Wh/kg. Free.

URL: https://www.labcanvas.com/tools/battery-capacity-calculator

The theoretical specific capacity of an electrode material is Q = n·F/(3.6·M) mAh/g: n electrons (Li⁺) per formula unit, F = 96 485 C/mol, M the molar mass and 3.6 coulombs per mAh. For LiFePO₄ (n = 1, M = 157.75 g/mol) that is 169.9 mAh/g; graphite to LiC₆ gives 371.9 mAh/g per gram of carbon, and silicon to Li₁₅Si₄ 3579 mAh/g. The current at a C-rate is the rate times the capacity (10 mg of LiFePO₄ at 0.5 C: 0.85 mA for 2 h), the capacity you measure is current × time, and the specific energy is the specific capacity times the average voltage: 157.25 mAh/g × 3.4 V = 534.7 Wh/kg of active material.

## Quick answer

- **What it does:** Calculates the theoretical specific capacity of an electrode material from its formula, the current for a C-rate, the capacity from the charge passed, and the specific energy and energy density.
- **Formula:** Q = n·F/(3.6·M) mAh/g;  I = C-rate × capacity;  Q = I·t;  E (Wh/kg) = Q (mAh/g) × V_avg
- **Example:** LiFePO₄: Q = 1 × 96485.33/(3.6 × 157.755) = 169.9 mAh/g; 10 mg at 0.5 C draws 0.8495 mA for 2 h; 0.85 mA for 1.85 h is 1.5725 mAh = 157.25 mAh/g (92.56 % of theoretical), and × 3.4 V = 534.7 Wh/kg of LiFePO₄.

Free, in the browser, no account needed. Updated 2026-11-23.

## Features

- Theoretical specific capacity Q = n·F/(3.6·M) for LiCoO₂, LiFePO₄, NMC811, LiMn₂O₄, graphite, Si, Li₄Ti₅O₁₂, Li metal and S, or any formula with its n (molar mass from the CIAAW 2021 atomic weights)
- C-rate ↔ current from the theoretical capacity, a specific capacity or a capacity in mAh, with the time and the specific current in mA/g
- Practical capacity from a constant current × time or from the charge passed, in mAh and mAh/g, and its share of the theoretical
- Specific energy (Wh/kg) and energy density (Wh/L) from the specific capacity, the average voltage and the density, with the mass basis stated
- Faraday constant from CODATA 2018 (e·N_A); results as CSV and a methods sentence; nothing is uploaded

## How to use it

1. **Choose what to calculate**: Theoretical capacity, C-rate and current, capacity from the charge passed, or energy density.
2. **Pick the material**: Choose it from the list or type its formula and the electrons per formula unit; enter the active mass for currents and mAh/g.
3. **Enter the numbers**: The C-rate or the current; the current and time (or the charge) of a discharge; or the specific capacity and the average voltage.
4. **Read and copy**: Read the result with the formula it came from, and copy the methods sentence or the CSV.

## At a glance

| | |
| --- | --- |
| Formula | Q = n·F/(3.6·M) mAh/g; I = C-rate × Q; Q = I·t; E (Wh/kg) = Q (mAh/g) × V |
| Materials | LiCoO₂, LiFePO₄, NMC811, LiMn₂O₄, graphite, Si, Li₄Ti₅O₁₂, Li, S, or any formula |
| Constants | F = e·N_A (CODATA 2018), CIAAW 2021 atomic weights |
| Output | mAh/g, mAh, mA, h, mA/g, Wh/kg, Wh/L; CSV and a methods sentence |

## How it works

$$\begin{aligned} Q_\mathrm{th} &= \frac{n\,F}{3.6\,M} \\ I &= \text{C-rate} \times Q \\ Q &= I\,t \\ E &= Q\,\bar{V} \end{aligned}$$

**Theoretical capacity.** A mole of formula units that takes up n electrons (and n Li⁺) stores n·F coulombs, with F = e·N_A = 96 485.332 C/mol (CODATA 2018). Per gram that is n·F/M C/g, and since 1 mAh = 3.6 C, \(Q = nF/(3.6M)\) mAh/g (the same number in Ah/kg). M comes from the formula with the CIAAW 2021 standard atomic weights, as in the [molar mass calculator](https://www.labcanvas.com/tools/molar-mass-calculator). The mass basis is the formula you give: for cathodes the lithiated compound (LiFePO₄), for anodes the host (carbon for LiC₆, silicon for Li₁₅Si₄, sulfur for Li₂S). These are theoretical values: every counted lithium is assumed to move.

**C-rate.** At n C the current is n times the capacity per hour, so a full charge or discharge takes 1/n hours: \(I = \text{C-rate} \times Q\). The capacity can be the theoretical one times the active mass, a nominal specific capacity times the mass, or the cell’s capacity in mAh; papers differ, so say which.

**Capacity from the charge passed.** For a constant current, \(Q\,(\mathrm{mAh}) = I\,(\mathrm{mA}) \times t\,(\mathrm{h})\); a charge in coulombs divided by 3.6 is mAh. Divided by the active mass it is the specific capacity, and divided by the theoretical capacity the share of it that was used. Goodenough and Park (2013) describe the output of a cell as a current I at a voltage V for a time Δt, with the charge each formula unit can pass falling as the current rises, which is why the capacity depends on the C-rate.

**Energy.** The specific energy is the specific capacity times the average discharge voltage: mAh/g × V = mWh/g = Wh/kg. Times the density (g/cm³ = kg/L) it is the energy density in Wh/L. Divide by the mass you mean (active material, electrode or the whole cell) and say which: a whole cell carries the other electrode, electrolyte, separator, current collectors and case, so its value is several times lower than the active material’s.

## Worked example: a LiFePO₄ half-cell from theory to Wh/kg

A LiFePO₄ electrode with 10 mg of active material. The current, time, voltage and density are example values.

- **Theoretical capacity.** \(M(\mathrm{LiFePO_4}) = 6.94 + 55.845\) \({}+ 30.974 + 4 \times 15.999\) \({}= 157.755\ \mathrm{g/mol}\); \(Q = 1 \times 96485.33 / (3.6 \times 157.755)\) \({}= \mathbf{169.9\ mAh/g}\), so 10 mg hold 1.699 mAh.
- **C-rate.** With 1 C set by the theoretical capacity (169.9 mA/g), 0.5 C is \(0.5 \times 1.699\ \mathrm{mAh/h}\) \({}= \mathbf{0.8495\ mA}\), and a full discharge takes 2 h.
- **Measured capacity.** A discharge at 0.85 mA lasts 1.85 h: \(0.85 \times 1.85 = 1.5725\ \mathrm{mAh}\), or \(1.5725 / 0.010\ \mathrm{g}\) \({}= \mathbf{157.25\ mAh/g}\), 92.56 % of the theoretical.
- **Specific energy.** With an average discharge voltage of 3.4 V: \(157.25 \times 3.4 = \mathbf{534.7\ Wh/kg}\) of LiFePO₄. At an electrode density of 2.0 g/cm³ (per volume of the same mass basis), \(534.65 \times 2.0 = 1069\ \mathrm{Wh/L}\).

For capacity retention and the Coulombic efficiency of each cycle, use the [Coulombic efficiency calculator](https://www.labcanvas.com/tools/coulombic-efficiency-calculator); for a plot of the cycling data, the [battery cycling plot](https://www.labcanvas.com/tools/battery-cycling-plot).


## Theoretical capacities of common electrode materials

Computed on this page from each formula, so they agree with the atomic weights to the last digit; they are theoretical (all the lithium counted). Graphite and lithium are usually quoted rounded, as 372 and 3860 mAh/g. Silicon is counted to Li₁₅Si₄, which Obrovac and Christensen (2004) identified as the fully lithiated phase of silicon at room temperature.

| Material | Reaction | Per gram of | n | M (g/mol) | Q (mAh/g) |
| --- | --- | --- | --- | --- | --- |
| LiCoO₂ (LCO) | LiCoO₂ → CoO₂ + Li⁺ + e⁻ (all the Li) | LiCoO 2 | 1 | 97.8712 | 273.8 |
| LiFePO₄ (LFP) | LiFePO₄ → FePO₄ + Li⁺ + e⁻ | LiFePO 4 | 1 | 157.755 | 169.9 |
| LiNi₀.₈Mn₀.₁Co₀.₁O₂ (NMC811) | LiMO₂ → MO₂ + Li⁺ + e⁻ (all the Li) | LiNi 0.8 Mn 0.1 Co 0.1 O 2 | 1 | 97.2798 | 275.5 |
| LiMn₂O₄ (LMO spinel) | LiMn₂O₄ → Mn₂O₄ + Li⁺ + e⁻ | LiMn 2 O 4 | 1 | 180.812 | 148.2 |
| Graphite (to LiC₆) | 6 C + Li⁺ + e⁻ → LiC₆ (per gram of carbon) | C 6 | 1 | 72.066 | 371.9 |
| Silicon (to Li₁₅Si₄) | 4 Si + 15 Li⁺ + 15 e⁻ → Li₁₅Si₄ (per gram of Si) | Si | 3.75 | 28.085 | 3579 |
| Li₄Ti₅O₁₂ (LTO) | Li₄Ti₅O₁₂ + 3 Li⁺ + 3 e⁻ → Li₇Ti₅O₁₂ | Li 4 Ti 5 O 12 | 3 | 459.083 | 175.1 |
| Lithium metal | Li → Li⁺ + e⁻ | Li | 1 | 6.94 | 3862 |
| Sulfur (to Li₂S) | S + 2 Li⁺ + 2 e⁻ → Li₂S (per gram of S) | S | 2 | 32.06 | 1672 |

## C-rates, times and currents

| C-rate | Time for a full charge or discharge | Current | Specific current |
| --- | --- | --- | --- |
| C/20 (0.05 C) | 20 h | 0.0849 mA | 8.49 mA/g |
| C/10 (0.1 C) | 10 h | 0.170 mA | 17.0 mA/g |
| C/2 (0.5 C) | 2 h | 0.849 mA | 84.9 mA/g |
| 1 C | 1 h | 1.70 mA | 169.9 mA/g |
| 2 C | 30 min | 3.40 mA | 339.8 mA/g |
| 5 C | 12 min | 8.49 mA | 849.5 mA/g |

## Common mistakes

- **The wrong mass basis.** Graphite’s 372 mAh/g is per gram of carbon, not of LiC₆; a cathode’s capacity is per gram of the lithiated compound. Say which mass you divided by.
- **mAh/g × V is Wh/kg, not mWh/kg.** 1 mAh/g × 1 V = 1 mWh/g = 1 Wh/kg.
- **Active-material energy compared with cells.** Per kg of active material the number is several times a full cell’s.
- **C-rate on an unstated capacity.** 1 C on the theoretical capacity and 1 C on the measured one are different currents.
- **Coulombs and mAh.** 1 mAh = 3.6 C, 1 Ah = 3600 C.

## References

- Goodenough JB, Park KS. The Li-ion rechargeable battery: a perspective. *J Am Chem Soc* 2013;135:1167–1176. [doi:10.1021/ja3091438](https://doi.org/10.1021/ja3091438)
- Nitta N, Wu F, Lee JT, Yushin G. Li-ion battery materials: present and future. *Mater Today* 2015;18:252–264. [doi:10.1016/j.mattod.2014.10.040](https://doi.org/10.1016/j.mattod.2014.10.040)
- Obrovac MN, Christensen L. Structural changes in silicon anodes during lithium insertion/extraction. *Electrochem Solid-State Lett* 2004;7:A93. [doi:10.1149/1.1652421](https://doi.org/10.1149/1.1652421)
- Prohaska T, Irrgeher J, Benefield J et al. Standard atomic weights of the elements 2021 (IUPAC Technical Report). *Pure Appl Chem* 2022;94:573–600. [doi:10.1515/pac-2019-0603](https://doi.org/10.1515/pac-2019-0603)
- Tiesinga E, Mohr PJ, Newell DB, Taylor BN. CODATA recommended values of the fundamental physical constants: 2018. *Rev Mod Phys* 2021;93:025010. [doi:10.1103/RevModPhys.93.025010](https://doi.org/10.1103/RevModPhys.93.025010)


## Related calculators

- [Coulombic efficiency calculator](https://www.labcanvas.com/tools/coulombic-efficiency-calculator): Coulombic efficiency per cycle, first-cycle loss and capacity retention from charge and discharge capacities.
- [Supercapacitor & battery calculator](https://www.labcanvas.com/tools/supercapacitor-calculator): Specific capacitance from CV or charge–discharge curves, energy and power density, and battery C-rate.
- [Molar mass calculator](https://www.labcanvas.com/tools/molar-mass-calculator): Molar mass from a chemical formula, hydrates and brackets included, with the mass % of each element.
- [All 39 lab calculators](https://www.labcanvas.com/tools/lab-calculators)

## Use this calculator from code or an AI agent

This calculator also answers as JSON, computed by the same code as this page: no key, no account, CORS open. Send the parameters as a query string (numbers may carry units; lists comma-separated) or POST them as JSON to https://www.labcanvas.com/api/tools/battery-capacity-calculator. An example, with the answer shortened to its first values:

```
GET https://www.labcanvas.com/api/tools/battery-capacity-calculator?material=lfp&mass=10+mg&c_rate=0.5&average_voltage=3.4
```

```json
{
 "ok": true,
 "tool": "battery-capacity-calculator",
 "inputs": {"material":{"value":"lfp"},"mass":{"value":10,"unit":"mg"},"c_rate":{"value":0.5,"unit":"C"}},
 "result": {"theoretical_capacity":{"label":"Theoretical specific capacity of LiFePO₄ (LFP) (per g of LiFePO4)","value":169.8933256,"unit":"mAh/g"},"molar_mass":{"label":"Molar mass of the mass basis","value":157.754762,"unit":"g/mol"}},
 "answer": "theoretical 169.89 mAh/g for LiFePO₄ (LFP) (per g of LiFePO4); 0.5 C on 1.699 mAh is 0.8495 mA (2 h); 577.64 Wh/kg at 3.4 V.",
 "formula": "Q = n·F/(3.6·M) mAh/g (F = 96485.33212 C/mol, CODATA 2018; M from CIAAW 2021); I = C-rate × capacity; capacity = I·t = charge/3.6; specific energy = Q (mAh/g) × V = Wh/kg; × density = Wh/L",
 "page": "https://www.labcanvas.com/tools/battery-capacity-calculator",
 "citation": "LabCanvas Battery capacity calculator, https://www.labcanvas.com/tools/battery-capacity-calculator"
}
```

Parameters:

- `material` (string: lco | lfp | nmc811 | lmo | graphite | si | lto | li | s): lco (LiCoO₂), lfp (LiFePO₄), nmc811, lmo (LiMn₂O₄), graphite (LiC₆, per g C), si (Li₁₅Si₄, per g Si), lto (Li₄Ti₅O₁₂), li, s (Li₂S, per g S).
- `formula` (string): Any formula (the mass basis), with electrons: instead of material.
- `electrons` (number): Electrons (Li⁺) per formula unit, with formula.
- `mass` (number, mg): Active mass (mg).
- `capacity` (number, mAh): Capacity (mAh) for the C-rate, instead of the theoretical capacity × mass.
- `specific_capacity` (number, mAh/g): Specific capacity (mAh/g): × mass for the C-rate, and × average_voltage for the specific energy (default: the theoretical).
- `c_rate` (number, C): C-rate: gives the current.
- `current` (number, mA): A current: gives the C-rate; with time, the capacity passed.
- `time` (number, h): Discharge time (h) at the constant current.
- `charge` (number, C): Charge passed (C), instead of current × time.
- `average_voltage` (number, V): Average discharge voltage (V), for the specific energy.
- `density` (number, g/cm³): Density (g/cm³) of the same mass basis, for Wh/L.

All calculators: https://www.labcanvas.com/api/tools · OpenAPI 3.1: https://www.labcanvas.com/api/tools/openapi.json · MCP tool: `calc_battery_capacity` (LabCanvas MCP server).

## Questions

### How do you calculate the theoretical capacity of a battery material?

Q = n·F/(3.6·M) mAh/g: n electrons transferred per formula unit, F = 96 485 C/mol, M the molar mass in g/mol, and 3.6 coulombs per mAh. LiFePO₄ (n = 1, M = 157.755 g/mol) gives 169.9 mAh/g.

### What is the theoretical capacity of graphite, silicon and lithium metal?

Graphite to LiC₆: 371.9 mAh/g per gram of carbon (usually written 372). Silicon to Li₁₅Si₄: 3579 mAh/g. Lithium metal: 3862 mAh/g. Sulfur to Li₂S: 1672 mAh/g.

### How do I convert C-rate to current?

Multiply the C-rate by the capacity: 0.5 C on a 1.699 mAh electrode is 0.85 mA, and a full charge or discharge takes 1/0.5 = 2 hours. For mA/g, multiply the C-rate by the specific capacity used for 1 C.

### How do I calculate specific capacity from a charge–discharge test?

Multiply the constant current by the discharge time (mA × h = mAh), or take the capacity the cycler reports, and divide by the active mass: 0.85 mA × 1.85 h = 1.5725 mAh; in 10 mg that is 157.25 mAh/g.

### How do I calculate energy density in Wh/kg?

Multiply the specific capacity (mAh/g) by the average discharge voltage (V): mAh/g × V = Wh/kg. 157 mAh/g at 3.4 V is 535 Wh/kg of active material. For Wh/L multiply by the density in g/cm³.

### Why is the measured capacity lower than the theoretical?

Not all of the lithium can be cycled without damaging the structure, some is lost to side reactions and the interphase, and at higher currents less of the material is reached in the time available. Compare the measured capacity with the theoretical in “Capacity from charge”.

### Which mass should I divide by?

The one you state: the active material is usual for electrode materials, the whole electrode or the cell for devices. The theoretical capacity is per gram of the formula you choose (the lithiated cathode, the host of an anode).

### Is the C-rate based on the theoretical or the measured capacity?

Either is used. Many papers define 1 C from the theoretical capacity (LiFePO₄: 1 C = 170 mA/g); others from a nominal capacity. Choose the basis in the C-rate step and report it.
