MPGtoLiters

Fuel Cost Calculator

Work out what a journey, or a year of driving, will cost in fuel. Enter the distance, the car's fuel economy and the price of fuel, each in whatever unit you have: miles or kilometres, mpg (US or UK), L/100km or km/L, and a price per gallon or per litre. The result shows the cost, the fuel needed, the cost per mile and the CO2.

Fuel cost for the trip

35.00

in your currency

Fuel needed

37.85

litres (10.00 US gal, 8.33 UK gal)

Cost per mile

0.117

in your currency

CO2 at the tailpipe

87.4

kg (181 g/km)

Economy is 7.84 L/100km, 30.0 mpg (US), 36.0 mpg (UK). Price is 0.925 per litre.

How the cost is calculated

Three steps. The distance is converted to kilometres and the fuel economy to kilometres per litre, and one divided by the other is the litres of fuel the journey burns. The price is converted to a price per litre. Litres times price per litre is the cost. Every conversion uses the exact definitions of the mile (1.609344 km), the US gallon (3.785411784 litres) and the imperial gallon (4.54609 litres), the same constants the converters on this site run on.

The cost per mile or per kilometre is the total divided by the distance, and it is the most useful number here when comparing two cars: multiply it by your annual mileage and the difference between the cars is the yearly saving. The 'per year' switch does that multiplication for you if you enter your annual distance.

Choosing the right fuel economy figure

The result is only as good as the economy figure you put in. Official ratings are laboratory results and real driving uses more fuel: for a WLTP figure, knock off 15 to 20% before entering it; an EPA figure can go in as it is; an Indian ARAI or older NEDC figure needs 20% or more taken off. The real-world MPG guide explains why and by how much.

Better still, measure your own. Two receipts and an odometer reading give a figure that describes your car and your driving, and the MPG calculator turns them into every unit this page accepts. A measured 27 mpg entered here will predict a fuel bill far more accurately than the sticker's 32.

The US and UK gallon, again

Fuel prices per gallon and fuel economy in mpg both depend on which gallon is meant, and mixing them up produces a cost that is 20% wrong. A British driver who enters imperial mpg and a price per US gallon, or the reverse, will get a bad answer. The unit selectors on each input exist so that the calculator does the reconciling; pick the gallon each figure actually came from. Where the fuel is sold by the litre, as it is almost everywhere outside the United States, enter the price per litre and let the calculator handle the rest.

What the CO2 figure means

Burning a litre of petrol releases roughly 2.31 kg of carbon dioxide and a litre of diesel roughly 2.68 kg, because diesel is denser and carries more carbon per litre. The calculator multiplies the litres burned by the factor for the fuel you select, and divides by the distance for a grams-per-kilometre figure comparable with the official CO2 rating on a European spec sheet. It is a tailpipe figure and leaves out the emissions of refining and transporting the fuel, which add around 20% on a full life-cycle basis.

Diesel's higher factor per litre is partly offset by its better economy, which is why a diesel car's CO2 per kilometre is usually lower than a petrol equivalent's despite the heavier fuel. The calculator makes that trade-off visible: enter the two cars' economy figures with the matching fuel type and compare the g/km.

Frequently asked questions

How do I calculate the fuel cost of a trip?
Divide the distance by the car's fuel economy to get the fuel needed, then multiply by the price. A 300 mile trip in a 30 mpg car needs 10 gallons, which at 3.50 a gallon is 35. The calculator does this in any mix of units.
How much does it cost to drive one mile?
Fuel price per gallon divided by mpg. At 3.50 a gallon a 30 mpg car costs 11.7 cents a mile, a 20 mpg pickup 17.5 cents and a 50 mpg hybrid 7 cents. In metric, price per litre times L/100km divided by 100 gives the cost per kilometre.
Can I mix units, like km with mpg and a price per litre?
Yes. Every input has its own unit selector and the calculator converts them all through the same exact constants the site's converters use. A British driver can enter miles, imperial mpg and a price per litre, which is exactly how UK fuel is sold.
How is the CO2 figure worked out?
From the litres of fuel burned: about 2.31 kg of CO2 per litre of petrol and 2.68 kg per litre of diesel, the tailpipe factors used in UK government and EPA conversion tables. It excludes the emissions from producing and delivering the fuel.
Which fuel economy figure should I use?
Your own measured figure if you have one, from the MPG calculator. If not, the official combined rating minus 10 to 20% for WLTP figures, or the EPA figure as is. Using the sticker figure unadjusted will understate the cost.

Related tools