Skip to content
Automotive Calculators

Miles Per Gallon Calculator

Verified formula Updated Jun 2026 Private — runs on your device

Enter details
miles
gallons
Verified formula Private

Miles per gallon

25.00

For general information only — not financial, tax, legal or medical advice. Verify before you rely on it.

How to use the Miles Per Gallon Calculator

The Miles Per Gallon Calculator works out your miles per gallon in an instant. Enter distance driven and fuel used and the result updates as you type — it is free, needs no sign-up, and runs entirely in your browser so your figures stay private.

  1. Enter the distance driven.
  2. Enter the fuel used.
  3. Read off your miles per gallon — the calculator updates automatically, with no button to press.

Formula

The Miles Per Gallon Calculator uses the formula:

Miles per gallon = Distance driven ÷ Fuel used

Worked example

For example, with distance driven of 300 miles and fuel used of 12 gallons, the miles per gallon is 25.00.

Inputs used
Distance driven 300 miles
Fuel used 12 gallons
Results
Miles per gallon 25.00

Results are estimates for educational use, not professional advice.

Frequently asked questions

Divide the miles driven by the gallons of fuel used. Driving 300 miles on 12 gallons is 25 MPG.

Fill the tank, reset the trip meter, drive, then refill and note the gallons added. Divide your trip miles by those gallons.

Yes. Higher MPG means the vehicle travels further on the same fuel, lowering running costs and emissions.

Multiply US MPG by about 0.425 to get km per litre. Use the fuel economy converter for other unit combinations.

Enter the distance driven. Enter the fuel used. Read off your miles per gallon — the calculator updates automatically, with no button to press.

The Real Cost of Owning a Car (and Going Electric)

Beyond the sticker price — depreciation, financing, fuel, insurance and maintenance — plus how electric cars compare on running cost, range and charging time, with a total-cost view.

4 min read

Related calculators