EV charging cost is energy times price: kWh added x price per kWh. The kWh added is battery capacity x (target percent - starting percent) — charging a 60 kWh battery from 20 to 80 percent adds 60 x 0.60 = 36 kWh. Prices vary enormously by venue: home overnight rates of $0.12 to $0.20/kWh, public Level 2 chargers at $0.25 to $0.40, and DC fast chargers at $0.40 to $0.60+, with some networks billing per minute instead. Home charging is typically half to one-third the cost of fast charging, which is why EV economics favor drivers who can plug in overnight.
Efficiency translates energy into distance: most EVs do 3 to 4 miles per kWh (or 15 to 25 kWh per 100 km). Cost per mile is then price per kWh / miles per kWh — at $0.15/kWh home charging and 3.5 mi/kWh, driving costs $0.043 per mile, or $4.30 per 100 miles. Compare a 30 mpg gasoline car at $3.50/gallon: $0.117 per mile, or $11.70 per 100 miles — the EV runs at roughly one-third the fuel cost on home electricity, though fast-charging-only drivers see a much thinner advantage.
Two subtleties: charging losses of 5 to 15 percent mean the meter reads more than the battery receives (36 kWh into the battery may bill 40 kWh), and cold weather temporarily cuts usable range 20 to 40 percent, raising winter cost per mile. Battery size headlines matter less than efficiency for running costs — a smaller, efficient EV can be cheaper per mile than a big-battery flagship. This calculator prices a charging session from battery size, charge window, and electricity rate.