beacen.

Elevation field answer 015

Why elevation gain differs between apps

The short answer

Apps can report different ascent totals even when they follow exactly the same line. Some preserve the elevations in the GPX, others sample a terrain model, and each can filter small rises differently. On one published track, adding every rise gives 311 m of ascent. Smoothing the same heights first gives 308 m.

The main cause

Which elevations did each app start with?

A recorded activity can obtain height from a barometric altimeter, from satellite positioning, or from a combination of sensors. An imported route may contain elevation values in the file. A service can also replace or correct those values using a digital elevation model, which assigns a terrain height to positions along the route.

Each source has limits. Air pressure changes and blocked sensor ports affect barometers. GPS vertical measurements are generally noisier than horizontal position. Terrain models have a finite resolution and accuracy, and they represent the mapped ground rather than a bridge, building or every small feature beneath a tree canopy.

On the deviceBarometric height

Often smooth and responsive, but sensitive to pressure and calibration.

From locationGPS elevation

Available widely, with vertical noise that can create false rises and falls.

From a mapTerrain model

Consistent for a given dataset, but limited by resolution, source quality and coverage.

After measurement

Small calculation choices accumulate across a long route.

Elevation gain adds accepted upward changes. Raw height data often moves up and down by small amounts even on level ground. If every fluctuation counted, the total would be inflated. Services therefore smooth the profile, remove outliers or require a change to exceed a threshold before treating it as genuine climbing.

  • Point spacingA dense series may capture short rises that a coarser series skips. It may also contain more noise for the software to handle.
  • Smoothing strengthMore smoothing suppresses small fluctuations, including some real undulations. Less smoothing can count noise as ascent.
  • Correction methodA service may preserve trusted barometric data but replace other elevation values with its own basemap.
  • Route matchingSlightly different horizontal points can sample different terrain cells, especially beside steep slopes.

Worked route

One GPX file gives 311 m or 308 m of ascent.

We used the Cascade de la Pisse GPX from Parc national des Écrins, a circuit above Châteauroux-les-Alpes. The publisher's file downloaded on 25 October 2026 has 860 track points in one segment. Its first and last elevations are both 1,307 m. Both calculations use the same points, in file order, and exclude the separate points of interest.

  • Original elevations: 311 mSubtract each track point's elevation from the following one and add the positive differences.
  • Five-point median: 308 mFor each interior point, take its original elevation and the two original elevations on either side. Sort the five values and take the middle one. Keep the first two and last two elevations unchanged. Add the positive differences in this new sequence.

At points 28 to 32, counting from one, the file reads 1,329, 1,329, 1,328, 1,328 and 1,329 m. The return from 1,328 to 1,329 adds a metre of ascent. The median gives 1,329 m at all five positions, so that metre disappears. That short dip accounts for one metre of the three-metre difference across the circuit.

These are two calculations on the published track. Smoothing removes brief dips as well as brief peaks. The GPX alone cannot tell us whether that dip existed on the ground.

Two different estimates

A planned route and a completed activity need not agree.

The planned route is normally calculated from its drawn line and a terrain dataset. The activity reflects the positions and heights captured by the carried device, followed by any corrections made by the app or service. Minor deviations, pauses, poor fixes and a changed path can alter the activity total even when the outing broadly followed the plan.

Imports add another layer. The receiving service may trust the elevations inside the GPX file, recalculate them, or apply its own filtering. The number can therefore change without the horizontal route changing visibly.

A useful comparison

Choose one consistent reference for planning.

  1. Match

    Check that the route geometry is the same.

    Compare distance, start, finish and obvious detours. A different line should produce a different elevation result.

  2. Identify

    Find out whether the value is planned or recorded.

    Do not treat terrain-model ascent and device-recorded ascent as interchangeable measurements.

  3. Inspect

    Look at the profile, not only the headline total.

    Sharp isolated teeth often suggest noise. Broad climbs appearing in both profiles are more likely to describe the actual terrain.

  4. Repeat

    Use the same source for like-for-like decisions.

    Consistency makes it easier to compare the likely effort of several candidate routes, even when another service would calculate a different absolute total.

Investigate a large discrepancy, but avoid false precision. Elevation gain is an estimate derived from sampled data. What is elevation gain? explains the statistic itself.

The most useful number is one whose source and purpose you understand.

Sources & scope

What this answer is based on.

The worked example uses the original Parc national des Écrins GPX downloaded on 25 October 2026 under the Licence Ouverte. The two totals illustrate the stated calculations. Individual apps may use different inputs, filters and thresholds.

More in Elevation and gradient

Related questions