Gas vs Electric Car Cost Calculator

Compare a gasoline (petrol) car with an electric car over the years you'll keep it: energy, maintenance and purchase price add up to a total, a yearly saving and the year the EV pays back any price premium.

Last reviewed 16 October 2026 · How we build and check calculators

Your driving

mi

Example value — check your last service record or odometer.

Fuel car

$

Leave both prices blank to compare running costs only.

mpg (US)

Example value — use the official or your real-world figure.

$/gal

Reference rate: 4.33 $/gal — U.S. average retail price, regular gasoline (all formulations), U.S. EIA, Gasoline and Diesel Fuel Update, week of 12 Oct 2026. Enter your own rate from your bill.

$

Electric car

$
mi/kWh

Example value. EPA/WLTP figures already include charging losses.

¢/kWh

The price per kWh on your bill, including any taxes already built into it.

Reference rate: 18.31 ¢/kWh — U.S. average residential electricity price (average revenue per kWh, so fixed charges are already spread in; monthly, preliminary), U.S. EIA, Electric Power Monthly, Table 5.6.A, July 2026 (preliminary). Enter your own rate from your bill.

$

Price changes (optional)

%

Blank = prices stay flat. We don't forecast prices.

%

Electric car saves over 10 years

$9,205

Cheaper from day one.

Gas per year
$1,444

$14.44 per 100 mi

Electricity per year
$523.14

$5.23 per 100 mi

Running-cost difference
$920.52

per year incl. maintenance (year 1)

Total cost: fuel car
$14,437
Total cost: electric car
$5,231

Excludes insurance, financing, depreciation/resale value, taxes and registration — add them to the purchase price or maintenance fields if they differ between the two cars.

Cumulative cost of ownership (purchase + energy + maintenance)
$0.00$5,000$10,000$15,000$20,0000246810Year
  • Gasoline car
  • Electric car
Show data table
YearGasoline carElectric car
0$0.00$0.00
1$1,444$523.14
2$2,887$1,046
3$4,331$1,569
4$5,775$2,093
5$7,218$2,616
6$8,662$3,139
7$10,106$3,662
8$11,549$4,185
9$12,993$4,708
10$14,437$5,231

What's included — and what isn't

The calculator counts the costs that differ most between the two cars and that you can pin down yourself: the purchase price after discounts and incentives, energy (fuel or electricity) and maintenance. It deliberately leaves out insurance, financing, registration and resale value, because those depend on the exact models, your location and your credit — but you can fold any of them in by adjusting the purchase price or the yearly maintenance figure for each car.

The formulas

fuel per year = distance × (litres per 100 km ÷ 100) × price per litre electricity per year = distance × kWh per km × price per kWh cumulative cost (year n) = purchase price + Σ (energy + maintenance) break-even = first point where the EV's cumulative cost ≤ the fuel car's

Inside the calculator everything runs in metric units — litres, kilometres and kWh — and converts from what you enter: US miles per gallon (1 US gallon = 3.785 L), UK miles per gallon (1 imperial gallon = 4.546 L, so the same car shows a higher mpg in the UK) or L/100 km in Canada and Australia. That's why switching the country changes the units, not the answer.

Break-even is interpolated within the year, so “4.8 years” means part-way through year five. If the EV costs less to buy, it is cheaper from day one; if its running costs are higher (possible with expensive public charging and cheap fuel), it may never catch up.

Worked example

You drive 15,000 km a year. The fuel car uses 8 L/100 km at $1.50 per litre: 15,000 × 0.08 × 1.50 = $1,800 a year. The EV uses 18 kWh/100 km at 20¢ per kWh: 15,000 × 0.18 × 0.20 = $540 a year. With no maintenance difference, the EV saves $1,260 a year. If it costs $6,000 more to buy, it breaks even after 6,000 ÷ 1,260 = 4.8 years and is $6,600 ahead after ten.

Getting realistic inputs

  • Efficiency: use official figures for both cars (FuelEconomy.gov in the US, WLTP figures in the UK and Australia, NRCan's Fuel Consumption Guide in Canada) or, better, your own real-world numbers. EV ratings are measured at the wall and already include charging losses.
  • Electricity price: if you'll charge mostly at home on an off-peak tariff, use that rate; if you'll rely on public chargers, blend the prices — our EV Charging Cost calculator does the blending for you.
  • Price changes: the defaults keep fuel and electricity prices flat. Try a few percent per year on either to see how sensitive the answer is — we don't forecast prices.

Reference prices used as defaults

Defaults for fuel and electricity prices
DefaultCountryValueSource and period
Gasoline / petrolUS$4.331/galU.S. EIA, Gasoline and Diesel Fuel Update, week of 12 Oct 2026
Gasoline / petrolUK175.28p/LGOV.UK (DESNZ), Weekly road fuel prices, week of 12 Oct 2026
Gasoline / petrolCanada173.80¢/LStatistics Canada, Table 18-10-0001-01, August 2026 (monthly)
Gasoline / petrolAustralia—No verified national figure on file — the field asks for your own rate.
ElectricityUS18.31¢/kWhU.S. EIA, Electric Power Monthly, Table 5.6.A, July 2026 (preliminary)
ElectricityUK26.32p/kWhOfgem, 1 Oct – 31 Dec 2026
ElectricityCanada—No verified national figure on file — the field asks for your own rate.
ElectricityAustralia—No verified national figure on file — the field asks for your own rate.

Where a cell is empty, enter your local price — we only pre-fill official, dated national figures.

Sources

Results are estimates based on the figures you enter and the stated assumptions. They are not financial, tax, legal or engineering advice. Spotted a problem? Tell us.