Strava has changed their elevation algorithm.
#26
Advocatus Diaboli

Joined: Feb 2015
Posts: 9,143
Likes: 1,736
From: Wherever I am
Bikes: Merlin Cyrene, Nashbar steel CX
I recorded all these as separate rides for ease of comparison. 1 ride there, 5 rides for the hill up and down and 1 ride home for a total of 7 rides.
On Strava (and Garmin) the total elevation gain for the ride to the hill was 135m.
The 5 hill repeats were each either 103 or 104m so not much variation there.
The ride home was a total elevation gain of 196m.
The next step was to use the Strava elevation correction on each ride.
For the hills the Strava elevation correction consistently gave 101m (versus 103-104 for the Garmin altimeter).
For the ride to the hill the elevation correction gave 92m (versus 135 for the Garmin).
For the ride back home the elevation correction gave 157m (versus 196 for the Garmin).
So there is a bit of a difference for the rides to and from the hill so I wanted to figure out what was the reason for this. .
On Strava (and Garmin) the total elevation gain for the ride to the hill was 135m.
The 5 hill repeats were each either 103 or 104m so not much variation there.
The ride home was a total elevation gain of 196m.
The next step was to use the Strava elevation correction on each ride.
For the hills the Strava elevation correction consistently gave 101m (versus 103-104 for the Garmin altimeter).
For the ride to the hill the elevation correction gave 92m (versus 135 for the Garmin).
For the ride back home the elevation correction gave 157m (versus 196 for the Garmin).
So there is a bit of a difference for the rides to and from the hill so I wanted to figure out what was the reason for this. .
The ride to the hill is -135m? The ride back home from the hill therefore should be +135m? Or you have no idea which of any of these figures is correct? The troubling part is evidently depending on what you look at the range is from 92m to 196m?
Also curious, did you ever also try Garmin's elevation correction available by enabling in Connect?
#27
So there is a bit of a difference for the rides to and from the hill so I wanted to figure out what was the reason for this. I took the raw data from the Garmin fit file (I loaded the file into Golden Cheetah which lets you look at the actual ride data and it is a simple matter to copy the elevation data) and put it into a spreadsheet. I then added each increase in elevation and summed these. These totals matched the Garmin figures.
The next thing I did was download the GPX file from Strava which has the elevation corrected data. I took that data and put it into the spreadsheet to compare it against the Garmin data. For the ride back home the sum of the elevation points was 190m (versus 196m for the Garmin data).
It's interesting looking at the individual entries for the Garmin as the minimum elevation gain is 0.4m (in fact the Garmin data was only one of three possible values, either 0, 0.4m or 0.6m) while the Strava elevation correction data would have variations as low as 0.1m.
The next thing I did was download the GPX file from Strava which has the elevation corrected data. I took that data and put it into the spreadsheet to compare it against the Garmin data. For the ride back home the sum of the elevation points was 190m (versus 196m for the Garmin data).
It's interesting looking at the individual entries for the Garmin as the minimum elevation gain is 0.4m (in fact the Garmin data was only one of three possible values, either 0, 0.4m or 0.6m) while the Strava elevation correction data would have variations as low as 0.1m.
Good job. I have a question: does the Garmin data include the actual elevations or only the differences in these 0.4m units?
#28
Member
Joined: Aug 2006
Posts: 185
Likes: 1
From: Nashville, TN
#29
Perceptual Dullard

Joined: Sep 2009
Posts: 2,916
Likes: 1,754
#30
1. Determine the altitudes of all local minima and maxima of elevations.
1a. I would smooth the data first, but that's not necessarily required
1b. Just graph the elevations and choose the tops of humps and bottom of valleys
2. Sum local maxima minus the sum of local minima
2a. the same number of each
2b. start from a local minimum if we're interested in amount climbed.
local maximum is the point where the ride shifts from going up to going down, and vice versa for the minimum.
Adding the deltas is OK if that's all the information you have, but it will always build up errors from rounding and measurement variations, especially when it's already smoothed (such as the .4m increments).
#31
Senior Member

