How to Calculate MPG

Work out your car's miles per gallon by hand in five simple steps with the formula and examples below.

MPG (miles per gallon) = miles driven ÷ gallons of fuel used. For example, if you drove 300 miles and it took 10 gallons to refill your tank, your car got 300 ÷ 10 = 30 MPG.

How to calculate your MPG in 5 steps

The fill-up method uses only your gas pump and your trip meter or odometer, and it is more reliable than a single reading from the dashboard display.

  1. Fill the tank to full

    Fill up until the pump clicks off the first time. Do not top off, so every fill-up stops at the same level.

  2. Reset the trip meter or note the odometer

    Set the trip meter to zero, or write down the odometer reading (or take a photo of it).

  3. Drive as usual

    Drive at least a few hundred miles or until the tank is half empty or lower. Longer distances give a more accurate MPG.

  4. Refill and note the gallons

    Fill up to the first click again. Write down the gallons pumped from the pump display or receipt, and the trip meter miles.

  5. Divide miles by gallons

    MPG = miles driven ÷ gallons used. If you used the odometer, subtract the old reading from the new one to get miles driven.

MPG formula

MPG = miles driven ÷ gallons used
MPG = (odometer now − odometer at last fill-up) ÷ gallons used

Always use the gallons from the fill-up at the end of the miles you measured. That is the fuel the car burned to cover those miles.

MPG calculation examples

Example 1: Using the trip meter

The trip meter shows 248 miles and the fill-up took 9.2 gallons.

248 ÷ 9.2 = 26.96 ≈ 27.0 MPG

Example 2: Using odometer readings

The odometer read 51,320 at the last fill-up and 51,733 now. The tank took 12.5 gallons.

51,733 − 51,320 = 413 miles
413 ÷ 12.5 = 33.0 MPG

Example 3: Average MPG over several fill-ups

Three tanks: 310 miles on 10.4 gallons, 285 miles on 11.2 gallons and 402 miles on 12.1 gallons. Add the totals first, then divide:

310 + 285 + 402 = 997 miles
10.4 + 11.2 + 12.1 = 33.7 gallons
997 ÷ 33.7 = 29.6 MPG

How to calculate MPG for a trip

Fill the tank right before you leave and note the odometer. Each time you stop for gas, fill up to the first click and keep the receipts. At the end, divide the total trip miles by the total gallons you bought (not counting the first fill-up before you left).

To plan a trip instead, divide the distance by your MPG to get the gallons you will need, then multiply by the gas price. The trip gas cost calculator does this for you, including round trips.

How to calculate MPG to miles

If you know your MPG, you can work out how far you can drive on a given amount of fuel:

Miles = MPG × gallons

For example, a car that gets 30 MPG with a 14-gallon tank can go about 30 × 14 = 420 miles on a full tank. Keep a safety margin, since MPG drops in heavy traffic, at high speed or with a heavy load.

How to calculate fuel consumption (L/100 km)

Outside the US, fuel consumption is often given in liters per 100 kilometers, where a lower number is better. To convert between the two (US gallons):

L/100 km = 235.21 ÷ MPG
MPG = 235.21 ÷ L/100 km
km/L = MPG × 0.4251

Example: 30 MPG = 235.21 ÷ 30 = 7.84 L/100 km, or 12.75 km/L. The calculators on this site show these values automatically.

Common mistakes when calculating MPG

  • Not filling to full both times. If the first or second fill-up stops early, the gallons will not match the miles you drove.
  • Measuring a very short distance. A small difference in how full the tank is makes a big difference over 50 miles. Measure over a full tank when you can.
  • Averaging MPG numbers. To get an average over several tanks, divide total miles by total gallons instead of averaging the MPG values.
  • Forgetting to reset the trip meter. Take a photo of the odometer at every fill-up so you always have the starting reading.
  • Relying only on the dashboard MPG display. The display is an estimate and can differ from your real number. Check it against the fill-up method.
FAQ

MPG calculation questions

How do I calculate my MPG?

Fill your tank, reset the trip meter, drive, then fill up again. Divide the miles on the trip meter by the gallons it took to refill. Example: 248 miles ÷ 9.2 gallons = 27.0 MPG.

How do you calculate MPG for a trip?

Fill up right before you leave and again when you arrive (or at each stop), then divide the trip miles by the total gallons you bought. To estimate a trip before you go, divide the trip miles by your usual MPG to get the gallons you will need.

How do I calculate MPG to miles?

Multiply MPG by gallons: miles = MPG × gallons. A car that gets 30 MPG can drive about 30 × 14 = 420 miles on a 14-gallon tank.

How do you calculate fuel consumption?

In the US, fuel consumption is usually shown as MPG (miles ÷ gallons). In liters per 100 km, divide 235.21 by the MPG: 30 MPG = 235.21 ÷ 30 = 7.84 L/100 km. Lower L/100 km means better fuel economy.

How do you calculate MPG cost?

Divide the price per gallon by your MPG to get the fuel cost per mile. At $3.50 per gallon and 25 MPG, each mile costs $3.50 ÷ 25 = $0.14, so 100 miles costs $14.