easyonlinecalculator

Mileage Calculator

Enter the odometer reading at the start and end of a trip, or type a trip distance, to see how many miles you drove. Add the number of days to get miles per day, the fuel used to get your MPG, and the fuel price to get the fuel cost per mile. Everything works in miles or kilometers.

Last updated November 4, 2026

Must not be below the starting reading.

Whole days, for distance per day.

Gallons (US) or liters (metric), for fuel economy.

Dollars per gallon or liter, for fuel cost per distance.

Result

663 miles driven

Mileage calculator results
MeasureValue
Distance (miles)663
In kilometers1,067
Miles per day221
Miles per week1,547
Fuel economy33.15 MPG
Liters per 100 km7.1
Fuel cost$72.00
Fuel cost per mile$0.109
Show the work

Formula: distance = ending odometer - starting odometer; per day = distance / days; MPG = miles / gallons

  1. Distance: 45,873 - 45,210 = 663 miles.
  2. Per day: 663 / 3 = 221 miles; per week: x 7 = 1,547 miles.
  3. Fuel economy: 663 miles / 20 gallons = 33.15 MPG.
  4. Fuel cost: 20 gallons x $3.6 = $72.00; per mile: $72.00 / 663 = $0.1086.

Result: 663 miles driven

How mileage is calculated

Formula

miles driven = ending odometer − starting odometer

per day = miles ÷ days

MPG = miles ÷ gallons

Mileage is the distance a vehicle has covered. Subtract the starting odometer reading from the ending one to get the distance. If you already know the distance from a map or trip meter, type it in directly instead. The ending reading can never be below the starting one, so the calculator reports an error rather than a negative distance.

The optional fields build on that distance. Dividing by the number of days gives miles per day, and multiplying that by seven gives a weekly figure. Dividing the miles by the gallons you burned gives miles per gallon, shown with liters per 100 km as well. Multiplying the fuel used by its price and dividing by the miles gives the fuel cost per mile. In metric mode the distance is in kilometers, fuel is in liters and the price is per liter.

See how we calculate for the formulas, sources and review schedule behind every calculator.

Odometer readings or trip distance

Odometer readings are the most reliable source because they come from the car itself and cover every detour, parking loop and wrong turn. Write the reading down when you set off and again when you stop. A trip meter does the same job if you reset it first, and a map estimate is best kept for planning rather than for records.

Equal readings give a distance of zero, which is valid; the per-day figure then shows zero. Fuel economy needs a distance above zero, so the calculator asks for a real distance before it works out MPG. Odometer readings up to ten million are accepted.

Tracking fuel economy over a tank

For a trustworthy MPG, fill the tank, note the odometer, drive as usual, then fill up again and note the gallons added. Enter the two odometer readings and the gallons from the second fill. Because both fills use the same pump habits, the error is small, and repeating it over several tanks smooths out one-off effects.

If you want to be repaid for business, medical or charity miles, use the mileage reimbursement calculator, which applies an official per-mile rate. This tool only measures distance, pace and fuel; it does not apply any rate.

How to use the Mileage Calculator

  1. Choose US or metric units, then odometer readings or a trip distance.
  2. Enter the starting and ending odometer, or the trip distance.
  3. Optionally add days, fuel used and the fuel price.
  4. Read the miles driven, miles per day, MPG and fuel cost per mile, then use Copy, Print or Share.

Worked example

Worked example

The odometer reads 45,210 at the start of a road trip and 45,873 at the end, over 3 days, using 20 gallons of fuel at $3.60. The distance is 45,873 − 45,210 = 663 miles, which is 221 miles per day. Fuel economy is 663 ÷ 20 = 33.15 MPG, the fuel cost is 20 × $3.60 = $72.00, and that is about $0.109 per mile.

Results for the 663-mile road trip
MeasureCalculationResult
Miles driven45,873 − 45,210663 miles
Miles per day663 ÷ 3221 miles
Fuel economy663 ÷ 2033.15 MPG
Fuel cost20 × $3.60$72.00
Fuel cost per mile$72.00 ÷ 663$0.109

Frequently asked questions

How do I calculate miles driven from the odometer?

Subtract the starting odometer reading from the ending reading. If the car showed 45,210 and then 45,873, you drove 663 miles.

What happens if the ending odometer is lower than the start?

The calculator shows an error, because distance cannot be negative. Check that you did not swap the readings or mistype a digit.

How do I get miles per day for a trip?

Enter the number of days. The calculator divides the distance by the days and also shows a weekly total at the same pace.

Is this the same as the mileage reimbursement calculator?

No. This tool measures distance, daily pace, MPG and fuel cost per mile. Reimbursement applies an official per-mile rate to business, medical or charity miles.

Can I use kilometers instead of miles?

Yes. Choose Metric to enter kilometers and liters. The results show kilometers, liters per 100 km and the equivalent in miles and MPG.