ForHosting KIT · Unit converters

MPG to km/L converter

Turn a US fuel-economy sticker into kilometers per liter: 30 US MPG is 12.754311222908 km/L, worked out from the exact mile and US gallon instead of a rounded shortcut, with every step shown. 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
Mpg
30
You get
Result
12.7543112229 km/L
Converted
12.7543112229
Km l
12.7543112229
From unit
US MPG

An MPG to km/L converter turns a United States miles-per-gallon fuel-economy figure into kilometers per liter, the economy scale used on many international stickers, fleet dashboards, and science worksheets outside North America. Approximate mental shortcuts such as “multiply by point four two five” are unnecessary here because both constants are fixed legal definitions, not survey estimates that need rounding before multiply.

Why US MPG and km/L still meet at 1.609344 over 3.785411784

United States miles per gallon and kilometers per liter remain everyday fuel-economy units across international car shopping, fleet telematics, environmental reporting, and mixed-unit physics homework. American window stickers, EPA labels, and many North American dashboards quote miles per US gallon, while markets that already use metric road signs often report kilometers per liter so that a higher number still means better economy on the same orientation as MPG.

The modern international mile is fixed at exactly 1.609344 kilometers, and the US liquid gallon is fixed at exactly 3.785411784 liters from the two-hundred-thirty-one cubic-inch definition under the international inch. Conversion is therefore one exact product—kilometers per liter equals US MPG times 1.609344 divided by 3.785411784—with no leftover uncertainty and no dependence on local survey factors. This landing stays on the US MPG path only.

It does not convert imperial (UK) miles per gallon, which use a larger 4.54609-liter gallon and would mislead searchers who typed mpg to km/l for US sticker or EPA figures, and it does not invert to liters per 100 kilometers.

Practical tips, checks, and related searches

Prefer sending bare numbers when you control the client; string numbers are accepted only when they match a strict finite numeric pattern without units, thousand separators, or currency symbols. Round-trip sanity checks are easy: convert 1 US MPG and confirm about 0.42514370743 km/L, convert 30 US MPG and confirm about 12.754311222908 km/L, or convert zero and confirm zero. When teaching, show that dividing the published km/L by the published factor recovers the original MPG within the same twelve-decimal rounding used for published fields.

Stay inside the absolute range so the multiply cannot produce a non-finite result the solver must reject. This landing targets people searching for mpg to km/l, convert miles per gallon to kilometers per liter, or an exact 1.609344 over 3.785411784 factor calculator; it is not a general multi-unit fuel-economy hub, not a km/L-to-MPG primary form, not an imperial MPG converter, and not an L/100km path.

Prefer this capability when the input is already US MPG and you only need km/L; if you must convert among many economy units in one call, use a broader fuel-economy converter instead.

Cross-border car shopping

Restate US EPA or sticker MPG as km/L so shoppers in metric markets compare the same vehicle on the economy scale they already know.

Fleet and telematics normalization

Convert mixed North American MPG dashboards into kilometers per liter before warehouse cost-per-kilometer reports and fuel budgets.

What formula converts US MPG to km/L?

km/L = MPG × (1.609344 / 3.785411784). One international mile is exactly 1.609344 km and one US liquid gallon is exactly 3.785411784 L, so the factor is a legal definition, not an estimate.

Is the factor exact?

Yes. The international mile and the NIST US liquid gallon (231 in³ under the international inch) fix both constants. This tool multiplies by their exact ratio only.

Does this convert imperial (UK) MPG?

No. It converts US miles per gallon only. An imperial gallon is 4.54609 L and would produce a different km/L figure for the same MPG number.

Is the MPG to km/L converter free?

The browser tool is free and runs locally.

How many km/L is 30 MPG?

30 US MPG is 12.754311222908 km/L. The converter multiplies by 1.609344 kilometers per mile and divides by 3.785411784 liters per US gallon, so you can check each step yourself.

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/conv/mpg-to-kml

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/conv/mpg-to-kml \
  -H "Authorization: Bearer $KIT_KEY" \
  -H "Content-Type: application/json" \
  -d '{"mpg":30}'
{
  "mpg": 30
}
{
  "task_id": "tsk_a1b2c3d4e5f6a1b2c3d4e5f6",
  "type": "conv.mpg_to_kml",
  "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.

Invalid or missing input fails with a clear invalid_input error instead of inventing a number.

How to call the API and what comes back

Absolute values must stay within the published limit of one trillion. Send a JSON body with one required finite number field named mpg. Aliases value, miles_per_gallon, us_mpg, mpg_us, mpg_value, economy, and fuel_economy are accepted so SDK clients and form posts can use the name that fits the product. On success the response echoes rounded mpg, sets km_l, result, and converted to the same rounded kilometers-per-liter magnitude, unit to the token km/L, from_unit to US MPG and to_unit to km/L, factor to the rounded ratio 1.609344/3.785411784, mile_km to 1.609344, us_gal_l to 3.785411784, formula to the string km/L equals MPG times that ratio, message to a short English summary, and steps to an ordered array of substitution lines that show both exact definitions. Failed validation—missing fields, non-finite numbers, bare plus or minus signs, non-numeric strings, values outside absolute limits, or a non-finite converted result—returns invalid_input and is never charged. Pricing is a flat $0.002 per successful request with unit item.

Practical tips, checks, and related searches

Failed tasks that return invalid_input do not consume prepaid balance, which keeps exploratory scripts cheap when learners deliberately omit mpg or pass text.

Homework and unit-test fixtures

Students and engineers convert classroom US MPG values to km/L and pin golden JSON so browser and API arithmetic never drift.

What happens on missing or non-numeric input?

The API returns invalid_input naming the problem (for example a missing mpg field). Failed tasks are not charged.

Read the full KIT documentation →