How the EV charging cost calculator works
Enter your battery size, starting charge, target charge and electricity price. The main result, Charging cost, is the electricity charge for that session after allowing for charging losses. The other results show energy from the grid, miles added and cost per 100 miles.
Use a price per kilowatt-hour (kWh), not a price per kilowatt (kW). Kilowatt-hours measure energy delivered; kilowatts describe a charger's power. NIST uses this distinction when explaining EV charging equipment and energy sales.
Battery size accepts 5–250 kWh. Charge from accepts 0–100%, and Charge to accepts 1–100%, but the target must be higher than the starting charge. Electricity price can be zero or any positive amount. Enter your own rate: the calculator does not retrieve utility tariffs or charging-station prices.
Open the collapsed Efficiency section to change Charging efficiency or Car efficiency. Charging efficiency starts at 90% and accepts 50–100%. Car efficiency starts at 3.5 miles per kWh and accepts 1–10 mi/kWh. These inputs have different jobs: charging efficiency determines electricity drawn, while car efficiency determines miles added. Distance results use miles.
The charging cost formulas
First subtract Charge from from Charge to to find the charge gain in percentage points. Multiply battery size by that gain divided by 100 to find the energy added to the battery. Then divide by charging efficiency, expressed as a decimal, to find the energy drawn from the grid.
Charge gain is Charge to minus Charge from. Added energy is an intermediate value, not a separate result row.
At 90% charging efficiency, 90% of the incoming energy becomes stored energy. This requires dividing by 0.90, not simply adding 10% to the battery energy. The starting efficiency is an assumption: charging losses include AC-to-DC conversion and battery resistance, and vary with the vehicle, charging system, battery state and weather.
Car efficiency means miles traveled per battery kWh in this calculation. All money results use the same currency as the electricity price.
Worked example with the starting values
The calculator starts with a 60 kWh battery, charging from 0% to 100%, electricity at $0.15 per kWh, 90% charging efficiency and car efficiency of 3.5 mi/kWh. The battery gains 60 × (100 − 0) ÷ 100 = 60 kWh. Grid energy is 60 ÷ 0.90, displayed as 66.7 kWh.
Charging cost is (60 ÷ 0.90) × $0.15 = $10.00. Miles added is 60 × 3.5 = 210 miles. Cost per 100 miles is $10.00 ÷ 210 × 100, displayed as $4.76.
The calculator uses unrounded values for subsequent calculations. Grid energy is displayed to one decimal place and miles added to a whole mile, so multiplying or dividing the displayed results can produce a slightly different amount. The $0.15 rate is an illustrative starting value, not a November 2026 national average.
Compare full charges and top-ups
This table keeps the battery at 60 kWh, electricity at $0.15 per kWh, charging efficiency at 90% and car efficiency at 3.5 mi/kWh. Only the starting and target charge levels change.
| Charge from/to | Grid energy (kWh) | Charging cost | Miles added |
|---|---|---|---|
| 0% to 100%Starting values | 66.7 | $10.00 | 210 |
| 20% to 80% | 40.0 | $6.00 | 126 |
| 20% to 90% | 46.7 | $7.00 | 147 |
| 50% to 100% | 33.3 | $5.00 | 105 |
Cost per 100 miles remains $4.76 in every row. In this model, battery size and charge gain scale both session cost and miles added by the same amount. Their effects cancel when cost is divided by miles. Price and the two efficiency inputs determine cost per 100 miles.
Choose inputs that fit your charging session
- 1Use the capacity available for driving. Enter usable battery capacity corresponding to the displayed charge scale when you know it. The calculator treats the entered capacity as fully available across 0–100%; it does not subtract a reserve or automatically adjust for battery degradation.
- 2Enter the price for the session. Check your tariff or charging receipt for the applicable per-kWh amount. Include per-kWh taxes or delivery charges in that amount if you want them reflected. There are no separate fields for these charges.
- 3Match the car efficiency to your driving. Use a battery-based mi/kWh figure suitable for the driving you expect. The calculator applies that figure unchanged and does not automatically adjust miles added for driving conditions.
Check the measurement basis before using an efficiency rating. EPA MPGe ratings include charging losses and measure energy at the outlet. This calculator's Car efficiency input uses battery energy instead, so treating an outlet-based figure as battery-based and then applying charging losses again would count those losses twice.
Frequently asked questions
How much does charging from 20% to 80% cost?
With the starting 60 kWh battery, $0.15/kWh price and 90% charging efficiency, the cost is $6.00. The battery gains 36 kWh and draws 40.0 kWh from the grid. At 3.5 mi/kWh, the result is 126 miles added.
Does higher car efficiency reduce the cost of a charge?
Changing Car efficiency alone does not change session charging cost or grid energy. It changes miles added and cost per 100 miles. A higher mi/kWh value gives more miles from the same stored energy.
Does the calculator estimate charging time?
No, it has no charger-power or charging-time input. Actual charging speed depends on the vehicle, battery state of charge and ambient temperature, so the cost result should not be read as a time estimate.
What happens if charging electricity is free?
Enter zero for Electricity price per kWh. Charging cost and cost per 100 miles both become zero, while grid energy and miles added remain unchanged. Any separate parking or session fee must be accounted for outside the calculator.
Who made this calculator
Sources
- 1Where the Energy Goes: Electric Cars · U.S. Department of Energy and U.S. Environmental Protection Agency · Accessed November 2026
- 2Charging Your Plug-in Electric Car · U.S. Department of Energy and U.S. Environmental Protection Agency · Accessed November 2026
- 3Fuel Economy and EV Range Testing · U.S. Environmental Protection Agency · Accessed November 2026
- 4Electric Vehicle Fueling FAQs · National Institute of Standards and Technology · Accessed November 2026
Charging costs are estimates; confirm the applicable electricity rate and additional fees with your utility or charging provider.
