What the Fuel Cost Calculator does
The Fuel Cost Calculator estimates a single journey. You give it a distance, a fuel economy figure and a fuel price, and it returns three numbers: how much fuel the trip uses, what that fuel costs, and the cost per kilometer or per mile.
A toggle switches the labels between metric units (kilometers, kilometers per liter and price per liter) and US units (miles, miles per gallon and price per gallon). The arithmetic is the same in both modes; the toggle only changes the labels and does not convert the numbers already in the fields.
With the example values of 300 km, 12 km/L and a price of 1.5 per liter, the trip needs 25 liters, costs 37.50 and works out at 0.125 per kilometer. Results are formatted with your browser's locale and nothing you enter is sent anywhere.
How to use it
Choose metric or US units
Pick the system that matches your car's fuel economy figure and your pump price. Switching later does not convert the numbers, so choose first.
Enter distance, fuel economy and price
Type the trip distance, the fuel economy in km/L or MPG and the price per liter or gallon as plain numbers.
Read fuel needed, trip cost and cost per distance
The three results update as you type. Double the distance for a round trip or add a margin for detours.
The formula in words, and how to convert L/100 km
Fuel needed equals distance divided by fuel economy. Trip cost equals fuel needed multiplied by the price per unit. Cost per distance equals trip cost divided by distance. For 240 miles at 30 MPG with fuel at 3.50 per gallon: 8 gallons, a cost of 28.00 and 0.117 per mile.
Many cars outside North America report consumption as liters per 100 km rather than km/L. The tool does not offer that unit, so convert first: divide 100 by the L/100 km figure. A car rated at 8 L/100 km does 12.5 km/L. The Wikipedia article on fuel economy in automobiles covers the relationship between these units, and the fueleconomy.gov label guide explains why consumption per distance and distance per volume behave differently.
To convert between MPG (US gallons) and L/100 km, divide 235.215 by either figure to get the other: 30 MPG is about 7.84 L/100 km. That constant comes from the number of liters in 100 miles' worth of US gallons divided by the kilometers in a mile.
US gallons, imperial gallons and keeping the units consistent
The tool does no conversion, so your three numbers must share one system. A US gallon is about 3.785 liters and an imperial gallon about 4.546 liters, as the Wikipedia article on the gallon sets out. A UK MPG figure is based on imperial gallons and will overstate range if combined with a price per US gallon.
In US mode the labels say gallons without specifying which. As long as your MPG rating and your price use the same gallon, the result is right; the label is only a word.
Metric mode expects km/L. If your dashboard shows L/100 km, convert as described above. If it shows MPG, switch to US mode and enter a price per gallon, or convert the price to a per-liter figure using the appropriate gallon size.
Why the real cost will differ from the estimate
Fuel economy changes with speed, load, terrain, weather, tire pressure, air conditioning and driving style; the US Department of Energy's fueleconomy.gov notes that aggressive driving wastes fuel and that stop-and-go traffic cuts economy. Official ratings come from standardized tests, so a recent figure from your own fill-ups gives a better estimate than the brochure number.
Pump prices differ between stations and move during a long trip. Tolls, parking and vehicle wear are outside the scope of this calculator entirely, so treat the result as a fuel-only planning figure and round it up.
Limits to know before you rely on it
- Switching between metric and US units changes the labels only; existing numbers are not converted.
- L/100 km is not offered; convert it to km/L by dividing 100 by the figure before entering it.
- A fuel economy of zero or blank makes the results read Enter a number, and a zero distance does the same for cost per distance.
- Estimates assume constant fuel economy and price for the whole trip.
- Tolls, parking, wear and charging costs for electric vehicles are not included.
Questions people ask about the Fuel Cost Calculator
How do I calculate the fuel cost of a trip?
Divide the distance by your fuel economy to get the fuel needed, then multiply by the price per liter or gallon. The tool does both steps: 450 km at 15 km/L needs 30 liters, which at 1.60 per liter costs 48.00, or 0.107 per kilometer.
My car shows liters per 100 km. What do I enter?
Convert to km/L by dividing 100 by your L/100 km figure. 6.5 L/100 km becomes about 15.38 km/L. Enter that in the efficiency field in metric mode. The tool itself has no L/100 km input.
Does MPG mean US or imperial gallons here?
The tool does not know; it only divides and multiplies. Use the same gallon for the fuel economy and the price. US ratings and US pump prices both use the US gallon of about 3.785 liters, while UK MPG figures use the imperial gallon of about 4.546 liters.
How do I estimate a round trip or a multi-stop route?
Add up the legs and enter the total distance. For a round trip, double the one-way distance. Because the arithmetic is linear, the cost scales directly with distance when the economy and price stay the same.
Why is my actual fuel bill higher than the estimate?
Real-world economy can fall below the rated figure in hills, traffic, cold weather or with a loaded car, and pump prices may be higher along the route. Use a recent figure from your own fill-ups and add a margin for detours.
Can I use this for an electric car?
Only loosely. Enter kilometers per kWh as the efficiency and the price per kWh as the price, and the tool returns kWh and cost with the labels still reading liters. Charging losses and differing tariffs are not modelled.
Sources and further reading
- fueleconomy.gov (US Department of Energy and EPA): the fuel economy label guide, on consumption per 100 miles versus miles per gallon
- fueleconomy.gov: driving more efficiently, on how speed, aggressive driving and stop-and-go traffic change fuel economy
- Wikipedia: Fuel economy in automobiles, the units and the 235.215 conversion between MPG and L/100 km
- Wikipedia: Gallon, the sizes of the US and imperial gallons in liters