Fuel Cost Calculator

Enter travel distance, vehicle efficiency and the fuel price using matching units. Real-world fuel consumption can differ because of traffic, speed, load and road conditions.

Quick answer. Fuel cost is distance divided by fuel economy, times the price of fuel. A 500 mile trip at 25 mpg and $3.00 a gallon needs 20 gallons and costs $60.00, which is $0.12 a mile.

The math behind the estimate

For mpg, gallons needed = distance in miles ÷ mpg. For litres per 100 km, litres needed = (distance in km ÷ 100) × the L/100km rating. Either way, multiplying the fuel needed by the price per unit gives the total cost. The calculator converts each setting separately, so you can mix units, for example a distance in km with an efficiency in mpg and a price per gallon.

Worked example with the default numbers

A 500 mile trip in a car that gets 25 miles per gallon needs 500 ÷ 25 = 20 gallons, which is about 75.71 litres. With gas at $3.00 a gallon the fuel costs $60.00. That is $0.12 a mile, or about $0.07 a kilometre. If the price rises to $3.50 the cost becomes $70.00. Change the efficiency to 32 mpg and the same trip needs 15.62 gallons and costs $46.88.

Fuel cost of a 500 mile trip at $3.00 a gallon, by fuel economyGoing from 15 mpg to 50 mpg cuts the same trip from $100.00 to $30.00, so fuel economy matters as much as the price of fuel.Fuel cost of a 500 mile trip at $3.00 a gallon, by fuel economy15 mpg$100.0020 mpg$75.0025 mpg$60.0030 mpg$50.0040 mpg$37.5050 mpg$30.00
A more efficient vehicle saves more than a small drop in fuel price.
Fuel cost of the same trip at 25 mpg, by price per gallonEach extra dollar on a gallon adds $20.00 to this trip.Fuel cost of the same trip at 25 mpg, by price per gallon$2.50$50.00$3.00$60.00$3.50$70.00$4.00$80.00$5.00$100.00
Fuel price changes the bill in a straight line.
Fuel economyGallons for 500 milesCost at $3.00 a gallon
15 mpg33.33$100.00
20 mpg25$75.00
25 mpg20$60.00
30 mpg16.67$50.00
40 mpg12.5$37.50
50 mpg10$30.00

A second example

A 300 mile trip in a vehicle that averages 30 mpg uses 10 gallons. At $3.50 a gallon the fuel costs $35.00.

Metric units

Many countries rate fuel economy in litres per 100 km, where a lower number is better. An 800 km trip in a car that uses 8 L/100km needs 800 ÷ 100 × 8 = 64 litres. At 1.80 per litre that is 115.20 of fuel. To convert, mpg = 235.215 ÷ (L/100km) and L/100km = 235.215 ÷ mpg.

mpg (US)L/100 km
1515.68
2011.76
259.41
307.84
356.72
405.88
504.70
L/100 kmmpg (US)
458.8
547.0
639.2
829.4
1023.5
1219.6

Commuting costs

The same arithmetic prices a commute. A 30 mile each-way commute is 60 miles a day, which at 25 mpg and $3.00 a gallon costs $7.20 a day. Over 22 working days that is $158.40 a month, or about $1,900.80 a year. Enter the daily distance for one day, or the monthly distance for a month.

Comparing two cars

Running costs help when choosing a vehicle. Driving 12,000 miles a year at $3.00 a gallon, a 25 mpg car uses 480 gallons ($1,440.00) and a 40 mpg car uses 300 gallons ($900.00), so the more efficient car saves $540.00 a year in fuel. Over five years that is $2,700.00, before taking account of the purchase price and other costs.

Different fuels and the price you enter

Enter the price of the fuel your vehicle actually uses. Premium petrol, diesel and regular petrol all have different prices per gallon or litre, and the efficiency rating belongs to the fuel the car was tested on. If you pay a different price along the route, use an average, or work out each leg of the trip separately and add the results. The tool does not include tolls, parking or wear and tear.

Fuel economyCost per mile at $3.00Cost per mile at $4.00
20 mpg$0.15$0.20
25 mpg$0.12$0.16
30 mpg$0.10$0.13
40 mpg$0.07$0.10

Why real trips often cost more

The rated figure is measured under standard conditions. Highway driving is usually more efficient than city driving, and factors such as high speed, air conditioning, cargo weight, a roof box, cold weather, tyre pressure and terrain all reduce it. The US government’s fuel economy site lists driving habits that make a difference. Use the efficiency you actually get, which you can find with the Gas Mileage Calculator, rather than the sticker number.

Planning a trip

  • Round trip: the calculator takes the one-way distance, so double it yourself for a return journey. The default round trip is $120.00.
  • Margin: add about 10% for detours and traffic: $66.00 for the default trip.
  • Sharing: divide by the number of passengers. Four people share the default trip at $15.00 each.
  • Drive or fly? compare the fuel cost with fares, and remember tolls, parking and wear.

Common mistakes

  • Mixing up US and imperial gallons when using an imperial-gallon mpg figure.
  • Using the sticker mpg instead of your real average.
  • Forgetting that L/100km works the opposite way: lower is better.
  • Leaving out the return journey.

How to read your result

The large number is the estimated fuel cost. Below it are the fuel needed in the unit of your price, and in both gallons and litres. For a planning figure, add a margin and compare with a second estimate using a lower mpg.

This is a planning estimate. Actual fuel use varies with speed, load, weather, traffic and road conditions.

What to do next

Common questions

Can I mix units, like distance in km with mpg?

Yes. Distance, efficiency and price units are each converted independently, so any combination works.

Does this account for round trips?

No. Enter the one-way distance, or double it yourself if you want a round-trip estimate.

How do I convert mpg to L/100km?

Divide 235.215 by the mpg. For example, 25 mpg is 235.215 / 25 = 9.41 L/100km. To go the other way, divide 235.215 by the L/100km figure.

Why is my real fuel cost higher than the calculator says?

Real consumption is usually worse than the rated figure because of speed, load, weather, traffic and driving style. Use your actual average mpg for a better estimate.

How do I split the cost between passengers?

Divide the fuel cost by the number of people. The calculator gives the total for the vehicle.

Which gallon does the calculator use?

The US gallon, 3.785 litres. An imperial gallon is about 4.546 litres, so an imperial mpg figure needs converting.

Sources: FuelEconomy.gov: Gas mileage tips, driving more efficiently

More Everyday Calculators

Pick another tool to jump straight to it.