Energy guide

How to Calculate EV Cost per Mile

Estimate electric driving cost per mile and compare it with gasoline using efficiency and energy prices.

Written by Saroj Roy, founder and maintainer, numbertrove · Formula checked against the sources below · Updated 2026-08-31

EV energy cost per mile comes from the electricity price divided by miles per kilowatt-hour. Comparing it with gasoline requires consistent distance, efficiency, and price assumptions.

The EV formula

EV cost per mile = electricity rate ÷ vehicle efficiency. At $0.16 per kWh and 3.5 miles per kWh, the result is about $0.0457 per mile before charging losses and fixed fees.

Include charging losses

If wall-to-battery efficiency is 90%, divide the battery energy estimate by 0.90 or multiply the cost by 1 ÷ 0.90. Public charging fees may require a separate scenario.

Compare gasoline fairly

Gas cost per mile = gas price per gallon ÷ miles per gallon. Compare the same route and period, then include maintenance, access fees, and vehicle ownership separately if the question is total cost of ownership.

Use ranges

Traffic, weather, speed, heating, cooling, terrain, tire pressure, and rates change the result. A low/likely/high range is more useful than a single decimal presented as universal.

Sources

The figures and rules in this guide are checked against: