Lelifi·tools

EV vs Gas Cost Calculator

Driving 12,000 miles a year, a 30 mpg gas car costs $1,280 in fuel and an EV at 3.5 miles per kWh costs $582.86, saving $697.14 a year. The $8,000 price gap pays back in 11.5 years, and 10-year savings reach $6,971.

See how much you would spend on energy each year driving an EV versus a gas car, and how many years of fuel savings it takes to pay back a higher sticker price.

By the Lelifi editors ·

Key takeaways

Annual energy cost at 12,000 miles (30 mpg vs 3.5 mi/kWh)$1280$583$697Gas fuel ($1280)EV electricity ($583)Saved ($697)
At 12,000 miles, the EV spends $583 on electricity where the gas car spends $1,280 on fuel.
The math behind the calculatorgas: 12,000 / 30 = 400 gal x $3.20 = $1,280EV: 12,000 / 3.5 = 3,429 kWh x $0.17 = $583save: $1,280 - $583 = $697 a year= $697 saved, 5.8 cents per milePayback on an $8,000 price gap: $8,000 / $697 = 11.5 years.
Two divisions and a subtraction, that is the whole comparison.
On this page
  1. What the calculator compares
  2. Worked example: 12,000 miles a year
  3. Home charging vs public fast charging
  4. Annual energy cost at a glance
  5. Fuel is only part of the story
  6. How long until the EV pays for itself?

What the calculator compares

An EV and a gas car both cost money to move, just in different ways. A gas car burns gallons; an EV pulls kilowatt-hours from the grid. This calculator puts both on the same footing so you can compare dollars per year instead of miles per gallon against miles per kilowatt-hour.

The math is short:

Feed in your own numbers above. A typical US driver covers about 12,000 to 13,000 miles a year, pays around $3.10 a gallon for regular gas, and pays roughly 16 to 17 cents per kilowatt-hour at home. Change any of those and the answer moves, which is exactly why a national average is a poor guide for your own decision.

The calculator also shows cost per mile, gallons and kilowatt-hours used, and how long it takes for the fuel savings to pay back a higher purchase price. Everything runs in your browser, nothing you type is uploaded or stored.

Worked example: 12,000 miles a year

Take a gas car that does 30 mpg and an EV that does 3.5 miles per kWh. Gas is $3.20 a gallon and home electricity is 17 cents per kWh. You drive 12,000 miles.

Per mile that is 10.7 cents for the gas car and 4.9 cents for the EV, the electric car costs less than half as much to fuel. Over ten years the saving is about $6,970, and that is before you count the lower maintenance an EV needs.

The catch is the sticker price. If the EV costs $8,000 more than the gas car you would otherwise buy, the fuel saving of $697 a year takes $8,000 ÷ $697 = 11.5 years to break even. A federal tax credit of $7,500 shrinks that gap to $500 and payback to under a year.

Home charging vs public fast charging

The single biggest number in this whole comparison is what you pay per kilowatt-hour, and that depends on where you charge. Home electricity is cheap; public DC fast charging is not.

Run the same EV at a public fast charger priced at 45 cents per kWh: 3,429 kWh × $0.45 = $1,543 a year. That is $263 more than the gas car. A driver with no home charging who relies on fast chargers can end up spending more on energy than they would have on gasoline.

The sweet spot is charging at home overnight, ideally on a time-of-use plan where off-peak power can drop below 10 cents per kWh. At 10 cents, the yearly EV cost falls to about $343, a saving of more than $900 over the gas car. If you have rooftop solar, the effective cost can fall to 5 cents or less. This is why 'can I charge at home?' matters more than almost any spec on the car.

Annual energy cost at a glance

The table below compares yearly energy cost across common gas efficiencies and EV efficiencies, at 12,000 miles with gas at $3.20 a gallon and home electricity at 17 cents per kWh.

Gas carCost per yearEVCost per year
20 mpg (truck)$1,9202.5 mi/kWh (large EV)$816
25 mpg$1,5363.0 mi/kWh$680
30 mpg$1,2803.5 mi/kWh$583
35 mpg$1,0974.0 mi/kWh$510
45 mpg (hybrid)$8534.5 mi/kWh$453

Two things stand out. First, the EV wins at every row on home charging, and it wins by the most when the gas car is thirsty. Second, a 45 mpg hybrid is close to a mid-range EV on energy cost, so if you drive a lot of highway miles a hybrid can be the cheaper choice overall. The US Department of Energy's fueleconomy.gov lets you look up the exact figures for any model you are considering.

