How to use it
Enter the trip distance in miles or km, your car’s fuel economy, and the fuel price per liter, US gallon or UK gallon. Choose “Round trip” to double the distance. The units can be mixed freely — a distance in km with economy in mpg (US) and a price per liter is fine — and every conversion is exact.
The formulas
fuel = distance in km × liters per 100 km ÷ 100
fuel = distance in miles ÷ miles per gallon
cost = fuel, in the unit the price is per × price1 mile = 1.609344 km; 1 US gallon = 3.785411784 L; 1 UK (imperial) gallon = 4.54609 L — all exact by definition
The result shows the fuel needed in the unit you pay by (and in liters when that is different), the total cost and the cost per mile or per km.
Worked examples
A US road trip
Given: 250 miles one way, 30 mpg (US), 3.40 per US gallon
- Fuel: 250 ÷ 30 = 8.3333 US gallons (31.55 L)
- Cost: 8.3333 × 3.40 = 28.33
- About 0.11 per mile
A metric round trip
Given: 300 km each way, 6.5 L/100 km, 1.80 per liter, round trip
- Distance: 2 × 300 = 600 km
- Fuel: 600 × 6.5 ÷ 100 = 39 L
- Cost: 39 × 1.80 = 70.20, about 0.12 per km
US and UK miles per gallon are not the same
A UK gallon is about 20% larger than a US gallon, so the same car shows a higher mpg figure in the UK: 30 mpg (UK) is about 25 mpg (US). Picking the wrong one changes the answer by roughly a fifth. For 250 miles at 30 mpg (UK) and 1.45 per liter, the calculator gives 37.88 L and a cost of 54.93, compared with 31.55 L at 30 mpg (US).
Liters per 100 km work the other way round: lower is better. To convert, divide 235.215 by the mpg (US) figure, or 282.481 by the mpg (UK) figure. So 30 mpg (US) is about 7.84 L/100 km.
Assumptions
- Fuel economy is treated as constant over the whole trip. Real consumption depends on speed, load, traffic, terrain and weather, so the result is an estimate — and the economy figure you enter affects it more than anything else.
- Prices are plain numbers in any currency, and the cost is rounded to 2 decimal places.
- Distance and fuel economy must be greater than zero.
To estimate the driving time for the same trip, use the speed, distance and time calculator.
Questions
How do I measure my car’s real fuel economy?
Fill the tank, reset the trip meter, drive normally, then fill up again. Divide the distance driven by the fuel added: 412 km on 31.5 L is about 13.08 km/L, or 7.65 L/100 km.
Can I use it for an electric car?
Yes, with a small trick: enter the consumption in kWh per 100 km in the L/100 km box and the price per kWh as the price per liter. The arithmetic is identical; just read “L” as kWh.
How do I split the fuel cost between passengers?
Divide the cost by the number of people sharing it. For the round trip above, 70.20 split three ways is 23.40 each.
Method & sources
- Exact definitions of the mile and the US and UK gallons — NIST Special Publication 811: Guide for the Use of the International System of Units