Skip to content

Fuel Cost Calculator for Petrol and Diesel Trips

Enter distance, fuel economy and fuel price to get the cost of a journey, the fuel it needs, the cost per mile or kilometre, and each person's share.

Runs in your browserFree, no sign-upLast reviewed

Settings

Results update automatically as you type.

Trip cost

Total cost
3,500.00
Fuel needed
33.33 litres
Distance
500 km
Cost per km
7.00
Per person
3,500.00

Units. Enter the price per litre for the metric options, or the price per gallon (US or UK, matching your choice) for the mpg options. Pick the efficiency unit first so the labels match your figures.

Quick answers

How do I work out the fuel cost of a trip?
Divide the distance by your fuel economy to get the fuel needed, then multiply by the price. For 100 miles at 40 mpg you need 2.5 gallons. At 6.36 per UK gallon, which is 1.40 per litre, that costs 15.90.
How do I calculate petrol cost per mile?
Divide the price of a gallon by your mpg. At 1.40 per litre a UK gallon costs 6.36, so a 40 mpg car costs 15.9p per mile and a 50 mpg car 12.7p. In litres: price per litre × 4.546 ÷ mpg.
How much does 400 km cost in petrol?
A car using 6.5 litres per 100 km needs 26 litres for 400 km. At 1.50 per litre that costs 39.00. At 7 litres per 100 km it is 28 litres and 42.00. Multiply your own litres by your local price.
How much do 6 litres of petrol cost?
Six times the price per litre. At 1.45 per litre, 6 litres cost 8.70, and at 1.50 per litre they cost 9.00. At 105 per litre it is 630.
How do I calculate cost per kilometre?
Multiply litres per 100 km by the price per litre and divide by 100. At 6.5 litres per 100 km and 1.50 per litre, fuel costs 0.0975 per km, which the tool rounds to 0.10. With km per litre, divide the price by the figure: 105 ÷ 15 = 7.00 per km.
How do I split fuel costs between passengers?
Set Split between to the number of people and read Per person. A 180-mile each-way return trip at 45 mpg and 6.36 per UK gallon costs 50.88 in fuel, or 16.96 each between three.

About Fuel Cost Calculator

Pick how your car's economy is quoted (km per litre, litres per 100 km, or miles per US or UK gallon), then enter the distance, the economy figure and the price of fuel. The calculator returns the total cost, the fuel needed, the cost per mile or per km and a per-person share. The sum is fuel needed × price: 500 km at 15 km per litre takes 33.33 litres, which costs 3,500.00 at 105 per litre. One thing to know before you start: the two mpg options expect a price per gallon, so a pump price per litre must be converted first, as shown in the table further down.

Petrol cost per mile by mpg

Calculated with the miles per UK gallon option at 1.40 per litre, which is 6.36 per imperial gallon. Fuel is in UK gallons.

Fuel economy (UK mpg)Fuel for 100 milesCost of 100 milesCost per mile
25 mpg4 gallons25.4425.4p
30 mpg3.33 gallons21.2021.2p
35 mpg2.86 gallons18.1718.2p
40 mpg2.5 gallons15.9015.9p
45 mpg2.22 gallons14.1314.1p
50 mpg2 gallons12.7212.7p
55 mpg1.82 gallons11.5611.6p
60 mpg1.67 gallons10.6010.6p
70 mpg1.43 gallons9.099.1p

The pence column is the cost of 100 miles divided by 100. The tool itself rounds Cost per mile to two decimals, so it shows 0.16 at 40 mpg and 0.13 at 50 mpg. With US gallons at 3.50 per gallon, 100 miles costs 17.50 at 20 mpg, 14.00 at 25 mpg, 11.67 at 30 mpg and 8.75 at 40 mpg.

Converting a price per litre to a price per gallon

