Gas Calculator

Enter a distance, your fuel economy, and the pump price, and get the trip cost, the cost per mile, and each person’s share. If you have separate city and highway figures, it blends them correctly because averaging them overstates your economy by up to a fifth and shows what that error would have cost you.

 

Gas calculator

Works out what a trip costs in fuel, splits it between the people in the car, and blends city and highway driving the way the arithmetic actually requires — which is not by averaging the two figures.

mi
mpg
$
ppl

What moves the real figure

There are two different gallonsA US gallon is 3.785411784 litres and an imperial gallon is 4.54609, which is about 20% larger. A figure quoted in British miles per gallon put into a calculator expecting the US one understates the fuel by that much. This page asks which you mean, for the economy and for the price separately.
The rating is a test, not a promisePublished economy figures come from a standard test cycle. Speed, load, terrain, cold starts, roof boxes, tyre pressure and air conditioning all push the real figure the other way, usually downwards.
A fixed 55/45 split is a conventionThe standard combined figure assumes 55% of the distance in town. Your trip is whatever it is, which is why the share is yours to set here.
Fuel is not the cost of drivingTyres, servicing, depreciation and insurance all run with the miles. Fuel is the part you notice because you pay it at the pump, not the largest part.
Price is a moving targetPump prices move weekly and differ by state and by station. Nothing here is fetched live, so the figure is whatever you type — which at least means it never silently goes stale.

Conversions use the exact definitions: one mile is 1.609344 km, one US gallon 3.785411784 litres, one imperial gallon 4.54609 litres.