Joined: Jul 2006
Posts: 9,158
Likes: 1,743
From: Lebanon (Liberty Hill), CT
Bikes: Canyon Aeroad, CAAD 12, MASI Gran Criterium S, Colnago World Cup CX, Guru steel & Guru Photon
Just found out that Strava has changed their algorithm for calculating elevation for devices without a barometer (ie iPhones etc). Looks like they have changed from using the various free digital elevation maps to creating their own database based on other riders with a barometer. I remember them talking about working on this last year and it looks like they have finally implemented it.
I just tried using the new elevation algorithm on a ride I did today. With barometer it gave 623m but with elevation correction it came down to 402m.
https://support.strava.com/hc/en-us/...s/115000024864
I just tried using the new elevation algorithm on a ride I did today. With barometer it gave 623m but with elevation correction it came down to 402m.
https://support.strava.com/hc/en-us/...s/115000024864
#32
Non omnino gravis
Joined: Feb 2015
Posts: 8,552
Likes: 1,739
From: SoCal, USA!
Bikes: Nekobasu, Pandicorn, Lakitu
I've never had Strava give me an inflated elevation number, ever. This just means I'm going to get boned on elevation gain even more than I have in the past. For while the Garmins I've owned have been consistent, they also read consistently low-- I've done a climb into the local mountains half a dozen times, and know the listed elevations for both the start and the finish: 1,320ft at my house, and 6,140ft for the end point. That's 4,820 feet of absolute veritcal, if the road just constantly climbed from point A to point B. It of course does not, and there are several dips and drops along the way. Strava has never given me more than 4,600 feet on any trip. If I were to use altitude correction, it would likely chop off another couple hundred. But hey, Strava already rounds everything down except calories, so we shouldn't be at all surprised.
#33
Thread Starter
Senior Member
Joined: May 2015
Posts: 1,003
Likes: 13
Wow, quite an endeavor! I'm troubled or confused by the ride data to vs from the hill.
The ride to the hill is -135m? The ride back home from the hill therefore should be +135m? Or you have no idea which of any of these figures is correct? The troubling part is evidently depending on what you look at the range is from 92m to 196m?
Also curious, did you ever also try Garmin's elevation correction available by enabling in Connect?
The ride to the hill is -135m? The ride back home from the hill therefore should be +135m? Or you have no idea which of any of these figures is correct? The troubling part is evidently depending on what you look at the range is from 92m to 196m?
Also curious, did you ever also try Garmin's elevation correction available by enabling in Connect?
As we are talking about cumulative elevation gains the Total Ascent should never be a negative number. The ride to the hill has 135m of Total Ascent even though I start at 85m elevation and end at 24m. Because there are a lot of hills between those two points the elevation gains going up the hills adds up to give the Total Ascent. If there was a straight road between the start and end points then the Total Ascent would have been zero.
The ride back home has a total of 196m elevation gains. In theory, the Total Descent for the ride to the hill should equal the Total Ascent (196m) for the ride back home. Likewise, the Total Ascent (135m) for the ride to the hill should equal the Total Descent for the ride back home.
I don't use Garmin Connect (I'm not that bored) so can't tell you about their elevation correction methods.
#34
Thread Starter
Senior Member
Joined: May 2015
Posts: 1,003
Likes: 13
In that case instead of adding up all of the delta's it would be more accurate to:
1. Determine the altitudes of all local minima and maxima of elevations.
1a. I would smooth the data first, but that's not necessarily required
1b. Just graph the elevations and choose the tops of humps and bottom of valleys
2. Sum local maxima minus the sum of local minima
2a. the same number of each
2b. start from a local minimum if we're interested in amount climbed.
local maximum is the point where the ride shifts from going up to going down, and vice versa for the minimum.
Adding the deltas is OK if that's all the information you have, but it will always build up errors from rounding and measurement variations, especially when it's already smoothed (such as the .4m increments).
1. Determine the altitudes of all local minima and maxima of elevations.
1a. I would smooth the data first, but that's not necessarily required
1b. Just graph the elevations and choose the tops of humps and bottom of valleys
2. Sum local maxima minus the sum of local minima
2a. the same number of each
2b. start from a local minimum if we're interested in amount climbed.
local maximum is the point where the ride shifts from going up to going down, and vice versa for the minimum.
Adding the deltas is OK if that's all the information you have, but it will always build up errors from rounding and measurement variations, especially when it's already smoothed (such as the .4m increments).
Receives the current altitude.
Compares that to the last recorded altitude.
If difference is less than 0.4m the last recorded altitude is written as the current altitude
If the difference is more than 0.4m then the current altitude is written.
This eliminates small variations which you might get riding on a flat road. For example, consider the following 10 seconds of elevation data:
23.4, 23.5, 23.6, 23.5, 23.6, 23.4, 23.3, 23.4, 23.5, 23.6
Garmin will record this as:
23.4, 23.4, 23.4, 23.4, 23.4, 23.4, 23.4, 23.4, 23.4, 23.4
Only when the elevation gets above 23.8 or below 23.0 will the recorded data change.
By recording data like this Garmin is reducing minor variations and effectively smoothing the data.
Any rounding errors will actually work themselves out. If you start a climb at 25m and end at 135m Garmin should always give you 110m elevation gain as long as each elevation data point is greater than or equal to the previous point.
If we look at what strava is doing consider this set of elevation data:
23.4, 23.5, 23.6, 23.7, 23.8, 23.9, 24.0, 24.1, 24.2, 24.3
We can see there is a total of 1.0m elevation gain but because of the way Strava is adding things up, because the difference between each point is less than 0.15m Strava discards the data so Strava would report this set as 0m elevation gain.
Garmin would record this as something like this:
23.4, 23.4, 23.4, 23.4, 23.8, 23.8, 23.8, 23.8, 24.2, 24.2
This would give a total gain of 0.8m. Sure it's off by 0.2m but due to this method the error would only ever be +/- 0.4m regardless of the size of the hill (in theory).
#35
Has a magic bike
Joined: Aug 2013
Posts: 12,590
Likes: 425
From: Los Angeles
Bikes: 2018 Scott Spark, 2015 Fuji Norcom Straight, 2014 BMC GF01, 2013 Trek Madone
I have been riding along a cliff on Catalina Island & had my Garmin track show me as being in the ocean for parts of the ride. That was pretty amusing. I should go back & look at elevation gain data from that one, because there's probably 100 vertical feet difference between where I actually was and where my Garmin thought I was. Although I'm pretty sure my elevation gain data is all barometric data from the Garmin unit itself.
Interesting. But again: I don't really care that much.
#36
Perceptual Dullard

