Fuel Cost Calculator

About this calculator

This fuel cost calculator estimates how much fuel a trip will burn and what you will pay for it. Enter the trip distance, your vehicle's fuel efficiency and the price of fuel, using whichever units you are used to.

You get the fuel needed, the total fuel cost, the cost per distance unit, and a comparison table showing how the bill changes with better or worse efficiency.

$
Embed this calculator

Paste this code into a Custom HTML block on your site. The calculator fits the width of the block. Adjust the height in the code if you want more room for results.

Find this widget in the publisher directory

How fuel cost is calculated

The cost of a trip depends on three things: how far you are going, how much fuel your vehicle burns per unit of distance, and what each unit of fuel costs. Multiply the fuel burned by the price and you have your total.

Fuel needed = distance ÷ fuel efficiency (in distance per unit of fuel)
Fuel cost = fuel needed × price per unit of fuel

Worked example

A 500 mile drive in a car that returns 25 miles per gallon needs 500 ÷ 25 = 20 gallons. At $3.00 per gallon the trip costs 20 × $3.00 = $60.00, which is $0.12 per mile.

Efficiency units explained

Drivers in different countries describe efficiency in opposite ways. Some measure how far one unit of fuel takes you (miles per gallon, kilometers per liter). Others measure how much fuel it takes to cover a fixed distance (liters per 100 km). A higher number is better in the first style, a lower number is better in the second.

UnitBetter isConversion
Miles per gallon (US)Higher235.215 ÷ mpg = L/100 km
Kilometers per literHigher100 ÷ km/L = L/100 km
Liters per 100 kmLowerL/100 km × 0.01 = L/km
Liters per mileLower÷ 1.609344 = L/km

This calculator converts everything to liters per kilometer first, so you can mix units freely: a trip measured in miles, efficiency quoted in L/100 km, and a price per gallon all work together. Gallons are US gallons (3.785 liters).

What changes your real fuel economy

  • Speed. Aerodynamic drag grows with the square of speed, so highway driving at 75 mph uses noticeably more fuel per mile than at 60 mph.
  • Tire pressure. Under-inflated tires add rolling resistance.
  • Load and roof racks. Extra weight and wind drag both reduce efficiency.
  • Driving style. Hard acceleration and braking waste energy that smooth driving keeps.
  • Weather and terrain. Cold air, headwinds and hills all raise consumption.

The efficiency printed on a window sticker is a test-cycle number. Use your own measured figure (see the gas mileage calculator) for the most accurate trip estimate.

Ways to lower fuel cost

Combine errands into one trip, carpool, keep the engine tuned, use the grade of oil the manufacturer recommends, and check pressures monthly. Over a year, a few miles per gallon of improvement can save a meaningful amount: driving 12,000 miles at 25 mpg and $3.00 uses 480 gallons ($1,440); at 30 mpg it uses 400 gallons ($1,200).

Why fuel prices move

Pump prices follow crude oil, refining margins, taxes, regional supply and seasonal demand. Hurricanes, refinery outages and policy changes can shift prices quickly, so treat a trip estimate as a budget guide and re-run it with the price you actually see at the pump.

Limits of the estimate

The result assumes a constant efficiency for the whole trip and ignores tolls, parking, wear and depreciation. Stop-and-go traffic and mountain passes can push real consumption above your average.

Budgeting a road trip

For a multi-leg journey, add up the distance of every leg, including detours and the drive home, before entering it. Then add a safety margin of five to ten percent for traffic, climbs and air conditioning. If you are splitting costs with passengers, divide the total by the number of people; the cost per mile shown above makes it easy to settle shares for a partial ride.

Comparing vehicles

Enter the same trip with two efficiencies to see the saving. Driving 15,000 miles a year costs $2,250 in fuel at 30 mpg and $3,000 at 22.5 mpg when gas is $4.50 a gallon. The difference of $750 a year is a real input when you decide between a more efficient model and a cheaper one. Remember that electric and plug-in vehicles are priced per kilowatt-hour, so convert their cost per mile separately before comparing.

Rules of thumb

Every extra 10 mph above 60 costs most cars roughly one to two miles per gallon, and a loaded roof box can take off five percent or more at highway speed. Keep a note of fuel price at the pump you actually use, since prices within a single city can differ by tens of cents.

Frequently asked questions

How do I calculate the fuel cost of a trip?

Divide the distance by your fuel efficiency to get the fuel needed, then multiply by the price per unit. For 500 miles at 25 mpg and $3.00 a gallon that is 20 gallons and $60.

How do I convert mpg to L/100 km?

Divide 235.215 by the mpg value. 25 mpg is about 9.41 L/100 km.

Does this work with kilometers and liters?

Yes. Choose kilometers, an efficiency in L/100 km or km/L, and a price per liter. Units can be mixed.

Which gallon is used?

The US gallon, equal to 3.785411784 liters. The imperial gallon is about 20% larger.

Formulas and sample results on this page were checked against independent references. Page last reviewed or updated . How we verify calculators. Project led by Shaun Connell.