Worked example
Example: 40 kWh, 20 → 80 % on 7.4 kW at 8 per kWh. The inputs, in the units selected above:
| Input | Value |
|---|---|
| Battery capacity | 40.000 kWh |
| Starting state of charge | 20.000 % |
| Final state of charge | 80.000 % |
| Charger power (drawn from the grid) | 7.4000 kW |
| Charging efficiency | 90.000 % |
| Tariff per kWh (your currency) | 8.0000 - |
Applying the formula below gives:
| Result | Value |
|---|---|
| Energy into the battery | 24.000 kWh |
| Energy from the grid | 26.667 kWh |
| Charging time | 3.6036 h |
| Charging cost | 213.33 |
Open this example in the calculator and change any input.
Formula
\(E_{grid} = \frac{E_b(SOC_2 - SOC_1)}{\eta_c}, \quad t = \frac{E_{grid}}{P_c}, \quad C = \frac{E_{grid}}{3.6\times10^6\ \mathrm{J/kWh}}\,c\)
Variables
| Symbol | Meaning | SI unit |
|---|---|---|
| \(E_b\) | Battery capacity | J |
| \(SOC_1\) | Starting state of charge | - |
| \(SOC_2\) | Final state of charge | - |
| \(P_c\) | Charger power (drawn from the grid) | W |
| \(\eta_c\) | Charging efficiency | - |
| \(c\) | Tariff per kWh (your currency) | - |
| \(E_{bat}\) | Energy into the battery | J |
| \(E_{grid}\) | Energy from the grid | J |
| \(t\) | Charging time | s |
| \(C\) | Charging cost | - |
Method and standards
Energy balance.
Where it is used
- Workplace charger planning.
- Fleet running cost.
Common mistakes
- Using the full battery capacity.
- Ignoring the taper above 80 %.
Assumptions and limits
- Constant power (no taper above about 80 %).
- P_c is the power drawn from the grid (AC input), so the losses are inside it; if the charger is rated by its DC output, divide by the efficiency first.
- Tariff in your currency per kWh.
References
- Energy balance of charging (definitions)
Questions and answers
Why is grid energy more than battery energy?
Charger, cable and battery losses take 5–15 %.
Why charge to 80 %?
Charging slows above 80 % and battery life is better if it is not kept full.
What do the defaults represent?
A 40 kWh car charged from 20 % to 80 % on a 7.4 kW wall charger.
Method and article reviewed by FireCAD engineering on 13 November 2026. Every result is checked against an independent calculation on each release: how we verify our calculators.