Picture the final whistle. Your team lost 1-0, but you watched them dominate: shot after shot, a header off the post, a keeper playing the game of his life. A friend shrugs and says, "Football is about goals. They lost." Who is right?

For decades, that argument had no referee. Today it does, and it is called expected goals, or xG. This guide explains what the number means, how it is built, where it helps, and where it can fool you.

The idea in one sentence

Expected goals measures the quality of a chance, not its outcome. Every shot is given a value between 0 and 1 that estimates how often a shot like it ends up as a goal.

A penalty is worth roughly 0.76 xG, because around three in four penalties are scored. A speculative effort from 35 yards might be 0.02, meaning it goes in about once in fifty attempts. Add up the values of all the shots a team takes in a match and you get their xG total for that game.

A goal is an event. A chance is a measurement.

How the number is built

Analysts take a very large database of past shots and record what each one looked like. Then a statistical model learns which features predict goals. Common ingredients include:

  • Distance to the goal and angle of the shot.
  • Body part: headers convert less often than shots with the foot.
  • Type of build-up: open play, a set piece, a counter-attack, a rebound.
  • Defensive pressure and goalkeeper position, when tracking data is available.

The model outputs a probability for any new shot. Different providers use different data and slightly different models, so two sources can disagree on the same match by a few tenths of a goal. That is normal; xG is an estimate, not a law of physics.

Here is a tiny sketch of the logic, just to show there is no magic involved:

# Toy example with invented numbers, not a real model
shots = [
    {"minute": 12, "xg": 0.07},   # long-range drive
    {"minute": 34, "xg": 0.45},   # tap-in at the far post
    {"minute": 71, "xg": 0.12},   # header from a corner
    {"minute": 88, "xg": 0.76},   # penalty
]
team_xg = sum(s["xg"] for s in shots)
print(round(team_xg, 2))  # 1.4

That team "deserved" about 1.4 goals. If they scored none, they were unlucky; if they scored four, they were lucky or clinical.

Why it explains results better than the scoreline

Football is a low-scoring sport, so a single deflection or goalkeeping error can flip a game. Over one match, luck has a huge say. Over a season of 38 matches, luck evens out, and xG becomes a surprisingly good predictor of a team's true strength.

Consider two clubs that both finished with 50 points. One created 60 xG and conceded 40; the other created 40 and conceded 60. They look equal in the table, but the first is almost certainly better and is likely to climb next season, while the second may be about to fall. That is why analysts and club recruitment teams love the metric: it separates performance from fortune.

A useful comparison is "goals minus xG." A striker who scores 18 from 12.5 xG is either finishing brilliantly or riding a hot streak. Historically, a few elite finishers do beat their xG year after year, but most players who overperform regress toward their expected level the following season.

Where xG helps fans and coaches

  • Judging a single match fairly. A 2.8 to 0.3 xG scoreline in a 0-0 draw tells you who controlled it.
  • Evaluating a tactical change. Did the new formation actually produce better shots, or just more of them from far away?
  • Scouting players. A forward who gets into high-value positions repeatedly may be worth signing even during a barren spell.
  • Spotting a manager's real impact. If results improve but chance quality does not, be cautious.

Many broadcasters now flash xG on screen after the final whistle. It is not there to replace the scoreboard; it is there to give context to it.

A worked example: reading one match

Suppose Team A beats Team B 2-1, but the xG reads A 0.9 and B 2.4. At first glance A won; the numbers say B created far better chances. Look closer and the story often fits: A scored from a long-range strike (low xG) and a deflected cross, while B missed two open chances inside the six-yard box and met a goalkeeper in top form.

One game like this proves little. If it keeps happening across ten matches, though, a pattern emerges. Team A is living on borrowed luck and will probably drop points soon, while Team B is quietly good and due a turnaround. Spotting that gap early is exactly why analysts, bettors-turned-researchers and club staff track the metric, and why it has moved from niche blogs into mainstream broadcasts.

The limits: what xG does not tell you

It is easy to over-trust a tidy number. A few honest caveats:

  1. It ignores the shooter's skill. Basic models treat every player the same, so an elite finisher and a weak one get the same value for the same shot.
  2. It only values shots. A brilliant pass that splits a defense earns nothing unless a shot follows. Newer metrics such as expected assists and "possession value" try to fill that gap.
  3. It can be gamed by volume. A team that fires thirty low-quality shots may rack up a decent total while posing little real danger.
  4. Game state matters. A team protecting a 2-0 lead plays differently, so their low xG may be a choice, not a weakness.

Use xG like a weather forecast: a strong clue, never a guarantee.

A simple way to use it yourself

You do not need a spreadsheet. Next time you watch a match, ask three questions. How good were the best chances, not how many? Did the result match the flow of the game? And is the winner's performance repeatable, or did it depend on one lucky moment?

Free match pages from several data providers list xG next to each shot, so you can check your instincts afterward. Over a few weeks you will notice something fun: your sense of who "should have won" becomes much sharper.

Summary

Expected goals turns the vague feeling that "we were unlucky" into a measurable estimate. It rates each shot by how often similar shots score, sums them into a match or season total, and reveals whether a result was deserved. It is imperfect, because it ignores finishing skill and non-shot contributions, but as a lens it beats the scoreline alone.

So the next time a friend insists that only goals count, you can smile and say: sure, but the chances count too. And your team probably deserved better.