In short
A trip’s fuel cost is the fuel it uses times the price of that fuel. With miles per gallon, divide the distance by the MPG to get gallons. With litres per 100 km, multiply the distance by the consumption and divide by 100 to get litres. Multiply by the price per gallon or litre, and double the distance for a return journey.
How it works
The calculation depends on how fuel economy is expressed. Miles per gallon and km per litre are distances per unit of fuel, so you divide. Litres per 100 km is fuel per distance, so you multiply.
MPG: gallons = miles ÷ MPG L/100 km: litres = km × (L/100 km) ÷ 100 km/L: litres = km ÷ (km/L)
cost = fuel used × price per unit of fuel
Units can be mixed: the calculator converts through litres and kilometres using exact definitions published by NIST: 1 mile = 1.609344 km, 1 US gallon = 3.785411784 L, and 1 UK (imperial) gallon = 4.54609 L. A UK gallon is about 20% larger, so 40 MPG in the UK is only about 33.3 MPG in US terms.
MPG versus L/100 km. Because MPG divides, improvements at the low end matter most. The US fuel economy label site notes that over 1,000 miles, going from 10 to 15 MPG saves about 33 gallons, while going from 30 to 35 MPG saves only about 5.
Worked examples
A 300-mile drive at 30 MPG
300 ÷ 30 = 10 US gallons. At $3.50 a gallon the trip costs $35.00, or $0.117 a mile.
A return trip of 450 km, split three ways
The return journey is 900 km. At 6.5 L/100 km the car uses 900 × 6.5 ÷ 100 = 58.5 litres. At €1.85 a litre that is €108.23, or €36.08 for each of three people.
A year of driving at 15,000 miles
US fuel economy labels assume 15,000 miles a year. At 25 MPG that is 600 gallons, and at $3.70 a gallon, the example price on the label guide, it comes to $2,220.00 a year. At 35 MPG the same driving would cost about $1,586.
Using this calculator well
- Rated economy is a best case. Motorway speeds, heavy loads, roof boxes, cold weather and air conditioning all raise consumption. For a realistic figure, use the average your own trip computer shows for similar driving.
- Check which gallon you have. UK figures use imperial gallons, and US figures use US gallons. Mixing them makes the cost about 20% wrong.
- Fuel is not the whole cost of driving. Tolls, parking, wear and depreciation can exceed the fuel. For splitting costs fairly on a shared trip, agree what is included before you set off.
- Electric cars use energy per distance instead. Multiply kWh per 100 km (or per 100 miles) by the distance and the price per kWh, the same way as L/100 km.
Frequently asked questions
How do I calculate the gas cost of a trip?
Divide the trip distance by your car’s miles per gallon to get the gallons needed, then multiply by the price per gallon. For 420 miles in a car that gets 28 MPG with gas at $3.20: 420 ÷ 28 = 15 gallons, and 15 × $3.20 = $48.
How do I convert MPG to L/100 km?
Divide 235.215 by the US MPG figure, or 282.481 by the UK MPG figure. So 30 US MPG is 7.84 L/100 km and 50 UK MPG is 5.65 L/100 km. The calculator shows the L/100 km equivalent of whatever you enter.
What is the difference between US and UK MPG?
A US gallon is 3.785 litres and a UK gallon is 4.546 litres, so the same car shows about 20% more MPG on a UK figure. 40 UK MPG equals about 33.3 US MPG. Make sure your fuel economy and fuel price use the same kind of gallon.
How should we split fuel costs on a road trip?
The simplest fair split divides the total fuel cost equally among the people travelling, which the calculator does under More options. If someone joins for only part of the route, work out the cost of each leg separately and share each leg among the people on it.
Sources and methodology
- Learn More About the Fuel Economy Label for Gasoline Vehicles, U.S. Department of Energy and U.S. Environmental Protection Agency (fueleconomy.gov), annual fuel cost assumes 15,000 miles a year; over 1,000 miles, 10 MPG vs 15 MPG is about 33 gallons, 30 MPG vs 35 MPG only about 5 gallons (accessed November 24, 2026)
- NIST Guide to the SI (Special Publication 811), Appendix B.8: Factors for Units Listed Alphabetically, National Institute of Standards and Technology, mile (international) = 1.609344 km; gallon (US) = 3.785411784 L; gallon (UK) = 4.54609 L (accessed November 24, 2026)
Rounding: Unit conversions use exact factors. The cost is rounded half-up to the smallest unit of the currency; fuel volumes are shown to 2 decimal places.
Review status: formulas verified against the cited sources by automated tests; editorial review pending. Version 1.0.0, content updated November 24, 2026.
Changelog
- 1.0.0 · November 24, 2026: First published.
How we build and test calculators
Embed this calculator on your site
Paste this code into your page. The calculator runs in a frame, with no tracking and no cookies, and links back here for the formula and sources.
<iframe src="https://northcalculator.com/embed/en/fuel-cost" title="Fuel Cost Calculator" width="100%" height="760" style="border:0" loading="lazy"></iframe>