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…
Results
Fuel Needed
4 (gal or L)
Total Fuel Cost
$14.00
≈ 3 cups of coffee
How to Use This Calculator
- Enter the trip Distance in miles (or switch to Metric to use kilometers).
- Set the Fuel Price per gallon (or per liter for metric mode).
- Enter your vehicle's fuel efficiency — MPG for imperial or L/100km for metric.
- Toggle the Use Metric selector if you prefer kilometer-based inputs.
- 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 Needed | Total Fuel Cost |
|---|---|---|
| 21 | 4.76 (gal or L) | $16.67 |
| 71 | 1.41 (gal or L) | $4.93 |
| 130 | 0.77 (gal or L) | $2.69 |
| 180 | 0.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 PriceWorked example, using the default values
- Identify Input Parameters5 parametersDistance = 100, Fuel Price = 3.5, Miles per Gallon (MPG) = 25, Liters per 100km = 9.4, Use Metric = 0 = 5 input(s) provided
- Calculate Fuel NeededFuel Needed4 = 4
- Calculate Total Fuel CostTotal Fuel Cost14 = $14
- Calculate Cost per MileCost per Mile0.14 = $0.14
- Calculate Cost per KilometerCost per Kilometer0.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.
Related Calculators
The questions that sit next to this one — chosen by subject, including calculators filed under a different category.
Gas Mileage Calculator
Calculate your fuel economy in MPG, cost per mile, and annual fuel costs. Convert between MPG, L/100km, and km/L.
Automotive & MotorcyclesRoad Trip Cost Calculator
Estimate the total cost of a road trip including fuel, hotels, meals, and tolls. Split costs between passengers.
Automotive & MotorcyclesTrip Fuel Cost
Fuel cost from distance, MPG, and price per gallon.
Travel & TourismTrip Fuel Cost Calculator
Calculate fuel cost for a trip based on distance, fuel efficiency, and fuel price. Plan your travel budget.
HVACBoiler Sizing Calculator
Size heating boilers based on building heat loss, domestic hot water load, pickup factor, efficiency, and altitude derating.
More in Automotive & Motorcycles.