Skip to content
GasBudgeter logo
$4.27/gal

Mileage Calculator

📍
miles
💧
gallons

How to Use This Calculator

1

Fill the tank and zero the trip meter

Fill until the pump clicks off, then reset the trip meter or write down the odometer reading.

2

Drive, then fill up again

Enter the trip meter miles as Distance Traveled and the gallons on the second receipt as Fuel Used.

3

Combine several tanks for a steadier average

Add the miles and the gallons before dividing: 300 + 340 miles on 10.5 + 11.5 gallons is 640 ÷ 22 = 29.1 MPG.

Formula and Logic

Divide the miles driven by the gallons used. The calculator rounds the result to one decimal.

MPG = Miles Driven ÷ Gallons Used

Both numbers must cover the same stretch of driving. If you top up partway, add those gallons to the fill that closes the stretch, or the result will come out too high.

Example Calculations

Example 1: Daily commuting

Inputs

Distance traveled320 miles
Fuel used11.2 gallons

Result

28.6 MPG

320 ÷ 11.2 = 28.6 MPG, which the calculator rates Average (22 to 29.9 MPG).

Example 2: Short city driving

Inputs

Distance traveled150 miles
Fuel used6 gallons

Result

25.0 MPG

150 ÷ 6 = 25.0 MPG, also Average. Braking, idling and stop and go traffic usually pull city results below highway ones.

Example 3: Highway road trip

Inputs

Distance traveled420 miles
Fuel used12 gallons

Result

35.0 MPG

420 ÷ 12 = 35.0 MPG, rated Good (30 to 39.9 MPG). Steady driving at a consistent speed on open roads often gives results like this.

What a Few MPG Points Are Worth

A 5 MPG difference sounds small until you price it. Driving 1,000 miles a month at 25 MPG burns 40 gallons; at 30 MPG it burns about 33.3. At an example price of $3.80 a gallon, that 6.7 gallon gap is worth about $25 a month, or roughly $300 a year, without driving a single mile less.

That is the practical reason to measure your real MPG every few fill ups. A slow drop from underinflated tires or a maintenance problem shows up in this number before it shows up anywhere else.

Frequently Asked Questions

What is the most accurate way to measure my MPG?
Use two full fill ups. Fill the tank, zero the trip meter, drive normally, then fill again and divide the trip meter miles by the gallons on the second receipt: 312 miles on 11.8 gallons is 26.4 MPG. Repeating this over several tanks and adding the totals gives a steadier average.
What do the Excellent, Good and Average ratings mean?
They are fixed bands in the calculator: 40 MPG or more is Excellent, 30 to 39.9 is Good, 22 to 29.9 is Average, 15 to 21.9 is Below Average and anything under 15 is Poor. The bands are the same for every vehicle, so a large pickup can land in Below Average while running normally for its size.
Can I use a partial fill up?
Only if you count every gallon added since the last full tank. If you add 5 gallons midweek and then fill up with 7, the fuel used is 12 gallons. Entering just the 7 would turn 300 miles at 25.0 MPG into a misleading 42.9 MPG.
My car's display shows a different MPG. Which is right?
When they disagree, trust the pump. The calculator uses the gallons you actually bought, so if the display says 30.0 but 330 miles took 11.8 gallons, your real figure is 28.0 MPG.
How much does my MPG change my fuel cost?
Fuel cost per mile is the gas price ÷ MPG. At an example price of $3.50, 25 MPG costs 14 cents a mile and 30 MPG about 11.7 cents. Over 12,000 miles a year that is $1,680 against $1,400, a $280 difference.
How do I work out MPG from kilometers and liters?
Convert first: miles = km ÷ 1.609 and US gallons = liters ÷ 3.785. 500 km on 40 liters is about 310.7 miles on 10.57 gallons, or 29.4 MPG. The same drive is 8 liters per 100 km.

Related Tools