MPG Calculator
Test cases replayed : 2 of 2 match · Methodology · No outside source listed
Calculate miles per gallon (MPG) from the miles you drove and the gallons you used.
Result
Fuel economy (MPG)
Miles driven
- Fuel consumption (L/100 km)
- Fuel cost per mile
Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- Odometer at first fill-up, in mi: enter 0 or more.
- Odometer at this fill-up, in mi: enter 0 or more.
- Gallons to refill: enter 0.01 or more.
- Price per gallon, in dollars: enter 0 or more.
- Read the result: Fuel economy (MPG); the panel also shows Miles driven, Fuel consumption (L/100 km) and Fuel cost per mile.
How this calculator works
MPG = miles ÷ gallons. Fill up, note the odometer, drive, fill up again and use the gallons of the second fill. L/100 km = 235.215 ÷ MPG.
Compare with the EPA rating for your model on fueleconomy.gov to see how your driving measures up.
The formula
| Symbol | Meaning | Unit |
|---|---|---|
| Odometer at first fill-up | mi | |
| Odometer at this fill-up | mi | |
| Gallons to refill | ||
| Miles driven | ||
| Fuel economy | MPG |
Worked example
| Odometer at first fill-up | 12,000 mi |
|---|---|
| Odometer at this fill-up | 12,350 mi |
| Gallons to refill | 11.5 |
| Price per gallon | $3.2 |
| Miles driven | 350.0 |
|---|---|
| Fuel consumption (L/100 km) | 7.73 |
| Fuel cost per mile | $0.11 |
Fuel economy (MPG) 30.43
Each step uses the unrounded value of the step before it; figures on this page are rounded for display.
Frequently asked questions
What is the MPG for 420 miles on 12 gallons?
35 MPG, about 6.72 L/100 km.
Is a higher MPG better?
Yes: more miles from each gallon. In L/100 km it is the other way round: lower is better.