Methodology
How the numbers of onice are made, how they are checked and where they are weak.
onice is independent and unofficial. Every number is calculated by us from the public play-by-play, shift and box score data of the NHL, so models such as expected goals (xG), RAPM and WAR are ours and differ from those of other sites and from official statistics. This page says what each number means and how it is made. The Glossary explains the columns and the API documentation shows the same data as JSON. The text on this page changes only when a method changes (last revised 4 November 2026). The boxes marked Current figures are counted from the database every day, so they follow the games that are added.
Data and checks
Source. The NHL publishes every game as a list of events (shots, hits, faceoffs, penalties and so on, each with the time, the players and the place on the ice), the shifts of every player and the box score. We download these once a day in the early morning (US Eastern time) and again a few hours later, and keep the raw documents, so a calculation can always be done again from the same inputs.
Shifts become stints. From the shifts we build stints: stretches of play in which the same ten skaters and two goalies are on the ice. Every on-ice number (for example 5-on-5 shot attempts for and against while a player is on the ice) is the sum of the events of the stints in which he played.
Current figures: the data behind the numbers
Counted from the database every day. Last count: .
| Seasons with shot data | 17 (2010-11 to 2026-27) |
| Games processed | 21,003 |
| Shot attempts with an xG value | 2,408,877 |
| Goals among them | 121,078 |
| Last game processed | 27 Nov 2026 |
Checks against the NHL. The personal totals of each game (goals, assists, shots, hits, blocks, giveaways, takeaways, penalty minutes) are compared with the NHL box score, and season totals of players are compared with the season reports of the NHL. The table is a check made in the autumn of 2026 and it is repeated after big changes of the data:
| Number | Seasons checked | Result |
|---|---|---|
| Goals, hits, blocks, giveaways, takeaways | 2023-24, 2025-26 | 100% of players exactly equal |
| Shots on goal | 2023-24, 2025-26 | 98.6% and 96.9% of players exactly equal |
| Penalty minutes | 2023-24, 2025-26 | 98.4% and 99.6% of players exactly equal |
| 5-on-5 shot attempts for (on ice) | 2023-24 | median error 0.77%, 90% of players within 2.9% |
The NHL builds its own on-ice numbers from its own marking of shifts and we build ours from the shift chart, so small differences in on-ice counts are expected. The individual counts match almost completely.
Gaps. For some games the shift chart of the NHL data service is empty. For such a game we take the shifts from the official time-on-ice reports of the NHL when they are published: they are the same shifts in another form, and their totals are checked against the official box score. A game that has neither is missing from the season tables, because every number there is a sum over stretches of play that the shifts define: it has no on-ice numbers, lines or pairs, and its personal totals are not in the season totals. Its game page, shot map and expected goals are still shown. The box below says how many games are missing in each season, and the tables and the API say it for the seasons you choose. A shootout is not part of the counts. The coordinates of a blocked attempt are the place of the block, not the place of the shot, because that is what the NHL records.
Counts and situations
| Term | Meaning |
|---|---|
| Corsi (CF, CA) | All shot attempts: goals, shots on goal, misses and blocks. CF is for the team, CA is against it. |
| Fenwick (FF, FA) | Unblocked attempts: Corsi without the blocked ones. |
| CF%, xGF% | The share of the team's attempts (or expected goals) in all attempts of both teams while the player or line is on the ice. |
| Situation | The strength on the ice: all situations, even strength, 5-on-5, power play (5v4), penalty kill (4v5), empty net and others. The tables and the API take it as a filter. |
| Per 60 and relative | Counts can be shown as totals, per 60 minutes of ice time, or relative: the team's numbers per 60 with the player on the ice minus with him off the ice. |
Expected goals
Expected goals (xG) is the probability that an unblocked shot attempt becomes a goal, judged by what the shot looked like before it was taken. A team with a higher xG created better chances, whatever the score was.
The model. Gradient boosting: many small decision trees, each one correcting the errors of those before it. It is trained on the unblocked attempts of the newest seasons, and checked on the newest season with enough games. It uses:
- the distance to the goal and the angle, each as a curve with bends, and whether the shot came from behind the goal line.
- the type of the shot (snap, slap, backhand, tip-in, deflection, wrap-around).
- whether it is a rebound, and the distance and the seconds since the previous attempt.
- whether it came off a rush (shortly after a play in the neutral or defensive zone).
- an empty net, a power play, a penalty kill and three-on-three play.
- the play before the shot: what it was (a faceoff, a hit, a giveaway, a takeaway, a shot or a goal), whether it was of the shooting team, how many seconds before and how many feet from the shot.
- the time on the ice: how many seconds the shooter and the skaters of both teams had been in their shifts when the shot was taken.
Seasons. The model learns from the newest seasons only. The shots of the older seasons were recorded differently, and in our tests they made the model worse. The share of attempts that become goals also moves from year to year, so every finished season gets a level of its own next to the inputs above. The season that is still running, or a new one, takes the average level of the last two finished seasons.
What it does not know. The model knows neither the shooter nor the goalie, how the puck reached the shooter before the shot (a pass across the slot, a screen) nor where the goalie stood. Blocked attempts get no xG, and shootouts are left out. The tracking data of the NHL are not used in xG.
How it is checked. We train a copy without the newest season that has enough games and test it on that season. The model in use is then trained again on the newest seasons. We look at three things in the test: the AUC (how well the model puts goals above non-goals), the log loss compared with the loss of always guessing the league's average rate, and calibration (the xG of a group of shots should equal the goals scored from them, in total and by decile). A new model is rejected automatically if its log loss is not better than the base rate.
Current figures: the expected goals model
Counted from the database every day. Last count: .
The active model is version 12, trained on 152,692 attempts from 2025-26, 2026-27 and using 50 inputs. It was trained on 26 Nov 2026, and a new training makes a new version.
Test on 2026-27. For this test a copy of the model was trained without that season and then asked about it. There were 33,335 attempts and 2,514 goals, and the copy expected 2,492 goals. The model in use is then trained again on all seasons, that one included.
| Measure | Value | Reading |
|---|---|---|
| AUC | 0.784 | 1.000 would be perfect and 0.500 is no better than chance |
| Log loss | 0.2262 | 15.4% lower than the 0.2674 of always guessing the average rate |
Calibration. The attempts of the test season are cut into ten equal groups from the least to the most dangerous. If the model is honest, the share of goals in each group is close to what it predicted:
| Group | Predicted | Actual |
|---|---|---|
| 1 | 0.5% | 0.3% |
| 2 | 1.1% | 1.1% |
| 3 | 1.8% | 1.9% |
| 4 | 2.7% | 3.1% |
| 5 | 3.9% | 4.2% |
| 6 | 5.6% | 5.5% |
| 7 | 7.6% | 7.7% |
| 8 | 10.2% | 10.4% |
| 9 | 14.2% | 14.5% |
| 10 | 27.3% | 26.6% |
The model in use was trained on all seasons, including 2026-27, so its totals for that season in the table below are closer than this copy's.
Every season. The total xG of the model in use against the goals that were scored. A ratio of 1.00 means the model expected as many goals as were scored and 1.05 means it expected 5% more. The model was trained on the seasons that existed on the day it was trained, so for them the ratio shows how well it fits and not how well it predicts. Games added after that day are the real test, and so is the held-out season above. Each season has a level of its own, because the share of attempts that become goals changes from year to year, so the ratio is close to 1.00 by construction and shows the fit, not the prediction. The season that is still running gets its level once it has about a fifth of a season's shots, and until then it takes the average level of the last two finished seasons. Games played after the last training are scored with the level of that day.
| Season | Attempts | Goals | xG | xG / goals | In training data |
|---|---|---|---|---|---|
| 2010-11 | 149,404 | 7,220 | 7,220 | 1.00 | no |
| 2011-12 | 146,253 | 6,961 | 6,961 | 1.00 | no |
| 2012-13 | 89,434 | 4,251 | 4,251 | 1.00 | no |
| 2013-14 | 148,535 | 7,090 | 7,090 | 1.00 | no |
| 2014-15 | 148,210 | 6,996 | 6,996 | 1.00 | no |
| 2015-16 | 147,449 | 7,043 | 7,043 | 1.00 | no |
| 2016-17 | 148,944 | 7,150 | 7,150 | 1.00 | no |
| 2017-18 | 159,941 | 7,943 | 7,943 | 1.00 | no |
| 2018-19 | 156,835 | 8,059 | 8,059 | 1.00 | no |
| 2019-20 | 138,568 | 7,157 | 7,157 | 1.00 | no |
| 2020-21 | 103,868 | 5,491 | 5,491 | 1.00 | no |
| 2021-22 | 159,827 | 8,712 | 8,712 | 1.00 | no |
| 2022-23 | 163,771 | 8,801 | 8,801 | 1.00 | no |
| 2023-24 | 170,649 | 8,590 | 8,590 | 1.00 | no |
| 2024-25 | 167,050 | 8,435 | 8,435 | 1.00 | no |
| 2025-26 | 163,021 | 8,572 | 8,572 | 1.00 | yes |
| 2026-27 | 47,118 | 2,607 | 2,530 | 0.97 | yes |
Related models. The same features are used for three small models: the chance that a shot is a rebound, the chance that the goalie freezes the puck, and the chance that an unblocked attempt misses the net. They are used for the columns about rebounds and net misses and are weaker than the xG model: treat those columns as rough.
| Model | Shots tested | Happened | Expected | AUC | Log loss | Always the average |
|---|---|---|---|---|---|---|
| Rebound: a save is followed by a rebound attempt of the same team (tested on 2026-27) | 19,357 | 2,289 | 2,288 | 0.645 | 0.3473 | 0.3634 |
| Freeze: a save is followed by a stoppage because the goalie holds the puck (tested on 2026-27) | 19,357 | 4,224 | 4,118 | 0.628 | 0.5041 | 0.5246 |
| Miss: an unblocked attempt misses the net (tested on 2026-27) | 33,335 | 11,464 | 11,456 | 0.610 | 0.6241 | 0.6436 |
An AUC of 0.5 is a coin toss and 1 is perfect. These models tell the likely rebounds, freezes and misses from the unlikely ones only a little, and their totals can be off by a few per cent, so a team or a goalie is compared with the league through them, not read as an exact count.
Shooting talent. Some players finish better than the model expects. For each shooter we multiply his xG by (goals + k) / (xG + k), counted over his unblocked regular-season shots up to the end of the season. The number k is fitted from the data: the more the finishing of different shooters really differs, the smaller k is, between 5 and 120, so with few shots the multiplier stays close to 1. This gives the "talent-adjusted" xG columns.
Danger zones
Each attempt gets points from the place it came from, and the points give the zone. The slot in front of the goal is worth 3 points, the middle area around it 2, and the rest of the offensive zone (including behind the goal) 1. A rebound adds a point, a rush adds a point, and a blocked attempt takes one away.
| Zone | Points |
|---|---|
| High danger (HD) | 3 or more |
| Medium danger (MD) | exactly 2 |
| Low danger (LD) | 1 or less |
| Scoring chance (SC) | 2 or more (medium and high danger together) |
Two families. The zones above (high, medium and low danger, scoring chances) come from the place of the shot. A second family, the xG classes, comes from the expected goals of each attempt: 20% or more is high, 8% to under 20% is medium. Other sites cut high danger in their own way, so counts of high-danger shots can differ from site to site by a factor of three. Compare these numbers within onice.
Rebound. The next attempt of the same team within 3 seconds, with no whistle between the two (a faceoff, a stoppage, a penalty or a goal ends the chain). Rush. An attempt within 4 seconds of an event in the neutral zone or the shooting team's own zone (a hit, giveaway, takeaway or another attempt), again with no whistle. A faceoff restarts play and is not the start of a rush.
Score and venue adjustment
Teams that lead take fewer shots than teams that trail, and home teams are favoured by the scorers and by the crowd. The adjusted situation (sva, only at 5-on-5) removes both effects with the method of Micah McCurdy. For every kind of event, for the home and the away side and for every score from the home team's point of view (down three to up three), the league's coefficient is the average of home and away events in that state divided by the events of this side. Each event is multiplied by the coefficient of the team that made it, and the events against a team by the coefficient of its opponent. Ice time, faceoffs and distances are not weighted. The coefficients depend on the seasons they are calculated from, so the version of the adjustment is part of the result.
Players: RAPM, QoT and QoC, GAR and WAR
RAPM (regularized adjusted plus-minus) tries to say how much each player changes the chances of his team when everything else is taken out. Each 5-on-5 stint gives two records, the xG per 60 minutes of the home attack against the away defense and the other way round. A ridge regression explains them with one "attack" column for every skater of the attacking side and one "defense" column for every skater and goalie of the defending side, plus columns for home ice and the score. Every record is weighted by the length of the stint. The strength of the ridge shrinkage is chosen on games that are held out (every fifth game). The window is the three latest regular seasons. The result is in xG per 60 minutes against the average player: offense, defense and net (offense minus defense). A goalie has only the defensive part.
QoT and QoC (quality of teammates and competition). For each player, the average ice time per game and the average 5-on-5 Corsi share of his teammates and of his opponents, weighted by the time he spent on the ice with each.
GAR, WAR and SPAR (goals above replacement) are measured in goals against an average player, for skaters in the regular season. The parts are:
- EVO and EVD: RAPM offense and defense times the player's 5-on-5 time.
- PPO and SHD: power-play offense and penalty-kill defense. A second RAPM is fitted on the 5-on-4 stints: every one is a record of the xG per 60 minutes of the team with the extra skater, explained by one "power-play offense" column for each of its skaters and one "penalty-kill defense" column for each skater and the goalie of the team that is short. The result times his time at 5-on-4 and 4-on-5 is PPO and SHD.
- Finishing: goals minus his own individual xG, in all situations.
- Take and Draw: penalties taken and drawn compared with the league's pace, a penalty being worth about two minutes of power-play goals.
- Replacement level: skaters outside the first 12 forwards or 6 defensemen of their team by ice time are the replacement players, and their average per second of play is subtracted from everyone.
WAR is GAR divided by the goals a win is worth in that season, taken as the goals per game of the whole league (about six, between 5.3 and 6.3 in the seasons so far), and SPAR is twice WAR. The power play and penalty kill have much less ice time than even strength, so PPO and SHD are shrunk harder toward zero. They count the chances a player creates and allows there, while the shooting of the power play is in finishing.
Lines, pairs and teammates
A pair is exactly two defensemen of a team on the ice at once. A line is exactly three forwards at 5-on-5 with both goalies on the ice, and it appears in the tables only if the same three skated together for at least two 5-on-5 faceoffs. The teammates and opposition tables, with-or-without-you (WOWY) and the line tool use the same stints. A start is a faceoff in the offensive, neutral or defensive zone or a change on the fly, taken from the shift that began at that moment.
Deserved to win
On the page of a game, "deserved to win" is the chance that each team would have won with the chances it created. We take the total xG of each team in the game as the average number of goals it scores, treat the goals of the two teams as independent Poisson counts, add up the probabilities that one team scores more than the other and share the probability of a tie after regulation equally. It tells how the game looked from the chances, not who won.
Limits
- The numbers are estimates from public data and are not official NHL statistics.
- xG does not see the shooter, the goalie, the pass before the shot or screens. Over a single game it is noisy, and over a season it is far steadier.
- RAPM needs a lot of ice time and is shrunk toward zero for players with little of it. The oldest seasons have no three-season window.
- Where the NHL has no shift data for a game, on-ice numbers for it are missing.
- The xG model learns from the newest seasons, because older ones were recorded differently. The older seasons have a level of their own, so that their expected goals add up to their goals, but how the danger is shared between their shots is less reliable.
- The figures in the boxes move as games are added. Early in a season they rest on few games and move more.
- Models are trained again from time to time. When that happens the numbers can change slightly, and the version tells which models made them.
Versions and corrections
Every response of the API carries the version of the metrics (now 3), and each shot keeps the version of the xG model that scored it. A change of a definition is written here.
- Version 3, 24 November 2026. The expected goals model is gradient boosting that learns from the newest seasons only and reads the play before the shot and the time the players had been in their shifts. Every finished season has a level of its own, so its expected goals add up to its goals. The details are in the changes on the Data status page.
- Version 2, 4 November 2026. The expected goals model weights recent seasons more and has a level for each finished season. Expected goals, and the numbers built on them (goals saved above expected, finishing, GAR and WAR, the shooting talent), changed a little. The totals of every finished season now match its goals.
- Version 1. The first public version.
To report a mistake, ask about a number or suggest a better way to calculate something, write to us.
onice is not affiliated with, endorsed by or sponsored by the National Hockey League or any of its clubs.