SpeedX
SpeedX
2026-11-25 ยท gps trip tracking route-stats

Why Does the Same GPX File Show Different Distances?

Two apps can show different distances for the same GPX file because each can calculate the length from the track points it uses. One may leave a gap between track segments, while another joins the ends. Small differences can also come from rounding. Start by comparing the same track in the same units, then look for gaps and jumps on the map.

A phone displaying a blue route line beside a winding trail

What does a GPX file say about distance?

A GPX 1.1 track contains ordered points, grouped into segments. Each point has latitude and longitude and may include elevation or time. The standard track fields have no required total-distance value. A recorder can show a distance it calculated during the activity, while an importer can calculate a new total from the saved points. Some formats and extensions can carry additional distance data, so check what your app is using. GPX 1.1 schema ยท Stravaโ€™s distance calculation guide

How a gap can change the total by 120 metres

Imagine a file with two track segments. The points in the first segment add up to 800 m, and the points in the second add up to 1,100 m. The end of the first segment and the start of the second are 120 m apart in a straight line.

  • Adding distances within each segment gives 1,900 m.
  • Connecting the two segments adds 120 m, giving 2,020 m.

Both totals can come from the same points. The extra line is an estimate across the gap, so it tells you little about the actual path taken there. GPX 1.1 uses separate track segments to represent disconnected periods of recording, such as after a GPS outage. GPX 1.1 track segment definition

How to find the cause in your file

  1. Match the file, track and units. Import the same untouched export into both apps. If it contains multiple tracks, select the same one. Compare metres or kilometres at the same display precision.
  2. Look for straight lines across gaps. Zoom in near tunnels or places where recording stopped. Check whether either app draws a line between the two sides and includes it in the total.
  3. Inspect bends and stops. Widely spaced points can cut across curves and shorten the calculated path. Scattered fixes while you stood still can add small zigzags. Apps that filter these points differently can produce different totals. Stravaโ€™s GPS distance methods ยท GPS.gov on positioning errors
  4. Check the source of the displayed distance. A deviceโ€™s trip summary can include information that the GPX export omits. When comparing weekly totals, use the same recorder or the same import method each time. Keep the original file separate from any trimmed copy.

Related guides

Related Articles