What this calculator does
The EV vs Gas Cost per Mile Calculator compares how much it costs to drive an electric vehicle versus a gasoline car for every mile you travel. It uses your local electricity and fuel prices along with the efficiency of each vehicle, then projects annual savings based on the miles you drive each year. Prices should be entered in your own currency and units (the examples use US dollars, kWh, and miles per gallon).
How to use it
Enter your EV efficiency in kilowatt-hours per mile (typical EVs use about 0.25–0.35 kWh/mi), your electricity price in dollars per kWh, the price of gasoline per gallon, and your gas car fuel economy in MPG. Optionally enter your annual mileage to estimate yearly savings. The calculator returns the cost per mile for each, the per-mile savings, and the projected annual difference.
The formula explained
Electric cost per mile is simply the energy consumed per mile multiplied by the electricity rate: \(\text{EV \$/mi} = \text{kWh/mi} \times \text{\$/kWh}\). Gasoline cost per mile is the price of a gallon divided by how many miles that gallon delivers: \(\text{Gas \$/mi} = (\text{\$/gal}) \div \text{MPG}\). Subtracting the EV cost from the gas cost gives the per-mile savings, and multiplying by annual miles gives the yearly savings.
$$\begin{gathered} \text{Savings/mi} = \left(\frac{\text{Gas Price (\$/gal)}}{\text{MPG}}\right) - \left(\text{EV Eff (kWh/mi)} \times \text{Electricity (\$/kWh)}\right) \\[1.5em] \text{Annual Savings} = \text{Savings/mi} \times \text{Annual Miles} \end{gathered}$$
Worked example
Suppose your EV uses 0.30 kWh/mi at $0.15/kWh: EV cost = \(0.30 \times 0.15 = \$0.045/\text{mi}\). A gas car at $3.50/gal and 30 MPG costs \(3.50 \div 30 = \$0.1167/\text{mi}\). The EV saves about $0.0717 per mile. Over 12,000 miles that is roughly $860 saved per year.
FAQ
Where do I find my kWh per mile? Most EVs display lifetime efficiency on the dashboard; otherwise divide miles driven by kWh consumed.
Does this include maintenance or charging losses? No, it covers energy cost only. Charging losses (5–15%) can be approximated by slightly increasing your kWh/mi figure.
Can I use it for any country? Yes—just enter prices in your local currency and matching units. The math is the same everywhere.