Live now!

Progress of current post

What is Expected Goals? Expect the unexpected

Welcome to the beautiful world of sports data. In football, things can be different from what they seem. xG is helping coaches, journalists, data analysts, and fans understand what is happening in front of our eyes on the field. We will explain how xG helps in this blog.

Time to read 8 min
Published 20 March 2024
Last updated 11 March 2025
Jordy Post
What is Expected Goals? Expect the unexpected
Contents

What is ‘expected goals’?

First, the abbreviation of Expected Goals is xG, so if you see xG, you will know we are talking about expected goals. So, what is the Expected Goals metric?

Well, most likely, you have used it before without even knowing. Maybe you didn’t calculate it correctly, but you have discussed whether a specific team’s win was deserved based on the chances, the strategies, and how the game progressed. You most likely did this based on your ‘gut feeling’ or other stats like possession or number of shots. However, xG works for you by calculating this based on different statistics and metrics.

*Note: Expected goals needs to be applied correctly. A common mistake at fixture level is that a team with a higher xG should have won the game. That is not necessarily true as xG only measures the chance quality and not the expected outcome of that particular fixture. We have another API for the predicted outcome, which is the Prediction API.

What do experts say

Let’s find out on a very reliable source: The Bundesliga.

“A xG model computes for each chance the probability to score based on what we know about it (event-based variables). The higher the xG – with 1 being the maximum, as all probabilities range between 0 and 1 – the higher the probability of scoring.

In practice, that means if a chance has 0.2xG, it should be scored 20 per cent of the time. If it has 0.99xG, it should be converted 99 per cent of the time and so on.”

So let’s dive into that a bit deeper. Expected Goals (xG) in football is a statistical metric used to quantify the quality of goal-scoring chances created or conceded during a match. It measures the probability that a particular goal-scoring opportunity will result in a goal based on various factors such as the location of the shot, the angle, the distance from the goal, the type of pass that led to the chance, and other situational variables.

How is ‘expected goals’ calculated?

The calculation of expected goals is based on various factors such as the location of the shot, the angle, the distance from the goal, the type of pass that led to the chance, the number of defenders between the ball and the goal, the angle to the goal, the type of shot (header or foot), and the position of the goalkeeper, and other situational factors. Keep in mind that the quality of a player is not accounted for. So, for expected goals, it does not matter if Lionel Messi is the one taking a shot or if the data scientist of Sportmonks takes the shot. So, how do we do it? We have committed to writing an article about this on Medium.

How is expected goals calculated

Expected goals values

Expected goals is usually expressed as a value between 0 and 1, where 0 indicates a very low probability of scoring and 1 indicates a very high probability. For example, a clear one-on-one chance with the goalkeeper might have a high xG value close to 1, while a long-range speculative shot might have a low xG value closer to 0. Keep in mind that this counts for a single shot. In some situations, an xG value has a value higher than one. Think about when the total xG of a team is calculated. In this case, all shot-attempts a specific team has sent towards the goal will create a total xG for the team.

The expected goals metric for a team typically ranges between 0 and 2 or 3, representing the likelihood of scoring based on the quality of chances created or conceded. For a player, the range is even lower. Pay close attention to instances where the xG values seem unusually high or low. For example, an xG value higher than 5 might seem odd unless it’s Bayer Munich is playing Mainz ;).

So, now let’s dive in deeper based on the Bundesliga quote. In short, it measures the chance quality of a team’s shots. The probability rate is from 0-1. The probability ranges from 0 to 1. A chance with a value of 0 cannot be scored, whereas a chance with a value of 1 almost guarantees a goal. However, in football, there is no such thing as a 100% guaranteed goal. We have all seen videos of players missing in front of an open goal while only being one meter away from the goal line.

Knowing that an xG value above 0.38 is considered a big chance is important. For example, a penalty has an average xG of 0.79 to be scored. That is a high chance as there are no defenders between the ball and the goal, the ball is in the middle of the goal, so the angle isn’t too difficult, the distance is only 11 meters (12 yards), and the location of the keeper will most of the time be precisely in the middle of the goal.

