EV vs Gas Total Cost Calculator

Compare 5-year total cost of ownership between an electric vehicle and a gas-powered car.

Nature 1–20 year horizon Home or public charging Break-even mileage
Rate this calculator

Is an EV or a gas car cheaper to own?

TCO · fuel · insurance · depreciation · break-even mileage

Instructions — EV vs Gas Total Cost Calculator

1

Set distance and time horizon

Enter annual mileage (the U.S. average is ~12,000 mi) and the ownership window. Five years is the conventional total-cost-of-ownership window; longer windows favor the EV, shorter windows favor gas.

2

Pick charging access and fuel prices

Home charging at the U.S. residential average (~$0.16/kWh) is where EV savings come from. Public DC fast charging at ~$0.40/kWh costs 2–3× more per mile. Gas price defaults to the 2026 national average of $3.10/gal.

3

Enter vehicle prices, efficiency, and operating costs

EV defaults: 3.8 mi/kWh, $44,000 price. Gas defaults: 28 mpg, $38,500 price. Adjust insurance, maintenance, registration, and depreciation to match real quotes — defaults reflect current U.S. averages.

Federal EV credit: the up-to-$7,500 federal tax credit on new EVs expired on September 30, 2025. For purchases in 2026 the default is $0 unless you qualify for a state-level incentive or the used-EV credit (up to $4,000).
Battery replacement: only applies when ownership exceeds 8 years. Most manufacturers warranty the battery for 8–10 years; the cost only shows up in long-term comparisons.

Formulas

Two parallel TCO calculations are compared. Each vehicle's running cost over the period is summed, depreciation captures the consumed purchase value, and break-even mileage solves the point at which the EV's lower running cost overtakes its higher up-front price.

TOTAL COST OF OWNERSHIP
$$ \text{TCO} = F + M + I + R + D + B - C $$
F = fuel or electricity over the period. M = maintenance. I = insurance. R = registration. D = depreciation cost (purchase price minus residual). B = battery replacement (EV, >8 yr). C = tax credit (EV only, $0 in 2026).
ENERGY OR FUEL COST
$$ F_{EV} = \frac{M_{total}}{E_{EV}} \times \text{cost}_{kWh} \quad; \quad F_{gas} = \frac{M_{total}}{\text{MPG}} \times \text{price}_{gal} $$
M is total miles (annual mileage × years). EV efficiency runs 3.0–4.5 mi/kWh; gas runs 20–35 mpg in typical sedans and crossovers.
DEPRECIATION (EXPONENTIAL)
$$ V_{residual} = P \times r^{(t/5)} \quad; \quad D = P - V_{residual} $$
P = purchase price, r = fraction of value kept at 5 years (EV ~0.48, gas ~0.53 in 2026), t = ownership years. Cars depreciate faster early; the exponential captures the shape better than straight-line.
BREAK-EVEN MILEAGE
$$ M_{BE} = \frac{P_{EV} - P_{gas} - C}{\text{CpM}_{gas} - \text{CpM}_{EV}} $$
Solves the mileage at which the EV's lower cost-per-mile (CpM) pays back the extra up-front spend. If CpM(gas) ≤ CpM(EV) — usually public charging at high $/kWh — the EV never breaks even.

Reference

Typical 2026 vehicle parameters
ParameterEVGas
New price range$44k–$57k$38.5k–$49k
Efficiency3.0–4.5 mi/kWh20–35 mpg
Maintenance/yr$100–$200$200–$400
Insurance/yr$1,200–$1,600$1,000–$1,400
5-yr value retained~45–50%~50–56%
Refuel time30 min–10 h~5 min
Cost per mile (2026)
Scenario$/mi
EV, home charging @ $0.16/kWh$0.042
EV, public DC @ $0.40/kWh$0.107
Gas, 28 mpg @ $3.10/gal$0.111
Gas, 20 mpg @ $3.10/gal$0.155
Hybrid, 45 mpg @ $3.10/gal$0.069
Quick reference: break-even mileage for an EV vs gas car (5-yr horizon, 75% stove…) — typical 2026 scenarios
ScenarioBreak-even mileageYears @ 12k mi/yr5-yr winner
$44k EV vs $38.5k gas, home charging, no credit~75,000 mi~6.3 yrGas (by ~$8k)
$44k EV vs $38.5k gas, home charging, $7.5k credit~45,000 mi~3.8 yrEV (by ~$1.7k)
$44k EV vs $38.5k gas, public DC, no credit>120,000 mi>10 yrGas (by ~$15k)
$44k EV vs $38.5k gas, home charging, 25k mi/yr~36,000 mi~1.4 yrEV (by ~$12k)
Used: $34.6k EV vs $33.6k gas, home charging~9,000 mi~0.75 yrEV (almost immediate)

Article — EV vs Gas Total Cost Calculator

