Elevation Gain Calculator
Upload a GPX track or paste elevations to get total ascent and descent, net change, distance, average climbing grade, the steepest 100 m stretch and a Naismith hiking time. A smoothing threshold removes GPS noise that inflates gain.
Use the Elevation Gain Calculator
Route Elevations
No file loaded. You can also paste elevations below.
Distance is read from the GPX when a file is loaded. Smoothing: 0 = every change; 2–5 m (5–15 ft) for GPS tracks.
Sample Trails
Elevation Profile
Upload a GPX file or enter elevations, then click Calculate
Worked example
Elevations 1200, 1350, 1280, 1500 m: rises are 150 and 220 m, so gain = 370 m; the one drop gives loss = 70 m; net = 1500 − 1200 = +300 m. Over 3 km, the 370 m of climbing adds 370 ÷ 600 = 0.62 h to 3 ÷ 5 = 0.6 h, a Naismith time of about 1 h 13 min. With a 100 m threshold the 70 m dip is ignored and gain becomes the net 300 m.
Summary
Total elevation gain is the sum of every rise along a route; total loss is the sum of every drop. Net change is just the end elevation minus the start. GPS and DEM elevations carry noise of a few metres, and summing every wiggle inflates gain, so this calculator applies an optional threshold (hysteresis): a rise or drop only counts once it exceeds the threshold from the last counted point. Upload a GPX file and it is parsed entirely in your browser; distances come from the latitude and longitude of each point (haversine, horizontal). With a distance the tool also reports the average climbing grade, the steepest 100 m stretch and a Naismith estimate: 1 hour per 5 km (3 miles) plus 1 hour per 600 m (2,000 ft) of ascent.
How it works
- Upload a .gpx file (track points, route points or waypoints with <ele>), or paste one elevation per line in metres or feet.
- For a pasted list, enter the total route distance to unlock grade and Naismith time; points are assumed evenly spaced.
- Set a smoothing threshold: 0 sums every change (exact for surveyed waypoints); 2–5 m (5–15 ft) suits GPS tracks. The raw total is shown alongside.
- Gain counts a rise once the elevation has climbed at least the threshold above the last counted point; loss works the same way downhill.
- Read total ascent and descent, net change, distance, climbing grade, steepest 100 m stretch and Naismith time, and check the elevation profile chart.
Use cases
- Getting total ascent and descent from a GPX file exported from Strava, Garmin Connect, AllTrails or Gaia GPS.
- Comparing two trail options by cumulative gain and steepest grade.
- Seeing why a watch and an app report different ascent, by changing the smoothing threshold.
- Estimating hiking time with Naismith's rule before a day hike.
- Converting a spreadsheet column of waypoint elevations into gain, loss and min/max stats.
- Finding total vertical drop for a ski run or mountain bike descent.