Driblab shows how to apply xG to team and player analysis.

Is Expected goals Valuable?

This metric is valuable for teams, coaches, analysts, and fans as it provides insights into the quality of a team’s attacking play, defensive solidity, and overall performance. It helps assess whether a team’s performance aligns with the goals scored or conceded in a match and can be used for tactical analysis, player evaluation, and strategic decision-making. Find out why it is important below.

How to interpret expected goals

The metric is very valuable. However, it doesn’t show the complete truth of a match. For example, if team A scores in the first few minutes, they might hang back to play on the counter as they are 1-0 ahead. They do not need to pressure the opponent further, and they will save energy by letting the opponents decide the play as they need to score. The focus of Team A will be on defence and striking back on a counter, while Team B will try to score. As you can expect, the defending team will give away some shots. However, there is a good chance that there will be multiple defenders between the ball and the goal for most of those shots, as they are defending as a unit. The total xG of team B might be high as there are many shots, but the individual chances might be very low due to the defending tactics of team A.

Another example is team A having five shots on target while team B has ten shots on target. You would argue that Team B had a better game. Well, if you look at the shot map, you will see the following:

You see, the shots from Team A were way closer to the goal than those from Team B. Who do you think was better now? This is why xG is a more effective way to determine who “deserved” the win than, for example, looking at possession or shots on target.

*Note: As mentioned earlier, deserving a win is not exactly what xG means. However, a lot of people interpret it like this.

xG team A vs team B

Why is xG such a popular metric?

In mathematics, things tend to revert to their mean. xG is a good predictor of how a player will develop. It is great to see which teams and players are overperforming and underperforming. In a later blog, we will discuss xP (expected points) and over/underperforming in more. For now, we stay at the metric xG itself.

xG has its roots in the early 2000s and has evolved over time. Analysts and statisticians started experimenting with different metrics to measure the likelihood of a shot resulting in a goal based on various factors. In the mid-2000s, xG started to gain attention as a tool for analysing and understanding games in more detail.

In the early 2010s, xG became more mainstream, and several analytics platforms started including xG. For example, broadcasting stations, media outlets, and newspapers, among other websites and applications. More and more became xG part of the post-match commentary and discussions.

Today, xG has become essential for analysing and understanding Football matches, influencing coaching decisions, player evaluations, and fan discussions. Its journey from a niche concept to a widely recognised metric reflects the increasing sophistication and data-driven approach to understanding the beautiful game we know today.

Last but not least, xG is this popular because many other metrics can be calculated with the statistic. In our next xG blog we will dive deeper into the world of xG’s other calculations and metrics.

FAQ

How are xG values calculated?
xG values are calculated using historical shot data. The calculations are made based on the shot's location, angle, and distance. Next, the type of shot (for example, header or foot) is considered. The position of the goalkeeper and players is also used in the calculations. This data and additional information are used to create the different xG metrics, providing a comprehensive understanding of goal-scoring probabilities.

Expected goals is usually expressed as a value between 0 and 1, where 0 indicates a very low probability of scoring and 1 indicates a very high probability. For example, a clear one-on-one chance with the goalkeeper might have a high xG value close to 1, while a long-range speculative shot might have a low xG value closer to 0. An xG value above 0.38 for a specific shot is considered a big chance. For example, a penalty has an average xG of 0.79 to be scored.

