The idea
Goals are rare. A typical top-level football match has fewer than three, and a team can play well and score none or play badly and score two. Counting goals over a handful of matches tells you little about how good a team is.
Shots are more frequent, about 25 per match, but they are not equal. A tap-in from three metres and a hopeful strike from 35 metres both count as one shot.
Expected goals (xG) solves both problems. It gives each shot a value between 0 and 1: the fraction of similar shots that have been scored in the past. A match’s worth of shots then adds up to a number that reflects both how many chances a team made and how good they were.
How a shot gets its value
A model is trained on hundreds of thousands of recorded shots. For each one it knows the outcome and a set of facts about the situation. The most important inputs are:
- Distance to goal. The dominant factor. Scoring probability falls steeply with every metre.
- Angle. How much of the goal mouth is visible from the shot location.
- Body part. Headers are scored far less often than shots with the foot from the same spot.
- Type of play. Open play, direct free kick, corner, counter-attack, penalty.
- Type of assist. A through ball or a cut-back produces better chances than a cross.
More detailed models add the positions of the goalkeeper and defenders, whether the shooter was under pressure, and the height of the ball.
The model then outputs a probability for any new shot. It knows nothing about who is shooting: xG describes the chance, not the player.
Typical values
| Situation | Approximate xG |
|---|---|
| Penalty | 0.76–0.79 |
| One-on-one with the goalkeeper, central, 10 m | 0.30–0.45 |
| Shot from the centre of the six-yard box | 0.35–0.60 |
| Header from the penalty spot from a cross | 0.08–0.12 |
| Shot from the edge of the penalty area, central | 0.06–0.10 |
| Direct free kick, 22 to 25 m | 0.05–0.08 |
| Shot from 30 m or more | 0.01–0.03 |
| Average of all shots | about 0.10–0.12 |
The ranges reflect differences between models; exact figures depend on the provider.
Worked example: one match
A team takes 12 shots.
| Shots | xG each | Total |
|---|---|---|
| 1 penalty | 0.78 | 0.78 |
| 2 close-range chances | 0.35 | 0.70 |
| 3 shots inside the area | 0.12 | 0.36 |
| 6 shots from outside the area | 0.04 | 0.24 |
| 12 shots | 2.08 |
The team “expected” to score about two goals. That does not mean it should have scored exactly two. With these twelve chances, the probability of scoring nothing at all is the product of each shot being missed:
(1 − 0.78) × (1 − 0.35)² × (1 − 0.12)³ × (1 − 0.04)⁶ = 0.22 × 0.4225 × 0.6815 × 0.7828 = 5.0%.
So one match in twenty with exactly these chances ends without a goal. And if the penalty had not been awarded, the same sum gives 22.5%.
The same method gives the chance of every scoreline, and from two teams’ shot lists, the chance of each result. That is how xG-based “deserved result” figures are produced.
Reading season totals
Over a season, noise shrinks and xG becomes informative.
- xG difference (xG for minus xG against) per match is one of the best simple predictors of future results, better than goal difference early in a season and better than points.
- Goals minus xG shows whether a team has been finishing above or below expectation. Large gaps in either direction usually close over time.
- xG per shot shows the style: a team with few shots of high value plays differently from one with many shots from distance.
- Non-penalty xG removes penalties, which are valuable but awarded irregularly.
A team that sits fourth with the xG difference of a tenth-placed side has been fortunate and is a good candidate to slide. A team in the bottom half with a strong xG difference is a good candidate to climb.
For players
A striker’s xG says how good their chances were; their goals say what they did with them. Getting on the end of many high-value chances is itself a skill, and is more repeatable from season to season than finishing above xG.
Expected assists (xA) credits the passer with the xG of the shot that followed, whether or not it was scored. Post-shot xG, or expected goals on target, values a shot after it has been struck, using where it was heading in the goal frame; it is used to rate goalkeepers, by comparing the goals they conceded with the quality of the shots they faced.
Common mistakes
- Treating one match’s xG as a verdict. “We won 1.8 to 0.9 on xG” describes the chances. It is not a hidden true score.
- Ignoring game state. A team that leads 2–0 early sits back and allows low-value shots. Its opponent’s xG rises without the leading team playing badly.
- Adding xG within one move. A shot, a rebound and a second rebound can sum to more than 1.0, though at most one goal can come from the move. Good models correct for this.
- Forgetting what is not a shot. A cross that flashes across an open goal with nobody touching it has an xG of zero.
- Mixing sources. Figures from two providers are not interchangeable.
xG describes sporting performance. It is not a tool for predicting individual match results with any certainty.
Frequently asked questions
What does xG mean in football?
How much xG is a penalty worth?
Can a team win with a lower xG?
Why do different websites show different xG for the same match?
Does scoring more than your xG mean you are a good finisher?
Sources
- Opta Analyst (Stats Perform): What is expected goals (xG)?
- StatsBomb: Introducing xG and how the model works
- Rathke A. An examination of expected goals and shot efficiency in soccer. Journal of Human Sport and Exercise 12(2), 2017
- Lucey P, Bialkowski A, Monfort M, Carr P, Matthews I. Quality vs quantity: improved shot prediction in soccer using strategic features from spatiotemporal data. MIT Sloan Sports Analytics Conference, 2015