Electric Car Charging Cost Calculator
Updated How we review
Offline — showing the version cached on .
Unresolved errors (0)
Results
Electricity used for the trip is 9.00 kWh. Cost to drive the trip on electricity is 1.44 $. Electricity cost per mile is 0.05 $ / mi. Gasoline used for the same trip is 1.00 US gal. Cost to drive the trip on gasoline is 3.50 $. Gasoline cost per mile is 0.12 $ / mi. Electricity added in this charge is 12.00 kWh. Cost of this charge is 1.92 $.
- Electricity used for the trip
- kWh
- Cost to drive the trip on electricity
- $
- Electricity cost per mile
- Gasoline used for the same trip
- Cost to drive the trip on gasoline
- $
- Gasoline cost per mile
- Electricity added in this charge
- kWh
- Cost of this charge
- $
Your recent calculations
Stored only on this device.
| Solved for | Trip distance | Electric vehicle efficiency | Electricity rate | Gasoline vehicle fuel economy | Gasoline price | Battery capacity | Battery share charged | Electricity used for the trip | Cost to drive the trip on electricity | Electricity cost per mile | Gasoline used for the same trip | Cost to drive the trip on gasoline | Gasoline cost per mile | Electricity added in this charge | Cost of this charge |
|---|
* computed under superseded data
How to use this calculator
- Enter Trip distanceEnter the distance of the trip you want to cost out, in miles, from 0.1 to 10000 mi.
- Enter Electric vehicle efficiencyEnter how much electricity your EV uses per mile, in kWh/mi, from 0.05 to 2 kWh/mi, as shown on the vehicle's efficiency label.
- Enter Electricity rateEnter your price per kilowatt-hour, in dollars, from 0 to 5 $/kWh.
- Enter Gasoline vehicle fuel economyEnter your gasoline vehicle's rated fuel economy, in miles per US gallon, from 1 to 200 mi/US gal, as shown on its label.
- Enter Gasoline priceEnter the price you pay per US gallon of gasoline, in dollars, from 0 to 20 $/US gal.
- Enter Battery capacityEnter your EV's total battery capacity, in kWh, from 1 to 500 kWh.
- Enter Battery share chargedEnter the share of the battery's capacity this charge adds, as a percent from 0 to 100 percent, not the battery's starting or ending level.
- Read Cost of this charge
Cost of this charge ($) vs Trip distance (mi)
Cost of this charge ($) Trip distance (mi)
What this calculates
An electric car's running cost is not a single fixed number you can look up. This calculator turns your own trip distance, vehicle efficiency, and rates into a cost. That cost depends on the price of electricity. This price can vary by region, type of generation, time of use, and access point. 6
Most home charging happens overnight, not at a public fast charger. Most drivers of electric vehicles, or EVs, charge overnight at home. This group includes all-electric vehicles and plug-in hybrid electric vehicles (PHEVs). They use AC Level 1 or AC Level 2 charging equipment. 2
What This Calculator Does
This calculator turns your trip distance, your vehicle's efficiency, and your electricity rate into a cost you can compare. To find an EV's cost per mile, you need two numbers. First, the cost of electricity in dollars per kWh. Second, the vehicle's efficiency, meaning how much electricity it uses to travel a given distance. 2
The page also reports a gasoline cost per mile, not just miles per gallon. This 'MPG illusion' shows why it can be more meaningful to express fuel efficiency as consumption rather than as economy. That is why the results below show cost per mile for both electricity and gasoline, side by side. 4
Getting a Result From Your Own Numbers
Enter your own numbers, not a generic estimate. Actual residential electricity costs depend on the type of equipment installed. They also depend on the time of day and how long you use the charging station. Each input field only accepts a value inside a set range. Enter a value outside that range, and the page will refuse to compute a result. 2
The results below are estimates built from the numbers you enter. They do not guarantee what you will pay. This is an estimated rate of consumption. A given vehicle may or may not actually travel the distance its label rating implies on a fully charged battery. Treat each result as a planning figure. Update your inputs if your rate or efficiency changes. 3
A Worked Example: Home Charging Session
Home charging and a 100-mile trip: Electricity used for the trip 27.00 kWh
See inputs and calculation
Starting values
- Trip distance
- 100 mi
- Electric vehicle efficiency
- 0.27 kWh / mi
- Electricity rate
- 0.107 $ / kWh
- Gasoline vehicle fuel economy
- 30 mi / US gal
- Gasoline price
- 3.5 $ / US gal
- Battery capacity
- 54 kWh
- Battery share charged
- 100 %
- Electricity used for the trip: 27.00 kWh
Show arithmetic
100 * 0.27Full branch logic
100 * 0.27 - Cost to drive the trip on electricity: 2.89 $
Show arithmetic
100 * 0.27 * 0.107Full branch logic
100 * 0.27 * 0.107 - Electricity cost per mile: 0.0289 $ / mi
Show arithmetic
0.27 * 0.107Full branch logic
0.27 * 0.107 - Gasoline used for the same trip: 3.333 US gal
Show arithmetic
100 / 30Full branch logic
100 / 30 - Cost to drive the trip on gasoline: 11.67 $
Show arithmetic
100 / 30 * 3.5Full branch logic
100 / 30 * 3.5 - Gasoline cost per mile: 0.1167 $ / mi
Show arithmetic
3.5 / 30Full branch logic
3.5 / 30 - Electricity added in this charge: 54.00 kWh
Show arithmetic
54 * 100 * 0.01Full branch logic
54 * 100 * 0.01 - Cost of this charge: 5.78 $
Show arithmetic
54 * 100 * 0.01 * 0.107Full branch logic
54 * 100 * 0.01 * 0.107
Original example and source context
Consider a 100 mi trip in an EV that uses 0.27 kWh/mi. It charges at 0.107 $/kWh. Compare this to a gasoline car rated 30 mi/US gal at 3.5 $/US gal. Say electricity costs ¢10.7 per kWh. The vehicle uses 27 kWh to travel 100 miles. The cost per mile is about $0.03. The same rate applies to a 54 kWh battery charged to 100 percent. Electricity still costs ¢10.7 per kilowatt-hour. The EV has a 200-mile range and a fully depleted 54 kWh battery. Charging it will cost about $6 to reach a full charge. 2
Key Concepts: State of Charge, kWh, Losses, and Time-of-Use Rates
The battery share charged input is a change in state of charge. State of charge means how full a battery currently is. Kilowatt-hours is an energy unit for electricity. This value tells you how many kilowatt-hours the vehicle uses to travel 100 miles. That number relates directly to how much electricity you use, and so to cost. 3
Charging losses explain why the wall meter shows more energy leaving the outlet than the battery gains. When you charge the battery, you lose energy converting AC power from the grid into DC power for the battery. You also lose energy overcoming the battery's resistance to charging. This resistance grows as the battery nears full capacity. This calculator does not add that loss on top of the electricity rate you enter. 5
A time-of-use rate charges a different price for electricity depending on the hour of day. Some utilities offer residential time-of-use rates. Others offer rate incentives for owners of charging equipment. 2
What a Trip Costs: Electricity Compared With Gasoline
Electricity and gasoline are priced in different units. That is why this page converts both to a cost per mile. EV powertrains are energy efficient. This efficiency creates cost savings over conventional vehicles during operation. These savings happen even when electricity rates are relatively high, such as during peak rates or at public fast-charging stations. Comparing cost per mile, not just price per gallon or per kWh, makes the two vehicle types comparable. 6
A gasoline vehicle's cost per mile does not scale evenly with its miles-per-gallon rating. Compare a vehicle that gets 10 mi/US gal to one that gets 15 mi/US gal. Over 1,000 miles, the fuel savings is about 33 gallons. Now compare a jump from 30 to 35 mi/US gal, the same 5 mi/US gal increase. Over that same distance, it saves only about 5 gallons. That is why this page reports gasoline cost per mile directly. It does not ask you to compare two mpg numbers. 4
Charging Speed, Charger Type, and Home Setup
How long a charge takes is a separate question from how much it costs. Charging times vary with several factors. These include how depleted the battery is, or its state of charge, and how much energy it holds. They also include the type of battery, the vehicle's internal charger capacity, and the type of charging equipment. Charging time can range from less than 20 minutes using DC fast chargers to 20 hours or more using Level 1 chargers. This calculator reports cost, not time, for whichever share of the battery you charge. 7
Home charging equipment comes in two common levels. Level 1 charging typically uses a 120 V outlet. 8 hours of charging at 120 V can add about 40 miles of range to a mid-size EV. Most homes have 240 V service available. Most residential Level 2 equipment operates at up to 30 Amps and delivers 7.2 kW of power. It can charge a typical EV battery overnight. 7
Public charging can be faster still. DC fast charging equipment enables rapid charging at installed stations along heavy traffic corridors. It reaches power outputs up to 500 kW. People also call it Level 3 charging. All commercially available EVs in the United States can charge using Level 1 and Level 2 equipment. This is true regardless of which one you use at home. 7
Efficiency and Real-World Range
Electric vehicle labels often show efficiency in miles per gallon of gasoline-equivalent, or MPGe. Think of this as similar to MPG. But it does not show miles per gallon of the vehicle's own fuel. Instead, it shows how many miles the vehicle can go using an amount of fuel. That amount has the same energy as one gallon of gasoline. 3
A gasoline vehicle's miles-per-gallon rating can be a poor guide to savings. Fuel economy labels must show a miles per gallon estimate. But this number can mislead consumers who compare fuel economy improvements. It is especially misleading when people use it instead of fuel costs. Enter the actual rating for your gasoline vehicle. The calculator will convert it into a cost per mile. 4
Driving style changes your real efficiency. But this calculator uses just one efficiency number. Electric cars use regenerative braking to recover energy that braking usually wastes. Stop-and-go traffic involves more braking. So electric cars are most efficient in city driving. If most of your trip is city driving, your real efficiency may beat a highway-heavy trip with the same label rating. 5
Weather, Utility Rates, and Other Variables
Weather and equipment both change how much energy a trip or charge really takes. Charging losses can vary with the specific vehicle. They also vary with the type of charging system, the battery's state, and conditions like weather. This does not include losses from heating or cooling the cabin. Those losses can be large in extreme temperatures. This calculator's efficiency input does not separate out those losses. 5
Your electricity rate is not an arbitrary number. Electricity prices generally cover the cost to build, finance, maintain, and run power plants and the electricity grid. Some for-profit utilities also add a financial return for owners and shareholders. Generating electricity is the largest cost in the price of electricity. 8
Rates can also shift with the season. Extreme temperatures raise demand for heating and cooling. This higher demand can raise fuel and electricity prices. Prices are usually highest in summer, when total demand is high. Utilities add more expensive generation sources to meet that demand. Check whether your rate changes with the season. Do not assume one electricity price applies all year. 8
Other Numbers This Page Doesn't Bundle
This page turns your own numbers into charging costs, gasoline costs, and cost per mile for both fuels. 2
The sources behind this page do describe some of those related figures, even though this page doesn't package them separately. One is a cost-per-mile calculation built from your electricity price and your vehicle's efficiency, plus an estimate of what it costs to refill a fully depleted battery. 2
Fuel economy labels also carry two figures worth knowing about if you go looking elsewhere: an annual fuel cost estimate built from 15,000 miles a year over five years and a projected price, and a miles-per-gallon-equivalent (MPGe) rating for lining up an EV against a gasoline car on the same scale. 3
Gasoline labels carry their own version of that annual cost estimate, built from the same 15,000-mile-a-year assumption and a projected gasoline price, plus a caution that MPG alone can be a misleading way to compare fuel savings. 4
Key facts
- An electrician can inform homeowners whether their home has adequate electrical capacity for vehicle charging. 2 2
- Level 2 charging equipment can be installed for drivers with less regular schedules, longer commutes, or EVs with large batteries that need more than an overnight charge. 2 2
- Annual fuel cost estimates commonly assume 15,000 miles of driving per year and a projected fuel price; use your own trip distance instead of that assumption. 4 4
- Charging at a lower voltage than your vehicle's label specifies will result in longer charging times, though it does not change the cost this page reports. 3 3
- Electricity for charging vehicles is especially cost effective if you take advantage of off-peak residential rates and other incentives offered by utilities. 6 6
How this is calculated
Multiply distance by energy use per unit distance to find trip energy. Later stages apply electricity and gasoline prices to compare trip costs, and calculate the cost of charging a chosen share of the battery.
Electricity used for the trip
D × E- D = Trip distance (mi)
- E = Energy use per distance (kWh / mi)
- trip_distance = Trip distance (mi)
- ev_efficiency = Electric vehicle efficiency (kWh / mi)
- electricity_rate = Electricity rate ($ / kWh)
- gasoline_efficiency = Gasoline vehicle fuel economy (mi / US gal)
- gasoline_rate = Gasoline price ($ / US gal)
- battery_capacity = Battery capacity (kWh)
- charging_interval = Battery share charged (%)
- ev_trip_energy = Electricity used for the trip (kWh)
- ev_trip_cost = Cost to drive the trip on electricity ($)
- ev_cost_per_distance = Electricity cost per mile ($ / mi)
- gasoline_fuel_used = Gasoline used for the same trip (US gal)
- gasoline_trip_cost = Cost to drive the trip on gasoline ($)
- gasoline_cost_per_distance = Gasoline cost per mile ($ / mi)
- charge_energy = Electricity added in this charge (kWh)
- charging_cost = Cost of this charge ($)
Follow the calculation with your values
- Electricity used for the trip: 9.00 kWh
Show arithmetic
30 * 0.3Full branch logic
30 * 0.3 - Cost to drive the trip on electricity: 1.44 $
Show arithmetic
30 * 0.3 * 0.16Full branch logic
30 * 0.3 * 0.16 - Electricity cost per mile: 0.048 $ / mi
Show arithmetic
0.3 * 0.16Full branch logic
0.3 * 0.16 - Gasoline used for the same trip: 1.00 US gal
Show arithmetic
30 / 30Full branch logic
30 / 30 - Cost to drive the trip on gasoline: 3.50 $
Show arithmetic
30 / 30 * 3.5Full branch logic
30 / 30 * 3.5 - Gasoline cost per mile: 0.1167 $ / mi
Show arithmetic
3.5 / 30Full branch logic
3.5 / 30 - Electricity added in this charge: 12.00 kWh
Show arithmetic
60 * 20 * 0.01Full branch logic
60 * 20 * 0.01 - Cost of this charge: 1.92 $
Show arithmetic
60 * 20 * 0.01 * 0.16Full branch logic
60 * 20 * 0.01 * 0.16
Full formulas, symbols and sources
ev_trip_energy = trip_distance * ev_efficiency
Cost to drive the trip on electricity
ev_trip_cost = ev_trip_energy * electricity_rate
Electricity cost per mile
ev_cost_per_distance = ev_efficiency * electricity_rate
Gasoline used for the same trip
gasoline_fuel_used = trip_distance / gasoline_efficiency
Cost to drive the trip on gasoline
gasoline_trip_cost = gasoline_fuel_used * gasoline_rate
Gasoline cost per mile
gasoline_cost_per_distance = gasoline_rate / gasoline_efficiency
Electricity added in this charge
charge_energy = battery_capacity * charging_interval * 0.01
Cost of this charge
charging_cost = charge_energy * electricity_rate
- trip_distance
- Trip distance (mi)
- ev_efficiency
- Electric vehicle efficiency (kWh / mi)
- electricity_rate
- Electricity rate ($ / kWh)
- gasoline_efficiency
- Gasoline vehicle fuel economy (mi / US gal)
- gasoline_rate
- Gasoline price ($ / US gal)
- battery_capacity
- Battery capacity (kWh)
- charging_interval
- Battery share charged (%)
- ev_trip_energy
- Electricity used for the trip (kWh)
- ev_trip_cost
- Cost to drive the trip on electricity ($)
- ev_cost_per_distance
- Electricity cost per mile ($ / mi)
- gasoline_fuel_used
- Gasoline used for the same trip (US gal)
- gasoline_trip_cost
- Cost to drive the trip on gasoline ($)
- gasoline_cost_per_distance
- Gasoline cost per mile ($ / mi)
- charge_energy
- Electricity added in this charge (kWh)
- charging_cost
- Cost of this charge ($)
Frequently asked questions
How much does it cost to charge an electric vehicle at home?
Is charging an EV cheaper than gasoline?
Should I charge my EV during off-peak hours?
How much will my monthly electricity bill increase if I switch to an EV?
How does the size of my EV's battery pack impact the total cost, including charging from 20 percent to 80 percent?
Is it cheaper to charge at home or at a public charging station?
How much does public EV charging cost?
Does cold weather change what a trip costs?
Limitations & common mistakes
- The calculator reports fuel cost; it does not include the purchase price, maintenance, or any other ownership cost of either vehicle.
- It does not model charging losses, cabin heating or cooling, or cold-weather effects, so real energy use can exceed what the efficiency input implies.
- It does not adjust for Level 1, Level 2, or DC fast charging equipment; charger type changes charging time, not the costs calculated here.
- Each input is refused outside its stated range, so a value beyond the page's own limits will not produce an estimate at all.
Formula, sources, and review
This calculation follows the formula published on this page and rests on 8 cited sources, listed under Sources below. Last checked .
Sources & methodology
| Constant | Value | Unit | Source |
|---|---|---|---|
| electric_car_charging_cost_calculator_c1 | 0.01 | 1 |
Sources
- 1 NIST Guide to the SI (SP 811), Chapter 7: Rules and Style Conventions for Expressing Values of Quantities — last verified
- 2 Charging Electric Vehicles at Home — Alternative Fuels Data Center, U.S. Department of Energy — last verified
- 3 Learn More About the Fuel Economy Label for Electric Vehicles — fueleconomy.gov — last verified
- 4 Learn More About the Fuel Economy Label for Gasoline Vehicles — fueleconomy.gov — last verified
- 5 Where the Energy Goes: Electric Cars — fueleconomy.gov — last verified
- 6 Electricity Basics — Alternative Fuels Data Center, U.S. Department of Energy — last verified
- 7 Electric Vehicle Charging Stations — Alternative Fuels Data Center, U.S. Department of Energy — last verified
- 8 Electricity explained: Factors affecting electricity prices — U.S. Energy Information Administration — last verified