InovoTools
Calculators

Gas Mileage Calculator: Miles Per Gallon and Fuel Cost

Enter the odometer reading before and after a fill-up, the gallons added and the price per gallon to get your miles per gallon and the cost of the trip. Switch Units to metric to enter kilometres and litres and get L/100 km.

01

Your inputs

Start with the example, or enter your own values.

Processed in your browser. Your inputs stay on this device.

02

Your result

A little clarity, coming right up.

Make room for the answer.

Enter your values and run the tool. Your result will appear here.

How to use the Gas Mileage Calculator

Enter the starting odometer, ending odometer, fuel added and price per gallon and the result appears straight away. Everything runs in your browser, so nothing you type is uploaded.

The formula

US: mpg = (end − start) ÷ gallons. Metric: L/100 km = litres ÷ (end − start) × 100

Examples

  • 350 miles on 12.5 gallons
    Distance: 350 miles
    Gas mileage: 28 mpg
    Fuel cost: $43.75
    Cost per mile: $0.13
  • 412 miles on 11.2 gallons at 3.89
    Distance: 412 miles
    Gas mileage: 36.79 mpg
    Fuel cost: $43.57
    Cost per mile: $0.11
  • 280 miles on 14 gallons (a truck)
    Distance: 280 miles
    Gas mileage: 20 mpg
    Fuel cost: $49.00
    Cost per mile: $0.18

Limitations and assumptions

Accurate only if the tank is filled to the same level at both readings.

Frequently asked questions

How do I calculate MPG?

Miles driven ÷ gallons used. Fill the tank each time for accuracy.

What is a good MPG?

Many modern cars manage 25 to 35 mpg; trucks and SUVs are lower.

How accurate is it?

Pump shut-off varies, so average several fill-ups.

How do I find fuel cost per mile?

Divide the price per gallon by your mpg.