Fuel Cost Calculator

Find the petrol, gas or diesel cost of a trip. Enter the distance, your fuel economy and the pump price in the units you use, then split the total between passengers.

Quick answer

Fuel cost = distance ÷ fuel economy × fuel price. A 300-mile trip at 30 US mpg and $3.50 a gallon uses 10 gallons and costs $35.00. A 500 km trip at 6.5 L/100 km and €1.75 a litre uses 32.5 litres and costs €56.88.

The fuel price is an example, not a live figure. Replace it with the price on the pump or your receipt.

Fuel cost for the trip

$35.00

300 miles (482.8 km) using 37.9 litres

$0.12

Cost per mile

$0.07

Cost per km

10 US gal

Fuel used

8.3 UK gal

Fuel used

The same car in other units: 30 US mpg, 36 UK mpg, 7.8 L/100 km, 12.8 km/L.

Key takeaways

  • Fuel cost is the fuel you burn multiplied by the price you pay: distance ÷ economy × price.
  • A UK gallon (4.54609 L) is about 20% larger than a US gallon (3.785 L), so UK and US mpg figures for the same car differ.
  • With mpg and km/L a higher number is better. With L/100 km a lower number is better.
  • Real-world consumption is usually higher than the official test figure, so use the economy you measure yourself.

How the fuel cost formula works

Every version of the sum has the same two steps: work out how much fuel the trip burns, then multiply by the price of that fuel. What changes between countries is the unit for fuel economy and the unit fuel is sold in.

  • United States: cost = miles ÷ US mpg × price per US gallon.
  • United Kingdom: cost = miles ÷ UK mpg × 4.54609 × price per litre. Economy is quoted in miles per imperial gallon, but fuel is sold by the litre.
  • Europe, Canada, Australia: cost = km × L/100 km ÷ 100 × price per litre.
  • India, Japan and others using km/L: cost = km ÷ km/L × price per litre.

Worked examples in four unit systems

Worked fuel cost examples using example prices
Trip Economy Example price Fuel used Cost
300 miles (US)30 US mpg$3.50 per US gallon10.0 US gal$35.00
200 miles (UK)45 UK mpg£1.45 per litre20.2 L£29.30
500 km (Europe)6.5 L/100 km€1.75 per litre32.5 L€56.88
300 km (India)18 km/L₹100 per litre16.7 L₹1,667

Prices in this table are round example figures, not current averages. Official price series are linked under Sources.

Fuel economy units by country

The United States quotes fuel economy in miles per US gallon. The United Kingdom quotes miles per imperial gallon, although fuel has been sold by the litre there for decades. The European Union, Canada and Australia use litres per 100 kilometres. India and Japan commonly quote kilometres per litre.

These are two different kinds of measure. Miles per gallon and km/L say how far a unit of fuel takes you, so a bigger number means a more economical car. L/100 km says how much fuel a fixed distance needs, so a smaller number is better. Because one is the inverse of the other, the conversion is a division, not a multiplication: L/100 km = 235.215 ÷ US mpg, or 282.481 ÷ UK mpg.

Fuel economy conversion: US mpg, UK mpg, litres per 100 km and km per litre
US mpg UK mpg L/100 km km/L
2024.011.88.5
2530.09.410.6
3036.07.812.8
3542.06.714.9
4048.05.917.0
5060.04.721.3
6072.13.925.5

Getting a realistic estimate

The economy printed on a window sticker or in a brochure comes from a standard laboratory cycle: the EPA test in the United States and WLTP in Europe and the UK. Those figures are for comparing cars, not for predicting a particular journey. Motorway speeds, cold starts, hills, a full boot and a roof box all push consumption up.

For trip planning, use the average shown by your car over several tanks, or measure it: fill up, reset the trip meter, drive normally, fill up again and divide the distance by the fuel added. Use the price at the pumps you will actually use; motorway service areas usually charge more than supermarkets and town forecourts.

Fuel is only part of the cost of driving. Tolls, parking, tyres, servicing and depreciation are separate. If you are claiming business mileage, use the rate your tax authority or employer sets, not your fuel cost.

FAQ

Frequently asked questions

How do I calculate the fuel cost of a trip? ▾
Divide the distance by your fuel economy to get the fuel needed, then multiply by the price. In US units: 300 miles ÷ 30 mpg = 10 gallons, and 10 × $3.50 = $35.00. In metric units: 500 km × 6.5 L/100 km ÷ 100 = 32.5 litres, and 32.5 × €1.75 = €56.88.
Is a gas cost calculator the same as a fuel cost calculator? ▾
Yes. "Gas" is the US and Canadian word for petrol, so a gas cost calculator and a fuel cost calculator do the same sum. This page works for petrol (gasoline) and diesel, because only the price and your vehicle's economy change.
Why is UK mpg higher than US mpg for the same car? ▾
The imperial gallon used in the UK is 4.54609 litres, and the US gallon is 3.785 litres, so the UK gallon is about 20% larger. A car rated at 40 UK mpg does 33.3 US mpg, which is 7.1 L/100 km.
How do I convert mpg to L/100 km? ▾
Divide 235.215 by a US mpg figure, or 282.481 by a UK mpg figure. For example, 30 US mpg is 235.215 ÷ 30 = 7.84 L/100 km. For km/L, divide 100 by the L/100 km figure.
How do I split fuel costs between passengers? ▾
Work out the fuel cost for the whole journey, including the return leg, and divide it by the number of people sharing, counting the driver. Enter the number of people in the calculator to see the amount each. Tolls and parking are separate costs to add before you split.
Does the calculator work for diesel, hybrid or electric cars? ▾
It works for petrol, diesel and hybrid cars when you enter the fuel economy you really get and the price of the fuel you buy. It does not work for battery electric cars, which use kWh rather than litres. For those, multiply the kWh used per 100 km by the distance and your electricity price.
Why is my real fuel cost higher than the estimate? ▾
Official fuel economy figures come from laboratory tests. Short trips, cold weather, high speeds, a roof box, heavy loads and air conditioning all raise consumption. For a closer estimate, use the economy shown by your trip computer over several tanks, or measure it by filling the tank twice and dividing the distance by the fuel added.

Sources & Methodology

The calculator converts distance to kilometres and fuel economy to litres per kilometre, multiplies them to get litres used, and multiplies litres by the price per litre. A US gallon is 3.785411784 litres (231 cubic inches) and an imperial gallon is 4.54609 litres, both exact by definition. Prices shown in the form are examples for you to replace.

Related Calculators

Cite this page APA · MLA · BibTeX

APA

WorldCalculators.org. (2026, November 19). Fuel Cost Calculator: Trip Gas Cost in mpg or L/100km. https://worldcalculators.org/calculators/fuel-cost/

MLA

“Fuel Cost Calculator: Trip Gas Cost in mpg or L/100km.” WorldCalculators.org, 19 Nov. 2026, worldcalculators.org/calculators/fuel-cost/.

BibTeX

@misc{worldcalculators2026calculatorsfuelcost,
  title        = {Fuel Cost Calculator: Trip Gas Cost in mpg or L/100km},
  author       = {{WorldCalculators.org}},
  year         = {2026},
  howpublished = {\url{https://worldcalculators.org/calculators/fuel-cost/}}
}

Figures change when tax years or guidance change. Cite the date shown and link the page so readers see the current version.