Fuel is sold by the litre in the UK but economy is quoted in miles per imperial gallon. One imperial gallon is 4.54609 litres, so multiply the pump price by 4.546 and enter the result as the price when using the miles per UK gallon option.

Price per litrePrice per UK gallon
1.305.91
1.356.14
1.406.36
1.456.59
1.506.82
1.557.05
1.607.27
1.707.73

A US gallon is smaller, at 3.785 litres. Never mix a UK mpg figure with a US gallon price or the other way round.

Fuel cost by distance

Two reference cars: one using 6.5 litres per 100 km with fuel at 1.50 per litre, and one doing 40 miles per UK gallon with fuel at 6.36 per gallon.

DistanceEconomy and priceFuel neededTotal cost
32 km6.5 L/100 km, 1.50 per litre2.08 litres3.12
100 km6.5 L/100 km, 1.50 per litre6.5 litres9.75
400 km6.5 L/100 km, 1.50 per litre26 litres39.00
1,000 km6.5 L/100 km, 1.50 per litre65 litres97.50
2,000 km6.5 L/100 km, 1.50 per litre130 litres195.00
3,500 km6.5 L/100 km, 1.50 per litre227.5 litres341.25
22 miles40 mpg (UK), 6.36 per gallon0.55 gallons3.50
100 miles40 mpg (UK), 6.36 per gallon2.5 gallons15.90
180 miles40 mpg (UK), 6.36 per gallon4.5 gallons28.62
340 miles40 mpg (UK), 6.36 per gallon8.5 gallons54.06
500 miles40 mpg (UK), 6.36 per gallon12.5 gallons79.50

Prices here are example figures, not current pump prices. Enter today's price where you fill up for a real estimate.

Fuel cost formulas for each efficiency unit

km per litre or mpg: fuel needed = distance ÷ efficiency litres per 100 km: fuel needed = distance × efficiency ÷ 100 Total cost = fuel needed × price per litre or gallon Cost per mile or km = total cost ÷ distance Per person = total cost ÷ people

Litres per 100 km is a consumption figure, so a lower number is better and it multiplies rather than divides. To switch between systems: UK mpg × 0.354 = km per litre, US mpg × 0.4251 = km per litre, 282.48 ÷ UK mpg = litres per 100 km and 235.21 ÷ US mpg = litres per 100 km. A 40 mpg (UK) car therefore uses about 7.06 litres per 100 km. Ticking Return trip doubles the distance before any of these sums are done.

Worked trip examples in each unit

Return road trip split four ways (km per litre)

km per litre, Distance 500, Fuel efficiency 15, Price 105, Split between 4, Return trip ticked

Total cost 7,000.00, Fuel needed 66.67 litres, Distance 1,000 km, Cost per km 7.00, Per person 1,750.00

Long diesel run (litres per 100 km)

litres per 100 km, Distance 2000, Fuel efficiency 5.5, Price 1.60

Total cost 176.00, Fuel needed 110 litres, Cost per km 0.09

US highway drive shared by two (miles per US gallon)

miles per US gallon, Distance 300, Fuel efficiency 28, Price 3.50, Split between 2

Total cost 37.50, Fuel needed 10.71 US gallons, Cost per mile 0.13, Per person 18.75

UK motorway journey (miles per UK gallon)

miles per UK gallon, Distance 340, Fuel efficiency 50, Price 6.36

Total cost 43.25, Fuel needed 6.8 UK gallons, Cost per mile 0.13

6.36 per gallon is a pump price of 1.40 per litre multiplied by 4.546.

Electric car using the km per litre option

km per litre, Distance 300, Fuel efficiency 6 (km per kWh), Price 0.30 (per kWh)

Total cost 15.00, Fuel needed 50 (shown as litres, read as kWh), Cost per km 0.05

Why a real trip often costs more than the estimate

The result is only as good as the economy figure you enter. Official figures come from standardised test cycles, and everyday driving usually falls short of them. Sustained high motorway speeds, stop-start town traffic, short journeys on a cold engine, air conditioning, a roof box or bike rack, a full load of passengers and luggage, and under-inflated tyres all push consumption up.

