EV vs Gas Car Cost Calculator

Compare electricity charging versus gasoline fuel costs, federal tax credits, maintenance savings, and payback horizon.

Is an electric vehicle (EV) truly cheaper to operate than an internal combustion engine (ICE) vehicle? Compare residential home electricity rates ($/kWh) and EV efficiency (miles/kWh) against gasoline prices and MPG, factoring in reduced EV maintenance and federal/state tax incentives.

How this calculator works

Annual Gas Fuel = (Annual Miles / Gas MPG) * Gas Price/Gal. Annual EV Fuel = (Annual Miles / EV Miles per kWh) * Electric Rate/kWh. Annual Operating Savings = (Gas Fuel – EV Electric) + (Gas Maintenance – EV Maintenance). Payback Period = Net Purchase Price Premium / Annual Operating Savings.

Key benefits

Assumptions & exclusions

Frequently asked questions

How much cheaper is electricity than gasoline per mile?

At average US utility rates of $0.16/kWh, an EV getting 3.5 miles/kWh costs approximately $0.045 per mile to fuel. A gas car getting 28 MPG with gas at $3.60 costs $0.128 per mile. The EV fuel cost is nearly 65% cheaper per mile driven.

Do electric cars really require less maintenance?

Yes. EV powertrains have roughly 20 moving parts compared to over 2,000 in an internal combustion engine. EVs do not need engine oil changes, timing belts, catalytic converters, or spark plugs, and regenerative braking preserves brake pads for 100,000+ miles.

What annual mileage makes an electric car worth the higher price?

There is no universal mileage. Break-even depends on the price gap after incentives and on your yearly fuel and maintenance savings. High-mileage drivers repay the premium far sooner, which is why this calculator divides the net price premium by your own yearly operating savings.

Should I include a home charger in the comparison?

Yes, if you need to install one. Add the charger and installation cost to the electric car's effective purchase price before comparing, or note it separately, so the break-even time reflects everything you must spend before the first cheap mile is driven.

What electricity rate should I use if I charge away from home sometimes?

Use a blended rate: weight your home rate and the public charging price by roughly how much of your charging happens in each place. Entering only the home rate understates electricity costs for drivers who rely heavily on public fast chargers.

Why does the calculator show zero fuel savings if electricity costs more?

Each saving line is floored at zero, so a negative saving is reported as no saving rather than as a loss. If your electricity works out dearer than gasoline, compare the two yearly fuel cost figures directly — they show the true gap.

Formula-Based Calculator · By QalcTools Editorial Team. Formulas tested against independent reference values · Content reviewed November 2026 by the QalcTools Editorial Team.

Methodology note: Alternative Fuels Data Center (AFDC) and National Renewable Energy Laboratory (NREL) operational benchmarks.

Related calculators

Category: Loans & Credit Calculators

About this calculator

An electric car usually costs more to buy and less to run, so the honest question is not which car is cheaper but when the running savings repay the purchase premium — if they ever do at your mileage. This calculator puts the two sides on one page: gasoline cost from your miles, fuel economy and pump price; electricity cost from the same miles, the car’s efficiency in miles per kilowatt-hour and your home electricity rate; the maintenance gap between the two drivetrains; and the price gap after any purchase incentive you enter. The outputs are the yearly operating saving, the break-even time in years, and the net position after five years.

How it works

Enter your yearly mileage once — it drives both cars. For the gasoline car, the tool divides miles by miles per gallon to get gallons per year, then multiplies by the price per gallon. For the electric car, it divides the same miles by miles per kilowatt-hour to get electricity used, then multiplies by your rate per kilowatt-hour. It adds the maintenance difference to the fuel difference to get total yearly operating savings. Finally it compares purchase prices after subtracting the incentive from the electric car’s price: that net premium, divided by the yearly savings, is the break-even time, and five years of savings minus the premium is the five-year net figure.

The formula, explained

Gas cost = (Miles ÷ MPG) × Price per gallon; EV cost = (Miles ÷ Miles per kWh) × Rate per kWh; Break-even years = Net price premium ÷ Total yearly operating savings

The engine computes gallons as miles divided by MPG (zero if MPG is zero) and charges them at the pump price; it computes kilowatt-hours as miles divided by miles per kWh and charges them at the electricity rate. Each saving is floored at zero with a maximum-of-zero rule, so the electric car can never show negative fuel or maintenance savings even if your inputs make electricity the dearer option — the purchase premium, by contrast, is signed and can be negative. Break-even is the premium divided by total yearly savings, rounded to one decimal, and is reported as zero when there is no positive premium or no savings. The five-year figure is five times the yearly savings minus the positive part of the premium. Dollar outputs are rounded to whole dollars.

