ForHosting KIT · Travel & geography

EV cost per mile calculator

280 Wh per mile is 0.28 kWh per mile, or 28 kWh per 100 miles: multiply by your electricity price and you get the energy cost of every mile and every kilometre, with no trip distance needed. Free in your browser.

  • Free
  • Runs in your browser
  • No sign-up
  • Your data stays on your device
Use it from WebAPIEmailTelegramApp soon
If you enter
Efficiency
280
Electricity price
0.16
Efficiency unit
Wh mi
Currency
USD
You get
Wh per mile
280
Wh per km
173.98393383
Kwh per mile
0.28
Kwh per km
0.1739839338

Electric-vehicle owners compare running costs in cents per mile, not in litres at the pump, so the first number they need is the energy cost of each mile or kilometre. This EV cost per mile calculator takes the vehicle’s efficiency in watt-hours per mile (or per kilometre) and the electricity price per kilowatt-hour, then returns the energy cost per mile and per kilometre together with the equivalent kWh/100 figures used on window stickers. The conversion is exact: one kilowatt-hour is one thousand watt-hours, and one international statute mile is exactly 1.609344 kilometres, so the same request can feed a US trip budget and a metric total-cost sheet without a second conversion step. Use it when a dealer quotes Wh/mi, when a home tariff changes, or when you want a unit cost that does not depend on how far you drive today.

How watt-hours per mile become energy cost per mile

An electric vehicle does not burn litres; it draws watt-hours from the pack for every mile or kilometre of road. Manufacturers, EPA labels, and onboard trip computers often publish that draw as watt-hours per mile. Because retail electricity is priced per kilowatt-hour, the unit-cost conversion is a single scaling: divide watt-hours per mile by one thousand to obtain kilowatt-hours per mile, then multiply by the price you pay per kilowatt-hour.

A car that uses two hundred eighty watt-hours per mile at sixteen cents per kilowatt-hour therefore costs four and forty-eight hundredths of a cent per mile of energy, before any demand charge or idle fee. The same identity in metric form uses watt-hours per kilometre: divide by one thousand and multiply by the same price.

This capability always returns both sides, converting with the exact international statute mile of 1.609344 kilometres, so a US Wh/mi sticker and a European Wh/km rating stay consistent instead of drifting by a rounded 1.61 factor. The response also restates consumption as kWh per 100 miles and kWh per 100 kilometres, the labels used in brochures and fleet tenders. Weather, speed, cabin heat, and cargo change real-world watt-hours; treat the efficiency you enter as a planning average or a conservative highway figure, not a guarantee of every trip.

Inputs, units, and when validation rejects a request

Unlike a trip-cost tool that asks for kilometres driven, this calculator never needs a distance: it prices one mile and one kilometre, which is the search people type when they ask what an EV costs per mile. Negative electricity price is likewise rejected. Zero price is allowed and yields zero cost, which is the honest result for a workplace charger billed at nothing.

Missing fields, empty strings, NaN, and Infinity fail without charge. Typical passenger cars often land between roughly two hundred and three hundred fifty watt-hours per mile depending on size, speed, and climate-control load; heavier trucks and towing sit higher.

Home-tariff cents per mile

Turn a window-sticker Wh/mi rating and the residential kilowatt-hour rate into a stable energy cost per mile for household budgets.

Dealer and TCO comparisons

Price several candidate vehicles at the same electricity tariff so shoppers compare energy cost per mile instead of mixing trip lengths.

Home versus public charger premium

Re-run the same efficiency with two electricity prices to show how many extra cents per mile a DC fast charger adds versus overnight home charging.

How is EV cost per mile calculated from watt-hours?

Kilowatt-hours per mile equal watt-hours per mile divided by one thousand. Energy cost per mile equals that figure times the electricity price per kilowatt-hour. The same identity with watt-hours per kilometre yields cost per kilometre. One international mile is exactly 1.609344 kilometres.

Do I need to enter trip distance?

No. This calculator returns the unit energy cost of one mile and one kilometre. For a whole-trip charging total from distance and kWh per 100 units, use a trip-cost tool instead.

