xG Explained

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:

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:

Penalty Kicks

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:

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:

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:

Reguläre Saison Table
Rg Verein Spiele S U N Tf Tk TDiff Pkt xG xGA xGDiff
1Manchester City3832249523+729882.625.2+57.4
6Manchester Utd38199106554+116657.847.3+10.5
9Leicester City38157165148+35248.541.3+7.2
10West Ham38157165255-35247.460.3-12.9
12Crystal Palace38147175153-24949.847.2+2.7
13Newcastle Utd38129174248-64539.053.4-14.5
18Cardiff City38104243469-353438.560.3-21.8

Player xG, npxG & xA can be found on team pages, such as this:

Spielerstatistiken, Premier League Table
Spielzeit Leistung Expected Pro 90 Minuten
Spieler Nation Pos Alt Spiele Startelf Min Mn/Sp Tor Vor Elf VeElf SaT Fls Gelb Rot xG npxG xA Tor T+V T-Elf T+V-Elf SaT xG xG+xA npxG npxG+xA Spiele
Edersonbr BRATW2438383.42090010002200.00.00.40,000,030,000,030,000,000,010,000,01Spiele
Aymeric Laportefr FRADF2435343.057873300722302.22.21.30,090,180,090,180,210,060,100,060,10Spiele
Bernardo Silvapt PORFW,MF2336312.8537977002231306.36.37.50,220,440,220,440,690,200,440,200,44Spiele
Raheem Sterlingeng ENGFW,MF2334312.777821790039413013.013.09.70,550,840,550,841,260,420,740,420,74Spiele
Sergio Agüeroar ARGFW3033312.480752182243224020.919.45.40,761,050,690,981,560,760,960,710,90Spiele
Kyle Walkereng ENGDF2833302.777841100415300.70.71.70,030,060,030,060,130,020,080,020,08Spiele
David Silvaes ESPMF3233282.4117368002026206.66.69.20,220,520,220,520,750,250,590,250,59Spiele
Fernandinhobr BRAMF3329272.381821300740501.91.92.70,040,150,040,150,260,070,180,070,18Spiele
İlkay Gündoğande GERMF2731232.1356963001114303.43.44.10,250,380,250,380,460,140,310,140,31Spiele
Leroy Sanéde GERFW,MF2231211.867601010002510106.06.07.10,480,960,480,961,210,290,630,290,63Spiele
John Stoneseng ENGDF2424201.76273000016100.30.30.20,000,000,000,000,050,010,020,010,02Spiele
Riyad Mahrezdz ALGFW,MF2727141.3395074012510005.74.94.30,470,740,470,741,680,380,670,330,62Spiele
Nicolás Otamendiar ARGDF3018141.23369000038101.11.10.10,000,000,000,000,220,080,090,080,09Spiele
Oleksandr Zinchenkoua UKRMF2114141.153820300115100.10.11.30,000,230,000,230,080,010,110,010,11Spiele
Vincent Kompanybe BELDF3217131.223721000117600.10.10.10,070,070,070,070,070,010,020,010,02Spiele
Kevin De Bruynebe BELMF2719119745122001310202.72.73.20,180,370,180,371,200,250,540,250,54Spiele
Benjamin Mendyfr FRADF241010900900500312100.20.21.50,000,500,000,500,300,020,170,020,17Spiele
Danilobr BRADF,MF27119806731000310100.50.50.30,110,110,110,110,330,050,090,050,09Spiele
Gabriel Jesusbr BRAFW212981.01935731125121010.09.31.70,620,880,530,792,210,891,040,820,97Spiele
Fabian Delpheng ENGMF2811872466010036110.10.10.30,000,120,000,120,370,010,050,010,05Spiele
Phil Fodeneng ENGMF1813332725100064002.22.20.70,280,280,280,281,650,610,800,610,80Spiele
Mannschaft insgesamt3837.61891713426233344184.281.162.92,394,262,324,186,89

Expected goals can also be found on a number of different pages such as league player stats, match reports, player pages and player match logs.

FBref Competitions with xG Data

Matches Currently Missing xG Data

  • Data will be added once it becomes available