I made a website to compare quali and race H2H between any teammates
I made a simple web app to compare a driver’s results with his teammate which I wanted to share with the community. It started as a way to view qualifying H2H and getting stats such as mean/median (hence it being called f1teammatequali), but recently I added the option of comparing race data too.
You can see how well a driver did against their teammate:
* over a season
* over all qualifying sessions/races they took part in as teammates
* against all his teammates over the years at a particular circuit
For qualifying, I compared times from sessions both drivers participated in. I.e. if driver A made it to Q3 and driver B got out in Q1, then their Q1 times were used.
There is also a fourth feature where you can see how far off a driver's best time is from the fastest driver for every quali session in a season, or how far away from P1 a driver finished in the race. I thought it would be interesting to see how the gap to the fastest changes over a year (like how Verstappen closed in on Mercedes in 2020).
For sessions marred by outliers or anomalies, you can deselect that entry, and the H2H, stats, and charts will update instantly.
I hope you like it! If you have ideas for any new features you think would be interesting to see, then lmk.
[https://www.f1teammatequali.com/](https://www.f1teammatequali.com/)
Note:
The web app is reliant on data fetched from the Jolpica (formerly Ergast) API. Only data from the 1994 season onwards is available for qualifying. There is also a lot of qualifying data from the late 90s and early 2000s missing. There are no such problems with race results data.
If a driver doesn't set a time in a qualifying session, the API often nulls the entry for that session. This means results like Norris v Piastri in Saudi 2025 was recorded as a Norris win because the program compared their Q2 times instead of Q3 (in which Norris crashed) where he was faster than Piastri. The result should’ve gone to Piastri as he kept his car in one piece and qualified ahead, but as far as the data is concerned, Norris didn't take part in Q3 as his Q3 entry was empty, which is why the script defaulted to comparing Q2 times. If you find other results that you know are incorrect, keep this reason in mind as for why.
You can see how well a driver did against their teammate:
* over a season
* over all qualifying sessions/races they took part in as teammates
* against all his teammates over the years at a particular circuit
For qualifying, I compared times from sessions both drivers participated in. I.e. if driver A made it to Q3 and driver B got out in Q1, then their Q1 times were used.
There is also a fourth feature where you can see how far off a driver's best time is from the fastest driver for every quali session in a season, or how far away from P1 a driver finished in the race. I thought it would be interesting to see how the gap to the fastest changes over a year (like how Verstappen closed in on Mercedes in 2020).
For sessions marred by outliers or anomalies, you can deselect that entry, and the H2H, stats, and charts will update instantly.
I hope you like it! If you have ideas for any new features you think would be interesting to see, then lmk.
[https://www.f1teammatequali.com/](https://www.f1teammatequali.com/)
Note:
The web app is reliant on data fetched from the Jolpica (formerly Ergast) API. Only data from the 1994 season onwards is available for qualifying. There is also a lot of qualifying data from the late 90s and early 2000s missing. There are no such problems with race results data.
If a driver doesn't set a time in a qualifying session, the API often nulls the entry for that session. This means results like Norris v Piastri in Saudi 2025 was recorded as a Norris win because the program compared their Q2 times instead of Q3 (in which Norris crashed) where he was faster than Piastri. The result should’ve gone to Piastri as he kept his car in one piece and qualified ahead, but as far as the data is concerned, Norris didn't take part in Q3 as his Q3 entry was empty, which is why the script defaulted to comparing Q2 times. If you find other results that you know are incorrect, keep this reason in mind as for why.
Commentaires
Good work btw love it.
Because in the current design, if we are selecting a team, there's no need to select drivers, it could be shown directly.
Hope it helps!
whose finishing position is ahead and awards them the point. The non-DNF H2H is there to eliminate races like these.
However, only yesterday I was discussing Ricciardo vs Norris in 2021 with somebody and it seems some of your figures are incorrect?
And taking another look through it now, there does seem to be the odd inconsistency. ~~For example Miami 2023 is given in Verstappen’s favour rather than Perez when that is straight up incorrect~~
[edit] thanks for clearing that one up. I didn’t realise Verstappen didn’t get any laps in Q3. My memory was of his first lap being subpar but representative however he straight up had no time. The first half of 2023 is probably where my weakest memory of recent seasons is.
I hope this doesn’t sound too critical because this is still a really good web app and the vast majority of figures are hopefully correct.
I could add a H2H view using grid positions as that would correct issues like these, but that would have its own problem as sometimes the faster driver starts lower than where they qualified becuase of penalties (like Schumacher Monaco 2012) or by taking a new engine/gearbox. These are the annoying edge case datapoints I don't have a fix for. Of all the 11k different quali results, only a handful I would say don't match the true results we know to be correct.
The issue is that - unless you have an alternative method for calculating percentages that I’m not aware of - some of the percentages you have for certain sessions are incorrect. I was not familiar with your website until last night but I quickly verified four Norris-Ricciardo sessions (Portugal & Monaco 2021, Australia & Italy 2022) with percentages that were different from what I got with a standard calculator and an online percentage calculator.
The extent to which these are incorrect is so small that the effect on any season-long mean average is miniscule, but the median being different might look weird to someone who verifies your findings via their own workings, as a median datapoint being different might raise questions on all your data.
As it is, I think you’ve done a tremendous job here. This tool is invaluable and I will definitely be using it moving forward, but I thought it worth pointing this out.
Anyway, interesting to see how Bearman has been curb stomping Ocon recently.
As others mention, would like to be able to select non-teammates and glad it's on your radar already.
I would like to see a description of the 'same session' methodology and the percentage methodology somewhere on the page - I always want methodology to be as transparent as possible.
This edge case is one where I can see the argument for either driver "winning" - Latifi was faster in the only session that can be compared, but Russell had the better end result.
Lets say I search the following and press "View results":
https://imgur.com/BmYQbub
Now I go back using the browsers "Back button"
Now it has auto selected 2025 and I cant choose a team, unless I select another year and back to 2025:
https://i.imgur.com/HzWwzh3.png
Either the search should be completely empty again, or it should have remembered my entire search (this would be ideal imo)