Enter your EV's efficiency or battery size, your electricity price and how far you drive to see the cost per charge, per mile and per month, next to a gas car.
How the cost is calculated
Energy from the grid = energy into the battery ÷ charging efficiency
Cost per charge = battery kWh × charge added % × price ÷ efficiency
Cost per mile = (kWh per 100 miles ÷ 100) × price ÷ efficiency
Gas cost per mile = gas price ÷ MPG
If you know the battery size and range instead, kWh per 100 miles = battery kWh ÷ range × 100.
Charging losses
Not all the electricity from the outlet ends up in the battery; some is lost as heat in the charger and battery. FuelEconomy.gov says battery charging efficiency is often 84% to 93%, based on published studies. The calculator defaults to 90%. If your kWh figure was measured at the wall or charger (so it already includes losses), set efficiency to 100%.
Worked example
The Alternative Fuels Data Center's example: a car using 27 kWh per 100 miles, charged at 10.7¢ per kWh, costs 0.27 × $0.107 = 2.9¢ a mile (about 3¢), and fully charging a 54 kWh battery costs 54 × $0.107 = $5.78 (about $6). Those figures leave out charging losses.
With the defaults here: 30 kWh per 100 miles at $0.17 and 90% efficiency is 0.30 × 0.17 ÷ 0.9 = 5.67¢ a mile, or $56.67 for 1,000 miles. A 30 MPG gas car at $3.50 a gallon costs 11.67¢ a mile, or $116.67, so the EV saves about $60 a month on fuel.
Getting a realistic number
- Use your real rate. Your bill's total divided by kWh, including delivery charges, is closer than the energy-only rate. Time-of-use plans can make overnight charging much cheaper.
- Public fast charging costs more, often several times the home rate, and some stations charge by the minute.
- Efficiency changes with the weather and speed. Cold weather and highway driving raise kWh per mile.
- Fuel isn't everything. Purchase price, insurance, maintenance and charger installation also differ between EVs and gas cars.
Sources
How we checked this
Before every update, this calculator is run in a real browser with these known answers, and it must match all of them:
- AFDC example: 27 kWh/100 mi at 10.7¢/kWh, no losses: 2.9¢ a mile ✓
- Same: a full 54 kWh charge costs $5.78 ✓
- 30 kWh/100 mi, $0.17, 90% charging efficiency, 1,000 mi: $56.67 a month vs $116.67 of gas ✓
- 75 kWh battery and 300 miles of range = 25 kWh/100 mi ✓
- Edge: charging efficiency of 0 is refused ✓
Last checked October 26, 2026. Spotted something wrong? The math is done in your browser with the formula shown on this page, so you can check any result by hand.
Questions people ask
How much does it cost to charge an electric car at home?
Battery kWh × percent charged × your price per kWh ÷ charging efficiency. Adding 60 kWh at $0.17 with 90% efficiency costs 60 × 0.17 ÷ 0.9 = $11.33.
How much does it cost to charge an EV per mile?
kWh per mile × price. At 30 kWh per 100 miles and $0.17, that's 5.1¢ a mile before losses, or 5.7¢ with 90% charging efficiency.
Is charging an EV cheaper than gas?
At home, usually. A 30 MPG car at $3.50 a gallon costs 11.7¢ a mile; an EV at 30 kWh per 100 miles costs 5.7¢ at $0.17 per kWh. Public fast charging can narrow or erase the gap.
Where do I find my EV's kWh per 100 miles?
On the EPA window sticker or FuelEconomy.gov for its rated figure, or on the car's trip screen for your real-world use. Some cars show miles per kWh instead: divide 100 by it.
How much electricity is lost when charging?
FuelEconomy.gov says charging efficiency is often 84% to 93%, so roughly 7% to 16% of the electricity is lost as heat.