Everyday tool

Fuel Cost Calculator

Enter your trip distance, vehicle efficiency and fuel price to estimate the total cost.

Runs in your browser. No upload.

Estimated fuel used
—
Estimated trip cost
—
Cost per passenger
—

About this tool

Fuel Cost Calculator made simple.

Choose miles with US miles-per-gallon or kilometers with liters per 100 km, then set one-way or round-trip distance and passengers. The result is an estimate based on your inputs, not live fuel prices or a promise of actual consumption.

Guide

Using Fuel Cost Calculator

The Fuel Cost Calculator estimates what a trip costs in fuel. You enter the distance, how efficient your vehicle is, and the price of fuel. Efficiency is either miles per US gallon or liters per 100 kilometers. You can tick Round trip to count the way back, and set the number of passengers to share the cost evenly. The tool shows the fuel used, the trip cost and the cost per passenger. It uses the price you type and one steady efficiency number, so a real trip can cost more or less. Tolls, parking and car wear are not included.

How to use it

  1. Choose the Unit system: Miles (US MPG) or Kilometers (L/100 km). The labels for efficiency and fuel price change to match.
  2. Type the trip distance. Tick Round trip if you will drive the same distance back.
  3. Type your vehicle's efficiency in miles per US gallon, or in liters per 100 km. If you change the unit system, type this number again, because it is not converted for you.
  4. Type the fuel price per gallon or per liter, then pick a currency from the list. The currency changes only how the money is shown.
  5. Set the number of passengers who will share the cost. The smallest value is 1.
  6. Press Estimate fuel cost and read the fuel used, the trip cost and the cost per passenger.

Worked examples

A 100-mile trip in US units

You enter
Unit
Miles (US MPG)
Distance
100
Efficiency
30
Price
3.5
Currency
USD
Passengers
1
Round trip
no
You get
Fuel used
3.33 gal
Trip cost
$11.67
Per passenger
$11.67

One hundred miles at 30 miles per gallon uses 3.33 gallons. At 3.50 a gallon, that costs 11.67.

Run through the tool’s own code.

A round trip with three people

You enter
Unit
Miles (US MPG)
Distance
300
Efficiency
25
Price
4
Currency
USD
Passengers
3
Round trip
yes
You get
Fuel used
24 gal
Trip cost
$96.00
Per passenger
$32.00

Round trip doubles 300 miles to 600. Six hundred miles at 25 miles per gallon is 24 gallons, which costs 96. Split three ways, that is 32 each.

Run through the tool’s own code.

A 250-kilometer trip in metric units

You enter
Unit
Kilometers (L/100 km)
Distance
250
Efficiency
6.5
Price
1.8
Currency
EUR
Passengers
2
Round trip
no
You get
Fuel used
16.25 L
Trip cost
€29.25
Per passenger
€14.63

At 6.5 liters per 100 km, 250 km uses 250 times 6.5 divided by 100, which is 16.25 liters. At 1.80 a liter that is 29.25. Half of it is 14.625, shown as 14.63.

Run through the tool’s own code.

A short round trip shared by four

You enter
Unit
Kilometers (L/100 km)
Distance
80
Efficiency
8
Price
1.65
Currency
EUR
Passengers
4
Round trip
yes
You get
Fuel used
12.8 L
Trip cost
€21.12
Per passenger
€5.28

The round trip is 160 km. At 8 liters per 100 km it uses 12.8 liters. At 1.65 a liter the cost is 21.12, and one quarter of that is 5.28.

Run through the tool’s own code.

A very short trip

You enter
Unit
Kilometers (L/100 km)
Distance
10
Efficiency
7.2
Price
1.5
Currency
GBP
Passengers
1
Round trip
no
You get
Fuel used
0.72 L
Trip cost
£1.08
Per passenger
£1.08

Ten kilometers at 7.2 liters per 100 km uses 0.72 liters. At 1.50 a liter, that costs 1.08.

Run through the tool’s own code.

A distance of zero

You enter
Unit
Miles (US MPG)
Distance
0
Efficiency
30
Price
3
Currency
USD
Passengers
1
Round trip
no
You get
Message
Check your input and try again.

Distance must be more than zero. The calculation stops with an error. The message text here comes from the page code, not from a live run of the page.

