Going the distance on Strava

An example Strava distance plot

An example Strava distance plot


Copy and paste this into your own web page:

How many days have you gone a certain distance when running, cycling, etc? This page shows you your aggregate distance counts, which means that we include longer-distance counts in each shorter-distance count. For example, a 3-mile day will also also count as a 2-mile and a 1-mile day.
What this means is that we can compare our totals with the Eddington Number target; please have a read of Calculate your Eddington Number to find out more about that!
Your Eddington Number is the point on the chart where the two lines cross. For more detail, head over to My Strava Eddington Number.

To get started:


by Joe on 15 March 2020 Reply
Tried looking at the chart but the ads were blocking it. That had not happened previously, not sure how to view the chart now.
by John Swindells on 02 April 2020 Reply
Sorry I didn't see your comment earlier, Joe. Ads certainly shouldn't block any content on the page, so that's not good. If it happens again, please take a screenshot if you can and email it over (to webmaster@swinny.net). Thanks!
by Joe on 13 July 2020 Reply
I had not visited the chart again until now. There is an obnoxious image there now that looks like a feedback form but I assume it's fake. It asks how happy I am with the website that it is blocking me from seeing.
by Brian Ward on 24 February 2019 Reply
Seems like the Y-axis label should start at 1, not 0?
by John Swindells on 26 February 2019 Reply
Sorry Brian, I don't follow. The starting point for the chart is supposed to be (0,0) isn't it?
by Brian Ward on 26 February 2019 Reply
Take a look at the datapoints at the bottom (mouse over them), and compare to the y-axis label. In my case, I have a longest ride at 127 miles, the only one of those, so the count of days at 127 miles is 1. That datapoint is all the way in the lower right corner, but the y-axis is labeled for zero days along the bottom. It's similar to the Eddington target; in the lower left corner, the point is for 1 day at 1 mile (mouseover to see), but the label there implies (0,0).
by Sean on 29 September 2019 Reply
The datapoint for (n,1) is slightly above the distance axis, not directly on it.
by Joaquim on 12 July 2017 Reply

why the y scale is not in log as is in imperial?

Nice work.

by John Swindells on 13 July 2017 Reply
Thanks Joaquim. Whether you get a log or linear scale depends on the range of values and where the two lines cross each other.
by Reuben on 05 June 2017 Reply
Any chance you could make each dot able to be clicked on or hovered over to get highlighted and show the exact count and distance it corresponds to?
by John Swindells on 08 June 2017 Reply
I finally managed to locate the problem! You've got your numbers now Reuben :)
by Reuben on 08 June 2017 Reply
That looks great! Can I comment on the unnecessary decimal points? :) Thanks for making these awesome tools and being so receptive to feedback!
by John Swindells on 08 June 2017 Reply
Glad to help - and 10 out of 10.00 for spotting the number formatting error!
by John Swindells on 05 June 2017 Reply
I wanted to do this, but the tabbed format for the different activities stops it working. I'll have another go!
by Reuben on 05 June 2017 Reply
That's fair. I have very little knowledge about how this would be done or how feasible it would be. Great tool!
by Daniel on 07 November 2016 Reply
I really like these kind of statistics. Very nice! But, can you explain my score of 63 on imperial distance and 91 on metric? 63 miles is about 85 km. So, on 63 days I cycled at least 85 km. But metric graph tells me on 91 days I cycled at least 91 km. In what way is it possible to score a larger distance on more days??
by Daniel on 07 November 2016 Reply
I realize now have made a mistake in calculating from miles to kilometers. I multiplied by 1.36 (the number used from kW to BHP) instead of 1.609 (from miles to kilometers).

So, the scores are correct actually. Sorry for any confusion :)

by John Swindells on 07 November 2016 Reply
Ah, that's good! I hadn't checked your numbers, but was pondering (unsuccessfully) how your initial observation could be possible.
by Phoebe on 17 May 2016 Reply
This is a really neat graph that I've enjoyed looking at. Thanks!
by John Swindells on 17 May 2016 Reply
Glad you like it! I've been pondering about adding historical lines to the plot, showing where you got to at the end of each year for example.
by stone on 01 March 2016 Reply
might want to reliable the vertical axis to be more intuitive like "Count of Days at Distance"
by John Swindells on 01 March 2016 Reply
I like it, thanks for the suggestion!
by Lucas on 04 February 2016 Reply
This graph is really neat.

My graph is dominated by my commute. I wish I could set the axis so I could better see the more interesting tail.

by John Swindells on 05 February 2016 Reply
Ok, I've change it to a logarithmic plot. Looks much clearer for me. How does it look for you?
by Lucas on 05 February 2016 Reply
That's a nice improvement, at least for my dataset. The only downside is the downside to all log plots -- it takes a little extra thought to remember how to interpret the shape of the line, etc.

You might want to update the sample image, though. Or have a toggle (like the metric vs imperial).


by John Swindells on 04 February 2016 Reply
Glad you like it, Lucas! I've been thinking about how to boost the bottom of the chart, and a log scale is the only thing that springs to mind. What do you think?
by MTB Tim on 11 January 2016 Reply
Oh MAN do I love a good graph! This is awesome...

(And thanks for opening Pandora's Box, by the way.)

by John on 11 January 2016 Reply
This is a really helpful representation for me and gives a real visual sense of how you need to do more of just the longer rides to improve the Eddington score, and how rides a lot longer than the current cross over point will be helpful for far longer. This representation helps explain what is otherwise a fairly cryptic number. Thank you.
by John Swindells on 11 January 2016 Reply
I'm glad that this visual reference has helped you, John!

Add your comment

Here are some more of your Strava stats