EV vs gas cost calculator
Enter prices and operating assumptions for two vehicles. See total ownership costs, annual running costs and when fuel and maintenance savings recover an EV purchase premium.
Results
- EV savings over 5 years
- -$3,600.00
- EV total ownership cost
- $53,900.00
- Gas total ownership cost
- $50,300.00
- EV yearly running cost
- $2,780.00
- Gas yearly running cost
- $4,060.00
- Purchase premium recovered (before resale)
- 7.81 years (beyond selected period)
- EV total cost per mile
- $0.898
- Gas total cost per mile
- $0.838
| Component | EV | Gas |
|---|---|---|
| Energy | $600.00 | $1,600.00 |
| Maintenance | $480.00 | $960.00 |
| Insurance | $1,700.00 | $1,500.00 |
- Illustrative inputs, held constant each year. Negative savings mean the EV costs more.
- Break-even recovers the initial purchase premium using annual running savings; it excludes resale and does not promise that an initially cheaper EV stays cheaper.
- Totals include only purchase less incentives, energy, maintenance, insurance and entered resale. Financing, taxes, registration, charger installation and inflation are excluded.
This is a general estimate for information only, not tax, legal or financial advice. Real rules have more conditions than a calculator can show, so check the official source below or a qualified professional for your situation.
How it works
Following the fuel-cost accounting described by AFDC, annual EV energy cost is miles ÷ mi per grid kWh × electricity price. Gas cost is miles ÷ mpg × price per US gallon. Add miles × maintenance per mile and annual insurance for each vehicle.
Ownership cost = purchase − incentives + years × annual running cost − purchase × resale percentage ÷ 100 Purchase-premium payback = (EV purchase − incentives − gas purchase) ÷ (gas annual cost − EV annual cost)
Payback excludes resale because resale is entered only for the end of the selected period. A positive premium with no annual saving is never recovered at these costs. An EV that starts cheaper is labeled accordingly, even if its running costs are higher. All example inputs are illustrative, not market averages. EV efficiency includes charging losses, so no further charging-loss factor is applied.
IRS states that federal new, used and commercial clean vehicle credits are unavailable for vehicles acquired after September 30, 2025. For earlier acquisitions, a binding written contract and payment by that date are relevant, along with other eligibility conditions. Incentives default to zero; enter only amounts actually available to you.
No intermediate rounding is used. Currency displays cents, cost per mile three decimals and payback up to two decimals. Costs stay constant; this is undiscounted accounting without financing, taxes, charger installation or inflation.
Worked examples
Five years without resale
With a $40,000 EV and $30,000 gas car, no incentive, 12,000 miles/year, 4 mi/kWh at $0.20, 30 mpg at $4, maintenance of $0.04/$0.08 per mile and gas insurance of $1,500 plus $200 for the EV: annual costs are $2,780 EV and $4,060 gas. Five-year totals are $53,900 and $50,300. EV savings are −$3,600; purchase-premium payback is 7.8125 years.
Resale after five years
Using the same inputs with 50% resale for both vehicles subtracts $20,000 from EV cost and $15,000 from gas cost. Totals become $33,900 and $35,300. The EV saves $1,400. Purchase-premium payback before resale stays 7.8125 years.
Frequently asked questions
Does this include a federal EV credit?
What does a negative savings result mean?
Does payback include resale?
What if I drive zero miles?
What resale percentage should I use?
Sources
- AFDC — Vehicle Cost Calculator methodology (checked 2026-11-14)
- IRS — Clean vehicle tax credits (checked 2026-11-14)
Last reviewed 2026-11-14; next review due by 2026-12-14. The method is written out above so you can check our math.