Not run through the tool. Treat it as an illustration.

When it helps

  • Estimate the fuel bill for a road trip before you leave.
  • Work out a fair share for each person when friends or coworkers drive together.
  • Compare two routes of different lengths with the same car and the same fuel price.
  • See what a change in fuel price does to a trip you make often.
  • Check a quote when someone asks you to pay for fuel on a shared ride.
  • Compare two cars with different efficiency on the same distance.

Limits to keep in mind

  • The tool uses US gallons in miles mode and liters in kilometers mode. It cannot read imperial gallons, kilometers per liter or electric cars.
  • The price is whatever you type. The tool does not look up live fuel prices, and the currency list only changes how the number is written. It does not convert money.
  • It assumes one steady efficiency for the whole trip. Hills, traffic, speed, weather, load and the car's condition change real use, as the US fueleconomy.gov pages explain.
  • Distance and efficiency must be more than zero, the price cannot be negative, and passengers must be a whole number from 1 to 100. Other values give an error and the three results change to dashes.
  • Cost per passenger is the trip cost divided evenly by the number you enter. The tool does not say whether the driver counts, so decide that before you split.
  • Tolls, parking, insurance, wear on the car and time are not included.

Tips

  • Use your own measured efficiency when you have it, from a few full tanks and the miles you drove. A rated figure may differ from real use.
  • After you switch between miles and kilometers, retype the efficiency and the price. The old numbers stay in the boxes and are not converted.
  • Add a small margin to the result if the route has hills, heavy traffic or a full load.
  • Run the trip once as one way and once as a round trip if you are not sure about the return.
  • Use the price you actually expect to pay along the route.
  • If you share costs, agree on whether the driver pays a share before you start.

Sources

Common questions

About Fuel Cost Calculator.

How do I estimate the fuel cost of a trip?

Divide the distance by your miles per gallon to get gallons, then multiply by the price per gallon. In kilometers mode, multiply the distance by the liters per 100 km and divide by 100, then multiply by the price per liter.

Does the calculator use live gas prices?

No. It uses only the price you type. Prices change by place, day and fuel type, so look at the pump or a recent receipt and enter that number for a closer estimate.

How do I convert miles per gallon to liters per 100 km?

The tool does not do this for you. The conversion needs the size of a US gallon, which NIST lists as 3.785412 liters, plus the length of a mile. Instead, look for a figure in the unit you use, then type it in.

What happens when I tick Round trip?

The distance is doubled before the sum is done. The fuel used and the cost then cover the trip there and back. Nothing else changes, and the cost per passenger is the doubled cost divided by the passengers.

How is the cost per passenger worked out?

It is the trip cost divided by the number of passengers you enter. The split is always even. The tool does not say whether the driver counts as a passenger, so choose the number that fits your group.

Why can my real fuel use differ from the estimate?

Real use changes with speed, hills, traffic, weather, load and the car's condition. The US fueleconomy.gov site says, for example, that running the air conditioner on Max can reduce MPG by roughly 5 to 25 percent.

Does the currency choice convert my price?

No. It only decides the symbol and the way the result is written. If you choose EUR and type 1.80, the tool shows euros and does not change the number. Type the price in the currency you pick.

Can I use it for an electric car?

Not directly. The tool is built around fuel in gallons or liters. For an electric car you would need a cost per unit of electricity and its use per distance, which this tool does not have.

Does the tool include tolls, parking or wear on the car?

No. It estimates fuel only. Add tolls, parking and any other costs yourself. Wear, insurance and the value of your time are also left out of the result.

Can I use imperial gallons or kilometers per liter?

Not as typed. Miles mode expects US miles per gallon, and kilometers mode expects liters per 100 km. If your car shows another unit, convert it first or find the figure in a unit this tool takes.

Why do I get an error message?

Distance and efficiency must be above zero, the price cannot be negative, and passengers must be a whole number from 1 to 100. Empty boxes also fail. Fix the box and press the button again.

Is my trip data sent anywhere?

No. The page says it runs in your browser and that nothing is uploaded. The distance, price and other numbers you type stay on your own device.

How do I estimate fuel cost for a trip?

Enter distance, vehicle efficiency and the price per gallon or liter. Choose one-way or round trip to see estimated fuel use and cost.