Trip Mileage Tracker screenshot

Trip Mileage Tracker

Turn a pasted list of odometer readings into total distance and per-leg distances.

Privacy First
0 Runs
Updated 2026-11-06
No upload
Runs in this tab
No signup

The total is the last reading minus the first, and each leg is the difference between neighbouring readings. The page prints the total, every leg and the longest leg.

At least two readings are needed and they must not decrease; a reading lower than the one before it is refused with both values named, because an odometer does not run backwards. The page neither stores nor plots the trip.

The pasted readings are the entire input, so the same list prints the same mileage every time.

Odometer readings are the input and the total is the last minus the first: 12000, 12045.5 and 12100 give 100, with each leg the difference between neighbours — 45.5 and 54.5.

Fewer than two readings is refused, because there is no distance between one point and itself, and a reading lower than the one before it is refused too: an odometer does not run backwards.

How to use it

Paste the odometer readings one per line, then press Run. Three lines: the total distance, each leg in order, and the longest leg with the note that the readings are yours.

The arithmetic

Each leg is readings[i] − readings[i−1] and the total is the last minus the first, so the legs always sum to the total. The unit is whatever the odometer counts — kilometres or miles — and the page does not convert it.

What to Expect

Best for

  • Turning a list of odometer readings into per-leg and total distances.

What this tool keeps

  • The total, every leg and the longest leg, in the unit you pasted.

Sample input

Readings 12000, 12045.5, 12100.

Sample output

Total distance = 100 2 legs: 45.5, 54.5 Longest leg = 54.5; the readings are the ones you pasted

Frequently asked questions

Why was a reading refused?

Because it was lower than the one before it. A resettable trip meter, or a paste out of order, produces that, and the message names the position and both values.

Does it convert miles to kilometres?

No. The unit is whatever the odometer shows, and the page adds and subtracts without converting. Convert the total afterwards if you need the other unit.

Can I include a trip-meter reset?

Not as a lower reading. If the meter was reset mid-journey, split the paste at that point or add the reset distance by hand.

Developer program

Build custom tools for your store

Join the SDK program to create useful ecommerce utilities for your store.