Skip to main content
Calcimator

Fuel Cost Calculator

Calculate fuel cost for a trip based on distance, fuel price, and fuel efficiency (MPG or L/100km). See cost per mile/km.

This calculator estimates trip fuel cost from three inputs: how far you're driving, your vehicle's fuel efficiency, and the price of fuel. The Use Metric selector switches both which efficiency field is read AND what unit Distance itself is in: in imperial mode Distance is miles and Fuel Needed is Distance divided by MPG (more miles per gallon means less fuel burned for the same trip); in metric mode Distance is kilometers and Fuel Needed is Distance divided by 100, multiplied by L/100km -- here a HIGHER L/100km figure means WORSE efficiency (more fuel burned per 100 km), the reverse relationship from MPG. In both modes Total Fuel Cost is Fuel Needed multiplied by Fuel Price. Cost per Mile and Cost per Kilometer both express the same Total Fuel Cost on a per-unit-distance basis and always move together, but the underlying division uses whichever unit Distance was actually entered in for the active mode (with a 1.60934 km-per-mile conversion applied to derive the other one), not distance itself twice over. Because Total Fuel Cost is a straightforward product of Fuel Needed and Fuel Price, doubling either the trip distance or the fuel price exactly doubles the total cost, all else held equal -- there's no discount or nonlinearity built into the model. Note that the live Fuel Price autofill is priced in dollars per gallon, so switching to Metric mode means you should re-check or override the autofilled price against a per-liter figure.

InputsLoading live data…

$
mpg
L/100km

Results

Fuel Needed

4 (gal or L)

Total Fuel Cost

$14.00

≈ 3 cups of coffee

Cost per Mile$0.14
Cost per Kilometer$0.09
How to Use This Calculator
  1. Enter the trip Distance in miles (or switch to Metric to use kilometers).
  2. Set the Fuel Price per gallon (or per liter for metric mode).
  3. Enter your vehicle's fuel efficiency — MPG for imperial or L/100km for metric.
  4. Toggle the Use Metric selector if you prefer kilometer-based inputs.
  5. Review Fuel Needed, Total Fuel Cost, and Cost per Mile or Cost per Kilometer.

How the result changes with Miles per Gallon (MPG)

Miles per Gallon (MPG)Fuel NeededTotal Fuel Cost
214.76 (gal or L)$16.67
711.41 (gal or L)$4.93
1300.77 (gal or L)$2.69
1800.56 (gal or L)$1.94

What each input means

Distance
Trip distance in miles (Imperial mode) or kilometers (Metric mode) — see the Use Metric selector below
Fuel Price
Price per gallon (Imperial) or per liter (Metric). The live-price autofill is priced per gallon — re-check it after switching to Metric mode.
Miles per Gallon (MPG)
Fuel efficiency in MPG
Liters per 100km
Fuel efficiency in L/100km (metric) — 9.4 is roughly equivalent to 25 MPG
Use Metric
Select measurement system

How this is calculated

Formula

Fuel Cost = (Distance / MPG) × Fuel Price

Worked example, using the default values

  1. Identify Input Parameters
    5 parameters
    Distance = 100, Fuel Price = 3.5, Miles per Gallon (MPG) = 25, Liters per 100km = 9.4, Use Metric = 0 = 5 input(s) provided
  2. Calculate Fuel Needed
    Fuel Needed
    4 = 4
  3. Calculate Total Fuel Cost
    Total Fuel Cost
    14 = $14
  4. Calculate Cost per Mile
    Cost per Mile
    0.14 = $0.14
  5. Calculate Cost per Kilometer
    Cost per Kilometer
    0.08699218313097294 = $0.087

Engine last updated . Checked against 2 independently-derived tests how we verify calculators.

Frequently Asked Questions

Why does raising Fuel Price directly raise Total Fuel Cost?

Total Fuel Cost is calculated as Fuel Needed multiplied by Fuel Price -- a simple product with no cap or discount curve, so a higher price per gallon (or per liter) scales the total cost proportionally for the same amount of fuel needed on the trip.

Why does a higher MPG lower my Total Fuel Cost?

In Imperial mode, Fuel Needed is Distance divided by MPG, so a more fuel-efficient vehicle (higher MPG) needs less fuel to cover the same distance, and that lower fuel requirement flows straight through Total Fuel Cost. This relationship only applies in Imperial mode -- switching to Metric mode reads Liters per 100km instead, and MPG has no effect on the result there.

What's the difference between switching to metric mode and just converting units?

Metric mode doesn't just relabel the same numbers -- it switches which efficiency field the calculator reads (Liters per 100km instead of MPG) and inverts the relationship: a HIGHER L/100km value means WORSE fuel economy, the opposite of MPG where a higher number is better, so entering the wrong field's value in the wrong mode gives a meaningless result.

Are Cost per Mile and Cost per Kilometer two independent calculations?

No -- both express the same Total Fuel Cost on a per-distance-unit basis, using the standard 1.60934 km-per-mile conversion to derive whichever unit Distance was NOT entered in for the active mode. They will always move together and represent the same underlying trip cost, not two separate cost estimates.

The questions that sit next to this one — chosen by subject, including calculators filed under a different category.

More in Automotive & Motorcycles.