i13.autos

EV vs Gas Running Cost Calculator

Independent reference · Last reviewed November 2026

Buying a car is one cost. Driving it every year is another, and the fuel part is easy to compute once you know four numbers: how far you drive, what a gallon of gas costs, how many miles your gas car travels on that gallon, and what your electricity costs per kilowatt-hour. This page does that arithmetic in your browser and shows every step, so you can check it by hand.

The calculator compares fuel and charging cost only. It leaves out the purchase price, insurance, repairs, tires, depreciation, registration fees and any tax incentive, because those depend on the exact car and on where you live.

Yearly fuel cost calculator

Gas car, fuel per year–
EV, electricity per year–
Difference per year–
Cost per mile (gas / EV)–

Press Calculate to see the steps.

Method: gas cost = miles ÷ miles per gallon × price per gallon. EV cost = miles × (kWh per 100 miles ÷ 100) × price per kWh. Home charging and public fast charging usually have different prices; run the calculator twice to compare them. The default values are example inputs, not market averages.

Worked examples

These three rows use the same formulas with round example inputs, so you can confirm the page by hand. They are arithmetic, not a survey of real prices.

Miles / yearGas priceGas car mpgEV kWh/100 miPrice per kWhGas per yearEV per yearDifference
12,000$3.503030$0.16$1,400.00$576.00$824.00
15,000$4.002534$0.20$2,400.00$1,020.00$1,380.00
8,000$3.004028$0.12$600.00$268.80$331.20

How to read the result

Fuel cost per mile

Dividing yearly cost by yearly miles gives a cost per mile. It lets you compare cars at different mileages and see how much a price change matters. A one-cent change in the electricity price moves an EV that uses 30 kWh per 100 miles by 0.3 cents per mile; a ten-cent change in gas price moves a 30 mpg car by about 0.33 cents per mile.

Why MPGe is not a price

MPGe means miles per gallon of gasoline-equivalent. The U.S. fuel economy site fueleconomy.gov describes it as the miles a vehicle can go using a quantity of fuel with the same energy content as a gallon of gasoline. It compares energy, not money, so it cannot replace the cost calculation above. Use the kWh per 100 miles figure from the car's fuel economy label for the EV input.

What a fair comparison needs

Compare cars of the same size and use. A compact gas car against a large electric truck says little about fuel type. Use the same yearly miles for both, and enter the price you actually pay for electricity at the place where you charge.

Car make lookup (NHTSA vPIC)

The National Highway Traffic Safety Administration (NHTSA) publishes a vehicle product information catalog, vPIC, with an open API. The button below asks that API for the makes it lists as passenger cars and lets you filter them by name. The list loads only when you press the button, and nothing is stored.

Not loaded yet.

Method: the page requests the vPIC “GetMakesForVehicleType” list for the type “car”. On 11 November 2026 it returned 195 makes. The count changes when NHTSA updates the catalog. A make being listed does not mean the manufacturer sells cars today.

Frequently asked questions

What does the EV vs gas calculator compare?

It compares fuel cost for gas with electricity cost for an EV over one year, using the miles, prices and efficiency you type in. It does not include purchase price, insurance, repairs, tires, depreciation or incentives.

Where do the default numbers come from?

They are example inputs chosen to make the arithmetic easy to check. They are not market averages. Replace them with your own mileage, your local gas price, your own electricity rate and the efficiency figures of the cars you compare.

What is MPGe?

MPGe means miles per gallon of gasoline-equivalent. The U.S. fuel economy site fueleconomy.gov describes it as the miles a vehicle can go using a quantity of fuel with the same energy content as a gallon of gasoline.

Where does the make list come from?

When you press the button, your browser asks the NHTSA vPIC API for passenger car makes and shows the answer. The site does not store it.

About this site

i13.autos is an independent informational site. It sells nothing, has no accounts and shows no ads. The formulas are plain arithmetic, the make list comes from NHTSA vPIC, and the MPGe definition comes from fueleconomy.gov. The calculator runs in your browser; the page sends nothing about your inputs anywhere. Last reviewed: November 2026. Educational content, not financial or professional advice.