The scenario
A driver adds 40 kWh to their battery, with 90% charging efficiency and a price of 0.25 per kWh.
The method
- Energy from the wall (kWh) = battery energy added ÷ charging efficiency
- Cost = energy from the wall × electricity price
Step by step
- Energy from the wall = 40 ÷ 0.90 = 44.444444 kWh
- Cost = 44.444444 × 0.25 = 11.11
Result: 11.11 in your currency
Open the calculator with these values
Reading the answer
About 4.44 kWh is lost on the way, adding about 1.11 to this session. Charging losses are normal, so that is not a fault. Comparing the session cost against a fuel fill-up only makes sense when both cover the same distance.
What happens at the limits
A price of 0 is valid and returns a cost of 0. An efficiency of 0% is rejected to avoid dividing by zero, and values over 100% are rejected as impossible.
Try one change
Try an off-peak price of 0.10. The same session falls to 4.44, which is why charging times matter so much.
These values are invented for teaching and are not a recommendation. Monetary examples use one hypothetical currency. This compares energy cost only. It excludes session fees, idle fees and changing time-of-use rates.