← Back to Vehicle, EV & Driving Tools

EV vs Gas Cost Per Mile Calculator

Enter your EV’s efficiency and electricity rate, and a gas car’s fuel economy and gas price, to compare what each costs per mile in energy and fuel.

Checking tool availability…

EV vs Gas Cost Per Mile Calculator calculates in your browser.

Electricity cost per mile against gas cost per mile

Cost per mile puts an EV and a gas car on the same footing: what you spend on energy or fuel to cover the same distance. For a gas car it is the price per gallon divided by the miles per gallon. For an EV it is the electricity drawn from the grid per mile times your rate.

This calculator works out both from the prices you enter, shows which is cheaper and by how much, and handles battery-based and EPA (wall-based) EV figures so charging losses are counted once. It compares energy and fuel only — not the full cost of owning either car.

How to use the EV vs Gas Cost Per Mile Calculator

  1. Choose what your EV efficiency figure measures, its unit, and enter it.
  2. Enter your electricity rate, and keep or change the charging efficiency for a battery figure.
  3. Choose the gas car’s fuel economy unit and enter its fuel economy.
  4. Enter the gas price.

How the calculation works

EV cost per mile = grid kWh per mile × electricity rate

Battery figure: grid kWh per mile = battery kWh per mile ÷ charging efficiency

Gas cost per mile = gas price per gallon ÷ MPG

Difference = the dearer cost − the cheaper cost

The last row uses a public fast-charging price: at $0.45/kWh the gas car is cheaper per mile.

EV vs Gas Cost Per Mile Calculator examples
EVElectricityGas carGas priceEV per mileGas per mile
3.5 mi/kWh (battery, 90%)$0.1530 MPG$3.60$0.0476$0.12
30 kWh/100 mi (EPA)$0.2025 MPG$3.20$0.0600$0.13
4 mi/kWh (battery, 90%)$0.4535 MPG$3.00$0.13$0.0857

Calculated on your device

  • The calculation runs in your browser as you type; nothing is sent to a server.
  • Your battery figures, rates, and results are not sent to Looty Tools or stored.
  • The calculator area is masked from session-recording analytics.

Limitations

  • Energy and fuel only — not purchase price, depreciation, financing, insurance, maintenance, registration, tires, or battery costs.
  • Prices are the ones you enter, not live prices, and they change over time.
  • One efficiency and one fuel economy figure; both vary with speed, weather, and driving.
  • Doesn’t include public-charger session fees or memberships.

Related calculators

EV vs Gas Cost Per Mile Calculator FAQ

Is electricity cheaper than gas per mile?
Often, but it depends on your prices. An EV at 3.5 mi/kWh charging at $0.15/kWh with 90% efficiency costs about $0.0476 a mile; a 30 MPG car at $3.60 a gallon costs $0.12 a mile.
How do I work out gas cost per mile?
Divide the price per gallon by the miles per gallon: $3.60 ÷ 30 MPG = $0.12 a mile.
How do I work out EV cost per mile?
Multiply the electricity drawn from the grid per mile by your rate. 3.5 mi/kWh at the battery is 0.3175 kWh a mile from the grid at 90% efficiency; at $0.15/kWh that is $0.0476.
Does this include maintenance or insurance?
No. It compares energy and fuel costs only — not purchase price, depreciation, insurance, maintenance, or registration.
Can I use liters per 100 km?
Yes. Choose MPG (US), MPG (imperial), L/100 km, or km/L; the gas price unit follows, and switching converts what you typed.
Are the battery figures and rates I enter sent anywhere?
No. The calculation runs in your browser as you type. Your battery sizes, efficiency figures, electricity rates, and results are not sent to Looty Tools or stored, and the calculator area is masked from session-recording analytics. Refreshing the page clears it.

More from Looty

Explore Looty’s Ecosystem

Discover more ways Looty can help you learn, organize, create, and make an impact.