Inputs and variables

VariableMeaningExample
Annual MilesHow far you drive in a year. It is the single most powerful input: double the miles and you roughly double the fuel savings, while the purchase premium stays fixed.15,000 miles
Gas Car MPG and Fuel PriceThe gasoline car’s fuel economy and your local price per gallon. Together they set the per-mile fuel cost the electric car has to beat.30 MPG at $3.60 per gallon
EV Efficiency (Miles per kWh)How far the electric car travels on one kilowatt-hour of electricity. Higher is more efficient; around 3 to 4 miles per kWh is typical for current models.3.5 miles per kWh
Electricity Rate ($ per kWh)Your home charging price per kilowatt-hour, from your utility bill. Public fast charging usually costs more and would shrink the savings if it were your main source.$0.17 per kWh
Annual Maintenance (Both Cars)Your yearly maintenance estimate for each car. Electric cars skip oil changes and many wear items, so the gas figure is usually the higher of the two.$1,100 gas vs $600 electric
Purchase Prices and IncentiveThe sticker prices of both cars and any purchase incentive applied to the electric car. The engine subtracts the incentive before comparing, so enter only an amount you are confident you would actually receive.$46,000 EV less $7,500 incentive vs $35,000 gas

Worked example

A driver covering 15,000 miles a year compares a $35,000 gasoline car at 30 MPG with $3.60 fuel and $1,100 yearly maintenance, against a $46,000 electric car at 3.5 miles per kWh, a $0.17 electricity rate, $600 yearly maintenance, and a $7,500 purchase incentive.

  1. Gasoline cost: 15,000 ÷ 30 = 500 gallons, times $3.60 = $1,800 per year.
  2. Electricity cost: 15,000 ÷ 3.5 ≈ 4,286 kWh, times $0.17 ≈ $729 per year. Fuel savings: $1,800 − $729 = $1,071.
  3. Maintenance savings: $1,100 − $600 = $500. Total yearly operating savings: $1,071 + $500 = $1,571.
  4. Net purchase premium: ($46,000 − $7,500) − $35,000 = $3,500. Break-even: $3,500 ÷ $1,571 ≈ 2.2 years.
  5. Five-year position: 5 × $1,571 − $3,500 = $4,357 ahead with the electric car, on the engine’s unrounded savings.

Yearly operating savings of $1,571 ($1,071 fuel plus $500 maintenance), a net purchase premium of $3,500, break-even in about 2.2 years, and a five-year net saving of $4,357 for the electric car.

The example shows why mileage and the incentive decide this comparison more than the sticker prices do. Without the $7,500 incentive the premium would be $11,000 and break-even would stretch to about seven years; with it, the premium nearly vanishes and the running savings dominate within just over two years. A driver covering half these miles would save roughly half as much per year and wait roughly twice as long. Run the page at your real mileage and your real electricity rate before treating any headline saving as yours.

Understanding your results

Break-even years is the figure to plan around, because it converts the whole comparison into a single ownership question: will you keep the car longer than that? If your likely ownership is shorter than the break-even time, the cheaper-to-run car never repays its premium for you, whatever the five-year figure says. If you will keep it well past break-even, every additional year adds roughly the full yearly operating saving to your side of the ledger.

The five-year net saving assumes your mileage, fuel price, electricity rate and maintenance gap all hold steady for five years, which none of them will. Treat it as a scale indicator rather than a promise, and stress-test it on this page: raise the electricity rate to your public-charging price, lower the gasoline price, or cut the mileage to your quietest recent year, and watch whether the electric car still wins. A conclusion that survives those less friendly inputs is one you can act on.

Assumptions and limitations

This comparison covers fuel, routine maintenance and purchase price only. It does not model financing costs on the different purchase prices, insurance differences, depreciation and resale values, tire wear, battery replacement, home charger installation, or the time cost of charging on long trips. Savings are floored at zero line by line, so if electricity genuinely costs you more than gasoline, the page shows no fuel saving rather than a negative figure — check the two yearly cost lines themselves in that case. Incentive eligibility rules change and depend on the vehicle, the buyer and the year, so confirm any credit with current official guidance and your dealer before counting it in the price gap.

Common mistakes to avoid

Sources