GPX Elevation & Distance Stats

Ascent, descent, distance, and pace from any GPX file

Ad placeholder (leaderboard)

Get distance and elevation stats from a GPX file

This tool reads a GPX track and computes the numbers that matter to hikers, runners and cyclists: total distance, cumulative elevation gain and loss, highest and lowest altitude, average grade, and — if the file has timestamps — moving time and pace. It also draws an elevation profile.

How it works

Track points are parsed with the browser’s DOMParser. Distance is the running sum of Haversine great-circle distances between consecutive points. Elevation gain adds up every upward step in the ele series and loss adds up every downward step; a small threshold (the default ignores changes under a couple of metres) suppresses GPS noise so the climb total stays realistic. Average grade is gain over distance as a percent. If timestamps are present, moving time is the span from first to last point and pace is time per kilometre.

Example

For a short loop that climbs from 12 m to 25 m and returns, the tool reports a few hundred metres of distance, roughly 13 m of gain and 13 m of loss, a max of 25 m and a min of 12 m, and — with timestamps — a pace in minutes per kilometre. Everything is computed locally; nothing is uploaded.

Ad placeholder (rectangle)