Joined: Sep 2009
Posts: 2,916
Likes: 1,754
#37
If instead Garmin is just doing the step and ignoring anything below a .4m change, until it reads a higher change, then it's potentially missing a lot Anything less than .4 meters, up and then down, isn't recorded. Potentially every other sample could be missing a rise and a drop of up to .4 meters.
Last edited by wphamilton; 01-01-17 at 01:43 AM.
#38
Senior Member
Joined: Dec 2012
Posts: 399
Likes: 2
From: Huntington Harbor, CA
I've never had Strava give me an inflated elevation number, ever. This just means I'm going to get boned on elevation gain even more than I have in the past. For while the Garmins I've owned have been consistent, they also read consistently low-- I've done a climb into the local mountains half a dozen times, and know the listed elevations for both the start and the finish: 1,320ft at my house, and 6,140ft for the end point. That's 4,820 feet of absolute veritcal, if the road just constantly climbed from point A to point B. It of course does not, and there are several dips and drops along the way. Strava has never given me more than 4,600 feet on any trip. If I were to use altitude correction, it would likely chop off another couple hundred. But hey, Strava already rounds everything down except calories, so we shouldn't be at all surprised.
1. Palos Verdes Areas: mostly no strava inflation. 10-20% inflation on the ~800 ft Via Coronel climb. ~20% percent inflation on the "Big One". ~30% inflation on Ganado.
2. Hwy 39 from foothill to Crystal Lake: Strava algorithm would inflate 4500 ft to ~6500 ft.
3. GMR ~20% inflation
4. However, GMR-GRR-Baldy Ski Lift: very little inflation
5. Newport Coast, Pelican Hills, Ridge Park: 30 - 40% inflation
6. Santiago Canyon Rd from West to East, ~20-30% inflation, from East to West, not as much..
..........
#39
Non omnino gravis
Joined: Feb 2015
Posts: 8,552
Likes: 1,739
From: SoCal, USA!
Bikes: Nekobasu, Pandicorn, Lakitu
I need to swap Garmins with you, I guess. 
Last week, I did an 80 miler on Wednesday, 60 miles of it with another rider. My ending elevation, 3,250ft. His, 3,350ft. So apparently, I managed no elevation change in those 20 solo miles. Actually, negative 100ft.
Looking over the numbers, I seems I get a consistent average of elevation under-reported ~5%, and distance by 1%. Sounds like nothing, until you extrapolate it out over the past couple years-- Strava has eaten about 175 miles and 38,000ft of climbing. Jerks.

