This EV charging cost calculator answers one question: what does it cost to put a given amount of energy into your battery at home versus at a public charger, and how does that compare with gasoline for the same miles? You need battery-side kWh (or a trip distance), your charging efficiency and your electricity prices.
The main limit: the result is an estimate from the rates you enter, not a live utility or charging-network quote. Time-based, idle, parking and subscription fees are not modeled.
EV charging cost calculator
This calculator runs in your browser. This calculator’s code does not send, save, or track your entries. All dollar amounts are USD.
Optional example: Inputs start blank. Load example fills hypothetical figures without calculating. Examples are not current rates, quotes, or recommendations.
Loading calculator. No entries are submitted.
Should you enter battery energy or trip distance?
Use battery-energy mode when you know the kWh actually delivered to the battery in one session. The battery-side kWh per 100 miles input then estimates how many miles that energy could replenish.
Use trip mode when you know the miles. Enter the distance and battery-side kWh per 100 miles, and the tool calculates the battery energy needed to replace that trip’s use. Neither mode uses battery capacity or state-of-charge percentages to predict a charging session. All defaults are hypothetical.
How does charging loss change the grid kWh you pay for?
Charging efficiency here means battery kWh ÷ grid kWh. So grid kWh = battery kWh ÷ (efficiency percentage ÷ 100). An 80% efficiency means divide by 0.8, not multiply by 0.8.
Charging 30 kWh into a battery at 80% efficiency therefore draws 37.5 kWh from the outlet or charger, not 24 kWh. You pay for the grid kWh, so this step matters more than it looks.
Home cost = grid kWh × home $/kWh. Public cost = grid kWh × public $/kWh + one fixed fee in US dollars per session. If the public station has no such fee, enter $0. The calculator assumes the public price is per grid kWh.
What does a hypothetical charging session cost?
Inputs. A hypothetical session delivers 30 battery kWh. The car uses 30 battery-side kWh per 100 miles, charging efficiency is 80%, home electricity is $0.20/kWh, public charging is $0.45/kWh plus a $3 session fee, and the gasoline reference is 30 MPG at $3.60 per gallon.
Formula and result. Grid draw is 30 ÷ 0.8 = 37.5 kWh, which replenishes 100 miles. Home is 37.5 × $0.20 = $7.50, or $0.0750 per mile. Public is 37.5 × $0.45 = $16.875 in energy plus $3, or $19.875 before cent rounding (shown as $19.88), about $0.1988 per mile.
Gasoline for the same 100 miles is 100 ÷ 30 × $3.60 = $12.00, or $0.1200 per mile. In this example, home charging costs less than gasoline, while the public session with its fixed fee costs more.
What to check. The comparison is fuel or energy only. Before relying on it, confirm your actual marginal home rate and whether the station bills per kWh, per minute or both.
What does it cost to replace a 180-mile trip?
In a second hypothetical, a 180-mile trip at 25 battery kWh per 100 miles uses 180 × 25 ÷ 100 = 45 battery kWh. At 90% efficiency, grid draw is 45 ÷ 0.9 = 50 kWh.
Home at $0.18/kWh costs 50 × $0.18 = $9.00. Public at $0.42/kWh plus a $2 session fee costs $21.00 + $2 = $23.00. A 30-MPG gasoline comparison at $3.50 per gallon uses 6 gallons and costs $21.00.
| Option | Input energy or fuel | Trip cost | Cost per mile |
|---|---|---|---|
| Home EV | 50 grid kWh at $0.18 | $9.00 | $0.0500 |
| Public EV | 50 grid kWh at $0.42 + $2 fee | $23.00 | $0.1278 |
| Gasoline reference | 6 US gallons at $3.50 | $21.00 | $0.1167 |
Here the public session is slightly more expensive than the gasoline reference, while home charging is well below both. A different public rate or session fee can reverse that order, so rerun the numbers with your own station’s pricing.
How do you avoid counting charging loss twice?
DOE’s Alternative Fuels Data Center explains that EV efficiency can be expressed in kWh per 100 miles and combined with a $/kWh rate for cost per mile. Its home-charging guide also notes that residential costs may depend on the equipment installed and the time of day.
The EPA says its MPGe label values already include charging losses and assume Level 2 AC charging. See EPA’s testing explanation.
If your vehicle figure is an EPA outlet-side kWh per 100 miles estimate, do not apply another loss factor to it. Either use a genuinely battery-side consumption figure, or set efficiency to 100% when you use a grid-side figure as a cost proxy. For a completed session, an actual station invoice or metered grid kWh can be more direct.
How the calculator handles inputs and rounding
The unused battery-energy or trip-distance field stays visible but does not change the selected mode. Efficiency is limited to 1–100%, and all numeric inputs have finite bounds.
A zero-energy entry yields $0 home energy but may still incur the entered public fixed fee. Cost per mile is undefined at zero distance, not zero cents. Displayed currency is rounded to cents; comparisons use unrounded arithmetic.
The model has no live connection to utilities, vehicles or charging networks and does not save the numbers you enter.
When does this EV charging cost estimate not fit?
- Your station bills by the minute or adds idle fees. Only a per-kWh price plus one fixed session fee is modeled; time-based, idle, parking and subscription charges are left out.
- You want total ownership cost. The gasoline comparison is fuel-only, not an MPGe conversion or a claim that two cars cost the same to own. For fuel plus running and ownership costs per mile, use the cost per mile calculator.
- You need a range or charging-time prediction. Weather, speed, elevation, HVAC, battery conditioning and charging equipment change real miles and bills, and state of charge is not modeled.
- Your home rate changes by hour. Enter the rate for the hours you actually charge, and check installation or equipment costs separately.
For household electricity use outside EV driving, use the appliance electricity cost guide. For commuting tradeoffs beyond fuel, see rent versus commute cost.
Quick decision checklist
- Find the price you actually pay per kWh at home for the hours you charge.
- Check whether your public station charges per kWh, per minute, a session fee or idle fees.
- Confirm whether your consumption figure is battery-side or an EPA outlet-side value before setting efficiency.
- Compare home, public and gasoline for the same miles, not the same dollars.
- Recheck with a real invoice or metered kWh after a few sessions.
Sources and review
- DOE Alternative Fuels Data Center, Charging Electric Vehicles at Home: kWh per 100 miles and electricity price for cost per mile; equipment and time-of-day variability.
- EPA, Fuel Economy and EV Range Testing: MPGe label estimates include charging losses and assume Level 2 AC charging.
Sources checked September 28, 2026. The examples, rounding and scope limits are this tool’s own model.
Prepared with AI-assisted research, drafting, and calculation checks. Not independently reviewed by a human financial professional.