What Is xG in Soccer? Expected Goals Explained
On this page4
xG in soccer is expected goals: the probability that a given shot ends up in the net, expressed as a number between 0 and 1, based on a model of where and how the shot was taken. A close-range tap-in might carry an xG of 0.7 — it scores about 70 percent of the time — while a hopeful strike from 30 yards might be 0.03. Add up the xG of every shot a team takes in a match and you get their total expected goals: a measure of how many goals the quality of their chances should have produced, regardless of what actually went in.
That distinction is the whole value of xG. Goals are rare and noisy; a team can dominate and lose, or steal a win on one lucky strike. xG cuts through the randomness to ask what a team’s chances were really worth.
How the model works
An xG model is trained on hundreds of thousands of historical shots. For each new shot, it looks at the situation and returns the share of past shots from similar spots that became goals. The main inputs are:
- Distance from goal — closer shots score far more often.
- Angle — a shot from straight on has more net to aim at than one from a tight angle.
- Body part — headers convert at lower rates than shots taken with the foot.
- Type of chance — a one-on-one, a shot after a through ball, a header from a cross, or a set piece each carry different historical odds.
More advanced models add the positions of defenders and the goalkeeper. Different providers — Opta, StatsBomb, and others — build their models slightly differently, so the exact xG of a shot can vary a little by source. The underlying idea is identical: convert a chance into the probability it scores.
A worked example
Say a team takes five shots in a match, with these xG values:
| Shot | Situation | xG |
|---|---|---|
| 1 | Close-range tap-in | 0.70 |
| 2 | Header from a cross | 0.15 |
| 3 | Edge of the box, foot | 0.09 |
| 4 | Long-range effort | 0.04 |
| 5 | One-on-one with the keeper | 0.35 |
Total xG: 0.70 + 0.15 + 0.09 + 0.04 + 0.35 = 1.33
So the quality of their chances was worth about 1.3 goals. If they actually scored three, they finished well above expectation — a hot day in front of goal that is unlikely to repeat. If they scored zero, they were wasteful or unlucky, and the underlying performance was better than the result. Either way, the 1.33 describes the chances themselves, not the scoreline.
How to read xG
xG shows up in a few common forms:
- Match xG — total expected goals in a game, often shown per team to reveal who created the better chances.
- xGA (expected goals against) — the quality of chances a team allows.
- xGD (expected goal difference) — xG minus xGA, one of the best single summaries of a team’s true level. A positive xGD means a side creates better chances than it concedes.
The most important habit is patience. A single match’s xG can be skewed by one enormous chance, and finishing genuinely varies game to game. xG earns its reputation over a run of matches, where it predicts future goals better than past goals do — which is exactly why clubs and bettors lean on it.
Why xG matters, and its limits
xG changed how the sport is analyzed because it separates the quality of a performance from the luck of finishing. A striker “underperforming his xG” over a few games is probably just cold, not broken; a team consistently outscoring its xG is often riding variance that will regress. Used well, it is the closest thing soccer has to a fair, predictive measure of chance creation.
The limits are real. xG says nothing about how a chance was finished — a world-class strike into the top corner counts the same as a scuffed shot from the same spot. Models differ between providers, small samples mislead, and xG ignores the buildup that never produced a shot at all. It is a powerful tool, not a verdict.
For the players who consistently beat their expected numbers, the greatest soccer players is full of elite finishers, and the Ballon d’Or winners reads like a list of players who turned high xG into trophies. To compare how other sports build their own advanced metrics, see our explainers on EPA in football and true shooting percentage — the same “value versus expectation” thinking, applied to different games.
Bottom line: xG is the scoring probability of each shot, summed into expected goals — a measure of chance quality that beats raw goals over any stretch longer than a single lucky afternoon.
Frequently asked questions
What does an xG of 0.3 for a shot mean?+
It means that from that position and situation, a shot scores about 30 percent of the time historically. Roughly one in three attempts from there ends in a goal. A tap-in might be 0.7 or higher, while a speculative shot from distance could be 0.03, or a 3 percent chance.
Can a team's xG be higher than the goals they scored?+
Yes, and it often is. A team can create 2.5 xG worth of chances and score only once — meaning they finished below expectation that day, through bad luck or poor finishing. Over many matches, goals and xG tend to converge, which is why xG predicts future scoring well.
What goes into an xG model?+
Distance from goal, angle to the goal, the body part used (foot versus header), the type of assist or pass before the shot, and whether it was a one-on-one or a set piece. Some models add defender positions and goalkeeper location. Each factor shifts the historical scoring probability.
Does xG include penalties?+
Usually yes. A penalty is typically assigned a fixed xG of around 0.76, reflecting the long-run conversion rate of spot kicks. Some analysts strip penalties out to judge open-play chance creation separately, so it is worth checking whether an xG figure is with or without penalties.
Is a high xG always good?+
For an attack, yes — it means a team is creating quality chances, which tends to produce goals over time. But a single match's xG can mislead. One huge chance can inflate it, and finishing varies game to game. xG is most reliable across a run of matches, not one result.
What is xGA and xGD?+
xGA is expected goals against — the quality of chances a team allows. xGD, expected goal difference, is xG minus xGA, a strong summary of overall team performance. A positive xGD means a team creates better chances than it concedes, which usually points to a good side.
Sources
Play & tools
Free browser games and tools — no account, no download.
- Play 38-0 — Sign a 4-4-2 of all-time football legends and chase a perfect 38-0 league season — perfect, not just unbeaten.
- Explore all our games →
Related football guides
View all →
What Is EPA in Football? Expected Points Added Explained
EPA is expected points added: how much a single play changes a team's expected points. Here is what it measures, a worked example, and how to read it.
What Is Corsi in Hockey? Shot-Attempt Differential Explained
Corsi counts all shot attempts for and against as a proxy for puck possession. Here is the formula, a worked example, and what Corsi For % tells you.
What Is DVOA in Football? Defense-Adjusted Value Explained
DVOA measures a team's success per play against a league baseline, adjusted for opponent, where 0% is average. Here is what it means and how to read it.
Most Goals in a Bundesliga Season: Lewandowski's 41
Robert Lewandowski holds the Bundesliga single-season goal record with 41 in 2020-21, breaking Gerd Müller's 40 that stood 49 years. Full record table.
Messi's Most Goals in a Season: 73 in 2011-12
Lionel Messi's best season was 73 goals for Barcelona in 2011-12, a European record. He also scored 91 in the 2012 calendar year. Season vs year explained.
Most Ballon d'Or Awards: Messi Leads With 8
Lionel Messi has won the most Ballon d'Or awards, with 8. The full ranked list of the most-decorated winners, plus the women's award record.