For a figure you can trust, measure your own car. Fill the tank and reset the trip meter. At the next fill, note the distance covered and the litres added, then divide distance by litres for km per litre, or use the average shown on the car's trip computer over several tanks.

Fuel is also only one part of the cost of driving. Tolls, parking, tyres, servicing and depreciation are not included, which matters when you compare the result with a train or coach fare or set a mileage rate for sharing costs.

Things this calculator does not do

  • Convert a litre price for the mpg options. Multiply by 4.546 for UK gallons or 3.785 for US gallons before entering it.
  • Look up distances or routes. Take the distance from a map app or your odometer.
  • Fetch live petrol or diesel prices. You enter the price you expect to pay.
  • Show fractions of a penny or cent per mile. Cost per mile is rounded to two decimals, so enter the price in pence or cents (636 instead of 6.36) to read it as 15.90 pence per mile.
  • Work backwards from a fuel budget to a distance. By hand, range = litres × km per litre.
  • Weight the split. Per person divides the total evenly between the number of people entered, and the field is set up for 1 to 20.

How to get your result

  1. 1

    Choose the Efficiency unit that matches your figure: km per litre, litres per 100 km, miles per US gallon or miles per UK gallon.

  2. 2

    Enter the one-way Distance, in km for the metric options or miles for the mpg options.

  3. 3

    Enter your Fuel efficiency in the unit you picked, for example 6.5 for litres per 100 km or 40 for mpg.

  4. 4

    Enter Price per litre / gallon: per litre for the metric options, per gallon for the mpg options. For UK mpg, multiply the litre price by 4.546.

  5. 5

    Set Split between to the number of people sharing, and tick Return trip to double the distance.

  6. 6

    Read Total cost, Fuel needed, Distance, Cost per mile or km and Per person.

Frequently asked questions

Does it work for diesel as well as petrol?
Yes. The calculation is the same for any fuel. Enter your diesel car's economy figure and the diesel price. Diesel cars typically travel further per litre, and diesel is often priced differently from petrol, so use figures for your own vehicle and pump.
What is the difference between UK mpg and US mpg?
The gallon. An imperial gallon is 4.546 litres and a US gallon is 3.785 litres, so the same car shows a higher mpg figure in UK terms. 40 mpg (UK) is about 33.3 mpg (US). Choose the option that matches where your figure came from.
How do I enter litres per 100 km?
Select litres per 100 km as the Efficiency unit, type the consumption figure such as 6.5, and enter the distance in kilometres. A 250 km drive at 6.5 litres per 100 km needs 16.25 litres, which costs 29.25 at 1.80 per litre.
Is the distance one way or return?
Enter the one-way distance. Leave Return trip unticked for a single leg, or tick it and the calculator doubles the distance, fuel and cost. The Distance figure in the results confirms what was used.
Can I use it for an electric car?
Yes, with a relabelling. Choose km per litre, enter efficiency as km per kWh and the price per kWh. The cost is correct, and the Fuel needed figure is kWh even though the label says litres.
How much fuel will I use on a journey?
Read Fuel needed. It is the distance divided by km per litre or mpg, or the distance times litres per 100 km divided by 100. A 1,000 km trip at 6.5 litres per 100 km needs 65 litres.
How many people can share the cost?
The Split between field is set up for 1 to 20 people. It divides the total evenly, and a decimal entry is rounded down to a whole number of people. Include the driver in the count if the driver is paying a share.
What should I charge per mile for a lift share?
Cost per mile gives the fuel-only figure, for example 15.9p at 40 mpg and 1.40 per litre. That is the minimum to cover petrol. It leaves out wear, insurance and depreciation, so many drivers agree a somewhat higher rate.

Further reading

Looking for something else? Browse all calculators or see every tool.