Trip Cost Calculator (Gas vs EV)
This calculator works out the energy cost of the same trip in a gas car and an electric car, in total and per mile or kilometer. The gap between them depends on how efficient each car is, what you pay for fuel, and how much of the charging happens at home rather than at public chargers.
Estimate trip costs for a gas vehicle versus an electric vehicle with metric or imperial units, mixed electricity pricing and charging loss.
Notes
- The home/public electricity mix applies a blended kWh price.
- Charging loss accounts for AC/DC conversion and battery overhead.
- Metric: km, L/100 km, kWh/100 km. Imperial: miles, MPG, Wh/mile.
How the calculation works
- Gas cost: kilometers × liters per 100 km ÷ 100 × price per liter. In imperial units: miles ÷ MPG × price per gallon.
- EV cost: energy used × (1 + charging loss) × blended electricity price. Energy used is kilometers × kWh per 100 km ÷ 100, or miles × Wh per mile ÷ 1,000.
- Blended price: home share × home price + public share × public price. If one price is 0, the calculator treats that type of charging as unused and applies only the other price, so free charging cannot be entered as 0.
- Charging loss: the EPA says its MPGe values include charging losses, and FuelEconomy.gov says the same for kWh per 100 miles. Set charging loss to 0 when you use those official figures, and note that 1 kWh per 100 miles equals 10 Wh per mile.
What the result does not include
- Tolls, parking, tires, maintenance or the price of either car.
- Charging session, idle or subscription fees, unless you add them to your public price per kWh.
- Extra energy used for heating, cooling, heavy loads or high speed, unless you raise the consumption figures.
- Currency conversion. Enter all prices in one currency. The result shows a $ sign whichever currency you use.
What can change the result
- Cold weather: FuelEconomy.gov says a gas car's city mileage is roughly 15% lower at 20°F (-7°C) than at 77°F (25°C). It also says an EV's fuel economy can drop roughly 39% in cold weather in mixed driving, citing a 2019 AAA study.
- Where you charge: on a long trip you may do most of your charging away from home, so lower the home share, or set it to 0 if every charge is public.
To compare the cost of owning each car beyond one trip, use the EV vs Gas Total Cost of Ownership Calculator. Planning a long drive? Read Electric vs Gas Car Road Trip.
Frequently asked questions
How does the trip cost calculator work?
Enter distance, fuel price or electricity rate, and vehicle efficiency. The calculator estimates the gasoline trip cost and compares it with an electric vehicle.
Is the trip cost calculator free?
Yes. The Autozis trip cost calculator is free and does not require an account.
Can I compare gas and electric vehicle trip costs?
Yes. Enter gasoline efficiency, electric consumption and local electricity prices to compare both trips side by side.
Does the calculator support metric and imperial units?
Yes. Use kilometers and liters or miles and gallons, depending on your preferred system.
How do I compare EV and gas cost per mile?
For a gas car, divide the price per gallon by MPG. For an EV, multiply kWh per mile by your price per kWh. The calculator shows both per mile or per kilometer, including your home and public charging mix.
Sources and review date
Sources reviewed on November 10, 2026.