Last week, I did an 80 miler on Wednesday, 60 miles of it with another rider. My ending elevation, 3,250ft. His, 3,350ft. So apparently, I managed no elevation change in those 20 solo miles. Actually, negative 100ft.
Looking over the numbers, I seems I get a consistent average of elevation under-reported ~5%, and distance by 1%. Sounds like nothing, until you extrapolate it out over the past couple years-- Strava has eaten about 175 miles and 38,000ft of climbing. Jerks.
#40
Senior Member
Joined: Dec 2012
Posts: 399
Likes: 2
From: Huntington Harbor, CA
I need to swap Garmins with you, I guess. 
Last week, I did an 80 miler on Wednesday, 60 miles of it with another rider. My ending elevation, 3,250ft. His, 3,350ft. So apparently, I managed no elevation change in those 20 solo miles. Actually, negative 100ft.
Looking over the numbers, I seems I get a consistent average of elevation under-reported ~5%, and distance by 1%. Sounds like nothing, until you extrapolate it out over the past couple years-- Strava has eaten about 175 miles and 38,000ft of climbing. Jerks.

Last week, I did an 80 miler on Wednesday, 60 miles of it with another rider. My ending elevation, 3,250ft. His, 3,350ft. So apparently, I managed no elevation change in those 20 solo miles. Actually, negative 100ft.
Looking over the numbers, I seems I get a consistent average of elevation under-reported ~5%, and distance by 1%. Sounds like nothing, until you extrapolate it out over the past couple years-- Strava has eaten about 175 miles and 38,000ft of climbing. Jerks.
Yesterday I did my first big ride with elevation gains since 12/17, including Newport Coast Hills in Orange County, CA. To my surprise, I lost ~10% of my Gamin 800 elevation after letting Strava calculating it. I've done same route tens of times and I always gained >30% more elevation using Strava.
The monthly strava climbing challenge will become a lot more difficult this year.
#41
Senior Member

Joined: May 2004
Posts: 12,103
Likes: 96
From: Wilmington, DE
Bikes: 2016 Hong Fu FM-079-F, 1984 Trek 660, 2005 Iron Horse Warrior Expert, 2009 Pedal Force CX1, 2016 Islabikes Beinn 20 (son's)
Has anyone considered a class-action lawsuit against Strava? This miscalculation of altitude change must be causing severe depression worldwide among roadie types. If nothing else, money from the lawsuit could help offset the cost of all that Xanax that makes the reality of lower elevation gain bearable. This is SERIOUS!!11!!
#42
Senior Member
Joined: Dec 2012
Posts: 399
Likes: 2
From: Huntington Harbor, CA
Has anyone considered a class-action lawsuit against Strava? This miscalculation of altitude change must be causing severe depression worldwide among roadie types. If nothing else, money from the lawsuit could help offset the cost of all that Xanax that makes the reality of lower elevation gain bearable. This is SERIOUS!!11!!
In addition, I burned 600 - 800 less calories due to the loss of elevation in my big ride. I had to skip dessert last night.
#43
Senior Member
Joined: Jul 2015
Posts: 269
Likes: 0
From: Brazil (cold South)
Bikes: 1995 Specialized Stumpjumper M2 / 2013 Caloi Carbon Elite 29er / 2015 Cannondale CAADX 105 / 2017 Specialized Roubaix Elite
The Garmin is much more accurate with elevation at places other than sea level, even Garmin admits it's way off at sea level. So I can trust it in the mountains of Virginia where the rides start and end at the same spot as well and the elevation is correct, I also used a GPS app on my phone to check elevation when I was at summits etc and it was close to the Garmin reading. But I also had mapped the rides out on RWGPS and the elevation was accurate with is as well. That's why I wish I could turn off the elevation at sea level.
Other then that, the last time I checked (about 3 years ago) Strava was about 10% more generous in terms of average speed, distance and altitude when compared to an Garmin eTrex, my then brand new 810 and a Echowell cyclocomputer. And at least here, of the people I follow through Strava, it's really easy to see who uses Strava on their cells because of the complaints of lost data and/or weird rectified routes on their ride maps.








