EV vs Gas CalculatorElectric vs Gas Car Cost Comparison & Break-Even

An EV is cheaper to run, but it pays off only when the yearly savings cover its higher price.

Compare an electric car with a gas car on what matters: purchase price, charging versus fuel, and maintenance. See the yearly savings, total cost over the years you’ll own it and when the EV pays back its higher price — using your own mileage and prices.

Built on official data fromFuelEconomy.govDOE AFDCEIA prices
Manzoor Ahmad, developer of the DexoCalc EV vs Gas Calculator
Built by Manzoor AhmadCalculator developer · Updated October 29, 2026

Compare the two cars

⚡ Electric car

$
mi/kWh
$
$
%
$/mi

⛽ Gas car

$
MPG
$
$/mi

🛣️ Your driving

mi
EV break-even8.0 years

The EV’s $7,000 higher price is paid back by $876 a year in lower running costs.

Pays back within 8 years
Yearly savings with EV$876fuel + maintenance
EV running cost / yr$1,604$7.37 per 100 mi in energy
Gas running cost / yr$2,480$10.67 per 100 mi in gas
Total differenceEV $8cheaper over 8 years

Cumulative cost of ownership (purchase + running)

$35k$40k$45k$50k$55kYr 0Yr 1Yr 2Yr 3Yr 4Yr 5Yr 6Yr 7Yr 8
ElectricGas

Yearly running cost breakdown

Cost per yearElectricGasDifference
Energy / fuel$884$1,280$396
Maintenance$720$1,200$480
Running total$1,604$2,480$876
Total over 8 yrs (incl. price)$54,832$54,840$8

Is an EV cheaper than a gas car?

An EV is cheaper to run, but it pays off only when the yearly savings cover its higher price. Break-even years = (EV price − gas car price) ÷ (gas running cost − EV running cost). At 12,000 miles a year, 80% home charging and $3.20 gas, a $42,000 EV saves about $876 a year over a $35,000, 30 MPG gas car and breaks even in about 8.0 years.

Part of our Electric Vehicle calculators — for the core estimate, start with the EV Charging Cost Calculator.

How to use it

How to compare an EV with a gas car

Enter both prices

Use the real out-the-door price for each, after any rebates or dealer discounts.

Add energy costs

Your home electricity rate, a public fast-charging rate and how much you’ll charge at home.

Add fuel and maintenance

MPG and gas price for the gas car, and a per-mile maintenance estimate for each.

Set your driving

Miles per year and how long you plan to keep the car.

The formula

EV vs gas cost formula

EV energy cost per year = miles ÷ mi/kWh × blended $/kWh (home and public, after losses)
Gas fuel cost per year = miles ÷ MPG × gas price
Running cost = energy or fuel + maintenance
Yearly savings = gas running cost − EV running cost
Break-even years = (EV price − gas price) ÷ yearly savings

Blended electricity cost for the default example: 80% × $0.18 ÷ 0.90 + 20% × $0.45 ÷ 0.92 = about $0.258 per kWh stored in the battery.

For a precise charging figure, run the EV Charging Cost Calculator first and use its cost per mile here.

Worked example

Example: $42,000 EV vs $35,000 gas car

Per year (12,000 miles)ElectricGasEV saves
Energy / fuel$884$1,280$396
Maintenance ($0.06 vs $0.10/mi)$720$1,200$480
Total running cost$1,604$2,480$876
Price difference$7,000
Break-even$7,000 ÷ $876 ≈ 8.0 years

These match the calculator’s defaults. Drive more miles, pay more for gas or charge more at home, and the EV pays back sooner.

What else counts

What this comparison doesn’t include

  • Resale value: depreciation differs by brand and model; see our Car Depreciation Calculator.
  • Insurance: EVs can cost more to insure in some cases; compare real quotes.
  • Home charger installation: a Level 2 install can add a one-time cost.
  • Incentives: the federal clean vehicle tax credit ended for vehicles acquired after September 30, 2025, but some states and utilities still offer rebates — enter the EV price after any you qualify for.
  • Battery replacement: most automakers warrant EV batteries for around 8 years or 100,000 miles; check the terms for the model you’re considering.
Maintenance assumptions: EVs have no oil changes, spark plugs or exhaust systems, and regenerative braking reduces brake wear. The 6¢ vs 10¢ per mile defaults are illustrative; change them to match your own estimates.

Resale value and insurance can swing the result — estimate them with the Car Depreciation Calculator and the Cost of Car Ownership Calculator.

When EVs win

When an EV saves the most money

  • You drive a lot of miles each year.
  • You can charge at home, especially on an off-peak rate.
  • Gas prices in your area are high.
  • The EV’s price is close to the comparable gas model.
  • You keep cars for many years.
Next steps

Related calculators

FAQ

EV vs Gas Calculator FAQs

EVs usually cost less to fuel and maintain, but often cost more to buy. Whether the EV is cheaper overall depends on the price gap, your mileage, electricity and gas prices, and how long you keep the car.

Divide the price difference by the yearly running-cost savings. With a $7,000 gap and $876 a year in savings, it takes about 8 years.

It depends on mileage and prices. At 12,000 miles a year with mostly home charging, savings of several hundred to over a thousand dollars a year on fuel and maintenance are common.

With home charging at typical U.S. rates, yes — often around half the cost per mile of a 30 MPG gas car. Heavy reliance on DC fast charging narrows the gap.

Generally, yes. They skip oil changes and many engine and exhaust parts, and regenerative braking reduces brake wear. Tires can wear faster because EVs are heavy.

The federal clean vehicle credit ended for vehicles acquired after September 30, 2025. Some states and utilities still offer incentives.

No. It compares purchase price and running costs. Use the Car Depreciation Calculator to estimate resale values separately.

It depends on your mileage, electricity and gas prices, and the price gap between the EV and a comparable gas car. If you drive a lot and can charge at home, an EV often pays back its higher price within the years most people keep a car.

Who built this

About the developer

Manzoor Ahmad, web designer and calculator developer

Manzoor Ahmad

Web Designer & Calculator Developer · 13+ years of web development and SEO experience

I’m a professional pharmacist turned tech geek, and I designed and coded this EV vs gas calculator myself. It doesn’t assume an answer: every price, rate and maintenance figure is editable, and the break-even math is shown in the worked example.

Found a number that looks wrong, or want a feature added? Tell me through my author page — corrections are fixed and re-dated.

Published: October 29, 2026Last reviewed: October 29, 2026
References

Sources

  1. U.S. DOE & EPA — FuelEconomy.gov: electric vehicles
  2. U.S. DOE Alternative Fuels Data Center — Charging electric vehicles at home
  3. U.S. Energy Information Administration — Short-Term Energy Outlook: electricity
  4. Internal Revenue Service — Clean vehicle tax credits

Disclaimer: Estimates are for comparison and depend on your inputs. Electricity and fuel prices, incentives, insurance, maintenance and resale values vary. This is not financial advice.

Keep this EV vs gas calculator handy

Bookmark it for next time, or add DexoCalc as a preferred source so our tools show up first in your Google results.