Use this free fuel cost calculator, also called a gas cost or trip cost calculator, to work out what a trip will cost in gas, petrol or diesel. Pick the unit your car uses (MPG, km/L or L/100 km), then enter the trip distance, the fuel economy and the fuel price. You see the fuel you will need, the total cost, the cost per mile or kilometer and, if you are sharing the trip, each person's share. Tick round trip to count the way back. Tables show the cost of common distances and your fuel economy in other units. It is free and instant, and your numbers stay in your browser.
How to calculate the fuel cost of a trip
The cost of a trip depends on three things: how far you go, how much fuel your car uses for that distance, and what the fuel costs. First work out the fuel you will need, then multiply it by the price.
fuel = distance (miles) ÷ MPGkm/L:
fuel = distance ÷ km/LL/100 km:
fuel = distance × L/100 km ÷ 100Cost:
cost = fuel × price per gallon (or per liter)Cost per mile:
cost ÷ distanceExample: a 300 mile trip in a car that does 30 MPG, with gas at $3.50 a gallon. The car needs 300 ÷ 30 = 10 gallons, so the gas costs 10 × $3.50 = $35. That is about $0.12 for every mile.
Round trips and sharing the cost
Tick Round trip and the distance you enter is counted twice. The same journey there and back is 600 miles, which needs 20 gallons and costs $70. The cost for each mile stays the same.
Enter the number of people to split the total. Shared between 2 people, the $70 round trip is $35 each, and the one-way trip above is $17.50 each.
Fuel economy units explained
Different countries measure fuel economy in different ways. MPG (miles per gallon) and km/L go up when a car is more efficient. L/100 km goes down when a car is more efficient, because it measures how much fuel is used, not how far you get. A US gallon (3.785 liters) is smaller than a UK gallon (4.546 liters), so the same car has a higher MPG figure in UK gallons.
| km/L | L/100 km | MPG (US) | MPG (UK) |
|---|---|---|---|
| 8 | 12.50 | 18.82 | 22.60 |
| 10 | 10.00 | 23.52 | 28.25 |
| 12.5 | 8.00 | 29.40 | 35.31 |
| 15 | 6.67 | 35.28 | 42.37 |
| 20 | 5.00 | 47.04 | 56.50 |
Average fuel economy in the US
The US Environmental Protection Agency estimates that the average new US vehicle in model year 2024 does 27.2 MPG in real-world driving, a record high. Without electric and plug-in hybrid vehicles the average is 25.5 MPG, and the average new truck SUV is 25.7 MPG. Your own car may be higher or lower, so use the number for your car when you can.
How to find your car's real fuel economy
The figure on the window sticker or in the brochure is measured in test conditions, so real driving is usually a little different. To find yours:
- Fill the tank completely and note the trip meter (or reset it to zero).
- Drive as you normally do until the tank is about half empty or lower.
- Fill the tank completely again and note how many gallons (or liters) it took.
- Divide the distance driven by the fuel added to get MPG (or km/L). Do the sum a few times for a steadier figure.
Ways to spend less on fuel
- Drive smoothly. Hard acceleration and braking use more fuel.
- Keep your tyres at the recommended pressure.
- Remove roof racks and heavy things you do not need to carry.
- Avoid leaving the engine idling, and combine short errands into one trip.
- Share the journey. Splitting the cost, as this calculator can do, makes long trips much cheaper per person.
This calculator is for petrol, diesel and gas vehicles. Electric cars are charged in kilowatt hours rather than gallons or liters, so the figures do not apply to them.
Sources
The rules, rates and ranges on this page come from these sources. Always check the current figures with the organization itself before you rely on them.
- Fuel economy information – U.S. Department of Energy and U.S. Environmental Protection Agency


