Guides

How to Calculate Fuel Cost for a Trip

Estimate a trip's fuel cost from distance, efficiency, and gas price using the fuel amount and trip cost formulas, a two-way option table, and a worked example.

Miryori Editorial Team3 min read
Try the Fuel Cost Calculator

Planning a trip means knowing what the fuel will cost before you leave. Omni's fuel cost calculator figures out how much gas you will need and what you will spend on it, so you can avoid an unexpected shortfall at the pump.

Fuel cost for a trip is the amount of fuel your car burns multiplied by the price you pay per unit of fuel. Divide the one-way distance by your vehicle's fuel efficiency to find the fuel needed, double it for a round trip if required, then multiply by the fuel price at your station. The calculator reports both the fuel amount used and the total trip cost, and it accepts metric or imperial units for each field.

What formula does the fuel cost calculator use?

The calculator first works out how much fuel the journey consumes, then prices that fuel. Its two equations are:

fuel amount=two way×distancefuel efficiency\text{fuel amount} = \text{two way} \times \frac{\text{distance}}{\text{fuel efficiency}}
trip cost=fuel amount×fuel price\text{trip cost} = \text{fuel amount} \times \text{fuel price}

Here distancedistance is the one-way distance, fuel efficiencyfuel\ efficiency is your car's mileage, fuel pricefuel\ price is the price at your gas station, and two waytwo\ way is a multiplier that is 2 for a return journey and 1 for a one-way journey. The result fuel amountfuel\ amount is the fuel used during the trip, and trip costtrip\ cost is the money you will spend on it.

The table below shows the two options for the round-trip switch, taken directly from the calculator's dataset:

Trip option Multiplier value
Two-way trip 2
One-way trip (blank option) 1

Which inputs does the fuel cost calculator need?

The calculator exposes the following fields. Distance and range can be entered in different units using the switcher on each field.

Field What it represents
One-way distance Distance from start to destination
Two-way trip Whether the journey is a round trip
Fuel efficiency/consumption (mileage) Your car's fuel efficiency
Fuel price at your gas station Price per unit of fuel
Fuel used during this trip Output: amount of fuel consumed
Fuel cost Output: money spent on fuel

If you do not yet know your car's mileage, the calculator offers an "I don't know my car's fuel efficiency" option that derives efficiency from a distance driven and the fuel put into the tank.

Worked example: a 100 km trip at 5 km per liter

Suppose you travel 100 km in a car whose fuel efficiency is 5 kilometers per liter, and the price of gas is $7 per liter. Substituting into the fuel amount equation:

fuel amount=100 km5 km/L=20 liters\text{fuel amount} = \frac{100\ \text{km}}{5\ \text{km/L}} = 20\ \text{liters}

Pricing those 20 liters at $7 each gives the total:

trip cost=20×7=$140\text{trip cost} = 20 \times 7 = \$140

So the trip needs 20 liters of fuel and costs $140. Choosing the two-way option would double both figures, because the multiplier becomes 2 rather than 1.

Frequently Asked Questions

Can I switch the units in the calculator?

Yes. The calculator estimates distance, fuel efficiency, fuel amount and fuel price using different units. Click the switcher on each field and choose your preferred unit.

What if I don't know my car's fuel efficiency?

Select the "I don't know my car's fuel efficiency" option. The calculator then works out efficiency from the distance you drove and the amount of fuel you put into the tank, using fuel efficiency=range/fuel used\text{fuel efficiency} = \text{range} / \text{fuel used}. A dedicated MPG calculator can also determine it first.

What is the difference between fuel amount and fuel cost?

Fuel amount is the quantity of gas the trip consumes, measured in liters or gallons. Fuel cost is what that quantity costs at your station's price, found by multiplying the fuel amount by the fuel price.

References

  • Omni's fuel cost calculator article, sections on the fuel amount and trip cost formulas.
  • The calculator equations for fuel amount, trip cost and fuel efficiency, and its two-way trip and "I don't know" datasets.
Calculator

Fuel Cost Calculator

Calculate Fuel Cost with practical transportation formulas, interactive references and step-by-step results. Free, fast and private.

Try the Fuel Cost Calculator