EV vs Gas Cost Calculator

Enter your annual mileage, vehicle fuel efficiency, gas price, and electricity cost. See the annual fuel cost for both electric and gas vehicles, plus your potential savings by switching to electric.

Updated June 2026 · How this works

How It Works
The formula, explained simply

This EV vs gas cost calculator compares annual fuel expenses by calculating how much you spend on gasoline versus electricity for the same driving distance. The tool uses your annual mileage as the baseline, then determines fuel consumption for both vehicle types based on their efficiency ratings.

For gas vehicles, the calculator divides your annual miles by the car's MPG rating to find total gallons needed, then multiplies by your local gas price. For electric vehicles, it calculates kilowatt-hours needed by multiplying annual miles by the EV's kWh/100 miles rating, then multiplies by your electricity cost per kWh.

The comparison reveals your potential annual savings by switching to electric, or additional costs if gas remains cheaper in your area. Results depend heavily on local fuel prices, vehicle efficiency, and your driving patterns. High-mileage drivers typically see the largest savings from switching to electric, while low-mileage drivers may find smaller cost differences.

When To Use This
Right tool, right situation

Use this calculator when comparing specific vehicles before purchase, or when deciding whether to switch from gas to electric. It's particularly valuable for high-mileage drivers who rack up 15,000+ miles annually, as fuel savings compound quickly over long distances.

The tool is also useful for budget planning when considering an EV purchase. While electric cars often cost more upfront, significant fuel savings can offset higher purchase prices over time. Factor these annual savings into your total cost of ownership calculation.

Consider running the calculation with different scenarios - peak vs off-peak electricity rates, seasonal efficiency changes, or projected future fuel prices. This helps you understand how robust your savings will be across different conditions and make a more informed vehicle choice.

Common Mistakes
Why results sometimes look wrong

The most common mistake is using unrealistic efficiency numbers or outdated fuel prices. Always check current local prices and use EPA ratings rather than manufacturer claims. Don't forget that EV efficiency includes charging losses - the electricity meter reading will be 10-15% higher than the battery actually receives.

Another error is ignoring seasonal variations. EV efficiency drops 20-40% in cold weather due to battery heating and cabin warming, while gas car efficiency is less affected. If you live in a cold climate, consider using winter efficiency numbers for a more accurate year-round cost estimate.

Many people also forget about time-of-use electricity rates. If your utility offers cheaper overnight rates, EV costs could be 30-50% lower than standard rates. Check your electric bill for time-of-use options before making the comparison, as this significantly impacts the calculation.

The Math
Worked examples and deeper derivation

The calculation uses straightforward division and multiplication. Annual gas cost equals (annual miles ÷ MPG) × gas price per gallon. Annual electricity cost equals (annual miles × kWh per 100 miles ÷ 100) × electricity cost per kWh.

For example, driving 12,000 miles annually in a 28-MPG car with $3.50/gallon gas costs $1,500 per year (12,000 ÷ 28 × 3.50). The same distance in an EV using 33 kWh per 100 miles with $0.12/kWh electricity costs $475 per year (12,000 × 33 ÷ 100 × 0.12), saving $1,025 annually.

Efficiency ratings come from EPA testing. Gas MPG combines city and highway driving, while EV kWh/100 miles accounts for charging losses and climate control. Real-world efficiency varies with driving style, weather, and terrain, but EPA ratings provide standardized comparison points.

Suburban family with 15,000 annual miles
15,000 miles/year, 30 MPG gas car, 32 kWh/100mi EV, $3.75/gallon gas, $0.13/kWh electricity
The EV would cost $624 per year to fuel while gas would cost $1,875, saving $1,251 annually on fuel alone.
Urban driver with short commute
8,000 miles/year, 26 MPG gas car, 35 kWh/100mi EV, $4.20/gallon gas, $0.18/kWh electricity
The EV would cost $504 per year while gas would cost $1,292, saving $788 annually despite higher electricity rates.
Rural driver with cheap electricity
18,000 miles/year, 32 MPG gas car, 38 kWh/100mi EV, $3.25/gallon gas, $0.08/kWh electricity
The EV would cost only $547 per year compared to $1,828 for gas, saving $1,281 annually with low rural electric rates.

Common questions

How much does it cost to charge an electric car vs fill up with gas?
Electric vehicles typically cost 60-80% less to fuel than gas cars. With average US electricity rates around $0.12/kWh and gas at $3.50/gallon, an efficient EV costs about $0.04 per mile while a 28-MPG gas car costs $0.125 per mile. Your actual costs depend on local fuel prices and vehicle efficiency.
What factors affect EV vs gas cost comparison the most?
Annual mileage has the biggest impact on total savings - high-mileage drivers see the largest cost differences. Local electricity and gas prices matter significantly, as does vehicle efficiency. Time-of-use electricity rates can reduce EV charging costs by 30-50% if you charge overnight.
How do I find my electric car's kWh per 100 miles rating?
Check the EPA fuel economy sticker on new EVs or look up your model on fueleconomy.gov. Most efficient EVs use 25-35 kWh per 100 miles, while larger SUVs may use 35-50 kWh per 100 miles. Your actual consumption varies with driving style, weather, and terrain.

Need something this doesn't cover?

Suggest a tool — we'll build it →