# How do you calculate miles per gallon?

Verified: 2026-11-21
Canonical: https://answerkb.com/how-to/home/how-do-you-calculate-miles-per-gallon/

Divide the number of miles traveled by the number of gallons of fuel used to get miles per gallon (mpg).

## Explanation

Fuel economy in miles per gallon is miles driven divided by gallons used. If a car travels 300 miles and uses 10 gallons, the fuel economy is 300 ÷ 10 = 30 mpg. You can measure this by filling the tank, resetting the trip odometer, then filling the tank again: the miles on the trip meter divided by the gallons needed to refill is the mpg for that stretch. A higher mpg means fewer gallons for the same distance: 300 miles at 25 mpg would use 300 ÷ 25 = 12 gallons. This is a calculation of past fuel use, not a prediction, and driving conditions can change the result.

## Steps

1. **Record the miles traveled.** Use the trip odometer or subtract starting mileage from ending mileage. Example: 300 miles.
2. **Record the gallons used.** The gallons added to refill the tank after that trip, here 10 gallons.
3. **Divide miles by gallons.** 300 ÷ 10 = 30 miles per gallon.

## Common queries

- How do I calculate miles per gallon?
- How to calculate miles per gallon?
- How can I calculate miles per gallon?
- How can you calculate miles per gallon?
- What's the way to calculate miles per gallon?
- What is the process to calculate miles per gallon?

## Related

### Easier
- [What is a unit rate?](https://answerkb.com/education/6/math/what-is-a-unit-rate/)
- [How do you calculate unit price?](https://answerkb.com/how-to/money/how-do-you-calculate-unit-price/)

### Harder
- [How many km/h is 60 mph?](https://answerkb.com/how-to/units/how-many-km-per-h-is-60-mph/)

### Siblings
- [How do you calculate unit price?](https://answerkb.com/how-to/money/how-do-you-calculate-unit-price/)
- [What is a unit rate?](https://answerkb.com/education/6/math/what-is-a-unit-rate/)
