Home / Guides

How to Calculate Fuel Cost From MPG

MPG tells you how far a gallon goes. Flip that around and you can tell how many gallons a trip needs, and from there what it costs.

Miles ÷ MPG × price per gallon = fuel cost

For a 240-mile drive at 30 MPG, with gas at $4.17:

  1. 240 ÷ 30 = 8 gallons
  2. 8 × $4.17 = $33.36

Why you divide

It’s easy to reach for multiplication by mistake, so here’s a sanity check. If your car goes 30 miles on a gallon, then a 240-mile trip must need more than one gallon. Dividing gives 8, which fits. Multiplying gives 7,200, which is roughly a swimming pool’s worth of bad planning.

Checking the answer in your head

For a rough check, round everything to friendly numbers. 240 miles at 30 MPG is 8 gallons. Call gas $4. That’s about $32. If the calculator says $33.36 you’re fine. If it says $330, a decimal point has gone astray.

240 miles at $4.17 a gallon
Fuel economyGallonsCostPer mile
20 MPG12.0$50.0420.8¢
25 MPG9.6$40.0316.7¢
30 MPG8.0$33.3613.9¢
35 MPG6.9$28.5911.9¢
40 MPG6.0$25.0210.4¢

UK drivers: watch the gallon

This is where people go wrong in Britain. Your car’s economy is quoted in MPG, but petrol is sold by the litre, and the gallon in that MPG is the larger UK one. The sum needs one more step:

  1. 240 miles ÷ 42 UK MPG = 5.71 UK gallons
  2. 5.71 × 4.546 = 26 litres
  3. 26 × £1.74 = £45.24

Forget step two and you’d get £9.94, which is far too good to be true. Our calculator does the conversion for you when you pick the United Kingdom.

What if you only have L/100 km?

Then you don’t need MPG at all, and the sum is simpler. Multiply kilometres by L/100 km, divide by 100 to get litres, then multiply by the price. See MPG vs L/100 km if you need to move between the two.

Trips with mixed driving

If a trip is half city and half highway, you could pick one MPG figure, but splitting it is more accurate. Take a 200-mile trip with 40 miles of city traffic at 25 MPG and 160 miles of highway at 34 MPG.

  1. City: 40 ÷ 25 = 1.6 gallons
  2. Highway: 160 ÷ 34 = 4.7 gallons
  3. Total: 6.3 gallons, or $26.27 at $4.17

Notice that you add the gallons and not the MPG figures. Averaging 25 and 34 would give you 29.5, when the real answer for this trip is 31.7. MPG figures can’t be averaged in a straight line, because they’re rates. It’s the same reason we combine tanks by total miles and total gallons in the mileage calculator.

Which MPG should you use?

Use the one closest to the drive you’re about to make. EPA stickers show city, highway and combined. A long highway run suits the highway figure, minus something for speed and luggage. A week of school runs suits the city one. Your own measured figure, from the mileage calculator, beats all three.

Fuel Cost CalculatorUse your own numbers

Read next