For a 2026 buyer paying $44,000 for an electric vehicle versus $38,500 for a comparable gas car, driving 12,000 miles a year with home charging at the U.S. residential rate, the gas car is roughly $8,000 cheaper across five years. Restore the now-expired federal $7,500 credit and the EV wins by about $1,700. Drive 25,000 miles a year and the EV wins by $12,000. The total-cost-of-ownership answer is never just "EV is cheaper" or "gas is cheaper" — it pivots on mileage, charging access, and whether any credit is in play.

This guide walks through the six cost lines that decide the comparison, how to read the per-mile numbers, where EVs lose ground despite cheaper electricity, and the mistakes that make online "EV savings" claims overstated.

What total cost of ownership actually measures

Total cost of ownership (TCO) sums every dollar a vehicle takes out of your account across a fixed window — typically 5 years, sometimes 7 or 10. The standard line items are: purchase price (less residual value, captured as depreciation), fuel or electricity, insurance, maintenance, registration and taxes, and any one-off items like battery replacement. Federal and state incentives subtract from the EV side.

The U.S. Department of Energy's Alternative Fuels Data Center publishes a free Vehicle Cost Calculator that follows this same framework. The framework is industry-standard; the variables are not. A study comparing a Tesla Model 3 owner in California (cheap electricity, expensive gas, state EV rebate) to one in Mississippi (cheaper gas, average electricity, no rebate) will produce opposite conclusions from identical math.

Did you know

The International Energy Agency's Global EV Outlook 2025 reported that EVs reached 25% of global new-car sales in 2025, with sales hitting 20.7 million units. Forecasts for 2026 push that figure to 22.7 million. The 5-year TCO math has been the central buyer concern through every step of that growth curve.

Fuel versus electricity per mile

An EV at 3.8 mi/kWh, charged at $0.16 per kWh, costs about $0.042 per mile to drive. A gas car at 28 mpg, fueled at $3.10 per gallon, costs about $0.111 per mile. The EV is roughly 60% cheaper to fuel — about $0.07 per mile saved, or roughly $1,680 per year at 24,000 miles, $840 at 12,000.

That gap collapses on public charging. At a $0.40/kWh DC fast-charging session, the per-mile cost rises to ~$0.107 — within a cent of the gas figure. EVs without home charging access lose most of the running-cost advantage and often end up the more expensive option once depreciation and insurance are added. The Idaho National Laboratory's AFLEET tool documents per-mile fuel costs across both fuel types in detail.

  • EV home charging — $0.042/mi at $0.16/kWh, 3.8 mi/kWh
  • EV public DC — $0.107/mi at $0.40/kWh
  • Gas (28 mpg) — $0.111/mi at $3.10/gal
  • Gas (20 mpg pickup) — $0.155/mi at $3.10/gal
  • Hybrid (45 mpg) — $0.069/mi at $3.10/gal
No home charger? The savings math inverts

Most online EV vs gas comparisons assume home charging. If you rely on public DC fast charging — apartment dwellers, on-street parkers, condo residents without dedicated outlets — the per-mile energy advantage shrinks to near zero. Combined with higher EV insurance and faster depreciation, gas usually wins this scenario by $5,000–$15,000 over 5 years.

Depreciation: where EVs lose ground

A new EV in 2026 typically keeps about 45–50% of its purchase value after 5 years. A new gas car keeps about 50–56%. The 5–8 percentage-point gap translates into an extra $2,000–$5,000 of depreciation cost on a $44,000 EV compared with a similarly priced gas car — roughly half a year's fuel savings, gone before you even start driving.

The depreciation pattern is also non-linear. EVs lose value fastest in years 1–3, then stabilize; gas vehicles depreciate more evenly. That makes ownership length matter: a 3-year EV lease often costs more in depreciation than a 7-year EV ownership amortizes per year. Consumer Reports has tracked this gap shrinking each year as the used-EV market matures.

Did you know

By March 2026 the average used EV sold for $34,653 — only $1,102 more than the average used gas car ($33,641). Price parity already exists in the used market. For buyers comfortable with a 1–3-year-old EV, the TCO comparison flips decisively toward electric.

Insurance, maintenance, and registration

EVs cost more to insure: about $200–$400 more per year on average, driven by higher repair costs (battery packs, sensors, complex bodies), longer parts lead times, and fewer specialist repair shops. Across 5 years that adds $1,000–$2,000 to the EV side of the ledger.

EVs claw most of that back on maintenance. No oil changes, no spark plugs, no exhaust system, regenerative braking that extends pad life — annual EV maintenance averages $100–$200 versus $200–$400 for gas, per the Natural Resources Defense Council. Over 5 years, the EV saves roughly $500–$1,000 here.

Registration is mixed. Many U.S. states offer reduced registration fees or tax-exemptions for EVs (saving $100–$300/year), but several have introduced annual "EV road-use fees" of $100–$200 to replace lost gas-tax revenue. Net effect: roughly a wash, varying heavily by state.

The 2026 tax-credit cliff

