How the fuel cost calculator works
It works out the fuel the trip needs from the distance and your car’s fuel economy, then multiplies by the price you type. The page opens with example values, so you see a cost at once: a 300-mile trip at 30 mpg, with the latest US average price for regular gasoline published by the U.S. Energy Information Administration (or the latest Canada average from Statistics Canada in km and litres). Fuel prices change every week and differ by state and station, so replace the example with your own price, or press Clear to start from empty boxes.
Fuel (gallons) = miles ÷ mpg
Fuel (litres) = km × L/100 km ÷ 100
Cost = fuel × price per gallon or litre
Each person = cost ÷ number of people
If the distance and the fuel economy use different units (miles with L/100 km, say), the distance is converted first (1 mile = 1.609344 km). If you buy fuel in another unit than your economy uses, as in the UK, where economy is in mpg but fuel is sold by the litre, the fuel is converted before the price is applied. Every step is listed under the result.
Example: a road trip for three
Three friends drive 300 miles to a lake and back in a car that gets 30 mpg. Say fuel is $3.50 a gallon on the day (an example; type your own price).
- Round trip: 300 × 2 = 600 miles.
- Fuel: 600 ÷ 30 = 20 US gallons (75.71 litres).
- Cost: 20 × 3.50 = $70.00, or about 11.7 cents a mile.
- Each person: 70 ÷ 3 = 23.333…, so $23.33 each.
US mpg, UK mpg and L/100 km side by side
The same car has three different-looking fuel economy numbers depending on where it is sold. The calculator shows all three, so a figure from a UK review or a Canadian label can be compared with a US one.
- US mpg: miles per US gallon (3.785411784 litres). Used in the United States.
- UK mpg: miles per imperial gallon (4.54609 litres). Used in the United Kingdom. Because the gallon is bigger, the number is about 20% higher: UK mpg = US mpg × 1.20095.
- L/100 km: litres used per 100 kilometres. Used in Canada, Europe and most of the world. It counts the other way round, so lower is better: L/100 km = 235.2146 ÷ US mpg = 282.4809 ÷ UK mpg.
Example: a UK trip, fuel bought by the litre
200 miles at 50 mpg (UK) uses 200 ÷ 50 = 4 UK gallons, which is 4 × 4.54609 = 18.18 litres. At 1.45 a litre the fuel costs 26.37. Taking 50 as US mpg by mistake gives 4 US gallons (15.14 litres) and 21.96, which is 4.41 too little.
Example: metric
500 km at 7.5 L/100 km uses 500 × 7.5 ÷ 100 = 37.5 litres. At 1.65 a litre that is 37.5 × 1.65 = 61.875, so 61.88.
Work out your real fuel economy
Choose “My fuel economy”. Fill the tank, drive, then fill it again and enter the distance and the fuel you added. 300 miles on 10 US gallons is 300 ÷ 10 = 30 US mpg; the same fuel is 8.33 UK gallons (36.03 UK mpg) and 37.85 litres for 482.8 km (7.84 L/100 km). Use that number for your next trip.
Good to know
- Driving changes the number. Speed, traffic, hills, cold, air conditioning and a full load all raise fuel use. The result is exact for the economy you typed; fill-up records give the most realistic one.
- Fuel only. Tires, maintenance, insurance and the car’s loss of value add to what each mile costs. The fuel cost per mile and per km is shown so you can compare it with those.
- Sharing. Each share is rounded to the cent, so three shares can add up to a cent more or less than the total.
- Electric cars are not covered here: they use kWh, not gallons or litres.
To see what the car costs per mile with tires, maintenance, insurance and loss of value included, use the cost per mile calculator.
Driving for a ride-hailing or delivery app? The driver profit calculator takes fuel, the platform fee and your other car costs out of each trip and shows your profit per hour.
Buying the car? The auto loan calculator gives the monthly payment with trade-in, sales tax and fees.
Deciding between a ride and your own car? The rider trip cost calculator puts the fare and tip next to the fuel, car costs and parking, per person.
Frequently asked questions
How do I work out the fuel cost of a trip?
Divide the distance by your miles per gallon to get the gallons you need, then multiply by the price per gallon. A 600-mile round trip at 30 mpg uses 600 ÷ 30 = 20 gallons; at $3.50 a gallon that is 20 × 3.50 = $70. With L/100 km, multiply the kilometres by the L/100 km and divide by 100: 500 km at 7.5 L/100 km uses 37.5 litres.
Are US mpg and UK mpg the same?
No. A UK (imperial) gallon is 4.54609 litres and a US gallon is 3.785411784 litres, so the same car shows about 20% more mpg in the UK: 30 US mpg is 36.03 UK mpg. If you use a UK figure as if it were a US one, the fuel and the cost come out about 17% too low. Choose the right unit next to the fuel economy box.
How do I convert mpg to L/100 km?
Divide 235.2146 by US mpg, or 282.4809 by UK mpg. 30 US mpg is 235.2146 ÷ 30 = 7.84 L/100 km. The same division works the other way: 7.84 L/100 km is 235.2146 ÷ 7.84 = 30 US mpg. With L/100 km a lower number means less fuel.
How do I find my car’s real fuel economy?
Fill the tank and note the odometer. Drive as usual, then fill the tank again: the fuel you add is the fuel you used. Choose “My fuel economy” and enter the distance and that fuel. 300 miles on 10 US gallons is 30 US mpg, 36.03 UK mpg or 7.84 L/100 km. Several tanks give a better average than one.
How do I split fuel costs with friends?
Enter the number of people sharing the ride. The calculator divides the fuel cost evenly and rounds each share to the cent: $70 between 3 people is $23.33 each. Tolls, parking and the driver’s wear and tear are not included, so some groups add a little extra for the driver.
Why does my trip use more fuel than the calculator says?
The calculation is exact for the economy you enter, but real economy changes with speed, traffic, hills, cold weather, air conditioning, roof boxes and a full load. Highway driving above about 50 mph uses more fuel per mile as speed rises. Your own recent fill-ups give the most realistic number to enter.
Sources
- NIST Handbook 44 (2024), Appendix C: General Tables of Units of Measurement (US gallon, mile)
- UK Weights and Measures Act 1985, Schedule 1 (imperial gallon)
- US Department of Energy and EPA: fueleconomy.gov
- Natural Resources Canada: Understanding fuel consumption ratings
- U.S. Energy Information Administration: Gasoline and Diesel Fuel Update (example fuel price, US units)
- Statistics Canada, table 18-10-0001-01: Monthly average retail prices for gasoline (example fuel price, metric)
Results are exact for the numbers you enter. Real fuel use depends on how, where and in what weather you drive, and prices change at the pump. Read the full disclaimer and how we check our formulas.