By EnergyBS Electrification Desk | October 2, 2026
Every EV-versus-gasoline comparison eventually comes down to one number: what a mile costs to drive. Not the sticker price, not the monthly bill in isolation, but the running cost per mile at your electricity price, your car's efficiency, and your local gasoline price. This guide gives you both formulas, explains where the inputs hide (your car's kWh per 100 miles rating, your delivered electricity rate, charging losses), and works complete examples with every rate labeled as an assumption so you can swap in your own numbers.
If you want the whole-home picture, including charger installation and monthly bills, start with our EV home charging guide and the step-by-step bill math in how much it costs to charge an EV at home. This page goes one level deeper, into the per-mile arithmetic itself.
The Two Formulas That Settle the Argument
EV cost per mile: take the car's consumption in kWh per 100 miles, divide by 100 to get kWh per mile, and multiply by your electricity price in dollars per kWh. The U.S. Department of Energy publishes the same formula in per-mile form: dollars per kWh multiplied by the car's kWh per mile. Your car's kWh per 100 miles figure is on its window sticker and EPA rating, and most EVs fall somewhere in the mid-20s to mid-30s depending on size, tires, and driving.
Gasoline cost per mile: take the price per gallon and divide by the car's fuel economy in miles per gallon. Barrels and refineries disappear; what remains is the number your old car was quietly charging you every mile.
Worked illustration with labeled rates. Assume a home rate of $0.16 per kWh (assumption A), gasoline at $3.60 per gallon (assumption G), an EV consuming 28 kWh per 100 miles (assumption E, a typical mid-size figure), and a gasoline car at 30 MPG (assumption M):
- EV: 28 kWh per 100 miles is 0.28 kWh per mile. 0.28 x $0.16 = $0.0448, about 4.5 cents per mile.
- Gasoline: $3.60 / 30 MPG = $0.12, about 12 cents per mile.
Over 1,000 miles, those assumptions produce $45 of home electricity versus $120 of gasoline. Over a 12,000-mile year, $540 versus $1,440. None of these outputs is a market quote; they are what the formulas return when fed assumptions A, G, E, and M. Change any input and the gap scales in direct proportion, which is exactly why the formula matters more than any single headline number. The U.S. Department of Energy's eGallon tool was built on the same idea, comparing the cost of driving an EV the same distance a gasoline car covers on one gallon; the formula above is that comparison, priced with your own inputs.