Skip to content

Personal finance · Vehicles

EV vs Gas Cost Calculator

Compare total ownership costs and see whether operating savings recover an EV’s upfront premium.

  • Formulas checked against sources
  • Updated November 2026
  • Free, no sign-up

Your inputs

Example values — change them to yours.
Purchase
Include sales tax and fees; exclude the incentive entered below.
Use a comparable vehicle with the same taxes and fees basis.
Driving
Use the same annual distance for both vehicles.
Both vehicles are sold at the end of this many whole years.
Efficiency
Use electricity purchased at the outlet, including charging losses; not MPGe.
Use combined or expected real-world miles per US gallon.
Prices, upkeep, resale and incentives
Energy prices
Entered price per US gallon, held flat for the whole horizon.
Use the marginal all-in electricity rate, including applicable charges.
Convert session or time fees to an effective energy price before entering.
Share of purchased charging energy at home; the rest is public.
Operating costs
Maintenance, repairs and tires; include planned annual allowances once.
Use the same scope as EV upkeep, including tires.
Insurance, registration and other recurring ownership costs.
Insurance, registration and other recurring ownership costs.
Upfront adjustments
Net equipment and installation paid now; no separate terminal charger credit.
Confirmed amount received now; zero means none, not assumed eligibility.
Confirmed amount received now; exclude discounts already in purchase price.
Terminal values
Net sale proceeds at the chosen horizon, after selling costs.
Net sale proceeds at the same horizon; not a second depreciation charge.
Discounting
Annual nominal discount-rate assumption; not a promised return.
Assumption:
Cash purchase, pre-income-tax. Financing and the federal vehicle-loan interest deduction are excluded. All inputs are examples; verify your own prices and incentives.

Your result

Lower total ownership cost

$877.51 Gas advantage · 8-year PV

Gas costs $877.51 less in present value over 8 years, even with $915.20 of annual EV operating savings.

EV present cost
$47,377
8-year cost at purchase-date value
Gas present cost
$46,499
8-year cost at purchase-date value
EV operating savings
$915.20
Per year; gas minus EV
Simple operating paybackNot within 8 years
Discounted operating paybackNot within 8 years
Caution:
Operating savings are only part of cost
EV operating savings do not guarantee a lower total cost. Purchase outlays, terminal proceeds and timing also matter.

Gas has the lower present cost at sale

Cumulative present cost at 5.0% a year; terminal proceeds enter only in year 8.

Flat entered nominal prices; pre-income-tax cash purchase. Before the sale year, the lines exclude resale.

Show the data table

Nominal and present costs side by side

Same chosen horizon; nominal totals are undiscounted, present costs are at purchase; rounded parts may differ
Cost componentEVGas

Show the math

Present cost = upfront outlay + Σ annual operating cost ÷ (1 + r)t − terminal proceeds ÷ (1 + r)N
EV energy per year
12,000 ÷ 100 × 30 × (80.0% × $0.16 + 20.0% × $0.45) = $784.80 per year
Annual operating savings
$3,500 − $2,585 = $915.20 per year
Upfront outlays
EV $40,000 − $0 + $1,500 = $41,500; gas $32,000 − $0 = $32,000
Discounted cost components
EV $41,500 + $16,706 − $10,829 = $47,377; gas $32,000 + $22,621 − $8,122 = $46,499
Total ownership difference
$46,499 − $47,377 = −$877.51; gas costs less
N is the whole-year ownership horizon, t is the year and r is the entered annual nominal opportunity cost. Operating costs are paid at year end; purchases and confirmed incentives occur now. Displayed components are rounded; raw amounts determine totals.

Understanding EV and gas ownership costs

What the result means

The answer identifies the vehicle with the lower total ownership cost in present value. Present value expresses future bills and sale proceeds at their purchase-date value using your opportunity cost: the value of tying up money in a vehicle. It is different from the nominal total, which adds the entered dollars without discounting. Both options use the same annual driving and ownership horizon. Compare vehicles that meet similar needs.

How it is calculated

Each option begins with its purchase price, including taxes and fees, less its confirmed immediate incentive. The EV also includes your net installed charger cost. Annual energy cost comes from distance, efficiency and the entered energy prices. The home charging share weights purchased kilowatt-hours, rather than the number of charging stops. Upkeep and other annual costs complete the operating bill.

The model pays operating bills at each year end and subtracts net sale proceeds at the chosen final year. It discounts each future amount at the same annual opportunity cost. The chart includes resale only at that final year; earlier points are accumulated spending, not costs of selling the vehicles early. The show-the-math panel and comparison table expose the same underlying cash events.

Worked example

Suppose a comparable EV costs $40,000 and a gas vehicle $32,000, with no upfront incentives. A $1,500 charger raises the EV upfront outlay to $41,500. Both travel 12,000 miles a year for eight years. At 30 kilowatt-hours per 100 miles, with 80% of purchased energy at $0.16 per kilowatt-hour and 20% at $0.45, EV electricity costs $784.80 a year. The gas vehicle uses 400 US gallons at $3.50, costing $1,400.

Adding upkeep of $600 for the EV and $900 for gas, and $1,200 in other annual costs for each, gives annual operating costs of $2,584.80 and $3,500. The EV saves $915.20 per year in operation. End-of-year-eight net sale proceeds of $16,000 and $12,000 give nominal total costs of $46,178.40 and $48,000.

