Cumulative xG shows how a team’s attacking output develops throughout a match by progressively adding up the xG value of each shot. This metric helps identify when the highest-quality chances are created and how the attacking threat changes as the match unfolds. This allows analysts to go beyond the final expected goals figure and adds a time dimension to match analysis.

How to Calculate Cumulative xG to Analyse a Football Match

The final xG figure summarises the overall quality of the chances a team creates, but it does not explain how those chances were distributed throughout the match. Two teams can finish with similar xG figures despite creating their attacking opportunities in very different ways. One might generate its best chances within a few minutes, while another consistently produces lower-value shots. Cumulative xG adds this time dimension, helping analysts understand when a team’s attacking threat actually increases.

Each new shot adds its expected goals value to the previous total. This means that cumulative xG tracks both the moments when a team creates chances and the periods when it fails to generate attacking opportunities. The sequence of these increases provides insights into the match that the final xG figure alone cannot offer. A sharp rise indicates several dangerous chances within a short period, while a more gradual increase reflects attacking opportunities spread over a longer period.

This approach is useful for linking data to tactical adjustments, substitutions and changes in attacking intensity. Rather than simply looking at how much xG a team generated, the analysis also considers when it was generated and how the team’s ability to create goalscoring opportunities developed throughout the match.

Cumulative xG shows how a team’s attacking threat develops throughout a match and helps analysts assess its performance using data.

What Data Do You Need to Calculate Cumulative xG?

Calculating cumulative xG requires a consistent record of match events before any values can be added together. Each shot must contain enough information to place it within the match timeline, identify its location on the pitch and describe the circumstances in which it was taken. The dataset must also follow consistent criteria throughout the match to ensure the metric accurately reflects the team’s attacking output.

The data required can be divided into several categories, each serving a different purpose in the analysis:

  • Timing and shot event data: Every shot needs a minute and second timestamp, match, team and player identifiers, and the outcome of the attempt. These fields allow analysts to arrange events in the correct order and ensure no shots are missing from the dataset.
  • Shot location, distance and angle: The coordinates of each shot allow analysts to calculate two essential variables in the model: distance from goal and shooting angle. Using a consistent coordinate system prevents discrepancies between matches or data providers.
  • Shot context: The model becomes more accurate when it distinguishes between crosses, cut-backs, dribbles, rebounds, counter-attacks, open play and set pieces. The body part used and the type of finish also play a role.
  • Defensive variables and match situation: Pressure on the shooter, defender positioning, the scoreline, match time and any red cards provide additional context for understanding the conditions in which each chance was created.
  • Dataset standardisation and quality control: Analysts must standardise coordinates, adjust pitch orientation, remove duplicate records and establish clear rules for disallowed shots or repeated events. It is also advisable to record the model version and data provider used.

The accuracy of cumulative xG depends directly on the consistency of these variables and the rules applied to the dataset. Once the data has been validated, the next step is to arrange the shots chronologically and progressively add up the xG value assigned to each one.

How to Calculate Cumulative xG Shot by Shot

Cumulative xG is calculated by progressively adding up the xG value assigned to each shot taken by a team. Each shot is given an estimated probability of becoming a goal, ranging from 0 to 1, based on the variables used by the model, such as distance, angle, the context of the play and the type of finish. The chronological order is essential, as it allows analysts to track how a team’s attacking threat develops throughout the match.

The mathematical formula represents this sum up to a specific point in the match.

xGcumulative(t) = ∑i ∈ S(t) xGi

In this formula, S(t) represents all shots taken up to the point being analysed, while xGᵢ represents the expected goals value of each shot. If a team takes a shot worth 0.12 xG followed by another worth 0.28, its cumulative xG increases from 0.12 to 0.40. A subsequent shot worth 0.03 barely changes the trajectory, whereas a high-quality chance worth 0.38 produces a much more noticeable increase.

Not all events affect the analysis in the same way. Penalties cause significant jumps, rebounds can lead to additional shots, and own goals are generally excluded from standard attacking xG calculations. The treatment of blocked shots, sequences of consecutive attempts and the distinction between open play and set pieces also depend on the criteria established by the data provider or the model itself. Methodological consistency is just as important as the calculation itself.

The following example shows how cumulative xG develops shot by shot, reaching 2.07 xG by the end of the match.

Minute Action Shot xG Cumulative xG
04 Shot in transition 0.12 0.12
11 Shot from a cross 0.28 0.40
18 Long-range shot 0.03 0.43
27 One-on-one chance 0.38 0.81
33 Second-phase chance from a corner 0.09 0.90
41 Penalty 0.76 1.66
53 Shot under pressure 0.06 1.72
62 Shot from a cross 0.15 1.87
75 Counter-attacking shot 0.18 2.05
88 Long-range shot 0.02 2.07

