EV Cost Per Mile Calculator
Calculate your electric vehicle's operating cost per mile and compare it to gasoline vehicles.
EV Parameters
Gas Vehicle Comparison
EV Cost Per Mile
$0.0381
vs $0.1167/mile for gas
Annual Savings with EV
$942.86
67.3% less than gas
Annual EV Cost
$457.14
Annual Gas Cost
$1400.00
kWh Per Mile
0.317
Equivalent MPG
92 MPGe
Understanding EV Operating Costs
Electric vehicles typically cost 50-70% less to "fuel" than gasoline vehicles. The cost per mile depends on your local electricity rates and your vehicle's efficiency. Charging at home during off-peak hours can further reduce costs. The equivalent MPG metric shows what gas mileage you'd need to match EV operating costs.
What the EV Cost Per Mile Calculator Does
The EV cost per mile calculator turns your electricity rate and your electric vehicle's efficiency into a single, easy-to-compare number: the dollars you spend on energy for every mile you drive. Instead of guessing whether an electric car is really cheaper to run than a gas car, this electric car cost calculator gives you a precise figure based on your own real-world inputs.
The tool asks for six values: your electricity rate in dollars per kilowatt-hour, your EV's efficiency in miles per kWh, your charging efficiency as a percentage, the annual miles you drive, plus a comparison gas price and gas vehicle MPG. From these it produces the EV cost per mile, the gas cost per mile, your annual EV and gas spending, the dollar and percentage savings, the energy used per mile, and a cost-equivalent MPGe figure.
Because charging is never perfectly efficient, the calculator deliberately inflates the energy you must pull from the wall above the energy that reaches the wheels. That detail is what separates a serious EV cost per mile calculator from a back-of-the-envelope estimate, and it is exactly why your home electricity bill is always a little higher than the on-board trip computer suggests.
The EV Cost Per Mile Formula
The calculator builds the result in clear stages. First it converts efficiency (miles per kWh) into energy per mile (kWh per mile) by taking the reciprocal. It then divides by charging efficiency to account for energy lost as heat in the charger, cables, and battery during charging. Finally it multiplies by your electricity rate to get dollars per mile.
The full chain, exactly as the page computes it, is shown below. Annual costs simply multiply the per-mile figures by the miles you drive each year.
- Energy at the wheels: kWh/mile = 1 / efficiency
- Energy from the wall: actual kWh/mile = (1 / efficiency) / (chargingEfficiency / 100)
- EV cost per mile: actual kWh/mile x electricity rate
- Gas cost per mile: gas price / gas MPG
- Equivalent MPGe (cost basis): gas price / EV cost per mile
The savings percentage is the difference between gas cost per mile and EV cost per mile, divided by the gas cost per mile, expressed as a percent. This frames the EV's advantage relative to the fuel cost you would otherwise pay.
EV Cost Per Mile
Where:
- efficiency= EV efficiency in miles per kWh (energy reaching the wheels)
- chargingEfficiency= Charging efficiency as a percentage (energy from the wall that reaches the battery)
- electricityRate= Price of electricity in dollars per kWh
- annualMiles= Miles driven per year, used to scale per-mile cost into annual cost
Worked Example Using the Default Values
The calculator opens with sensible U.S. defaults: an electricity rate of $0.12/kWh, EV efficiency of 3.5 miles/kWh, 90% charging efficiency, 12,000 annual miles, a $3.50/gallon gas price, and a 30 MPG comparison vehicle. Following the formula step by step shows where each result number comes from.
| Step | Calculation | Result |
|---|---|---|
| Energy at wheels | 1 / 3.5 | 0.286 kWh/mile |
| Energy from wall | 0.286 / 0.90 | 0.317 kWh/mile |
| EV cost per mile | 0.317 x 0.12 | $0.0381 |
| Gas cost per mile | 3.50 / 30 | $0.1167 |
| Annual savings | $1,400 - $457.14 | $942.86 |
The savings come out to about 67.3% versus gasoline, and the cost-equivalent figure is roughly 92 MPGe meaning a gas car would need to achieve 92 miles per gallon to match the EV's per-mile fuel cost at these prices.
Why Charging Efficiency Matters
Many EV cost comparisons quietly ignore charging losses, and that is a mistake. The energy your on-board display reports as consumed is the energy delivered to the motor, but the electricity meter on your house records every kilowatt-hour pulled from the grid, including the portion lost to heat in the on-board charger, the cabling, and the battery's internal resistance.
Typical AC home charging runs around 85% to 92% efficient, while DC fast charging and cold-weather charging can be noticeably lower. This calculator's charging efficiency input lets you model that reality. At 90%, energy from the wall rises about 11% above energy at the wheels, which directly raises your true cost per mile. Lowering the value to 80% to reflect winter charging or frequent fast charging shows how much your real-world cost can climb.
If you want a best-case theoretical figure, set charging efficiency to 100% and the calculator reports cost based purely on energy at the wheels. For budgeting and honest gas-versus-EV comparisons, however, a realistic 85% to 92% value gives far more trustworthy numbers.
Interpreting Your Results
The headline number is EV cost per mile, shown to four decimal places because EV energy costs are usually only a few cents per mile. Sitting next to it is the gas cost per mile so you can see the gap at a glance. Below those, the calculator scales both figures by your annual mileage to produce annual EV cost, annual gas cost, and the dollar savings between them.
The equivalent MPGe figure is a clever translation tool. It answers the question "how efficient would a gasoline car have to be to cost the same per mile as my EV?" Because EVs are so cheap to charge, this number is often well above any production gas car, which is why electric driving feels nearly free by comparison. Note that this is a cost-equivalent MPGe based on dollars, not the EPA window-sticker MPGe that is based on energy content.
Use the savings percentage as a quick sanity check. If your inputs produce a savings well outside the common 50% to 70% range, double-check your electricity rate and gas price, since regional differences in both can swing the comparison dramatically.
Real-World Factors That Change Cost Per Mile
Your actual EV cost per mile shifts with conditions the calculator captures and a few it does not. Time-of-use electricity rates can cut your effective rate in half if you charge overnight, so plug in your off-peak number rather than a blended average for the most favorable result. Conversely, public DC fast charging often costs two to four times your home rate, so commercial road-trip charging deserves its own separate calculation.
Driving style and climate matter too. Highway speeds, aggressive acceleration, heavy loads, and cold temperatures all lower miles per kWh, and a lower efficiency directly raises cost per mile in this model. Regenerative braking in stop-and-go city traffic does the opposite, often pushing real efficiency above the rated figure. Because the calculator exposes efficiency as a direct input, you can model a summer commute and a winter road trip simply by changing one number.
Finally, remember that fuel cost is only part of total cost of ownership. EVs typically save on maintenance with no oil changes and reduced brake wear, but insurance, depreciation, and the purchase price all factor into the bigger picture. This calculator isolates the energy cost so you can combine it cleanly with those other figures when planning a vehicle purchase.
Worked Examples
Efficient EV with cheap overnight power
Problem:
An EV owner charges overnight at $0.10/kWh, gets 4 miles/kWh, has 90% charging efficiency, and drives 15,000 miles a year. Their gas comparison is $3.80/gallon at 28 MPG.
Solution Steps:
- 1Energy at wheels: 1 / 4 = 0.250 kWh/mile
- 2Energy from wall: 0.250 / 0.90 = 0.278 kWh/mile
- 3EV cost per mile: 0.278 x 0.10 = $0.0278; gas cost per mile: 3.80 / 28 = $0.1357
- 4Annual: EV = 0.0278 x 15,000 = $416.67; gas = 0.1357 x 15,000 = $2,035.71
Result:
EV costs about $0.0278/mile versus $0.1357/mile for gas, saving roughly $1,619 a year, about 79.5% less.
High electricity rate region
Problem:
A driver in a high-cost area pays $0.30/kWh, gets 3.2 miles/kWh, has 88% charging efficiency, drives 10,000 miles, and compares against $3.20/gallon gas at 35 MPG.
Solution Steps:
- 1Energy at wheels: 1 / 3.2 = 0.3125 kWh/mile
- 2Energy from wall: 0.3125 / 0.88 = 0.3551 kWh/mile
- 3EV cost per mile: 0.3551 x 0.30 = $0.1065; gas cost per mile: 3.20 / 35 = $0.0914
- 4Annual: EV = 0.1065 x 10,000 = $1,065.34; gas = 0.0914 x 10,000 = $914.29
Result:
Here gas is actually cheaper at $0.0914/mile versus $0.1065/mile for the EV, showing that very high electricity rates with efficient gas cars can flip the savings negative.
Winter road trip with fast charging losses
Problem:
A road tripper uses DC fast charging at $0.45/kWh, sees efficiency drop to 2.8 miles/kWh in the cold, and assumes 80% charging efficiency over 2,000 winter miles, compared with $4.00/gallon gas at 32 MPG.
Solution Steps:
- 1Energy at wheels: 1 / 2.8 = 0.3571 kWh/mile
- 2Energy from wall: 0.3571 / 0.80 = 0.4464 kWh/mile
- 3EV cost per mile: 0.4464 x 0.45 = $0.2009; gas cost per mile: 4.00 / 32 = $0.1250
- 4Annual (2,000 mi): EV = 0.2009 x 2,000 = $401.79; gas = 0.1250 x 2,000 = $250.00
Result:
Under these harsh conditions the EV costs about $0.2009/mile versus $0.1250/mile for gas, illustrating that fast charging in winter can be pricier than gasoline.
Tips & Best Practices
- ✓Enter your off-peak time-of-use rate if you charge overnight to capture your real lowest cost per mile.
- ✓Use a charging efficiency of 85% to 92% for honest home-charging numbers rather than 100%.
- ✓Lower your efficiency input to 2.5 to 3.0 miles/kWh to model cold-weather or high-speed highway driving.
- ✓Run a separate calculation with your DC fast-charging rate for road trips, since it is far higher than home power.
- ✓Check that your gas price and MPG reflect the specific car you are comparing against for a fair result.
- ✓Re-run the numbers seasonally, since both electricity rates and EV efficiency shift between summer and winter.
- ✓Treat the equivalent MPGe as a cost yardstick, not an EPA rating, when comparing against gas cars.
- ✓Watch the savings percentage; a value far outside 50% to 70% usually means an input needs a second look.
Frequently Asked Questions
Sources & References
Last updated: 2026-06-05
Help us improve!
How would you rate the EV Cost Per Mile Calculator?
Editorial Note
MyCalcBuddy Editorial Team
This page is maintained as an educational calculator reference.
Formula Source: Standard Mathematical References
by Various