EV charging cost calculator: cost per charge, per mile and per year

This EV charging cost calculator shows what it costs to charge an electric car at home, on public chargers or from your own solar panels. Enter the miles you drive, your car's efficiency in kWh per 100 miles and your electricity rate, and it returns your cost per charge, per 100 miles, per month and per year, next to the gasoline cost for the same driving. At the US average home rate of 18.16 cents per kWh, a car using 30 kWh per 100 miles and driven 12,000 miles a year costs about $726 a year to charge, or about 6 cents a mile.
Work out your charging cost
On this page
- How the EV charging cost calculator works
- The formula behind the cost
- How much does it cost to charge an electric car?
- Home charging vs public charging costs
- Cost per mile: electric vs gasoline
- Charging losses and your electricity plan
- Charging from your own solar panels
- Accuracy and limits
- Frequently asked questions
How the EV charging cost calculator works
- Enter your drivingMonthly or yearly miles. The default is 12,000 miles a year, or 1,000 a month.
- Choose your vehicle efficiencyPresets load the official EPA combined figure: 25 kWh per 100 miles for a 2026 Tesla Model Y Long Range RWD, 27 for the Model Y Long Range AWD, and 29 for a 2026 Hyundai Ioniq 5 Standard Range. Any other car's figure is on its window sticker or at fueleconomy.gov. The default is 30, a round planning figure.
- Set your electricity ratePick your state to load its average residential rate from the US Energy Information Administration, or type the rate from your own plan. If you are on a time of use or EV rate, enter the off peak price you actually charge at.
- Check charging efficiencyThe default is 90 percent, meaning 10 percent of the energy drawn from the wall is lost as heat in the charger and battery. The tool shows this as an input instead of hiding it.
- Add a gasoline comparisonEnter a gas price and the miles per gallon of the car you are comparing against. The defaults are $4.00 a gallon, close to the US average of $3.995 that EIA reported for the week of November 9, 2026, and 30 mpg.
The result shows yearly, monthly and per mile charging cost, the cost of a typical full charge, the gasoline cost for the same miles, and the electricity price at which gasoline would become cheaper. The formula prints under the result.
The formula behind the cost
Miles × kWh per mile ÷ charging efficiency. For 12,000 miles at 30 kWh per 100 miles and 90 percent efficiency: 12,000 × 0.30 ÷ 0.9 = 4,000 kWh a year.
Energy × rate. At 18.16 cents: 4,000 × $0.1816 = $726 a year, or $60.50 a month.
$726 ÷ 12,000 = about 6.1 cents a mile, or $6.05 per 100 miles.
12,000 miles ÷ 30 mpg = 400 gallons × $4.00 = $1,600 a year, or 13.3 cents a mile. Charging at home at the average rate saves about $874 a year on fuel.
Gasoline cost per mile ÷ wall kWh per mile = $0.1333 ÷ 0.333 = about 40 cents per kWh. Below that price, charging is cheaper than gas for this pair of vehicles; above it, gas is cheaper.

