How fuel cost is calculated
Trip fuel cost needs three things: how far you drive, how far your vehicle goes on a unit of fuel, and what a unit of fuel costs. Everything else is arithmetic. The calculator first converts your economy figure to kilometers per liter, then works in liters, then converts to the unit your price is quoted in:
Fuel needed (L) = Distance (km) ÷ Fuel economy (km/L)
Total cost = Fuel needed in the price unit × Price per unit
Cost per person = Total cost ÷ Number of people
Cost per km is the total cost divided by the kilometers driven, and cost per mile is that figure multiplied by 1.609344. A round trip simply doubles the distance. If you want to check any single conversion by hand, the unit converter covers kilometers, miles, liters and gallons.
Formulas for each unit system
Fuel economy is quoted in four common ways, and two of them are inverses of each other. Distance per fuel (km/L, mpg) gets bigger as the vehicle gets more efficient. Fuel per distance (L/100 km) gets smaller. The calculator uses these exact constants: 1 mile = 1.609344 km, 1 US gallon = 3.785411784 L and 1 UK (imperial) gallon = 4.54609 L.
- km/L: use as is.
- L/100 km: km/L = 100 ÷ (L/100 km). A car using 8 L/100 km does 12.5 km/L.
- mpg (US): km/L = mpg × 1.609344 ÷ 3.785411784.
- mpg (UK): km/L = mpg × 1.609344 ÷ 4.54609.
Conversion table
The table converts four typical economy figures between the systems. Notice how the same car looks about 20% better in UK mpg than in US mpg, only because the UK gallon is larger.
| km/L | L/100 km | mpg (US) | mpg (UK) |
|---|---|---|---|
| 10 | 10.00 | 23.52 | 28.25 |
| 12 | 8.33 | 28.23 | 33.90 |
| 15 | 6.67 | 35.28 | 42.37 |
| 20 | 5.00 | 47.04 | 56.50 |
Worked examples
Example 1: Lahore to Islamabad in km and liters
The motorway distance is roughly 375 km. Your car does 12 km/L. For illustration only, assume a petrol price of 280 per liter. This is an example figure, not a current official price, so type in what you actually pay. Fuel needed = 375 ÷ 12 = 31.25 L. Cost = 31.25 × 280 = 8,750. Driving back as well doubles it to 62.5 L and 17,500, and split between 4 people that is 4,375 each. The cost per km is 8,750 ÷ 375 = 23.33.
Example 2: a US road trip in miles and mpg
You drive 300 miles in a car that gets 30 mpg (US), with fuel at $3.50 per US gallon (again an illustration). Fuel needed = 300 ÷ 30 = 10 gallons, which is 10 × 3.785411784 = 37.85 L. Cost = 10 × 3.50 = $35.00. That works out to $35 ÷ 300 = $0.1167 per mile. A round trip is 20 gallons and $70.00, or $35.00 each for two people.
Example 3: UK gallons
A 100 mile journey at 40 mpg (UK) uses 100 ÷ 40 = 2.5 UK gallons, which is 2.5 × 4.54609 = 11.37 L. If the price is £6.80 per UK gallon, an example figure, the cost is 2.5 × 6.80 = £17.00. Had you mistakenly used the US gallon, you would have thought the car burned only 9.46 L.
Why real consumption differs from the figure on paper
The number in the brochure comes from a standardized test. Your trip will use more fuel in several ways:
- Speed. Air resistance climbs steeply, so a motorway at 120 km/h burns noticeably more per km than the same road at 90 km/h.
- Air conditioning. In hot weather it can add a meaningful share to consumption, especially in stop and go driving.
- Traffic. Idling and repeated acceleration give a worse figure than steady cruising.
- Load. Passengers, luggage and a roof rack all raise consumption.
- Tire pressure. Under-inflated tires increase rolling resistance, and an engine in poor tune wastes fuel too.
- Terrain and weather. Hills, headwinds and cold starts all cost fuel.
For a safer budget, use your own measured economy and add a margin, for example 10%. To see what a 10% margin does to a cost, the percentage calculator will do it in a second.
Common mistakes
- Mixing US and UK gallons. A UK gallon is about 20% larger than a US gallon, so the same mpg number means different economy. Always pick the unit your figure was measured in.
- Treating L/100 km as higher is better. It is the inverse: a lower number means a more efficient vehicle. 5 L/100 km is excellent, 12 L/100 km is thirsty.
- Forgetting the return trip. Enter the one-way distance and tick the round trip box, or the total will be half of what you really spend.
- Comparing price per liter with price per gallon. Convert both to the same unit first, or let the calculator do it.
- Averaging economy figures. To combine trips, add up the total fuel and total distance, then divide (total liters ÷ total km × 100). A plain average of L/100 km values is only right when the trips are the same length: 100 km at 5 L/100 km plus 300 km at 10 L/100 km is 35 L over 400 km, or 8.75 L/100 km, not 7.5.
Using the result
Treat the total as a planning figure rather than a receipt. Because fuel economy changes with conditions, a good habit is to run the calculator twice, once with the optimistic brochure number and once with a pessimistic figure from your own fill-ups, and budget somewhere between the two. When several people share a car, agreeing the per-person amount before leaving avoids awkward conversations later.
The cost per km and per mile make it easy to compare a drive with a bus, train or flight, and to decide how much to ask passengers to chip in. If you are also budgeting running costs at home, the electricity cost calculator works the same way for appliances. For more tools like this one, browse the finance calculators or the conversion calculators, and read metric vs imperial for a plain explanation of why the unit systems differ.