GPX Distance Calculator
Upload your route and calculate exact distances between points.
How to use:
- 1Upload your GPX file
- 2Click the route on the map or the elevation profile to set point A.
- 3Click again for point B — snaps to the nearest point on the trail.
Loading tool...
Common questions
Everything you need to know about measuring GPX distances.
GPX (GPS Exchange Format) is a standard file format for GPS data. It stores your route, waypoints, and elevation as coordinates. Most hiking apps (AllTrails, Komoot, Strava) export GPX files, making it easy to share and analyze your routes.
Different tools use different calculation methods. Many simplify routes to 200–500 points for performance, which can reduce accuracy on detailed tracks. We use your full GPX track for distance math — no point cap or simplification on the path itself. The elevation chart draws a simplified profile for display only; clicks and measurements use the complete track data.
Our tool calculates distance using the Haversine formula, accounting for Earth's curvature. We use your full GPX track for distance math — no simplification on the path. The distance you see is the actual path along your route, not a straight line.
Yes! Click any two points on the map or route profile to measure the distance between them. Clicks on the map snap to the nearest point on the trail. Perfect for planning water resupply points, calculating daily mileage, or analyzing specific trail sections. Click again to start a new measurement.
Yes. The tool calculates horizontal distance regardless of elevation. If your GPX file includes elevation data, you'll also see elevation gain along the segment (total climbing) and net elevation along the route (height change from the earlier to the later point on the trail). If not, you'll still get accurate distance measurements.
Choose between Metric (km, metres), Imperial (miles, feet), or Mixed (miles for distance, metres for elevation — the usual UK hiking convention). Toggle your preference before uploading your GPX file. Distance shows in both your primary and secondary units for easy reference.
100% private. Your GPX file never leaves your browser — all processing happens locally on your device. We don't store, track, or see any of your route data. The map needs network access to load tiles; GPX parsing itself runs entirely on your device.
Absolutely! Use it to calculate distances between waypoints—campsites, water sources, resupply points, or any location on your route. Analyze elevation profiles to plan daily mileage. Pro tip: On desktop, open this tool side-by-side with Trailkeep's Trip Planner—measure waypoint distances here, then input them directly into your trip plan.