Gas vs Electric Total Cost Calculator
Side-by-side lifetime cost of a combustion car and an equivalent EV — purchase net of incentive, energy with charging losses, maintenance, and resale — plus how fast the EV premium pays back.
$8,424
gas $39,200 · ev $30,776
- ⛽ Energy (life)
- $11,200
- 🔋 Energy (life)
- $4,876
- ⛽ Net price
- $32,000
- 🔋 Net price
- $34,500after incentive
What this computes
"Gas or electric?" is usually argued with anecdotes. This settles it for two specific cars and your driving: it totals purchase (EV net of incentive), lifetime energy with charging losses, maintenance, and the resale value each retains, then reports the gap and the payback on any EV price premium.
The math
gas total = price − resale + (miles/MPG·gasPrice)·yrs + upkeep·yrs
ev total = (price − incentive) − resale
+ (miles·(1/eff)/(1−loss)·elecRate)·yrs + upkeep·yrs
payback = (ev net − gas net) / annual running saving The honest comparison nets resale (an asset you keep) and includes the charging-loss term most back-of-envelope EV math omits.
The EV question isn't ideological. It's mileage × energy-price gap × incentive × resale — four numbers, one answer.
How to use this
- Compare two real cars, not a category — use the actual prices and specs you'd buy.
- Enter only an incentive you'll get. Eligibility is narrow and changing; a credit you can't claim distorts the result.
- Use your real electricity rate, ideally off-peak if you charge overnight — it's the EV's biggest lever.
- Be conservative on EV resale unless you have strong model-specific data; it's the most uncertain input.
What actually decides it
- Annual mileage. The EV's per-mile energy advantage only adds up if you drive enough miles.
- Energy-price gap. Cheap home electricity vs expensive gas is where the savings live; public-only charging erases it.
- Net premium. Incentives can eliminate the upfront gap entirely — or not apply at all.
- Resale. A ten-point difference in retained value can outweigh years of fuel savings.
What this calculator doesn't model
- Home-charger install cost. A one-time Level 2 install should be added to the EV side if relevant.
- Battery replacement. Rare within typical ownership but a tail risk; not modeled.
- Financing interest. Compare cash-equivalent here; use Auto Loan for the financing cost of each.
- Time-of-use and demand charges, and gas-price inflation over the period.
Frequently asked questions
Is an EV really cheaper than a gas car? +
What is the EV-premium payback? +
Why include charging losses? +
How should I handle resale value? +
Does the federal/state incentive always apply? +
Is this financial advice? +
Related calculators
- EV Charging Cost — the EV energy side in detail.
- Fuel Cost — the gas energy side in detail.
- True Cost of Ownership — full cost of either choice.
- Car Depreciation — the resale inputs above.
The four numbers that decide it: gas vs electric, explained.
AutoMath is an educational tool. The numbers above depend entirely on assumptions you provide and are not financial advice.