Trip fuel volume calculator
500 km at 7.5 L/100 km burns 37.5 litres, which is 9.9065 US gallons or 8.2488 imperial gallons. Enter the distance and your economy in L/100 km, km per litre, US or imperial mpg to see how much fuel leaves the tank. Free in your browser.
- Free
- Runs in your browser
- No sign-up
- Your data stays on your device
Run — free
Worked example
- Distance
- 500
- Economy
- 7.5
- Distance unit
- Km
- Distance km
- 500
- Distance mi
- 310.6856
- Economy unit
- l_per_100km
This trip fuel volume calculator turns a planned distance and a known fuel economy into the liters and gallons of fuel the journey will burn. Enter distance in kilometers or miles, choose how economy is stated — liters per one hundred kilometers, kilometers per liter, US miles per gallon, or imperial miles per gallon — and the engine returns fuel volume in liters, US gallons, and imperial gallons with a short formula tag for audits. The arithmetic is fully deterministic: for liters per one hundred kilometers, fuel equals distance in kilometers times economy divided by one hundred; for kilometers per liter, fuel equals distance divided by economy; for miles per gallon, gallons equal miles divided by economy and convert to liters with the international gallon constants. Small checks you may already know include five hundred kilometers at seven point five liters per one hundred kilometers yielding thirty-seven point five liters, and three hundred miles at thirty US miles per gallon yielding ten US gallons. The path uses only finite arithmetic with no network calls, no sampling, and no date-dependent shortcuts.
What the fuel volume tells you
Trip fuel volume answers a single practical question: given how far you will drive and how efficiently the vehicle uses fuel, how much fuel must leave the tank. Drivers, fleet dispatchers, and travel apps need that number before estimating cost, comparing routes, or deciding whether a fill-up is enough for the next leg. This calculator does not invent economy from speed or elevation; it trusts the economy value you supply and applies the matching closed-form identity for the selected unit system.
If you need fuel cost in currency, multiply the returned volume by your local price outside this tool; if you need remaining range from a partial tank, invert the same identities with tank liters rather than trip distance. This page stays focused on the volume identity so worksheets, APIs, and browser demos share one stable contract.
Where fuel-volume checks fit in planning, fleets, and software
Road-trip planners meet this calculation when a map shows five hundred kilometers of highway and the car handbook lists seven or eight liters per one hundred kilometers, and the only remaining step is tank volume before budgeting stops. Fleet operators batch the same formula across vehicles with different mpg stickers to size depot fuel orders or to flag routes that exceed a daily allowance.
Travel and expense products call the contract from scripts when a user picks a destination and the app must show expected liters without shipping a full routing stack. Students and driving instructors use it to connect the textbook idea of consumption rate with a concrete number of liters for a weekend journey, including the classic three hundred miles at thirty miles per gallon example that yields ten US gallons.
Product and education tools use the dual liter and gallon outputs when audiences mix metric and US customary units in the same classroom or marketplace. Pair it with unit converters when you only need distance or volume translation, and with other travel helpers when you are building a small lab of free, deterministic planning tools for trips, fuel, and logistics.
What you can do with it
Road-trip fuel planning
Estimate liters or gallons needed for a planned highway or city trip from distance and your car’s L/100km or MPG rating.
Fleet and depot orders
Batch trip distances and per-vehicle economy figures to size fuel purchases and flag high-burn routes.
FAQ
What does the trip fuel volume calculator cost?
It is free in your browser on this page.
How is fuel volume computed from L/100km?
Gallons are derived from liters using fixed international constants.
What happens if economy is zero or negative?
Zero or negative fuel economy is not meaningful for estimating trip fuel volume.
Can I use US miles per gallon?
The response still includes liters and imperial gallons.
Does this tool estimate fuel cost in money?
No. It only returns volume (liters and gallons). Multiply by your local price per liter or gallon outside this calculator if you need cost.
Related tools
For developers — API access
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.
API endpoint
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.
Call it from your stack
curl -X POST https://api.kit.forhosting.com/travel/trip-fuel-volume \
-H "Authorization: Bearer $KIT_KEY" \
-H "Content-Type: application/json" \
-d '{"distance":500,"economy":7.5}'const res = await fetch("https://api.kit.forhosting.com/travel/trip-fuel-volume", {
method: "POST",
headers: {
"Authorization": `Bearer ${process.env.KIT_KEY}`,
"Content-Type": "application/json"
},
body: JSON.stringify({
"distance": 500,
"economy": 7.5
})
});
const { task_id } = await res.json();import os, requests
res = requests.post(
"https://api.kit.forhosting.com/travel/trip-fuel-volume",
headers={"Authorization": f"Bearer {os.environ['KIT_KEY']}"},
json={
"distance": 500,
"economy": 7.5
},
)
task_id = res.json()["task_id"]<?php
$res = file_get_contents("https://api.kit.forhosting.com/travel/trip-fuel-volume", false, stream_context_create([
"http" => [
"method" => "POST",
"header" => "Authorization: Bearer " . getenv("KIT_KEY") . "\r\nContent-Type: application/json",
"content" => '{"distance":500,"economy":7.5}',
],
]));
$task = json_decode($res, true);body := bytes.NewBufferString(`{"distance":500,"economy":7.5}`)
req, _ := http.NewRequest("POST", "https://api.kit.forhosting.com/travel/trip-fuel-volume", body)
req.Header.Set("Authorization", "Bearer "+os.Getenv("KIT_KEY"))
req.Header.Set("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)Example request
{
"distance": 500,
"economy": 7.5
}Example response
{
"task_id": "tsk_a1b2c3d4e5f6a1b2c3d4e5f6",
"type": "travel.trip_fuel_volume",
"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.
Pricing
Published price — no tokens, no invented credits. A failed task is never charged.
Limits
max_abs | 1000000000 |
Errors
| HTTP | Code | Meaning |
|---|---|---|
401 | unauthorized | Missing or invalid API key. |
402 | insufficient_balance | Your balance doesn't cover the task price. |
404 | unknown_type | That task type doesn't exist. |
429 | rate_limited | Too many requests. Use the webhook instead of polling. |
Technical notes
Zero or negative economy is rejected with invalid_input because a non-positive efficiency does not define a meaningful tank requirement.
What trip fuel volume means and what the response contains
The response echoes the normalized distance and economy, the resolved distance_unit and economy_unit, distance converted to both kilometers and miles for dual-unit readers, fuel_liters, fuel_gallons_us, fuel_gallons_imp, the precision used, a method tag trip_fuel_volume, and a compact formula string describing the path taken. There is no approximate Monte Carlo path and no live traffic feed: the engine either builds a finite volume inside the supported numeric range or rejects the input with invalid_input. Rejected cases include missing distance or economy, non-finite values, magnitudes above the documented ceiling, non-positive distance, and any economy that is zero or negative, because dividing by zero efficiency or scaling with a negative burn rate is not a valid trip plan.
How distance and economy are read and how units stay consistent
Optional leading plus signs and scientific notation on numeric strings are allowed when they parse as finite decimals; embedded spaces, hex prefixes, and non-numeric tokens are rejected with a clear message so a bad cell does not become a wrong tank estimate. After validation the engine converts distance into both kilometers and miles using the exact international mile, then computes volume in liters using the matching formula, and finally reports US and imperial gallons with the fixed constants three point seven eight five four one one seven eight four liters per US gallon and four point five four six zero nine liters per imperial gallon. The preferred fields are distance for the trip length and economy for the fuel-economy figure, but aliases such as dist, trip_distance, fuel_economy, consumption, and mpg are accepted so spreadsheets, query strings, and typed forms can reuse the same contract. economy_unit selects the interpretation: l_per_100km is the default metric consumption rate, km_per_l is the reciprocal efficiency common on some dashboards, mpg_us or mpg is United States miles per gallon, and mpg_imp is the larger imperial gallon used in UK historical ratings. distance_unit may be km or mi; when omitted it defaults to kilometers for the two metric economy modes and to miles for both mpg modes so a quick form fill does not silently mix systems. An optional precision field, with aliases decimals and dp, chooses how many decimal places to expose, defaulting to four and capped at fifteen so JSON goldens stay stable. Pair the free browser run on this page with the priced API when you need the identical mathematical result inside an automated pipeline without re-implementing gallon constants yourself.
Where fuel-volume checks fit in planning, fleets, and software
On this page the work runs entirely in your browser; through the API each successful lookup costs $0.002, failed validation is not charged, and nothing is stored after the response returns. That split — free interactive exploration and a priced, identical API — matches the rest of the KIT tier-A catalog and lets you move from a dashboard demo to an automated pipeline without changing the mathematical result.
Integration use cases
Deterministic fixtures for apps
Generate reproducible fuel_liters and gallon fields for booking tools, expense demos, and CI assertions.