Sports Analytics & Fitness

Soccer xG (Expected Goals) Calculator

Understand and calculate Expected Goals (xG) in soccer to evaluate the exact probability that a given shot results in a goal based on historical data.

Estimated Match xG
1.64

Calculated locally in your browser. Fast, secure, and private.

The Probability of the Pitch

In traditional soccer analysis, commentators evaluate a striker based entirely on the goals they actually scored. However, soccer is a notoriously low-scoring game heavily influenced by luck. A striker might hit the post three times from point-blank range and finish the game with zero goals.

Expected Goals (xG) revolutionizes soccer analysis by ignoring the final result and instead measuring the mathematical quality of the chance created.

The Mathematics of the Shot

xG assigns a probability value (between 0.00 and 1.00) to every single shot taken, based on historical data. A penalty kick has a 79% chance of going in, so it is worth 0.79 xG. A wild shot from 40 yards out might have a 1% chance, making it worth 0.01 xG.

The Estimation Formula

Professional analytics firms like Opta use tracking cameras to analyze the exact angle, distance, defensive pressure, and goalkeeper position for every shot. For scouting purposes, this calculator uses industry-standard baseline estimates to build an xG model from manual match observation.

MatchxG(HighDanger0.40)+(MedDanger0.12)+(LowDanger0.03)+(Pens0.79)\small \begin{aligned} Match xG ≈ (High_Danger * 0.40) + (Med_Danger * 0.12) + (Low_Danger * 0.03) + (Pens * 0.79) \end{aligned}

Where:
High Danger=
Shots taken from inside the 6-yard box or clear 1-on-1s
Med Danger=
Standard shots taken from inside the 18-yard penalty area
Low Danger=
Speculative shots taken from outside the penalty area
Pens=
Official penalty kicks taken

Interpreting Match xG

If Team A accumulates 2.85 xG but loses the match 1-0 to Team B (who accumulated 0.35 xG), the data proves that Team A utterly dominated the match and was drastically unlucky. Over a 38-game season, xG data is significantly more predictive of a team's final league position than their actual early-season point total.

Frequently Asked Questions

No. Traditional xG measures the quality of the chance before the ball is struck. If a player blasts a wide-open 6-yard tap-in into the upper deck, the xG remains high (e.g., 0.50) because the opportunity was excellent. Advanced models called PSxG (Post-Shot Expected Goals) measure the trajectory of the ball after it is kicked.

If a striker has 10.0 xG but has scored 15 actual goals, there are two possibilities: they are an absolutely elite, world-class finisher (like Lionel Messi), or they are experiencing an unsustainable streak of luck that will eventually regress to the mean.

No. A value of 1.0 represents a 100% absolute certainty of scoring. No shot in soccer, not even an open net, is 100% guaranteed. The highest xG values (around 0.95) are reserved for tap-ins with the goalkeeper fully out of the picture.