Skip to content
CalculatorBuddy

Gas Mileage Calculator

Calculate MPG, km/L, L/100 km, distance traveled, fill expense, and fuel cost per distance from odometer readings.

U.S. Units

ExampleSample values — edit any field to see your result.

miles
miles
gallons
per gallon

Results update as you type.

Gas Mileage

24 mpg

Estimated result

Other Units
9.8 L/100 km or 10.2 km/L
Distance Traveled
360 miles
Fill Expense
$45.00
Cost per Distance
$0.125 per mile
Distance per $1
8 miles per $

Calculate fuel economy from two odometer readings and the fuel added at the second fill. Optional fuel price adds fill cost and unit-cost results.

Formula

In U.S. units, mpg = miles traveled / gallons. In metric units, km/L = kilometers traveled / liters and L/100 km = 100 / (km/L).

Examples

U.S. default

Driving 360 miles on 15 gallons gives 24 mpg, or 9.8 L/100 km. At $3 per gallon, the fill costs $45 and fuel costs $0.125 per mile.

Frequently asked questions

How do I calculate gas mileage accurately?
Fill the tank, record the odometer, drive normally, refill, then enter the two readings and the fuel needed for the refill.
What units are available?
U.S. mode reports mpg with L/100 km and km/L conversions. Metric mode reports km/L, L/100 km, and mpg.
Is fuel price required?
No. Leave it blank to calculate mileage only. When supplied, the calculator adds fill expense and cost per mile or kilometer.
Why must the current odometer be larger?
The traveled distance is the current reading minus the previous reading, so a non-positive difference cannot represent the trip.

Related calculators