What Is Elevation Analysis?
Elevation analysis is the process of examining the vertical profile of a route — total ascent, total descent, maximum and minimum altitude, gradient percentages, and the distribution of climbing across a course. For runners, cyclists, and hikers, elevation is one of the most important factors affecting effort, pace, and energy expenditure. A route with 500 metres of climbing requires fundamentally different pacing and nutrition than a flat course of the same distance. GPS-based elevation data from consumer devices can be noisy, with barometric altimeters typically being more accurate than GPS-only elevation. This tool processes your GPX file to calculate elevation statistics and render an interactive elevation profile chart.
Common Elevation Data Issues
GPS-derived elevation is notoriously inaccurate — errors of 10–30 metres are common. Barometric altimeters (found in higher-end Garmin, Suunto, and Apple Watch Ultra) are more precise but drift over long activities and need periodic calibration. If your elevation profile shows unrealistic spikes, your GPX file likely has GPS-only elevation data. Short tunnels, bridges, and overpasses can also create artifacts. For race planning, compare your tool results with official course profiles — race organizers typically use surveyed elevation data that's more accurate than any consumer GPS device.
How to Analyze Route Elevation
GPX (GPS Exchange Format) files are the universal standard for GPS route data. They contain latitude, longitude, elevation, and optionally timestamps for each tracked point. This tool reads the elevation values from each track point to compute statistics and render the profile.
How to Get a GPX File
- Garmin Connect: Open activity → ⋯ More → Export to GPX
- Strava: Open activity → ⋯ → Export GPX (requires account)
- Komoot / RideWithGPS: Routes have direct GPX download buttons
- FIT files: Use our FIT to GPX converter
Cycling Climb Categories
Climb categories follow the French cycling system used in the Tour de France. The higher-category climbs are harder: HC (Hors Catégorie) is the hardest, followed by Cat 1 through Cat 4. The category is calculated from a combination of distance and average grade — a long, steep climb earns HC; a short, gentle hill may be Cat 4 or uncategorized.
How Total Elevation Gain Is Computed
Every GPX track is a sequence of points, each carrying a latitude, longitude, elevation value, and optionally a timestamp. To calculate total elevation gain, the tool walks through every consecutive pair of points and accumulates the positive differences in elevation. If point B is higher than point A, the difference is added to the running gain total. If point B is lower, the difference is added to the loss total. Flat or identical readings contribute nothing to either counter.
Raw GPS elevation is noisy: the signal can jump by several metres between adjacent readings even on perfectly flat ground. To prevent this noise from inflating the gain figure, most analyzers apply a smoothing threshold, counting only differences that exceed a minimum value (commonly 2-5 metres). Without smoothing, a route that is technically flat might report hundreds of spurious metres of gain. The exact threshold varies by tool and device firmware, which is why total elevation gain figures can differ between Garmin Connect, Strava, and third-party apps for the same recorded activity.
GPS Elevation vs. Barometric Elevation
Consumer GPS receivers determine elevation by triangulating signals from multiple satellites. Horizontal position is typically accurate to within a few metres, but vertical accuracy is roughly two to three times worse, with errors of 10-30 metres being common. This is because the satellite constellation is spread around the horizon, giving strong horizontal coverage but weaker vertical resolution.
Higher-end sports watches from Garmin, Suunto, Coros, and similar brands add a barometric pressure sensor alongside GPS. By measuring atmospheric pressure, the device estimates altitude changes with much finer resolution, often within 1-3 metres over a typical workout. The downside is that barometric readings drift slowly as weather systems move through, and the sensor requires periodic auto-calibration, usually by cross-referencing a known GPS fix or a digital elevation model (DEM). Some platforms, including Strava and Garmin Connect, apply server-side DEM correction to replace raw GPS elevation with surveyed terrain data, which is why uploaded elevation figures sometimes differ from the values your watch displayed during the activity.
Understanding Gradient and Grade
Gradient (also called grade or slope) describes how steeply a road or trail climbs or descends. It is expressed as a percentage: rise divided by horizontal run, multiplied by 100. A road that rises 10 metres over 100 metres of horizontal distance has a 10% gradient. In practice, GPS tracks store three-dimensional slant distance along the surface, but for gradients under roughly 15% the difference between slant and horizontal distance is small enough to ignore.
When reading an elevation profile chart, the steepness of the line at any point corresponds to the local gradient. A near-vertical rise in the chart indicates a very steep climb. Sustained sections above 10% are challenging for most cyclists and runners; grades above 20% often require hiking on foot or extreme exertion on a bike. Professional cycling events regularly feature categorized climbs with average gradients between 6% and 10% sustained over many kilometres.
Worked Example: Reading an Elevation Profile
Suppose your GPX file covers a route that starts at 120 m elevation, climbs steadily to 600 m over the first 8 km, then descends back to 150 m over the remaining 6 km. Total distance: 14 km. Total gain: 480 m. Total loss: 450 m. Average gradient of the climb: 480 m rise divided by 8,000 m run, multiplied by 100, equals 6%. That is a moderately demanding sustained climb, comparable to many Alpine cycling roads. The elevation profile chart would show a long upward slope followed by a shorter, steeper descent. A climb categorization algorithm evaluating total length times average gradient would likely rate this as a Category 1 or Category 2 climb in the French cycling system.
Using Elevation Data to Pace Hilly Races
For runners and cyclists, climbing costs significantly more energy than travelling the same distance on flat ground. A widely used rule of thumb in running is that each 100 m of ascent adds roughly 8-10 minutes of equivalent flat running time, though the exact figure depends on fitness level and running economy. By studying the elevation profile before a race, you can identify where the major climbs occur and plan your effort accordingly. Starting too fast before a big climb is one of the most common pacing errors in hilly events.
Cyclists can use the gradient data from an elevation profile together with power output targets to plan effort for each climb segment. Riding the opening kilometres of a long climb slightly below threshold helps preserve the ability to maintain pace on the steeper sections higher up. Reviewing the elevation profile in the days before an event, rather than for the first time on race morning, allows you to rehearse the effort mentally and adjust nutrition and hydration timing around the hardest climbing sections.
Frequently Asked Questions
Why does my total elevation gain differ between Strava, Garmin Connect, and this tool?
Each platform applies its own smoothing threshold and may apply DEM correction to replace raw GPS readings with surveyed terrain data. Strava, for example, uses a global DEM dataset that often produces lower gain figures than the raw barometric data from your watch. This tool reads the elevation values exactly as stored in your GPX file, with a small smoothing threshold to reduce GPS noise, so results will match neither Strava nor Garmin Connect exactly.
Can I analyze a planned route rather than a recorded activity?
Yes. Route planning apps such as Komoot, RideWithGPS, and Strava all let you export a planned route as a GPX file. These route GPX files typically use elevation data sourced from a digital elevation model rather than live GPS, so the figures tend to be more consistent than a recorded-activity GPX from a handheld device.
What does HC (Hors Categorie) mean for a climb?
HC stands for Hors Categorie, French for beyond category. It is the highest difficulty designation in the French cycling climb classification system and is assigned to the longest, steepest climbs that exceed the Category 1 threshold. The classification is based on a combination of climb length and average gradient. Famous HC climbs include Alpe d'Huez (approximately 13.8 km at an average gradient near 8%) and Mont Ventoux.
Is my GPS data uploaded or stored anywhere?
No. All file processing happens entirely in your browser using JavaScript. Your GPX file is never sent to a server. Once you close or reload the page, all data is gone from memory.