Key takeaways
- The US GPS Standard Positioning Service standard commits to a global average of 8 m horizontal and 13 m vertical error (95 %): vertical error is about 1.6 times larger, because all satellites are above the horizon.
- GPS measures height above the WGS84 ellipsoid. Receivers subtract a geoid model (EGM96 or EGM2008) to show altitude above sea level; the two surfaces differ by up to about 100 m worldwide.
- A barometric altimeter is precise over minutes but drifts with the weather: near sea level, a 1 hPa pressure change equals about 8.3 m of apparent altitude.
- Total elevation gain depends mostly on processing: Strava, for example, counts climbing only after more than 10 m (GPS or DEM data) or more than 2 m (barometric data).
GPS altitude is roughly 1.5 to 1.7 times less accurate than GPS position. The US GPS Standard Positioning Service performance standard (2020) commits to a global average of 8 m horizontal and 13 m vertical error at 95 %, and notes that good receivers achieve about 3 m and 5 m respectively. On top of that, the height you see depends on a geoid model, and the elevation gain an app reports depends far more on smoothing and thresholds than on the receiver itself.
Why vertical error is larger
A receiver computes its position from ranges to satellites. All usable satellites are above the horizon, none below, so the geometry constrains height less well than latitude and longitude. The effect is expressed as dilution of precision: position error is roughly range error multiplied by DOP, and VDOP is usually larger than HDOP.
horizontal error (95 %) ≈ 2 x UERE x HDOP
vertical error (95 %) ≈ 2 x UERE x VDOP
UERE is the user equivalent range error (satellite clock and orbit, ionosphere, troposphere, multipath, receiver noise). The published standard gives the result directly:
| Metric (GPS SPS, 95 %) | Horizontal | Vertical | Ratio V/H |
|---|---|---|---|
| Global average, standard commitment | 8 m | 13 m | 1.6 |
| Worst site, standard commitment | 15 m | 33 m | 2.2 |
| Achieved by well-designed receivers (2018 signal) | 3 m | 5 m | 1.7 |
These are open-sky figures for the signal in space. GPS.gov notes that smartphones are typically accurate to about 4.9 m horizontally under open sky, and much worse near buildings, bridges and trees. In a narrow valley or a forest, vertical errors of 20 m or more are common.
Geoid vs ellipsoid: which “sea level”?
GPS measures ellipsoidal height (h), the height above the WGS84 reference ellipsoid, a smooth mathematical surface. Maps and road signs use orthometric height (H), roughly the height above mean sea level, defined relative to the geoid, the equipotential surface of Earth’s gravity. The difference is the geoid undulation N:
H = h - N
N ranges from about -106 m (south of India) to +85 m (around Iceland). Receivers apply a built-in model, commonly EGM96 or the more detailed EGM2008. Surveyors use national grids: in France, the IGN publishes RAF20, which converts GNSS heights to the NGF-IGN69 levelling system with a standard deviation of about 1 cm against independent control points. A cheap receiver with a coarse geoid table can be off by a few metres before any satellite error is counted.
Barometric altimeters and weather drift
Many bike computers and watches measure air pressure and convert it to height with the standard atmosphere. Pressure falls smoothly with altitude, so short-term changes are captured to within a metre or so, which is why barometric devices give stable elevation gain.
The weakness is weather. Near sea level:
Δh ≈ (R x T / g) x (Δp / p) ≈ 8,434 m x (1 hPa / 1,013 hPa) ≈ 8.3 m per hPa
At 2,000 m (about 795 hPa, 275 K) the figure is about 10 m per hPa. A front that lowers pressure by 3 hPa during a four-hour ride makes the device believe it has climbed about 25 m. Devices recalibrate from GPS or a known altitude at the start, and temperature changes inside the case add further drift.
How apps compute elevation gain
Total ascent is the sum of all positive height differences. Summed naively over thousands of noisy points, it grows without limit: a flat ride with ±1 m random noise per second would “climb” hundreds of metres. Apps therefore apply three steps:
- Choose the source. Barometric heights from the device, raw GPS heights, or heights looked up in a DEM along the track (“elevation correction”).
- Smooth. A moving average or similar filter removes point-to-point noise.
- Apply a threshold or hysteresis. A climb only counts once the height has risen by more than a set amount since the last low point. Strava documents more than 10 m for activities without strong barometric data and more than 2 m with it.
DEM correction removes GPS noise but adds the DEM’s own errors. A 30 m surface model such as Copernicus GLO-30 includes trees and buildings, so a road through a forest or under a bridge can gain phantom metres. A national LiDAR terrain model is much better. The elevation data sources page compares them.
Why two apps disagree on the same ride
The table below is an illustrative example, not a measurement: one hypothetical 60 km rolling ride with about 700 m of real climbing, processed four ways.
| Processing (hypothetical) | Height source | Filter | Reported gain |
|---|---|---|---|
| Raw sum of phone GPS heights | GPS | none | about 1,100 m |
| Phone GPS, app with 10 m threshold | GPS | 10 m hysteresis | about 760 m |
| DEM-corrected track | 30 m DSM | 10 m hysteresis | about 720 m |
| Bike computer | barometer | 2 m threshold | about 730 m |
The pattern is what matters: no filter inflates the total, a large threshold removes small real rollers, and the DEM inherits its own artefacts. Comparing totals is only meaningful with the same source and the same filter.
Practical advice
- For total ascent, trust a calibrated barometric device or a LiDAR-based DEM correction over raw phone GPS.
- For absolute altitude (a summit, a col sign), trust the map and the national survey, not the receiver.
- For gradients over short distances, GPS is unusable: a 5 m error over 100 m is a 5 % error in gradient. Use DEM heights and the gradient calculator.
- To see the effect of the threshold on your own file, load it in the GPX elevation analyzer: it shows raw and filtered gain side by side, and runs entirely in the browser.
- For climb ratings that depend on height gain, see climb categories.
Frequently asked questions
How accurate is GPS altitude?
The US government standard commits to 13 m vertical error at 95 % globally, against 8 m horizontally, and well-designed receivers have achieved about 5 m vertically. A phone under trees or between buildings can be much worse.
Why is GPS less accurate vertically than horizontally?
Satellites are only visible above the horizon, so the geometry constrains height less well than position. The vertical dilution of precision (VDOP) is typically larger than the horizontal one (HDOP).
Why do Strava and Garmin show different elevation gain?
They may use different source data (barometer, GPS or a DEM lookup) and different smoothing and thresholds. Small differences in filtering add up over hundreds of small undulations.
Is barometric altitude better than GPS?
For elevation gain, usually yes, because pressure changes smoothly with height. For absolute altitude it needs calibration, since weather fronts shift pressure by several hectopascals in a few hours.
Sources and open data
- GPS Standard Positioning Service (SPS) Performance Standard, 5th edition (2020), US Department of Defense / GPS.gov
- GPS accuracy, GPS.gov
- Elevation (how Strava computes elevation gain), Strava Support
- Geoid, Wikipedia
- GEOID models, NOAA National Geodetic Survey