At the assumed 5% annual opportunity cost, the present costs are $47,377 for the EV and $46,499 for gas. Gas costs $877.51 less in present value, despite the EV's lower operating bill and nominal total. Neither simple nor discounted operating savings recover the EV's $9,500 upfront premium within eight years. These figures are hypothetical inputs, not current vehicle quotes.

What changes the result most

A larger purchase premium increases the EV's initial cost. More driving magnifies the difference in energy costs; more public charging can reduce the EV advantage when its effective rate is higher. Resale assumptions directly affect total cost but do not change operating payback. A higher opportunity cost gives less weight to future operating savings and sale proceeds. Try different terminal values and upkeep allowances instead of relying on one uncertain projection.

Limits and assumptions

Simple operating payback is the first whole year end when accumulated EV operating savings cover a positive upfront premium. Discounted operating payback makes the same test after discounting each year's savings. Both exclude sale proceeds and stop at the selected horizon. “No upfront premium” means there is no initial amount to recover; higher future EV operating costs can still make gas cheaper overall. A payback label is not an all-in ownership recommendation.

Use purchased electricity at the outlet, including charging losses. EPA label figures already account for those losses; do not add them again. Battery-only consumption needs conversion before entry. Convert public session or time fees to an effective cost per kilowatt-hour. Use marginal all-in home rates and include comparable insurance, registration, repairs and tire costs. Purchase less resale already captures depreciation, so do not add it again as upkeep.

This is a cash-purchase, pre-income-tax comparison. Financing and the federal vehicle-loan interest deduction are excluded. Incentives are only the confirmed amounts you enter as received at purchase; eligibility and later tax-refund timing are not calculated. Annual distance, prices and operating costs stay flat in nominal dollars, with no automatic inflation, replacement battery, tariff or resale prediction. For financing use the Auto Loan Calculator; for your wider spending plan use the Budget Planner Calculator.

Frequently asked questions

Does cheaper charging mean an EV costs less overall?
No. Charging is one operating cost. The comparison also includes entered purchase prices, confirmed upfront incentives, a charger, upkeep, other annual costs and terminal sale proceeds. A lower annual operating bill can coexist with a higher total ownership cost. Compare similar vehicles over the same horizon and review both nominal and present-value totals.
Should I enter MPGe or kilowatt-hours per 100 miles?
Enter kilowatt-hours per 100 miles measured at the outlet, including charging losses. MPGe is an energy-equivalence measure and is not this input. EPA label estimates include charging losses, so do not add those losses again. If you use battery-only data, convert it to purchased electricity first. Actual driving and charging conditions can differ from test conditions.
What does home charging share mean?
It is the share of purchased electricity charged at the home price, not the share of charging stops. The remaining energy uses the public price. Both rates are in dollars per kilowatt-hour. If a station bills by time or session, estimate an effective energy price including those fees before entering it. The calculator does not infer an electricity tariff.
How do simple and discounted operating payback differ?
Both measure recovery of a positive EV upfront premium using annual operating savings, with payments at year end. Simple payback ignores discounting; discounted payback uses the entered opportunity cost. Neither uses terminal sale proceeds, so these are different from the total ownership comparison. No premium means no upfront amount to recover, not a guarantee that future EV costs are lower.
Are tax credits or the vehicle-loan interest deduction included?
Only the confirmed upfront incentive amounts you enter are included. The calculator does not determine legal eligibility or provide a current incentive schedule. Enter a benefit only if it is available to you and received at purchase; a later tax refund needs a separate timing adjustment. Results are pre-income-tax. Financing and the federal vehicle-loan interest deduction are excluded.
How should I estimate resale values and other costs?
Enter net sale proceeds for each vehicle at the same selected horizon, allowing for selling costs. These values are uncertain and should be varied. Do not also add depreciation as an annual cost: purchase price less sale proceeds already captures it. Use comparable insurance, registration, maintenance, repair and tire allowances. The model holds annual mileage and all entered prices flat without automatic inflation or battery replacement forecasts.

Sources

  1. EPA: fuel economy testing and charging-loss measurement (opens in a new tab)Checked November 2026
  2. DOE and EPA: electric-vehicle label consumption units (opens in a new tab)Checked November 2026
  3. DOE Alternative Fuels Data Center: EV costs and charging considerations (opens in a new tab)Checked November 2026
  4. NIST Handbook 135: life-cycle costs and discounting (opens in a new tab)Checked November 2026
Results are educational estimates, not financial, tax or legal advice. They depend on the inputs and assumptions shown; check important decisions with a qualified professional. Compare like-for-like vehicles using confirmed inputs; this is a pre-income-tax cash-purchase estimate, not an incentive eligibility or financing calculation.
Ryan O'Connell, CFA
Built by Ryan O’Connell, CFA, FRM
Finance educator building free calculators that show every formula, so you can check each step.
Formulas checked against 4 sources · Updated November 2026
Search
Contact Ryan

Get in touch

Contact Me

Have a question or want to work together? Fill out the form below and we'll get back to you as soon as possible.

Contact Form Demo

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Results appear as you type. Use the arrow keys to move through them.