Gas Mileage Calculator
Enter two odometer readings and the fuel it took to refill the tank to get your actual fuel economy and cost per mile or kilometer.
How to use the Gas Mileage Calculator
- Enter Odometer at last fill-up.
- Enter Odometer now.
- Choose Odometer reads.
- Enter Fuel added to refill the tank.
- Choose Fuel measured in.
- Add any optional details you have; leave the rest blank.
- Read your answer in the results panel. It updates as you type, and the breakdown, step-by-step working and any charts or tables appear below it.
- Use Share link to save or send the exact calculation, or Copy to paste the results elsewhere.
Measuring fuel economy the reliable way
The dashboard’s fuel economy reading is an estimate, and often an optimistic one. The fill-to-fill method measures it directly:
- Fill the tank until the pump clicks off, and note the odometer reading (or reset a trip meter).
- Drive normally, ideally until the tank is at least half empty.
- Fill up again to the first click and note how much fuel went in and the new odometer reading.
The fuel you just added is exactly what you burned since the last fill-up, so the arithmetic is simple.
mpg = (end odometer − start odometer) ÷ gallons added
L/100 km = liters added × 100 ÷ kilometers driven
Worked example
The odometer read 12,000 miles at the last fill-up and reads 12,300 now. The tank took 10 US gallons, so the car averaged 300 ÷ 10 = 30 mpg. In metric that is 7.84 L/100 km, or 12.75 km/L. At $3.50 per gallon, the tank cost $35.00, which works out to 11.7 cents per mile. A metric example: 500 km on 40 L is 8.0 L/100 km, or 12.5 km/L (29.4 US mpg).
Why your numbers vary
- Pump shut-off: automatic nozzles don’t click off at exactly the same level every time. Averaging three or more tanks smooths this out.
- Driving mix: stop-and-go city driving, short trips with a cold engine and idling all lower economy.
- Weather and season: winter-blend fuel, cold tires and running the heater can cut economy by 10–20%.
- Tires: under-inflated tires add rolling resistance. A different tire size also changes the odometer reading itself (see the tire size calculator).
Using the results
Cost per mile (or kilometer) is the most useful figure for budgeting and for comparing cars. Feed your measured mpg into the fuel cost calculator for trip planning. If your economy suddenly drops by more than about 10% with no change in driving, check tire pressures, the air filter and for dragging brakes. It can also be an early sign of an engine sensor problem.
Frequently asked questions
How do I calculate my car's mpg?
Fill the tank, note the odometer, drive, then refill and note how many gallons it took. Divide the miles driven by those gallons. 300 miles on 10 gallons is 30 mpg.
What is a good gas mileage?
For a modern gasoline car, 30 mpg (about 7.8 L/100 km) or better is good. Hybrids often reach 45–55 mpg, while large pickups and SUVs typically get 15–22 mpg.
How do I convert L/100 km to mpg?
Divide 235.21 by the L/100 km figure to get US mpg, or 282.48 by it to get UK mpg. For example, 8 L/100 km is 29.4 US mpg.
Why is my calculated mpg different from the dashboard?
Trip computers estimate fuel flow from injector timing and often read 3–10% high. The fill-to-fill method measures the fuel you actually bought, so it is usually more accurate over several tanks.