Gas Mileage Calculator
Test cases replayed : 2 of 2 match · Methodology · No outside source listed
Fill the tank, note the odometer, drive, fill again and enter the gallons it took.
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.
Affiliate link
This is an affiliate link. As an Amazon Associate I earn from qualifying purchases. This does not change the result.
Search Amazon for mileage log books. Visit Amazon
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 driven since the last full tank ÷ gallons to refill. L/100 km = 235.215 ÷ MPG (from 3.785411784 L per gallon and 1.609344 km per mile).
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
How do I calculate my gas mileage?
Fill up, reset the trip meter, drive, fill up again and divide the miles by the gallons.
Is the dashboard MPG accurate?
Trip computers are often a few percent optimistic; the fill-up method is the reference.