Is efficiency miles per kWh or watt-hours per mile?

Reciprocal figures such as miles per kWh are not accepted as the efficiency input.

Can I enter watt-hours per kilometre instead?

Yes. Choose watt-hours per kilometre as the unit and enter the metric rating. The calculator converts both ways with the exact international mile of 1.609344 km, so a US sticker and a European rating agree.

Does the cost include demand charges or idle fees?

No. It prices only the energy drawn for each mile or kilometre, before any demand charge or idle fee. Treat it as the pure energy part of your running costs.

Everything on this page is available programmatically. This section is for teams who want to wire it into their own systems; everyone else can just use the tool above.

POSThttps://api.kit.forhosting.com/travel/ev-cost-per-mile

Prefer to automate it? One authenticated POST creates the task; the result comes back by webhook or a signed link. The same capability also runs here on the web, by email and from Telegram — and soon from our app too.

curl -X POST https://api.kit.forhosting.com/travel/ev-cost-per-mile \
  -H "Authorization: Bearer $KIT_KEY" \
  -H "Content-Type: application/json" \
  -d '{"efficiency":280,"electricity_price":0.16}'
{
  "efficiency": 280,
  "electricity_price": 0.16
}
{
  "task_id": "tsk_a1b2c3d4e5f6a1b2c3d4e5f6",
  "type": "travel.ev_cost_per_mile",
  "status": "queued",
  "_links": {
    "result": "/tasks/tsk_…/result"
  }
}

The API is asynchronous: the call returns a task_id immediately and the result arrives by webhook. Polling is capped at 1 req/s per task.

Per request$0.002

Published price — no tokens, no invented credits. A failed task is never charged.

HTTPCodeMeaning
401unauthorizedMissing or invalid API key.
402insufficient_balanceYour balance doesn't cover the task price.
404unknown_typeThat task type doesn't exist.
429rate_limitedToo many requests. Use the webhook instead of polling.

Inputs, units, and when validation rejects a request

Send a positive efficiency in watt-hours per distance unit, a non-negative electricity price per kilowatt-hour, and optional labels for efficiency_unit and currency. efficiency_unit is a closed set: wh_mi for watt-hours per mile (the default, matching EPA-style stickers) or wh_km for watt-hours per kilometre. Currency is a label only; the service does not convert dollars to euros, so keep electricity_price in the currency you want printed on cost_per_mile and cost_per_km. Aliases are accepted for convenience: wh_per_mile, wh_per_mi, whpm, and consumption for efficiency; price_per_kwh and price for electricity_price; unit for efficiency_unit. Efficiency must be strictly greater than zero; zero or negative watt-hours would invent a free or negative car and is rejected with invalid_input naming the field.

Using the free browser tool, the API, and rate comparisons

Cache results when the tariff and the rated consumption are stable, and re-run when the driver updates a pack-derived Wh/mi average after real highway weeks so next month’s unit cost tracks the vehicle you actually own rather than the brochure. Use the in-browser tool to turn a window-sticker Wh/mi figure and your home tariff into a cents-per-mile number before you buy, or call the same JSON contract from a total-cost worksheet, a dealer desk, or a batch job that prices a catalogue of vehicles at two or three tariffs. The published API price is $0.002 per successful item; failed validation does not consume prepaid balance. Compare home overnight rates against public DC fast-charge tariffs by running the same efficiency twice with different electricity_price values: the difference in cost_per_mile is exactly the premium you pay for speed, independent of how far a particular Sunday drive happens to be. For mixed US and metric reports, read cost_per_mile and cost_per_km from one response rather than converting after the fact with an approximate 1.6 factor.

What if electricity is free at work?

Send electricity_price as zero. The response returns zero cost per mile and per kilometre. Negative prices and non-positive efficiency are rejected with invalid_input and are not billed.

Is this free, and what does the API cost?

The in-browser tool is free and runs locally. API usage is prepaid KIT balance at $0.002 per successful request. Invalid input fails without charge.

Read the full KIT documentation →