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.
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
- Choose what your EV efficiency figure measures, its unit, and enter it.
- Enter your electricity rate, and keep or change the charging efficiency for a battery figure.
- Choose the gas car’s fuel economy unit and enter its fuel economy.
- 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 | Electricity | Gas car | Gas price | EV per mile | Gas per mile |
|---|---|---|---|---|---|
| 3.5 mi/kWh (battery, 90%) | $0.15 | 30 MPG | $3.60 | $0.0476 | $0.12 |
| 30 kWh/100 mi (EPA) | $0.20 | 25 MPG | $3.20 | $0.0600 | $0.13 |
| 4 mi/kWh (battery, 90%) | $0.45 | 35 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 Charging Cost Per 100 Miles CalculatorEstimate EV charging cost for 100 miles from the numbers you enter.
- EV vs Gas Annual Cost CalculatorCompare EV and gas cost over a year from the figures you enter.
- EV vs Gas Break-Even Mileage CalculatorEstimate the mileage where EV and gas costs meet, from the figures you enter.
- Fuel Economy ConverterConvert miles per gallon and liters per 100 kilometers.
Guides
- Electricity vs Gas Per MileWhen charging an EV costs less per mile than buying gas, worked from electricity rates, EV efficiency, MPG, and gas prices — including when it doesn’t.
- Comparing Fuel Costs FairlyFive checks for a fair EV vs gas fuel-cost comparison: the same distance, charging losses counted once, real-world MPG, your charging mix, and today’s prices.
- Gas Price That Matches EV CostFind the gas price at which a gas car would cost the same per mile as charging your EV, and the electricity rate that would match today’s gas.
- Calculating Break-Even MileageStep by step: the extra upfront cost of an EV, the saving per mile, the break-even distance, and the years it takes — worked at full precision.
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.


