Skip to main content
Mathlark

Fuel Cost Calculator

Find out what a drive will cost in fuel, using your own car's fuel economy and the price you pay.

Your numbers

Units
Distance
Fuel economy

Your car's average, from its dashboard or manual.

Fuel price

Results

Fuel cost

$37.80

Fuel used
21 L

Runs in your browser. Your numbers are never stored or sent.

Show the work

How it works

A trip’s fuel cost depends on three things: how far you drive, how much fuel your car uses over that distance, and what you pay for the fuel. Enter all three and the calculator works out the fuel used, then multiplies it by the price.

Enter the fuel economy and the fuel price in whatever units you know them in: liters per 100 km, kilometers per liter, or miles per US or UK gallon, with a price per liter or per gallon. The calculator converts between them. Pick “There and back” to double the distance, and add people to see each person’s share.

The price is always the one you enter. Fuel prices change all the time, so the calculator never looks one up.

The formula

With liters per 100 km:

Fuel used = distance × (L/100 km) ÷ 100

With miles per gallon (or kilometers per liter):

Fuel used = distance ÷ mpg

Then:

Fuel cost = fuel used × price per liter (or per gallon)

  • distance is the length of the trip, doubled for a trip there and back.
  • L/100 km is how many liters the car burns every 100 km, so a lower number is better.
  • mpg is how many miles the car goes on one gallon, so a higher number is better. A UK gallon is 4.54609 L and a US gallon is 3.785411784 L, so the same car gets about 20% more miles per UK gallon.
  • The fuel used and the price have to be in the same unit (both liters or both gallons). The calculator converts the price if they aren’t.

Worked example

Want this with your own numbers? See Show the work above.

A 300 km drive in a car that uses 7 L/100 km, with fuel at 1.80 a liter:

  1. Find the fuel used: 300 km × 7 L/100 km ÷ 100 = 21 L.
  2. Multiply by the price: 21 L × 1.80 = 37.80.

The same idea in miles: a 200-mile drive at 28 mpg (US), with fuel at 3.50 a gallon, uses 200 ÷ 28 = 7.1429 gallons, which costs 7.1429 × 3.50 = 25.00.

FAQ

How do I find my car’s fuel economy?

Many cars show an average on the dashboard. The owner’s manual and official ratings give a figure too, but real driving is often a little worse. For your own number, fill the tank and reset the trip meter, drive as usual, then fill up again. Divide the distance by the fuel you put in for miles per gallon or kilometers per liter, or divide the fuel by the distance and multiply by 100 for liters per 100 km.

How do I convert mpg to liters per 100 km?

Divide 235.215 by the US mpg, or 282.481 by the UK mpg. So 30 mpg (US) is 235.215 ÷ 30 = 7.84 L/100 km. The same division works the other way: 7.84 L/100 km is 235.215 ÷ 7.84 = 30 mpg (US).

Why is UK mpg higher than US mpg for the same car?

A UK (imperial) gallon is about 1.2 US gallons, so a car goes further on one. 30 miles per UK gallon is about 25 miles per US gallon. Pick the right one in the fuel economy units, or your cost will be off by about a fifth.

How do I work out a yearly fuel cost?

Enter how far you drive in a year as the distance. Official fuel cost estimates use 20,000 km a year in Canada and 15,000 miles a year in the United States, but your own mileage gives a better answer.

Why might my real fuel cost be different?

Fuel economy changes with speed, traffic, hills, weather, air conditioning, the load you carry, and how you drive. Fast highway driving and short trips in the cold both use more fuel. Use your own car’s average if you know it, and treat the answer as an estimate.

Sources

Cite this page

APA (7th edition)

Mathlark. (2026, September 30). Fuel cost calculator. https://mathlark.com/auto/fuel-cost-calculator/

MLA (9th edition)

"Fuel Cost Calculator." Mathlark, 30 Sept. 2026, mathlark.com/auto/fuel-cost-calculator/.

Spot a mistake?