Fuel is only part of the story

Energy cost is the easiest part of the comparison to measure, but it is not the whole bill. Over the life of a car, maintenance and repairs can swing the numbers as much as fuel does.

Add it up and studies typically put EV maintenance near 6 cents a mile against about 10 cents for a gas car. On 12,000 miles a year that is another $480 a year in the EV's favour, which can cut the payback period roughly in half.

How long until the EV pays for itself?

The payback question is simple arithmetic: divide the extra you pay for the EV by the money it saves you each year. The calculator does this for you, but the answer depends heavily on three things.

Your electricity price. Cheap off-peak power can double the yearly saving; expensive fast charging can erase it. Your gas price. The higher gas goes, the faster an EV pays off. The price gap. Tax credits and cheaper entry-level EVs shrink it fast. A $7,500 credit against an $8,000 gap leaves $500 to earn back, which the fuel saving covers in under a year.

For the wider picture on how energy prices move and how they feed into everything else you buy, see the US Energy Information Administration, which publishes monthly gasoline and electricity price data. The Alternative Fuels Data Center has state-by-state charging costs and a savings calculator of its own. One honest caveat: this tool compares energy cost, not total cost of ownership. Insurance, registration fees (some states charge EVs extra) and depreciation all matter, and only you can weigh those.

Frequently asked questions

How much cheaper is an EV to run than a gas car?

At 12,000 miles a year, a 30 mpg gas car at $3.20 a gallon costs about $1,280 in fuel, while an EV at 3.5 miles per kWh and 17 cents per kWh costs about $583. That is a saving of roughly $697 a year, or 5.8 cents per mile.

What does an EV cost per mile?

Around 4.9 cents per mile at 17 cents per kWh and 3.5 miles per kWh. A 30 mpg gas car at $3.20 a gallon costs about 10.7 cents per mile, so the EV is less than half the cost per mile on home charging.

How many years until an EV pays for itself?

If the EV costs $8,000 more and saves $697 a year in fuel, the payback is about 11.5 years. With a $7,500 federal tax credit the gap drops to $500 and payback is under a year. Add lower maintenance and it comes down further.

Is public fast charging more expensive than gas?

Often, yes. At 45 cents per kWh, the same EV costs $1,543 a year to run, more than the $1,280 gas car. Charging mostly at home is what makes an EV cheap; a driver who relies on public fast charging may save little or nothing.

How many gallons of gas does 12,000 miles use?

At 30 mpg it takes 400 gallons. At 25 mpg it takes 480 gallons, and at 40 mpg just 300 gallons. Multiply the gallons by your local price to get the yearly fuel cost.

How much electricity does an EV use per year?

A car that does 3.5 miles per kWh uses about 3,429 kWh over 12,000 miles. The average US home uses roughly 10,500 kWh a year, so the car adds about a third to your household electricity.

Does the EV number include charging losses?

No. This calculator uses the car's rated efficiency, so real-world cost is usually 10 to 15% higher because some energy is lost as heat while charging. Round the electricity price up a little to account for it.

Does this compare maintenance costs?

No, it is fuel and electricity only. EVs skip oil changes and use regenerative braking so brake pads last far longer. Studies put EV maintenance near 6 cents a mile versus about 10 cents for a gas car, which adds to the savings.

What gas price should I use?

Use your local price, not a national average. In early 2026 US regular averaged roughly $3.10 to $3.20 a gallon, but prices swing by more than a dollar between states and seasons. A 50-cent change moves the yearly gas cost by about $200.

What is a realistic EV efficiency figure?

Most modern EVs do between 3 and 4 miles per kWh. A small efficient model like a Model 3 or Bolt can hit 4.0, while a large pickup or SUV may drop to 2.0 to 2.5. Check the EPA label for the exact model.

Does a home solar setup change the answer?

Yes, a lot. If you charge from rooftop solar, your effective electricity cost can fall to 5 cents per kWh or less, which cuts the EV's yearly cost to around $170 and makes it far cheaper than any gas car.

Do I need a special charger at home?

A standard 120-volt outlet adds about 3 to 5 miles of range per hour, which covers many commutes overnight. A 240-volt Level 2 charger adds 20 to 30 miles an hour and usually costs $500 to $1,500 installed.

Spotted a wrong number or a broken result?

More Automotive tools

See all Automotive tools

Fee schedules, rates and rules change without notice. Always confirm important figures with the official source before you rely on them.