← Guides · November 13, 2026
Electric vs Gas Car: Running Cost per Mile and How Long to Pay Back
An electric car usually costs more to buy and less to run. Whether it costs less overall depends on how much more, how much you drive and where you charge. The math is the same as for fuel, with energy instead of gallons.
The formula
Cost per mile = price of energy ÷ miles per unit of energy
- Gas car: price per gallon ÷ miles per gallon.
- Electric car: price per kWh ÷ miles per kWh.
A worked example
Compare a gas car at 30 mpg with $3.50 per gallon against an electric car that does 3.5 miles per kWh.
| Energy | Price | Cost per mile | Per year (12,000 miles) |
|---|---|---|---|
| Gas, 30 mpg | $3.50 / gallon | $0.117 | $1,400 |
| Electric, home | $0.17 / kWh | $0.049 | $583 |
| Electric, public fast charger | $0.45 / kWh | $0.129 | $1,543 |
Charging at home saves about $817 a year here. But a public fast charger can cost more per mile than gas. So where you charge matters as much as the car. If you charge at home 80% of the time and use public chargers for the rest, the average is about $0.065 per mile, or $779 a year.
How energy prices change the answer
Cost per mile for the same cars with different prices (gas car at 30 mpg, electric at 3.5 miles per kWh):
| Gas price per gallon | Cost per mile | Electricity price per kWh | Cost per mile |
|---|---|---|---|
| $3.00 | $0.100 | $0.12 | $0.034 |
| $3.50 | $0.117 | $0.17 | $0.049 |
| $4.50 | $0.150 | $0.25 | $0.071 |
Even at a high electricity price the electric car at home stays below the gas car in this example. The picture changes only when you rely on public fast charging, where the price per kWh can rival or exceed the cost of gas per mile.
Efficiency matters too. A gas car at 25 mpg and $3.50 per gallon costs $0.140 per mile, so a less efficient car widens the gap. Electric efficiency also changes with temperature, speed and driving style, and very cold weather can reduce the miles you get from each kWh.
How long does a higher price take to pay back?
Say the electric version costs $8,000 more. At $817 a year in energy savings:
$8,000 ÷ $817 = about 9.8 years.
If you drive 20,000 miles a year the saving is about $1,361, and the payback is 5.9 years. If you drive 8,000 miles it is about 14.7 years. The more you drive, the faster it pays back.
Other things shift this: tax credits or rebates reduce the price gap, electric cars may need less routine maintenance, insurance can cost more, and resale values vary by model. Put those into the full comparison.
What the energy cost leaves out
Fuel or electricity is only part of the cost. Depreciation is the largest part for most cars, and it can be different for electric models. See depreciation explained. Home charging also may need a charger installed, which is a one-off cost to add to the price.
Compare the total
Use the calculator for each car. Enter the price, resale value, insurance and maintenance, and for fuel use the cost-per-mile figures above: miles per unit of energy and the price per unit. Compare the cost per month and per mile, not just the fuel line. For the fuel part alone, see fuel cost and mpg.
Numbers are illustrative. Electricity and gasoline prices and efficiency vary by place and model. This is general information, not financial advice.
More guides
- Do You Really Need a Second Car? The Full Cost, the Alternatives and a Break-Even Test
- The First-Year Costs of Buying a Car: What the Sticker Price Leaves Out
- Negative Equity When You Trade In: What Rolling an Underwater Car Loan Into a New One Really Costs
- Own a Car or Use Rideshare and Transit? The Break-Even Number of Trips (With a Worked Example)
- Repair or Replace Your Car? A Break-Even Rule With a Worked Example
Written by MoneyCalc Desk Editorial. Figures are illustrative and rules change, so check official sources. See how we write and update guides on the About · Methodology and sources.