Independent electric vehicle guides Learn • Compare • Drive electric

Gas vs Electric Car Cost Calculator

Compare what you would spend on fuel and maintenance with a gasoline car versus an electric car. Enter your driving distance and local prices to see yearly savings, cost per mile and how long it takes to recover a higher purchase price.

miles
years
⛽ Gas car
MPG
$per gallon
⚡ Electric car
mi/kWh
%
$per kWh
$per kWh
$
EV price minus gas car price, after any incentives.
Maintenance and charging losses
$per mile
$per mile
Defaults from the U.S. DOE Argonne National Laboratory study.
%

How this calculator works

For the gasoline car, the calculator divides your yearly distance by its fuel economy and multiplies by the fuel price. For the electric car, it divides the distance by the car's efficiency, adds charging losses and uses a blended electricity price based on how much you charge at home versus at public chargers.

Maintenance is estimated per mile using figures from a U.S. Department of Energy Argonne National Laboratory study: about $0.061 per mile for battery-electric cars and $0.101 per mile for gasoline cars. You can change these values.

If you enter the price difference between the two cars, the calculator shows how many years of savings it takes to cover it. Insurance, taxes, financing, depreciation and incentives are not included, so treat the result as a guide.

Frequently asked questions

Is an electric car cheaper to run than a gas car?

In most places, yes – especially if you charge at home. Electricity usually costs less per mile than gasoline, and EVs need less maintenance. Relying mostly on public fast charging can reduce or remove the fuel savings.

How long does it take for an EV to pay for itself?

It depends on the price difference, how far you drive and your local energy prices. Drivers who cover long distances and charge at home usually recover a higher purchase price faster.

Does the calculator include tax credits?

No. In the U.S., the federal EV tax credit ended for vehicles acquired after September 30, 2025, but some states, utilities and other countries still offer incentives. Subtract any incentive from the price difference you enter.

Note: Results are estimates for general guidance only. Real-world figures depend on your vehicle, weather, driving style, equipment and local prices. Read our disclaimer.