Skip to content
NexUnit home
EnglishEspañol

Gas vs Electric Car Cost Calculator

Compare fuel cost per mile and per year for a gas car and an electric car with your own prices and mileage.

mpg
$/gal
kWh/100 mi

On the window sticker or fueleconomy.gov.

$/kWh
%

Raise it if your kWh figure doesn't include charging losses.

EV saves a year

$704.00

Gas car
10.7¢ a mile · $1,280.00 a year
Electric car
4.8¢ a mile · $576.00 a year
Fuel and energy used a year
400 gal of gas vs 3,600 kWh

Energy only — insurance, maintenance, purchase price and incentives aren't included.

Show the work

  1. Gas cost per mile

    gas = price per gallon ÷ mpg

    $3.2 ÷ 30 = $0.106667

  2. EV cost per mile

    EV = kWh/100 mi ÷ 100 × $/kWh × (1 + losses ÷ 100)

    30 ÷ 100 × $0.16 × (1 + 0 ÷ 100) = $0.048

  3. Yearly difference

    (gas − EV) × miles a year

    ($0.106667 − $0.048) × 12,000 = $704.00

How it works

Gas cost per mile = price per gallon ÷ mpg; EV cost per mile = kWh per 100 mi ÷ 100 × price per kWh × (1 + charging loss); yearly cost = cost per mile × miles per year

Questions

How does the gas vs electric car cost calculator work?
Gas cost per mile = price per gallon ÷ mpg; EV cost per mile = kWh per 100 mi ÷ 100 × price per kWh × (1 + charging loss); yearly cost = cost per mile × miles per year.
What do I need to enter?
Miles driven a year, Gas car fuel economy, Gas price, EV efficiency, Electricity price, Charging losses. Optional fields can be left blank.

Want this on your site? Embed the gas vs electric car cost calculator.