Keep in mind that the quality of a player is not accounted for. So, for expected goals, it does not matter if Lionel Messi is the one taking a shot or if the data scientist of Sportmonks takes the shot.
How does speed impact the availability of xG values?
The availability of xG values is influenced by the speed of data processing. Since xG calculations require match statistics like shots, there may be a delay before xG values become available. Patience is key as relevant match data is processed to generate accurate xG insights.
How does the reliability of xG values depend on the context of the match?
The reliability of xG values is contingent on various factors, including the context of the match. A nuanced understanding of the game's flow, tempo, and dynamics enhances the interpretation of xG values, providing valuable insights into the scoring probabilities.
What are the numeric values associated with xG?
xG statistics generate numeric values that show the chance of scoring based on the quality of chances created or conceded. These values for one specific player usually range between 0 and 1.5 for a specific fixture. For example, Erling Haaland had an xG value of 1.1634 in the Manchester Derby (18842545). In that fixture, he scored 1 goal in total. Pretty accurate, right? For that same fixture, the xG for both teams was as follows: Manchester City: 3.6439 - Manchester United: 0.3841. As you can see, the xG values are pretty accurate to the actual outcome, which was 3-1. However, Marcus Rashford's wonder strike shows that xG doesn't always tell the full story. He had an xG of 0.3553 for that match but did manage to score 1 goal. Remember: This will not always be the case. You may expect Erlin Haaland to finish a 0,89 chance or to score at least once or twice if he has a total of 3,10 xG. However, that doesn't mean the xG metrics are wrong if he doesn't. xG metrics are just parameters to calculate the quality of a chance or multiple chances. Even if a chance has a 99% chance of resulting in a goal, there is a 1% chance it will not.
What can I use xG Corner/Free Kick/Penalty for?
Of course, we offer xG Open Play and xG Set Play. But if you want to dive deeper into xG Set Play, the metrics xG Corner, xG Free Kick, and xG Penalty will come in handy. These statistics have particular use cases. For example, in the 2023/2024 season, Arsenal scored many goals from set pieces. For some people, it might be very interesting to see if the XG Arsenal generates is higher than the XG for other title contenders (like Manchester City and Liverpool). At the moment of writing, they are only 1 point apart and are numbers one to three in the league standings. As you can imagine, the over- and underperformance of these teams from set pieces might have a small or big influence on the rest of the season. It might be interesting to show which of the set pieces generates the most xG for certain teams and to find out if there are any differences. For one team, free kicks might be way more dangerous (maybe because they have a free-kick specialist), while others have a way higher xG from corners (maybe because they have two giants as centre-backs who join the attack when they have a corner). As you can see, these use cases can be really interesting to get a better understanding of the tactics of specific teams and to find out if a late free kick or corner is actually as interesting as it seems when the whole stadium is cheering to support their team with this late chance to score.
What is the update frequency for xG values?
xG values are continuously calculated and processed throughout the match, with updates occurring every couple of minutes. The maximum time between these updates should not exceed 5 minutes. Stay informed with real-time insights into evolving goal-scoring probabilities.
How can I get access to xG Data?
You can simply get access by going to MySportmonks and adding the Expected Goal add-on to your subscription. Not yet registered to MySportmonks? Create your account and start with Expected Goals by creating your New Subscription.
What leagues have xG available?
We have a list available in our documentation. Please keep in mind this list is not yet complete, as not all leagues that will have xG available is active. Once leagues like the European Championship have played xG will also be available here.
What is the pricing for the xG metrics add-on?
At Sportmonks, we use three types of packages: a basic package, a Standard package, and an Advanced package. In the Basic package, xG per fixture will be available 12 hours post-match. In the Standard package, xG per fixture and xG on Target per Fixture will be available straight after a match. The xG advanced package will have all our xG metrics, including xG per Fixture, xG On Target, Non-Penalty xG, xG Open Play, xG Set Play, xG Corners, xG Free kick, xG Penalty, Expected Points, Expected Points Table, Expected Goals Conceded, Expected Goal difference, Over/Underperformance players, Over/Underperformance team, Expected Goals Saved. The Advanced package has all metrics live.
Can I use xG with a custom plan?
Absolutely! If you have a personalized plan and wish to leverage the xG feature, simply reach out to our support team. We'll swiftly arrange the setup of a tailored xG add-on for you. Feel free to email us directly at [email protected] or get in touch with support via our contact page. We're here to assist you every step of the way!

Written by Jordy Post

Jordy Post is a seasoned football data and marketing expert with over 3 years of industry experience. With an in-depth understanding of Football Data, he stands out as a leading authority in delivering comprehensive insights. Jordy specializes in uncovering new stats, tracking market trends, and identifying emerging patterns, consistently providing innovative analyses that offer invaluable insights to Sports Data lovers.