Worked example: the calculator's default entries
This tool prices a complete 0–100% charge from three inputs — Battery size in kWh, Electricity price in $/kWh and Charger power in kW — using cost = battery × price and time = battery ÷ charger power. With the default entries of a 60 kWh battery, $0.25/kWh and an 11 kW charger, the full charge cost is 60 × 0.25 = $15.00 and the charging time is 60 ÷ 11 = 5.45 hours, about 5 hours 27 minutes. That pairing is the classic overnight home setup: plug in at 11 pm and the car is full before 5 am, with the whole session billed at one flat electricity price. Change only the price field to a $0.45/kWh fast-charging rate and the same battery costs 60 × 0.45 = $27.00 — the charger power changes how long you wait, never what the energy itself costs.
Adapting a full-charge tool to a 20–80% top-up
Most daily charging is a partial window, and you can still use this calculator accurately by entering the energy for that window as the Battery size. For a 75 kWh battery charged from 20% to 80%, the energy added is 75 × 0.60 = 45 kWh. Enter 45 as the battery size with a home price of $0.18/kWh and a 7.4 kW charger: cost = 45 × 0.18 = $8.10, and time = 45 ÷ 7.4 = 6.08 hours — an easy overnight fit. The same 45 kWh from a 150 kW DC fast charger at $0.45/kWh costs 45 × 0.45 = $20.25 and takes 45 ÷ 150 = 0.30 hours, or 18 minutes. The $12.15 difference on one ordinary top-up, repeated weekly, is the real running-cost gap between home and public charging.
Where the estimate is optimistic
The time result assumes the charger delivers its full rated power from empty to full, which real charging does not: power tapers as the battery fills, especially past about 80%, so the last fifth of a full charge takes disproportionately long and the 5.45-hour figure above is a best case. Enter the lower of the two power figures that govern your session — if your car's onboard charger accepts 7.4 kW, a 22 kW wallbox still charges at 7.4 kW, so 7.4 is the number to type. Cost is likewise a battery-side figure: the calculator multiplies the battery's kWh, but your meter or the charging network bills for energy drawn, which runs higher because of conversion losses, so expect the invoice to sit modestly above the estimate. The inputs accept batteries from 10 to 300 kWh, prices from $0.01 to $5.00/kWh and chargers from 1 to 400 kW, covering everything from a granny-cable top-up to the fastest public hardware.