What is xG?
Very simply, xG (or expected goals) is the probability that a shot will result in a goal based on the characteristics of that shot and the events leading up to it. Some of these characteristics/variables include:
- Location of shooter: How far was it from the goal and at what angle on the pitch?
- Body part: Was it a header or off the shooter's foot?
- Type of pass: Was it from a through ball, cross, set piece, etc?
- Type of attack: Was it from an established possession? Was it off a rebound? Did the defense have time to get in position? Did it follow a dribble?
Every shot is compared to thousands of shots with similar characteristics to determine the probabilty that this shot will result in a goal. That probabilty is the expected goal total. An xG of 0 is a certain miss, while an xG of 1 is a certain goal. An xG of .5 would indicate that if identical shots were attempted 10 times, 5 would be expected to result in a goal.
There are a number of xG models that use similar techniques and variables, which attempt to reach the same conclusion. The model that FBref uses is provided by StatsBomb. What sets StatsBomb's xG model apart from others is their use of freeze frames. A freeze frame is the location of all players on the pitch at the moment the shot was taken. Was the goalkeeper in position? Was it an open goal or were there a number of defenders between the shooter and the goal? Was the shooter being pressured? Was it a 1v1 situation with the keeper?
Take this Callum Wilson goal vs Southmapton for example. The shot was taken directly in front of the goal from six yards out. However, Wilson was the only player in the penalty area at the time of the shot, making it a completely open goal. According to StatsBomb's data, just 3% of shots from this location were taken with an open goal. Comparing this shot to all other shots taken from this spot without accounting for the location of the defense would return a wide range and inaccurate set of results. In fact, other expected goal models credit this exact shot anywhere from 0.5 to 0.66 xG. StatsBomb, and their use of freeze frames, credits this shot with .97 xg, making it an almost guaranteed goal.
xG does not take into account the quality of player(s) involved in a particular play. It is an estimate of how the average player or team would perform in a similar situation.
How xG is used
xG has many uses. Some examples are:
- Comparing xG to actual goals scored can indicate a player's shooting ability or luck. A player who consistently scores more goals than their total xG probably has an above average shooting/finishing ability.
- A team's xG differential (xG minus xG allowed) can indicate how a team should be performing. A negative goal differential but a positive xG differential might indicate a team has experienced poor luck or has below average finishing ability.
- xG can be used to assess a team's abilities in various situations, such as open play, from a free kick, corner kick, etc. For example, a team that has allowed more goals from free kicks than their xGA from free kicks is probably below average at defending these set pieces.
- A team's xGA (xG allowed) can indicate a team's ability to prevent scoring chances. A team that limits their opponent's shots and more importantly, limits their ability to take high probabilty shots will have a lower xGA.
Each penalty kick is worth .76 xG since all penalty kicks share the same characteristics. Comparing a player's goals from penalty kicks to their penalty kick xG can indicate a player's penalty kicking ability. Likewise, we can do the same for goalkeepers in these situations.
FBref's xG totals include penalty kicks unless otherwise noted. For xG excluding PK, we recommending using npxG (non-penalty expected goals).
How we calculate xG totals for a single offensive possession
In some cases, a player or team's xG totals do not equal the sum of their shots. For instance, a team may attempt multiple shots in a single possession, but it is likely that these shots are contingent upon the outcome of the previous shot(s).
Take for example, this match between Schalke 04 and Nürnberg:
In the 78th minute, Nürnberg attempted three shots which ultimately led to a goal. Hanno Behrens attempts a shot that is saved, but he is able to take a second shot as the ball is deflected off the defender. The second shot goes off the woodwork, which allows Adam Zreľák to easily tap it in. According to StatsBomb's expected goals model:
- Behrens' first shot with the goalkeeper in his way = .37 xG
- Behrens' second shot with the goalkeeper out of position but a defender in the way = .68 xG
- Zreľák's shot with an open net = .81 xG
The sum of these three shots is 1.86 expected goals, even though it is impossible to score more than one goal in a single move. To solve this problem, we find the probabilty that the defending team does not allow a goal in this possession. In this case, the calculation is:
(1 - .37) x (1 - .68) x (1 - .81) = .0383 or a 3.83% probability that Schalke does not allow a goal.
To find Nürnberg's xG, we simply subtract that probabilty from 1:
1 - .0383 = .9617 xG
In other words, we estimate that an average team in a similar situation would be expected to score a goal 96.17% of the time.
We use a similar method when calculating xG for individual players. Adam Zreľák receives .81 xG from his single shot while Hanno Behrens receives:
1 - (1 - .37) x (1 - .68) = .7984 xG
This shows why a team or player's total xG may not equal the sum of the xG from their shots and why a team's total xG may not equal the sum of the xG from their players.
Possessions that include a penalty kick
Similarly, we include shots taken from a rebound after a penalty kick with xG from penalty kicks. Take this Alexis Sanchez penalty kick for example:
- As mentioned above, the penalty kick attempt = .76 xG
- The second shot after the rebound, from 6 yards and with the goalkeeper unrecovered from the save = .72 xG
Since the second shot is a result of the first, we use the same probabilistic method in the previous example. Rather than a total 1.48 xG (.76 + .72), the calculation is:
1 - (1 - .76) * (1 - .72) = .9328 expected goals
However, since the second shot is also considered to be a part of the penalty kick xG, Sanchez gets 0 npxG (non-penalty expected goals) on this play.
Note: We treat corner kicks and free kicks as a new possession, not a continuation of the previous possession, but are continuing to study the issue.
What is xA
xA, or expected assists, is the xG that follows an assisted shot. This indicates a player's ability to set up scoring chances without having to rely on the actual result of the shot or the shooter's luck/ability.
Where to find xG
Team xG, xG against, and xG differential can be found on league tables, such as this:
Player xG, npxG & xA can be found on team pages, such as this:
|Tempo de jogo||Desempenho||A cada 90 minutos||Expected||A cada 90 minutos|
|Aymeric Laporte||fr FRA||ZG||24||35||34||3.057||3||3||0||0||3||0||0,09||0,09||0,18||0,09||0,18||2.2||2.2||1.3||0,06||0,04||0,10||0,06||0,10|
|Bernardo Silva||pt POR||AT,LT||23||36||31||2.853||7||7||0||0||3||0||0,22||0,22||0,44||0,22||0,44||6.3||6.3||7.5||0,20||0,24||0,44||0,20||0,44|
|Raheem Sterling||eng ENG||AT,LT||23||34||31||2.777||17||9||0||0||3||0||0,55||0,29||0,84||0,55||0,84||13.0||13.0||9.7||0,42||0,31||0,74||0,42||0,74|
|Sergio Agüero||ar ARG||AT||30||33||31||2.480||21||8||2||2||4||0||0,76||0,29||1,05||0,69||0,98||20.9||19.4||5.4||0,76||0,20||0,96||0,71||0,90|
|Kyle Walker||eng ENG||ZG||28||33||30||2.777||1||1||0||0||3||0||0,03||0,03||0,06||0,03||0,06||0.7||0.7||1.7||0,02||0,05||0,08||0,02||0,08|
|David Silva||es ESP||LT||32||33||28||2.411||6||8||0||0||2||0||0,22||0,30||0,52||0,22||0,52||6.6||6.6||9.2||0,25||0,34||0,59||0,25||0,59|
|İlkay Gündoğan||de GER||LT||27||31||23||2.135||6||3||0||0||3||0||0,25||0,13||0,38||0,25||0,38||3.4||3.4||4.1||0,14||0,17||0,31||0,14||0,31|
|Leroy Sané||de GER||AT,LT||22||31||21||1.867||10||10||0||0||1||0||0,48||0,48||0,96||0,48||0,96||6.0||6.0||7.1||0,29||0,34||0,63||0,29||0,63|
|John Stones||eng ENG||ZG||24||24||20||1.762||0||0||0||0||1||0||0,00||0,00||0,00||0,00||0,00||0.3||0.3||0.2||0,01||0,01||0,02||0,01||0,02|
|Riyad Mahrez||dz ALG||AT,LT||27||27||14||1.339||7||4||0||1||0||0||0,47||0,27||0,74||0,47||0,74||5.7||4.9||4.3||0,38||0,29||0,67||0,33||0,62|
|Nicolás Otamendi||ar ARG||ZG||30||18||14||1.233||0||0||0||0||1||0||0,00||0,00||0,00||0,00||0,00||1.1||1.1||0.1||0,08||0,01||0,09||0,08||0,09|
|Oleksandr Zinchenko||ua UKR||LT||21||14||14||1.153||0||3||0||0||1||0||0,00||0,23||0,23||0,00||0,23||0.1||0.1||1.3||0,01||0,10||0,11||0,01||0,11|
|Vincent Kompany||be BEL||ZG||32||17||13||1.223||1||0||0||0||6||0||0,07||0,00||0,07||0,07||0,07||0.1||0.1||0.1||0,01||0,01||0,02||0,01||0,02|
|Kevin De Bruyne||be BEL||LT||27||19||11||974||2||2||0||0||2||0||0,18||0,18||0,37||0,18||0,37||2.7||2.7||3.2||0,25||0,30||0,54||0,25||0,54|
|Benjamin Mendy||fr FRA||ZG||24||10||10||900||0||5||0||0||1||0||0,00||0,50||0,50||0,00||0,50||0.2||0.2||1.5||0,02||0,15||0,17||0,02||0,17|
|Gabriel Jesus||br BRA||AT||21||29||8||1.019||7||3||1||1||1||0||0,62||0,26||0,88||0,53||0,79||10.0||9.3||1.7||0,89||0,15||1,04||0,82||0,97|
|Fabian Delph||eng ENG||LT||28||11||8||724||0||1||0||0||1||1||0,00||0,12||0,12||0,00||0,12||0.1||0.1||0.3||0,01||0,04||0,05||0,01||0,05|
|Phil Foden||eng ENG||LT||18||13||3||327||1||0||0||0||0||0||0,28||0,00||0,28||0,28||0,28||2.2||2.2||0.7||0,61||0,18||0,80||0,61||0,80|
|Claudio Bravo||cl CHI||G||35||0||0|
|Arijanet Muric||xk KVX||G||19||0||0|
|Philippe Sandler||nl NED||ZG||21||0||0|
|Total do time||38||418||3.420||91||71||3||4||44||1||2,39||1,87||4,26||2,32||4,18||82.6||79.6||62.9||2,17||1,66||3,83||2,09||3,75|
FBref Competitions with xG Data
- Copa do Mundo Feminina FIFA (2019)
- Liga dos Campeões da UEFA (2018-2019 to 2019-2020)
- Liga Europa da UEFA (2017-2018 to 2019-2020)
- American Major League Soccer (2018 to 2019)
- American National Women's Soccer League (2018)
- English Premier League (2017-2018 to 2019-2020)
- English Women's Super League (2018-2019 to 2019-2020)
- French Ligue 1 (2017-2018 to 2019-2020)
- German Bundesliga (2018-2019 to 2019-2020)
- Italian Serie A (2018-2019 to 2019-2020)
- Spanish La Liga (2017-2018 to 2019-2020)
Matches Currently Missing xG Data
- Data will be added once it becomes available