EV Charging Cost Calculator Widget
Add an EV charging cost calculator to your website. Drivers enter the battery size, the charge level they start and finish at, the charging efficiency and their price per kWh, and see the energy drawn from the grid, the cost of the session and the cost per 100 km or miles.
Live preview
Exactly what your visitors will seeUnder the widget on your page: Powered by A2Z Tools
Embed code
<iframe src="https://a2z.tools/embed/w/ev-charging-cost" title="EV Charging Cost Calculator by A2Z Tools" width="100%" height="800" style="border:0;width:100%" loading="lazy" allow="clipboard-write"></iframe>
A plain iframe. Works everywhere, including site builders that strip scripts. Adjust height if your content needs more room.
<div data-a2z-widget="ev-charging-cost" data-height="800"></div> <script async src="https://a2z.tools/embed.js"></script>
Adds a small script (what it does) that sizes the widget to fit its content, loads it lazily and keeps it isolated from your page's CSS.
Works with
How it works
The energy that ends up in the battery is its capacity times the change in charge level. Charging is not lossless - the on-board charger, cables and battery turn part of the energy into heat - so the energy bought from the grid is that figure divided by the charging efficiency the visitor enters. With the car's own consumption figure the widget also works out the range added and the running cost per 100 km or 100 miles. The consumption to enter is the battery-side figure from the car's trip computer: US EPA label figures are measured at the wall and already include charging losses, so using them here would count the losses twice.
Calculation method
- Energy into the battery (kWh) = capacity x (to% - from%) / 100
- Energy from the grid (kWh) = energy into the battery / charging efficiency
- Cost = grid energy x price per kWh; full charge = capacity / efficiency x price
- Range added = battery energy / consumption x 100; cost per 100 = consumption / efficiency x price
Worked examples
Home top-up from 20% to 80%
Inputs: 60 kWh battery, 20% to 80%, 90% efficiency, 0.17 per kWh, 17 kWh/100 km
Result: 36 kWh into the battery, 40 kWh from the grid, 6.80 per session; about 212 km added; 3.21 per 100 km
60 x 0.6 = 36; 36 / 0.9 = 40; 40 x 0.17 = 6.80; 17 / 0.9 x 0.17 = 3.21.
Limitations
- Treats charging efficiency as constant; real losses change with charging power, battery temperature and preconditioning.
- Uses the usable battery capacity the visitor enters; the widget has no model database.
- Per-minute, session, idle and membership fees at public chargers are not included.
Where publishers use it
- EV review and ownership blogs comparing home and public charging
- Home charger installers' websites
- Utility pages promoting off-peak EV tariffs
- Fleet managers estimating the cost of electrifying vans
Questions
What charging efficiency should I use?
Compare the kWh your charger or smart meter reports for a session with the kWh the car says it added; the ratio is your efficiency. Losses are usually higher at very low charging currents and in cold weather.
Which consumption figure should I enter?
The car's own trip-computer figure, which is measured at the battery. The EPA's kWh per 100 miles on US window stickers is measured from the wall and already includes charging losses, so using it here would count the losses twice.
Why charge only to 80%?
Many owners charge to 80% day to day to reduce battery wear and because charging slows near full. Enter any levels you like.
Does it work for public rapid chargers?
Yes - enter that charger's price per kWh. Some networks also charge per minute or per session, which is not included.
Sources
- Fuel economy and EV range testing - US Environmental Protection Agency . EPA electricity consumption is measured from the wall, including charging losses
Cite or recommend this tool
If you reference this tool in an article, course or documentation, these formats are ready to copy. They are optional - nothing is added to your site unless you paste it.
A2Z Tools EV Charging Cost Calculator https://a2z.tools/embed/ev-charging-cost
<a href="https://a2z.tools/embed/ev-charging-cost">A2Z Tools EV Charging Cost Calculator</a>
[A2Z Tools EV Charging Cost Calculator](https://a2z.tools/embed/ev-charging-cost)
EV Charging Cost Calculator by A2Z Tools - https://a2z.tools/embed/ev-charging-cost
Related widgets
-
Fuel needed and trip cost from distance, economy and fuel price, split between passengers.
-
Daily, monthly and yearly running cost of up to 8 appliances at your tariff.
-
Convert between MPG (US), MPG (UK), L/100 km and km per litre with exact factors.
-
Monthly car payment with down payment, trade-in, sales tax and fees, plus the total cost.
-
Diameter, sidewall and revolutions of a tyre size, and the speedometer error of a new size.
-
Solve speed, distance or time from the other two, in km, miles, metres or nautical miles.