How to use this calculator
Compare electric and gasoline energy cost per 100 miles and estimated annual running energy expense.
- Enter EV consumption (kWh/100 mi), Electricity price ($/kWh), Gas vehicle fuel economy (mpg), Gasoline price ($/gallon), then complete the remaining labeled fields. Match the units shown beside each field and review the result together with the assumptions below.
- Read the worked example below to check the expected input format and result.
- Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
How this calculation works
This comparison isolates energy needed to travel a fixed distance. EV cost uses kilowatt-hours per 100 miles and the electricity price; gasoline cost divides 100 miles by miles per gallon and applies the fuel price. Annual costs scale each result by yearly mileage.
Inputs and units
evUse— EV consumption (kWh/100 mi)- Energy use on a 100-mile basis.
electricRate— Electricity price ($/kWh)- Average cost per kWh paid for charging.
mpg— Gas vehicle fuel economy (mpg)- Miles traveled per gallon.
gasPrice— Gasoline price ($/gallon)- Price paid per gallon.
miles— Annual distance (miles)- Yearly miles used to scale energy costs.
Formula
EV cost/100 mi = kWh/100 mi × $/kWh. Gas cost/100 mi = 100 mi ÷ MPG × $/gallon. Annual cost = cost/100 mi × annual miles ÷ 100.
Method
Enter consumption values and local energy prices on a common 100-mile basis, then choose annual distance.
Worked example
At 30 kWh/100 miles and $0.16/kWh, EV energy costs $4.80 per 100 miles. At 30 mpg and $3.60/gallon, gasoline costs $12.00 per 100 miles; across 12,000 miles the difference is $864 per year.
Assumptions and limits
This compares energy expense only, not total ownership. It excludes vehicle price, maintenance, insurance, taxes, and charging losses unless included in the EV consumption value.
Frequently asked questions
Does this include charging losses?
Only if your EV energy-use figure includes electricity drawn at the meter.
Does this compare total ownership cost?
No. It compares running energy only and excludes vehicle and ownership costs.
Why compare per 100 miles?
It puts two different energy units on the same travel-distance basis.
How do I use the EV vs gasoline running cost calculator?
Enter EV consumption (kWh/100 mi), Electricity price ($/kWh), Gas vehicle fuel economy (mpg), Gasoline price ($/gallon), then complete the remaining labeled fields. Match the units shown beside each field and review the result together with the assumptions below.
What is a worked example of EV vs gasoline running cost?
At 30 kWh/100 miles and $0.16/kWh, EV energy costs $4.80 per 100 miles. At 30 mpg and $3.60/gallon, gasoline costs $12.00 per 100 miles; across 12,000 miles the difference is $864 per year.
Reference: U.S. DOE Alternative Fuels Data Center electricity information. See our calculation methodology.