Soccer Expected Goals (xG) Calculator

Calculate simplified expected goals (xG) based on shot distance, angle, body part, and assist type. Understand what xG means and how it measures shot quality in soccer.

m
°
Shot xG
0.62
62% chance of scoring

Typical xG Values by Situation

SituationTypical xG
Penalty kick0.76
One-on-one, 8m, 45°0.35–0.45
Inside 6-yard box, foot0.40–0.70
Edge of box, 12m, good angle0.10–0.20
Header from cross, 8m0.05–0.12
Long-range, 25m0.02–0.05
Direct free kick, 20m0.04–0.08
Tight angle, 6m0.08–0.15
⚠️ Disclaimer: This is a simplified educational xG model. Professional xG models (Opta, StatsBomb) use machine learning trained on hundreds of thousands of shots with 50+ features including player tracking data. Use this for learning, not for scouting or betting decisions.
Planning notes, formulas, and examples

About the Soccer Expected Goals (xG) Calculator

Expected Goals (xG) is the most important metric in modern soccer analytics. It measures the quality of a goal-scoring chance based on factors like shot distance, angle to goal, body part used, and how the chance was created. Each shot is assigned an xG value between 0 and 1, representing the probability that an average shot from that situation would result in a goal. A penalty is typically worth about 0.76 xG, while a 30-yard speculative effort might be worth just 0.03 xG.

Our simplified xG Calculator lets you estimate the expected goals value of any shot by entering key parameters. While professional xG models use machine learning trained on hundreds of thousands of shots, this calculator uses a transparent logistic-regression-style model based on the core factors that drive xG: distance, angle, body part, assist type, and game state. The results are educational approximations designed to help you understand how xG works.

Whether you're an amateur coach analysing your team's shot quality, a fantasy football player evaluating strikers, or a tactics enthusiast exploring why some teams consistently outperform their goal tally, understanding xG is essential for modern football analysis.

When This Page Helps

xG separates shot quality from finishing luck. A team scoring 3 goals from 0.8 xG is overperforming; a team scoring 0 from 2.5 xG is unlucky. Over time, xG strongly predicts future goal-scoring better than actual goals. This calculator helps you build intuition for shot quality and appreciate the analytics behind modern football.

How to Use the Inputs

  1. Enter the shot distance from goal (in metres or yards).
  2. Enter the shot angle to goal (degrees, or use the auto-estimate from position).
  3. Select the body part used (foot, head, or other).
  4. Select the assist type (through ball, cross, set piece, or open play).
  5. Optionally toggle whether it's a one-on-one or a rebound.
  6. View the estimated xG for this shot along with contextual comparisons.
  7. Add multiple shots to build a match or season xG total.
Formula used
Simplified xG ≈ 1 / (1 + e^(−z)), where z = β0 + β1×distance + β2×angle + β3×bodyPart + β4×assistType + β5×situation. Base coefficients: β0 = 1.10, β1 = −0.10/metre, β2 = 0.015/degree. Adjustments: header −0.15, weak foot −0.05, through ball +0.20, cross −0.10, one-on-one +0.50, rebound +0.30, penalty xG ≈ 0.76 (fixed). Real xG models use ML with 50+ features.

Example Calculation

Result: xG: 0.67

A right-foot shot from 12 metres with a 40° angle to goal, created by a through ball. Base z = 1.10 − (0.10 × 12) + (0.015 × 40) + 0.20 (through ball) = 1.10 − 1.20 + 0.60 + 0.20 = 0.70. xG = 1/(1+e^(−0.70)) ≈ 0.67. This is a good-quality chance — you would expect roughly 2 goals from 3 such chances.

Tips & Best Practices

  • Penalties have a fixed xG of about 0.76 based on historical conversion rates across top leagues.
  • One-on-ones (breakaways) typically have xG of 0.30–0.45 depending on distance and angle.
  • Headers generally have lower xG than foot shots from the same position due to less control.
  • Shots from crosses tend to be lower quality than shots from through balls or cutbacks.
  • A team's xG total over a season is a better predictor of next season's goal tally than actual goals scored.
  • The top strikers in the world consistently outperform their xG by 15–25%, indicating genuine finishing skill.

The Rise of xG in Modern Football

Expected goals entered mainstream football discourse in the mid-2010s, though academic models existed earlier. Clubs like Brentford, Brighton, and Midtjylland adopted xG-based analysis early and outperformed their payrolls, validating the metric's practical value. Since then, nearly every major club, broadcaster, and analyst has treated xG as a fundamental tool.

xG Models: Simple to Complex

Basic xG models use only shot distance and angle (explaining ~60–70% of variance). Intermediate models add body part, assist type, and game state. Advanced models incorporate tracking data: defender positions, goalkeeper location, shot speed, and expected completion probability of the assist. The most sophisticated models use gradient-boosted trees or neural networks trained on millions of shots.

Practical Uses of xG

Coaches use xG to evaluate attacking performance independent of finishing variance. Scout departments use player-level xG to identify strikers who create high-quality chances. Fantasy managers use xG to find players whose underlying numbers suggest they'll score more goals in the future. Betting markets incorporate xG heavily into their models for match projections.

Sources & Methodology

Last updated:

Methodology

This worksheet uses a transparent logistic-style xG approximation built from shot distance, angle, body part, assist type, and simple situation flags. It is educational and intentionally simpler than professional machine-learning models.

Sources

  • StatsBomb xG documentation (StatsBomb) — Open documentation on expected-goals modelling.
  • Expected goals in football analytics reviews (Peer-reviewed soccer analytics literature) — Background on xG as a shot-quality metric.
  • Opta and Understat xG explainers (Football data providers) — Common provider-level xG context.

Frequently Asked Questions

  • xG assigns each shot a value between 0 and 1 representing the probability of scoring based on historical data from similar shots. If a shot has 0.20 xG, it means that across thousands of similar attempts, about 20% resulted in goals. Total xG for a match is the sum of all shot xG values, representing how many goals "should" have been scored given the chances created.