Try “wedding”, “budget”, “etsy” or “invoice”.

MPG Calculator

Work out your gas mileage from the miles you drove and the gallons it took to fill up. See MPG, L/100 km, km/L and your fuel cost per mile, and log several fill-ups for a true average.

Updated
Free. No sign-up. Runs in your browser.

1Distance and fuel
2Gas price optional

Your fuel economy

27.0 MPG

297 miles ÷ 11.00 gallons = 27.00 miles per gallon

Liters per 100 km

8.7

L/100 km

Kilometers per liter

11.5

km/L

Imperial MPG

32.4

UK gallons

Cost per mile

$0.115

$11.48 per 100 miles

This fill-up cost $34.10.

Fill-up log: average MPG

One row per fill-up, filling to full each time. We add up every mile and every gallon for a true average.

Average over 3 fill-ups

26.8 MPG

#MilesGallonsPrice/galMPGRemove
127.4
226.3
326.6
Total
897 miles on 33.5 gallons
Best · worst
27.4 · 26.3 MPG
Spent on fuel
$105.32
Cost per mile
$0.117

Your log is saved in this browser. For a log you keep for years, with oil changes and repairs next to every fill-up, use the car maintenance log and fuel tracker.

How to calculate MPG

MPG = miles driven ÷ gallons used

Say you drove 297 miles since your last fill-up and it took 11 gallons to fill the tank again. 297 ÷ 11 = 27 miles per gallon. In metric, the same car uses about 8.7 liters per 100 km and goes about 11.5 km on a liter.

If you track the odometer instead of the trip meter, subtract the reading at your last fill-up from the reading now. 41,547 − 41,250 = 297 miles driven.

How to calculate gas mileage on a full tank

The fill-up method is the most reliable way to measure the gas mileage you really get, because it uses the fuel you paid for.

  1. Fill the tank to full and let the pump click off once. Reset the trip meter, or write down the odometer reading.
  2. Drive as you normally do until the tank is at least half empty. A longer stretch gives a steadier number.
  3. Fill up again to full, at the same pump if you can, and note the gallons on the receipt.
  4. Divide the miles by the gallons. Enter both in the gas mileage calculator above, plus the price per gallon for your cost per mile.

Average MPG over several fill-ups

One tank can run high or low depending on the week: a road trip, a cold snap, a pump that clicks off early. The fill-up log above adds every mile and every gallon across your tanks and divides the totals, which gives a truer average than averaging each tank’s MPG. Three or four fill-ups is enough to see your usual figure, and your best and worst tanks show how much your driving moves it.

MPG to L/100 km and km/L

L/100 km = 235.2 ÷ MPG, and km/L = MPG × 0.425. Imperial (UK) MPG uses the larger UK gallon, so it reads about 20% higher than US MPG for the same car.

US MPGL/100 kmkm/LUK MPG
1515.76.418.0
2011.88.524.0
259.410.630.0
307.812.836.0
356.714.942.0
405.917.048.0
504.721.360.0

Fuel cost per mile

Cost per mile = price per gallon ÷ MPG. A car that gets 27 MPG on $3.10 gas spends about 11.5 cents a mile. Small MPG gains add up across a year of driving.

MPGAt $3.00 a gallonAt $4.00 a gallon
2015.0¢ a mile20.0¢ a mile
2512.0¢ a mile16.0¢ a mile
3010.0¢ a mile13.3¢ a mile
358.6¢ a mile11.4¢ a mile
407.5¢ a mile10.0¢ a mile

To price a whole drive from your MPG, use the fuel cost calculator: enter the trip distance and gas price to see the total and each person’s share.

What is good gas mileage?

Good gas mileage is relative to the car. A compact hybrid, a midsize sedan and a full-size pickup all have very different ratings, so compare your real MPG with the EPA rating for your own make, model and year on FuelEconomy.gov. City driving usually comes in below the highway figure, and the combined rating sits between the two. A gradual drop in your average over several months is worth a look at the car.

How to improve your gas mileage

  • Drive smoothly. Gentle starts and steady speeds use less fuel than hard acceleration and braking, and fuel economy usually falls off quickly above highway speeds (FuelEconomy.gov, driving more efficiently).
  • Keep tires at the right pressure. The figure is on the sticker inside the driver’s door. Check it monthly, with the tires cold.
  • Stay on top of maintenance. Use the motor oil grade in your owner’s manual and keep the engine tuned (FuelEconomy.gov, keeping your car in shape). Our guide on how often to change your oil covers the intervals.
  • Travel light. Take off empty roof racks and cargo boxes, and clear out heavy items you carry around.
  • Combine short trips. A warm engine runs more efficiently than one that starts cold for every errand.

Keep a fuel and maintenance log

Writing down every fill-up is how you spot a change early. The car maintenance log and fuel tracker records MPG from each fill-up next to oil changes, tires and repairs, in Excel or Google Sheets, so your mileage history and service history live in one place.

Questions people ask

How do you calculate MPG?

Divide the miles you drove by the gallons of fuel you used. Fill the tank, reset the trip meter, drive as usual, then fill up again: miles on the trip meter ÷ gallons on the receipt = miles per gallon. For example, 320 miles ÷ 10 gallons = 32 MPG.

How many MPG is 297 miles on 11 gallons of gas?

297 miles on 11 gallons is 27 miles per gallon (297 ÷ 11 = 27). That equals about 8.7 liters per 100 km or 11.5 km per liter.

How do I calculate gas mileage from odometer readings?

Subtract the odometer reading at your last fill-up from the reading now to get the miles driven, then divide by the gallons it took to fill the tank. At 41,547 now and 41,250 last time, you drove 297 miles; on 11 gallons that is 27 MPG.

How do you convert MPG to L/100 km?

Divide 235.2 by the MPG figure: 235.2 ÷ 30 MPG = 7.8 L/100 km. To go the other way, divide 235.2 by the L/100 km figure. For km per liter, multiply MPG by 0.425.

What is a good MPG for a car?

Good gas mileage depends on the type of car, so the best benchmark is the EPA rating for your own make, model and year on FuelEconomy.gov. Track your real MPG for a few fill-ups and compare it with the combined rating; a steady drop over time is a sign to check tire pressure and maintenance.

Why is my MPG lower than the EPA estimate?

Real-world mileage moves with how and where you drive. High highway speeds, quick starts, short trips in cold weather, idling, roof racks, heavy loads and underinflated tires all lower MPG. Calculate it over several full tanks to see your true average.

Is the MPG on my dashboard accurate?

The trip computer estimates fuel use from the engine and can read a little high or low. The fill-up method measures the fuel you actually bought, so it is a good way to check the display: log three or four fill-ups here and compare the average.

How do I work out fuel cost per mile?

Divide the price per gallon by your MPG. At $3.10 a gallon and 27 MPG, gas costs about 11.5 cents a mile, or $11.48 every 100 miles. Add the price in the calculator to see it for your car.