How much does it cost to charge an electric car?
At home, a full charge for a typical EV with a 75 kWh battery, going from 10 to 90 percent, puts 60 kWh into the battery and draws about 66.7 kWh from the wall. At the US average rate of 18.16 cents, that costs about $12.
Your state changes that figure more than your car does. Using the same 12,000 miles and 30 kWh per 100 miles, yearly home charging costs, at August 2026 EIA residential average rates, are:
| State | Average residential rate | Yearly charging cost | Cost per mile |
|---|---|---|---|
| Nevada | 12.72 cents | $509 | 4.2 cents |
| Washington | 14.63 cents | $585 | 4.9 cents |
| Florida | 14.99 cents | $600 | 5.0 cents |
| Texas | 15.91 cents | $636 | 5.3 cents |
| US average | 18.16 cents | $726 | 6.1 cents |
| New York | 28.65 cents | $1,146 | 9.6 cents |
| California | 29.75 cents | $1,190 | 9.9 cents |
| Massachusetts | 30.48 cents | $1,219 | 10.2 cents |
| Hawaii | 47.18 cents | $1,887 | 15.7 cents |
Even in Hawaii, at the highest rate in the country, home charging costs only a little more per mile than a 30 mpg car at $4 gas, and Hawaii's gas prices are well above the national average. In most states, charging at home costs well under half as much as gasoline for the same driving. To compare rates and solar value across states, use our state comparison tool.
Home charging vs public charging costs
Most EV drivers do most of their charging at home, and home charging is almost always the cheapest option. Public charging comes in two kinds, priced very differently:
- Public Level 2 chargers at workplaces, shops and parking garages often charge around 30 cents per kWh, and some are free. That works out to about 10 cents a mile for our example car.
- DC fast charging networks on highways commonly charge about 45 to 60 cents per kWh for drivers without a membership, varying by network, station and state. At those prices the example car costs 15 to 20 cents a mile, more than the 13.3 cents for a 30 mpg gas car at $4 a gallon.
The break even figure from the tool makes this clear: once you pay more than about 40 cents per kWh, a 30 mpg gas car is cheaper to fuel. Fast charging makes sense on road trips, but a driver who relies on it every day loses most of the fuel savings. The calculator lets you set a public share, so a driver who fast charges 20 percent of the time sees the blended cost.
Installing a home charger is the step that makes the low cost possible. Our guide to EV charger installation cost covers Level 2 hardware, wiring and permits.
Cost per mile: electric vs gasoline
At the US average electricity rate, an efficient EV costs around 5 to 6 cents a mile at home. A gasoline car costs:
| Gas car efficiency | Cost per mile at $4.00 a gallon | Cost per mile at $3.50 a gallon |
|---|---|---|
| 20 mpg | 20.0 cents | 17.5 cents |
| 25 mpg | 16.0 cents | 14.0 cents |
| 30 mpg | 13.3 cents | 11.7 cents |
| 40 mpg | 10.0 cents | 8.8 cents |
| 50 mpg (hybrid) | 8.0 cents | 7.0 cents |

A 50 mpg hybrid at $3.50 gas costs about 7 cents a mile, still more than home charging at the national average rate but close enough that in high rate states such as California or Massachusetts the hybrid can be cheaper to fuel. Fuel is only part of the picture, though: EVs also skip oil changes and most brake wear, which the calculator does not count.
Charging losses and your electricity plan
Two assumptions decide whether a charging cost estimate is right, and many calculators hide both.
Not all the electricity drawn from the wall reaches the battery. Some is lost as heat in the charger, the car's onboard charger and the battery itself, and the car may run its battery heater or cooling during a session. Losses of about 10 percent are typical on Level 2, and slow Level 1 charging from a standard outlet tends to lose more. Our default of 90 percent efficiency is shown on screen so you can change it.
A state average is a weak default if you are on a time of use plan. Many utilities offer EV plans with cheap overnight prices. In California, for example, PG&E's EV plan charges about 22.6 cents off peak against a residential average of about 33.7 cents, a cut of about a third. Charging overnight on that plan costs the example car about $904 a year instead of $1,348. Entering the rate you actually charge at matters more than which car you drive.
Charging from your own solar panels
If you have solar, charging from your panels is not free: it costs whatever you would otherwise have been paid for exporting that energy. Under full retail net metering, that is your retail rate, so solar charging saves nothing compared with grid charging at the same hour. Under export rates that pay far less than retail, such as California's net billing, every kWh you put into the car instead of the grid is worth much more. Our explainers on how solar net metering works and on California's NEM 3.0 rules show how export credits are set.
As an example, if your utility credits exports at 5 cents per kWh, 4,000 kWh of daytime solar charging costs $200 a year in forgone credits, far below grid charging at any state's average rate. The catch is timing: the car has to be home and plugged in while the sun shines. Our guide to pairing solar with an EV charger covers smart chargers that follow solar output.
An EV adds about 4,000 kWh a year to your use in this example, which is roughly 6 or 7 more panels in an average US location. If you are sizing a new system, add the EV load first; see our guide on how many solar panels you need.
Accuracy and limits
The calculator is accurate to within your inputs. The main sources of error are:
Real efficiency differs from the EPA figure
Cold weather, highway speed and cabin heating raise energy use, sometimes sharply in winter. Use your car's trip computer average if you have one.
Rates change
State averages here are from EIA's August 2026 data and include taxes and fixed charges spread over usage, so your marginal rate may be lower or higher.
Fixed charges are not counted
Some EV plans add a monthly fee; include it if your plan has one.
No charger credit is assumed
The federal credit for home charging equipment ended for property placed in service after June 30, 2026.
For other home energy tools, see our full list of GreenCalcs calculators.