Fuel Cost Calculator

Enter miles, mpg, and the pump price per US gallon. The calculator divides miles by mpg and multiplies by the price: 260 miles at 32 mpg and $3.45 per gallon is about $28.03. That is the fuel for this trip, not service, insurance, or a loan payment. Enter road tolls in the field under the form when you want them added. If you leave that field empty, or if you enter zero, the result stays fuel only. A round trip doubles the distance and the tolls you enter.

Inputs

Results

Distance (mi), fuel economy (mpg), and price per gallon. Fuel cost appears here.

If you do not know fuel economy yet, use the fuel consumption calculator. Type a toll amount you already know. This page does not look up a toll schedule. For a yearly budget, open annual running cost. For the purchase price and the cost of owning the car together, open the car ownership calculator.

How the results are calculated

How the result is calculated
Distance260 mi
Economy32 mpg
Price3.45
Cost28.03

With miles and mpg selected, the calculator divides miles by mpg and multiplies by the price. 260 ÷ 32 = 8.125 gal, times 3.45 ≈ 28.03. At 420 miles, 28 mpg, and 3.20 per gallon the cost is 48.00. At 90 miles, 35 mpg, and 3.65 the cost is about 9.39.

In Advanced mode the calculator works out two segments separately. Each segment has its own fuel economy and its own price. It then adds those costs and multiplies by the number of trips. A 5% adjustment, when miles are selected, divides 32 mpg by 1.05 before the price. When kilometers are selected, the same 5% multiplies L/100 km. The buffer increases the fuel once per segment. The calculator does not add that extra fuel to the cost a second time. A split between people, road tolls, and a round trip work in Quick mode too. The split divides the fuel cost. When you enter road tolls, it divides the fuel and that amount together. An empty toll field, or a zero you type, leaves the result as fuel only. The amount you type is added once for each trip. A round trip doubles the distance and that amount first. In Advanced mode, the number of trips repeats the whole outing after that doubling. The cost per mile and per kilometer is fuel only.

Quick mode has three fields: distance, fuel economy, and price. With US units selected at the top of the page, the labels are miles, mpg, and price per US gallon. The calculator does not use gallons per 100 miles. Changing those units leaves a number you already typed: 260 stays 260. The example button fills in the example and converts those numbers to the units you selected. In the price 3.45, a comma and a period mean the same amount. If you switch to metric, the same three fields use kilometers, L/100 km, and price per liter.

You can measure miles per gallon from a fill-up on the MPG calculator. A year of service and insurance belongs on the annual running cost page. Receipts divided by the miles you drove belong on the cost-per-mile page. This page calculates the fuel for one trip.

Distance has to be greater than zero. A blank distance field does not fill in 260 miles from the example. The calculator does not accept a negative number. The result is an estimate from the numbers you enter, not a pump receipt.

Enter a distance of 260 miles, 32 mpg, and 3.45 per gallon, click Calculate, and you should see about 28.03. Two segments with different mpg or prices are not the same as 260 miles at one average, because each segment keeps its own amount of fuel and its own price.

How to use

  1. In Quick mode, enter distance, for example 260 miles, 32 mpg, and 3.45 per US gallon.
  2. Click Calculate. 260 ÷ 32 × 3.45 is about 28.03.
  3. In Advanced, turn on two segments if highway and city have different economy or a different price.
  4. You can also check Round trip, or add a fuel-economy adjustment, a buffer, a trip count, road tolls, or a split between people. If you leave the toll field empty, or if you enter zero, the result stays fuel only. A round trip doubles the distance and the tolls you enter.
  5. Measure miles per gallon from a fill-up on the MPG calculator. This page calculates the fuel cost for one trip, not the cost of owning the car.

Trip fuel: miles, mpg, and price

The calculator divides miles by mpg, then multiplies by the price. With miles selected, 260 ÷ 32 × 3.45 is about 28.03. Metric uses L/100 km and price per liter. The 28.03 example is the fuel cost for one way. If you leave the toll field empty, or if you enter zero, tolls stay out of the result. A round trip doubles the distance and the tolls you enter.

mpg
This field is miles per gallon when US units are selected. 260 miles at 32 mpg and 3.45 a gallon is about 28.03. Metric uses L/100 km.
distance
Distance is the trip length in miles when US units are selected. 90 miles at 35 mpg and 3.65 is about 9.39. Two segments and a split between people are extra fields. The result is still not the cost of owning the car.