The table makes it easy to identify which actions have a significant impact on a team’s attacking output and which barely affect cumulative xG. This is why the final figure becomes more meaningful when the sequence of shots is preserved, rather than analysing it as an isolated statistic.

How to Calculate Cumulative xG to Analyse a Football Match

How to Interpret the Cumulative xG Curve During a Match

The cumulative xG curve turns a sequence of shots into a timeline of a team’s attacking performance. Rather than focusing solely on the final figure, it shows how chances develop throughout the match and helps identify when a team becomes more threatening in attack. Each shot creates a new step in the curve, with its size determined by the xG value assigned to that attempt.

A sharp rise indicates a high-quality chance, while several smaller increases reflect a series of lower-quality shots. The shape of the curve helps distinguish between attacking volume and the creation of clear goalscoring opportunities. Two teams may finish a match with similar xG figures but reach those totals through completely different attacking patterns.

A visual example helps illustrate how this analysis applies to a match. The curve highlights when attacking opportunities are concentrated, which actions produce the largest increases in xG and when a team stops creating chances. Tracking this sequence makes it easier to link changes in the curve to specific moments in the match.

Example of a Team’s Cumulative xG Curve During a Match

0.0 0.4 0.8 1.2 1.6 2.0 0 15 30 45 60 75 90 Match Minute Cumulative xG Penalty +0.76 Counter-attack +0.18 Total 2.07 xG
Cumulative xG curve
Recorded shots

Note: This example uses the shot sequence presented in this article to illustrate how a team’s cumulative xG develops throughout a match.

Flat sections of the curve also provide valuable insights. They represent periods without shots and help identify phases when a team maintains possession without creating a threat, struggles to move the ball forward or finds it difficult to break down the opposition’s defensive structure. By contrast, several steps within a few minutes indicate a period of intense attacking activity.

This analysis becomes even more valuable when linked to the tactical context. A change in formation, a substitution or an adjustment to the pressing strategy can affect the rate at which chances are created. If the curve begins to rise more frequently or shows larger increases following a tactical adjustment, the data provides a quantitative indication of how the team’s attacking performance has changed.

Interpreting cumulative xG requires analysing when attacking threats emerge, how frequently they occur and the quality of the shots involved. This turns the curve into a useful tool for connecting data with how the match actually unfolds, rather than treating it as an isolated statistical representation.

xG For vs xG Against

Comparing the xG a team generates with the xG it concedes helps assess whether it created more dangerous chances than its opposition. The most direct measure is the xG differential, although its interpretation becomes more meaningful when combined with the xG ratio and average shot quality. Each metric answers a different question when analysing a match.

The main differences can be summarised as follows:

Metric What It Compares What It Measures Key Insight
xG Differential xG for minus xG against Balance between chances created and conceded Shows whether a team created more dangerous chances than it allowed
xG Ratio A team’s xG as a proportion of the match’s total xG Each team’s share of the attacking threat during the match Helps compare matches with different volumes of chances
xG per Shot Cumulative xG divided by the number of shots Average quality of chances created Distinguishes shot volume from the quality of goalscoring opportunities

Common Errors That Affect Cumulative xG and How to Report It

Cumulative xG is only useful when the calculation follows consistent criteria and the analyst understands the limitations of the model being used. Getting the sum right does not automatically guarantee a reliable interpretation. Data quality, the chronological order of events and the rules applied to each action all influence both the final figure and the conclusions drawn from it.

Before including this metric in a performance or scouting report, it is important to avoid several common errors that can distort the analysis:

  • Combining values from different models or data providers: Each source uses its own variables, definitions and calibration methods, meaning their xG values should not be treated as directly interchangeable.
  • Changing the chronological order of events: Incorrectly ordering shots by minute and second distorts the curve and places chances at the wrong moments in the match.
  • Duplicating shots within the dataset: Errors when combining data sources can cause the same shot to be recorded twice, artificially increasing cumulative xG.
  • Applying inconsistent rules to penalties, own goals or rebounds: Analysts must establish which actions are included in the calculation from the outset and apply those rules consistently throughout the analysis.
  • Treating cumulative xG as a definitive judgement of the match: The metric measures shot quality but does not capture every attacking advantage created before a shot is taken.

A professional report should identify the model used, apply consistent definitions and place the figures within the context of different phases of play. Comparing xG for and against, while linking the data to specific match situations, also helps scouts, analysts and coaching staff develop a shared understanding of team performance.

Mastering cumulative xG therefore means knowing how to calculate it, interpret it and turn it into actionable football insights. This combination of football knowledge, statistics and technology is central to the work of today’s football analysts and forms a key part of the MSc in Data Analytics in Football at Sports Data Campus, a specialised programme designed to develop the skills needed to apply data analytics in professional football.

Fill in the form below to receive more information about the MSc Data Analytics in Football
WhatsApp contact with Pedro