How to calculate fuel cost
Divide the distance by your fuel economy in miles per gallon to get the gallons needed, then multiply by the price per gallon: cost = distance ÷ mpg × price.
Example
A 300-mile trip in a car that does 30 mpg, with gas at $3.50 a gallon: 300 ÷ 30 = 10 gallons, or $35. Split between two people, that is $17.50 each.
US and UK gallons are different
A US gallon is 3.785 litres; a UK (imperial) gallon is 4.546 litres. That is why the same car shows a higher mpg figure in the UK. In the UK, fuel is sold by the litre, so the calculator converts imperial gallons to litres before applying the price.
Converting mpg to L/100 km
Divide 235.2 by US mpg, or 282.5 by UK mpg. 30 mpg (US) is 7.8 L/100 km; 40 mpg (UK) is 7.1 L/100 km.