Examples

Example 1

  • Distance: 260 mi
  • Economy: 32 mpg
  • Price: 3.45 / gal

≈ 28.03

What does 260 mi cost at 32 mpg and $3.45/gal? 260÷32×3.45 ≈ $28.03.

Example 2

  • Distance: 420 mi
  • Economy: 28 mpg
  • Price: 3.20 / gal

≈ 48.00

420 mi ÷ 28 mpg × $3.20/gal = $48.00.

Example 3

  • Distance: 90 mi
  • Economy: 35 mpg
  • Price: 3.65 / gal

≈ 9.39

90 mi ÷ 35 mpg × $3.65/gal ≈ $9.39.

Common questions

How do I calculate trip fuel cost?

Gallons = miles ÷ mpg, then multiply by the pump price per US gallon. 260 mi ÷ 32 mpg × $3.45 ≈ $28.03. Metric mode uses km × L/100 ÷ 100 × price per litre.

What does 260 miles cost at 32 mpg and $3.45 per gallon?

About $28.03. That is pump fuel for one stretch: gallons from distance and mpg, times the pump price.

Is this the same as the fuel consumption calculator?

No. Fuel consumption finds mpg or L/100 km from a fill-up. Here you enter known economy and get the trip cost in money.

Does the result include TCO, tolls, or parking?

No. The calculator shows fuel for the distance only. Car ownership cost, road tolls, and parking stay outside the result.

Is this a free fuel cost calculator?

Yes. Enter distance, economy, and pump price and you see the stretch cost at once. No account required.

What does 260 miles cost at 32 mpg and 3.45 per gallon?

At 260 miles, 32 mpg, and 3.45 per gallon the cost is about 28.03 (8.125 gal × 3.45). At 420 miles, 28 mpg, and 3.20 the cost is 48.00. At 90 miles, 35 mpg, and 3.65 the cost is about 9.39.

Is 260 in miles?

Yes. With US units selected at the top of the page, 260 is miles. Choose Metric there for kilometers and L/100 km.

What does a 5% fuel-economy adjustment do to 32 mpg?

With miles selected, the calculator divides 32 mpg by 1.05, then 260 miles × 3.45 ÷ (32 ÷ 1.05) ≈ 29.43. With kilometers selected, the same 5% multiplies L/100 km. The buffer adds extra fuel once. The calculator does not charge that extra fuel a second time.

Are two segments of 170 and 90 the same as 260 averaged?

No, if economy or price differs. Each segment has its own amount of fuel. The total is not the same as pricing 260 miles from one averaged mpg.

Does the result include tolls and parking?

No. The fuel figure on the screen is fuel only. When you enter road tolls, the calculator adds them separately, once for each trip. Round trip doubles the distance and that amount first. At 260 miles, 32 mpg, and 3.45 per gallon the cost both ways is about 56.06. If you leave the toll field empty, or if you enter zero, the result stays fuel only. Parking and the cost of owning the car stay out of this result. A taxi fare uses a different calculator.

If I change the units at the top, does a typed 260 stay 260?

No. On an empty field the calculator only changes the label. It does not convert a number you already typed. If a result is already on screen, the calculator uses the formula that matches the new units.

What if distance is blank?

The calculator does not compute and does not fill 260 from the example. Quick mode needs three numbers greater than zero.

Does a comma in 3.45 work?

Yes. 3,45 and 3.45 are the same price per gallon. A comma and a period mean the same value.

What does 420 miles cost at 28 mpg and 3.20?

At 420 miles, 28 mpg, and 3.20 per gallon the cost is 48.00. At 90 miles, 35 mpg, and 3.65 the cost is about 9.39.

Where do I get 32 mpg if I have not filled up?

Measure it on the MPG calculator from miles and gallons added. Here you already enter a known economy.

Is the gallon a US gallon?

Yes. The price per gallon uses a US gallon, about 3.785 liters, not a British gallon. The calculator does not convert a UK gallon, and it does not use gallons per 100 miles.

This is the fuel for the trip you enter, not a pump receipt and not the cost of owning the car. Measure tank mpg on the MPG calculator.

Knowledge sources

The miles, mpg, and price are the numbers you type. The links below explain how fuel economy is defined.

Page updated September 28, 2026.