Skip to the content
calculator.fans

Everyday calculators

Fuel cost calculator

Choose your units, enter the distance, your car's fuel economy and the price of fuel, and the calculator shows how much fuel the trip will use and what it will cost, one way or there and back. It also gives the cost per kilometre and per mile, which helps when comparing cars, splitting costs with passengers or checking a mileage allowance. Metric, UK and US units are all supported, and the UK and US gallons are kept separate.

km
L/100 km
$per litre

Fuel cost

—

Fuel needed
—
Cost per km
—
Cost per mile
—

How the cost is worked out

In metric units, fuel use is given as litres per 100 kilometres, so the fuel needed is the distance times that figure divided by 100, and the cost is the litres times the price per litre. Miles per gallon works the other way round: it is distance per unit of fuel, so the gallons needed are the miles divided by the mpg. UK drivers buy fuel by the litre but quote economy in imperial mpg, so for UK units the calculator turns gallons into litres before applying the price. A return trip simply doubles the distance.

Metric: cost = km × L/100 km ÷ 100 × price per litre. US: cost = miles ÷ mpg × price per gallon. UK: cost = miles ÷ mpg × 4.546 × price per litre

UK and US gallons are different

An imperial gallon, the one behind UK mpg figures, is 4.54609 litres. A US gallon is 3.785411784 litres, about 17% smaller. The same car therefore has a higher mpg figure in the UK than in the US: 40 UK mpg is about 33.3 US mpg. Mixing them up makes a trip look about 20% cheaper or dearer than it really is, so check which gallon a figure uses before you enter it.

To turn mpg into L/100 km, divide 282.48 by UK mpg or 235.21 by US mpg; the same division converts back the other way. So 50 UK mpg is about 5.65 L/100 km, and 30 US mpg is about 7.84 L/100 km. The volume converter and the length converter convert gallons and miles on their own.

Why real trips cost more or less

Official economy figures come from standard laboratory test cycles, and real driving usually uses more fuel. Motorway speeds well above 60 mph (about 100 km/h), heavy loads, roof boxes, cold weather, short trips on a cold engine and air conditioning all push consumption up; gentle, steady driving brings it down. Your car's trip computer, or a record of fill-ups against distance, gives a truer figure than the brochure.

The cost here is fuel only. Tolls, parking, tyres, servicing and depreciation make the full cost of driving a good deal higher than the fuel bill, which is why mileage allowances are set well above the fuel cost per mile. To see how much a price rise at the pump changes a regular journey, the percent change calculator works it out.

Worked examples

Example 1

A 300-mile drive in the US at 28 mpg

300 miles ÷ 28 mpg is 10.71 US gallons, which is 40.6 litres. At $3.20 a gallon the fuel costs 10.714 × 3.20 = $34.29 one way, or about 11.4 cents a mile. Driving back the same way doubles everything: about 21.4 gallons and $68.57.

Example 2

A 200-mile UK journey there and back at 50 mpg

Set the journey to return and the distance becomes 400 miles. At 50 UK mpg that uses 8 imperial gallons, and 8 × 4.54609 = 36.4 litres. At $1.40 a litre the fuel costs $50.92, which is 12.7 cents a mile or 7.9 cents a kilometre. Shared between three people, each pays about $16.97.

Example 3

450 km at 7.2 L/100 km

450 × 7.2 ÷ 100 = 32.4 litres. At $1.65 a litre the trip costs $53.46, or 11.9 cents per kilometre. A more economical car using 5.5 L/100 km on the same trip would need 24.75 litres and cost about $40.84, a saving of $12.62.

Questions people ask

How do I find my car's real fuel economy?

Fill the tank, reset the trip meter, drive as usual, then fill up again. The fuel added at the second fill is what that distance used. Divide miles by gallons for mpg, or divide litres by kilometres and multiply by 100 for L/100 km. Averaging over several tanks smooths out differences between pumps.

Why are there separate boxes for each unit system?

Each system pairs a distance, an economy figure and a price that belong together. Switching the units shows the right boxes, and each box keeps its own value, so you can flip between systems without retyping.

Does a return trip always cost double?

In this calculator, yes. On the road the two legs can differ: hills, wind, traffic and how loaded the car is can make one direction noticeably thirstier than the other.

Sources and further reading

Related calculators