XP Calculations June 18th, 2024

Hi ZHQ,

Something that has bothered me about the XP awarded for first time rides ok a course.

I’ve done some maths. I may be wrong and check out my calculation for the new Temples route. You are awarding 750 XP and I get the impression that some shorter courses are over awarded.

Check this out:

Example 1: The Glyph Heights

•	Distance: 34 km
•	Elevation: 618 m
•	XP awarded: 510

Example 2: Elevation Evaluation

•	Distance: 27.7 km
•	Elevation: 410 m
•	XP awarded: 492

Step 1: Establish Variables and Formulas

Let’s denote:

•	 D  as the distance in kilometres (km)
•	 E  as the elevation in metres (m)
•	 XP  as the experience points awarded

We need to derive a formula of the form:
XP = aD + bE + c
where a , b , and c are constants to be determined.

Step 2: Set Up Equations

Using the two provided examples, we can set up a system of linear equations:

1.	 510 = 34a + 618b + c 
2.	 492 = 27.7a + 410b + c 

Step 3: Solve for a , b , and c

To solve this system, we need another equation or make assumptions. Let’s assume c (a fixed base XP for completing any course) might be negligible or zero since it simplifies our calculations.

First, subtract the second equation from the first to eliminate c :

510 - 492 = (34a + 618b) - (27.7a + 410b)
18 = 6.3a + 208b
6.3a + 208b = 18
a = \frac{18 - 208b}{6.3}

This gives us a relation between a and b . We can now test some reasonable values for b and check if they fit the examples:

Step 4: Trial and Error for a and b

Let’s consider different values for b :

•	Suppose  b = 0.05 :

a = \frac{18 - 208 \times 0.05}{6.3} = \frac{18 - 10.4}{6.3} = \frac{7.6}{6.3} \approx 1.21

We can verify by plugging a = 1.21 and b = 0.05 back into the original equations:

1.	 510 = 34 \times 1.21 + 618 \times 0.05 + c 

510 = 34 \times 1.21 + 30.9 + c
510 = 41.14 + 30.9 + c
c = 510 - 72.04
c = 437.96
2. 492 = 27.7 \times 1.21 + 410 \times 0.05 + c
492 = 33.517 + 20.5 + c
492 = 54.017 + c
c = 492 - 54.017
c = 437.983

These values for c are very close, which implies our assumption a \approx 1.21 , b \approx 0.05 , and c \approx 438 is reasonable.

Step 5: Apply the Formula to the New Course

Using the derived formula:

XP = 1.21D + 0.05E + 438

For a course with 39.1 km and 470 m of elevation:

XP = 1.21 \times 39.1 + 0.05 \times 470 + 438
XP = 47.311 + 23.5 + 438
XP = 508.811

Thus, for a course with 39.1 km and 470 m of elevation, the expected XP awarded would be approximately 509.

So…how do you really calculate the XP for any given route?

Ride on,

Dave.

No XP bonus for the lead-in, which varies from route to route.

1 Like

Dude, you have way too much time on your hands.

3 Likes

Funny that you should say that. I’ve had to scale things down as I have a serious medical condition under treatment. These things have always bothered me anyway.

Then again, you get to L100 and the purpose of Zwift diminishes.

Ride on.

D.

That’s a very good point. The route descriptions need correcting them to state the total distance and the route difference.

Ride on,

Dave.

It’s always been very simple in the past (I don’t know if this has changed recently), in that the bonus XP for a route is equal to the XP for riding the route. As others have said, the lead-in isn’t included.

1 Like

Aren’t you trying to work out something zwift don’t even know the answer to… :rofl: :rofl: :rofl:

1 Like

I have wondered for years if anyone at ZHQ who can do maths is moved on :wink:

1 Like

That’s some serious maths and OCD.

How about as simple as route length (excluding lead in as mentioned above) in Km multiplied by 20 and then rounded to nearest 10 ?

Edit: my OCD has kicked in and checked a few more routes. Sometimes rounded to nearest 5 sometimes nearest 10. Sometimes rounded up, sometimes rounded down. What I now need to do now is stop looking at other routes and accept that this rounding is not always consistent!!

1 Like

The biggest oddity I’m aware of is Eastern Eight, ~54km for ~1300 XP bonus.

1 Like

You just had to ruin my evening, now I will be looking for others!

I suspect that was just a typo error. They had 1034 and didn’t know whether to round to 1030 or 1035 and somehow typed 1345 in error !!

2 Likes

Climbers Gambit, 28km for 600xp.

1 Like

Just stop that right there. A trainee at Zwift was given misleading information and rounded to nearest 100 rather than nearest 10. Simple as that. XP is distance in Km x 20 and rounded to nearest something - no further discussion needed !

2 Likes

Hi @Dave_Owen_KRT_Titani, Thank you for your post!
Fernanda here, part of the support specialist team at Zwift.

It’s great that you brought this matter to our attention, regarding the XP calculation there can be multiple factors that change the amount of XP you received, It is important to clarify if you are currently in accelerated leveling or level transitioning. Depending on this, the XP that you receive can change, I wil like you to check the Tracking Your Rider Score and XP article, for more information regarding this scenario.

On the other hand, considering you are a constant user of Zwift, the ride streaks that we credited at the beginning of the week can affect the total XP amount for the route.

Sometimes these factors can make you win more XP than expected for a route completion.

Ride On.

1 Like

Did an AI type this reply? Because it seems to bear absolutely no relation to the original post.

4 Likes

@FernandaA
Are you saying that a route completion awards a different XP based on outside factors, as listed above?

I was so sure about my route Km x 20xp calculation that I’m not sure I will be able to sleep until I know the full story.

1 Like

Are you suggesting there may be more bots on this forum than there are on IV ?

1 Like

I think all the Zwift Support Staff responses are either AI or written by AI and the staff copies and pastes. only Shooj appears to be “real”.

I miss Mr. Bailey.

3 Likes

You see as i said earlier even zwift don’t know for sure :rofl: :rofl: :rofl: :rofl:

1 Like

‘Fernanda’ has got form for this…

1 Like