The federal Clean Vehicle Credit of up to $7,500 for new EVs expired on September 30, 2025. For new vehicles purchased on or after that date the credit is $0. That single change shifts roughly 18% of the typical $44,000 EV's purchase math against the EV — and is the main reason a calc that "worked" in 2024 may show gas winning in 2026.

Some credits survive. The federal Used Clean Vehicle Credit (up to $4,000 on qualifying used EVs under $25,000) remains active. Several states — California, Colorado, New York, New Jersey, Massachusetts among them — run their own rebate or tax-credit programs ranging from $1,000 to $7,500. Check your state department of energy or revenue site for current eligibility.

Don't assume the federal credit is coming back

Calculators and articles published before October 2025 typically default the tax credit to $7,500. If you copy those assumptions into your 2026 purchase math, you'll overstate EV savings by $5,000–$7,500. Always set the federal credit to $0 unless you're buying used or have confirmed a state-level program.

Common mistakes in EV vs gas total cost math

Comparing fuel only, ignoring depreciation

Online EV calculators often display fuel savings alone — "save $9,000 over 5 years!" — without subtracting the $2,000–$5,000 of extra depreciation an EV typically eats versus a gas car. Real net savings are 30–50% lower than the fuel line implies. Always run a full TCO comparison.

  • Mileage threshold — below ~8,000 mi/yr, gas usually wins; above ~15,000 mi/yr, EV usually wins
  • Charging type matters more than EV efficiency — home vs public is the single biggest variable
  • Insurance gap — EV runs $200–$400/yr more
  • Battery replacement — only relevant past 8 years; warranty covers most owners
  • State incentives — can move the needle by $1,000–$7,500 either direction
Assuming straight-line depreciation

Vehicles lose value fastest in the first 2–3 years. Using "vehicle drops 10% per year" rather than an exponential curve typically undercounts the early loss and overcounts the late loss, making short ownership windows look misleadingly favorable for EVs.

Forgetting to update gas and electricity prices

National averages move 10–20% year-to-year. A 2024 calc using $0.13/kWh electricity and $3.65/gal gas produces meaningfully different numbers than 2026's $0.16/kWh and $3.10/gal. Always check the current EIA averages before relying on a TCO result.

FAQ

It depends on roughly ten variables, but the headline answer for an average U.S. driver (12,000 mi/yr, home charging): EV is cheaper by about $1,700 if you can claim any tax credit; gas is cheaper by about $8,000 if you cannot. High-mileage drivers (20,000+ mi/yr) with home charging see the EV win by $10,000+ over 5 years.
For a typical $44k EV versus $38.5k gas car with home charging and no tax credit, break-even is roughly 75,000 miles — about 6.3 years at 12,000 mi/yr. With a $7,500 credit it drops to ~45,000 miles or 3.8 years. High-mileage drivers (25k mi/yr) reach break-even in about 18 months.
At the U.S. average $0.16/kWh and 3.8 mi/kWh, EV home charging works out to about $0.042 per mile. A 28 mpg gas car at $3.10/gal costs about $0.111 per mile. EV is ~60% cheaper per mile — about $840 per year at 12,000 miles.
Yes, typically by $200–$400 per year. EVs have higher repair costs (battery packs, sensors, complex aluminum bodies) and longer parts lead times. Over a 5-year ownership window that adds $1,000–$2,000 to the EV column.
Yes, but the gap is narrowing. A new EV typically retains 45–50% of its value at 5 years; a comparable gas car retains 50–56%. The 5–8 point gap costs an extra $2,000–$5,000 in depreciation on a $44k EV over 5 years. The gap is much smaller in the used market.
Not on a new EV. The federal Clean Vehicle Credit of up to $7,500 expired on September 30, 2025. The Used Clean Vehicle Credit (up to $4,000 on qualifying used EVs under $25,000) remains in place. Several states still run their own rebate programs — check your state department of energy or revenue.
For most consumer EVs in 2026, $5,000–$15,000 depending on model and pack size. Most manufacturers warranty the battery for 8–10 years or 100,000 miles. Battery replacement only enters the TCO math for owners past the warranty window — usually past year 8.
Usually no. Short ownership windows give the EV no time to recover its purchase premium through running-cost savings, while the steepest depreciation hits in those same first 2–3 years. Without home charging and with no tax credit, gas is typically $5,000–$10,000 cheaper across a 3-year hold.
EV economics collapse. Public DC charging at ~$0.40/kWh costs ~$0.107/mile — within a cent of gas at 28 mpg. Combined with EV depreciation and insurance penalties, gas usually wins by $5,000–$15,000 over 5 years. Home charging access is the single most important variable in EV vs gas math.
Yes, but they vary widely. California, Colorado, New York, New Jersey, and Massachusetts among others run rebate or tax-credit programs of $1,000–$7,500. Many states also offer reduced registration fees for EVs. Conversely, several states have added annual "EV road-use fees" of $100–$200 to recover lost gas-tax revenue. Net effect depends on your state.