Fuel cost calculator

Enter the distance, your car’s mpg and the gas price to see what the drive will cost in fuel.

One way, from a map app or your odometer.

Your own fill-up figure is best. The sticker figure is a starting point.

Example value, not today’s price. Replace it with what your station charges.

Split the cost between people

Whole number from 1 to 8.

The estimate updates as you type. Nothing you enter leaves this page.

How this is calculated

Gallons used are the distance divided by your miles per gallon. The fuel cost is those gallons times the price per gallon. For a round trip the distance is doubled first. Cost per mile is the price divided by mpg, and cost per person is the total divided by the number of people sharing.

cost = distance ÷ mpg × price per gallon

The method, the constants and the limits are written out in how fuel cost is calculated.

Worked example: 200 miles at 30 mpg

These are example numbers, not a current price. Distance 200 miles, 30 mpg, gas at $3.50 a gallon.

  1. 200 ÷ 30 = 6.67 gallons.
  2. 6.67 × $3.50 = $23.33 for the drive.
  3. Cost per mile: $3.50 ÷ 30 = $0.117.

Tick round trip and the distance becomes 400 miles: 13.33 gallons and $46.67. Split between four people, that is $11.67 each.

What the estimate leaves out

The result is one number from the inputs you gave, not a forecast of what the pump will show. Real fuel use moves with speed, traffic, hills, cold weather, a loaded car, a roof box and the air conditioning. Tolls, parking and wear on the car are not fuel and are not included. If your mpg is a rough guess, the cost is a rough guess by the same proportion.

To get a better mpg figure, work it out from a full tank with the fuel consumption calculator. If you are planning several stops, try the trip gas calculator, and to divide the bill fairly use the gas money calculator.

Common questions

Which mpg should I use?

Use the figure from your own fill-ups if you have one. A sticker or manual figure is a fair starting point, but highway and city driving usually give different results, so pick the one that matches the trip.

What gas price should I enter?

Enter the price at the station where you expect to fill up. The field starts with an example value because this page does not look up live prices, so replace it before you rely on the result.

How do I include the return journey?

Tick “Round trip”. The calculator doubles the distance before working out gallons and cost.

Can I use litres and kilometres?

This page uses US units. To compare fuel economy figures in both systems, use the mpg to L/100km converter.

Is what I type saved or sent anywhere?

No. The arithmetic runs in your browser. See the privacy policy for the details.

Other calculators handle monthly commuting costs, cost per mile and electric against gas. The formulas are in how fuel cost is calculated.

Calculators

Guides