By Tim King · Updated
GPX Pace Calculator
Route Length, Splits and Average Pace From a GPX File
OneTask is free, with no sign-up, and built by one person.
If this tool saved you time, a coffee helps keep new ones coming.
How the GPX Pace Calculator works
This GPX pace calculator splits a route into paces and finish times. Choose a file and the route is drawn on the map with its total length, elevation gain and loss, elapsed and moving time, and average pace. Each kilometre or mile split is listed under the map and charted as a bar, and the track is coloured green to red by pace so you can see where you slowed. Files without timestamps — a planned route from a mapping site — get an estimated time from the target pace you type.
GPX pace calculator: distance, time and splits
A GPX file from a watch or phone is a list of points with a position, usually an elevation, and a timestamp. Everything a running or cycling app tells you about a workout is derived from that list, and this tool does the same arithmetic in your browser without uploading the file anywhere.
Distance is the sum of the straight-line distances between consecutive points, using the haversine formula on the WGS84 sphere. Watches sample every second or every few metres, so the result is within a fraction of a percent of what the device reported. A route exported from a planning site with only a few hundred points will read slightly short on bendy roads, since corners are cut.
Elapsed versus moving time. Elapsed time is first timestamp to last. Moving time drops every interval where you were travelling under 0.5 metres per second — stopped at lights, waiting at a gate, fiddling with the watch — which is roughly how Strava and Garmin define it, though each uses its own threshold. Average pace is shown for both, and the moving figure is the one that matches what a watch shows as you run.
Splits. The time at each whole kilometre or mile is interpolated between the two points either side of it, so a split is accurate to within one sample. A final partial split appears when the remainder is more than a couple of percent of a unit, with its pace scaled up to a full unit. The elevation column is the net change over that split, and the CSV download has the same rows for a spreadsheet.
Routes without times. KML and GeoJSON exports, and GPX files from planners like
Komoot or Ride with GPS, usually have no timestamps. Enter a target pace such as 5:30 and
the tool projects a finish time and even splits at that pace, which is handy for pacing a
race or estimating how long a planned walk will take. The map tiles are from
OpenStreetMap; the file itself never leaves your computer.
FAQ
Why is my moving time different from Strava's?
Every app draws the line between moving and stopped at a different speed. This tool drops intervals under 0.5 m/s; Strava, Garmin and others use their own thresholds and some also trim GPS jitter differently. Expect the figures to be close, not identical.
Can I use miles instead of kilometres?
Yes. The unit selector switches the splits, the pace and the total between kilometres and miles, and the CSV download uses whichever is selected when you save it.
What if my file has no timestamps?
Type a target pace such as 5:30 and the tool projects a finish time and even splits at that
pace. Planned routes from Komoot, Ride with GPS and similar sites are the usual case.
Does it work with KML or GeoJSON?
Only GPX is read here. Convert the file to GPX first with the
GPX converter; timestamps survive from a KML gx:Track or a
GeoJSON with coordTimes, so the pace figures still come through.
See also: all Maps & GPS tools, Everyday Maths, Loans & Savings, Dates & Time, Health, Home & DIY, Unit Converters, Education, Science, Creative, Garden & Farm, Gaming & PC, Work & Business, Fun, DIY & Building, Cost Estimators, Sport & Clubs.
Related tools
GPX Elevation Profile
Chart the elevation profile of a GPX route with gain and grade.
GPX Viewer
See a GPX track on a map with distance, climb and time.
GPX Converter
Convert GPX, KML and GeoJSON to each other or to CSV.
Map Distance Measurer
Click points on a map to measure a route in km or miles.
Cycling Speed Calculator
Average speed from a ride, or road speed from cadence and gearing.