Expected Goals (xG) Calculator

Expected goals (xG)0.109
Scoring probability10.9%
Chance typeOpen play
How this was calculated
  1. The model's two inputs are geometry: a shot from 12 m sees the goal under an angle of 35 degrees (0.611 rad) - the wider that angle, the more of the goal the shooter can aim at.
  2. Logit = -2.785 + 1.479 x 0.611 - 0.096 x 12 + 0.374 x ln(12) = -2.104, and converting back, xG = 1 / (1 + e^-logit) = 0.109.
  3. In plain terms, about 11 of every 100 identical open play chances are scored by an average finisher against an average goalkeeper.
  4. Distance punishes a shot twice in the formula - directly, and because a longer shot usually subtends a smaller angle - which is why analysts push teams toward fewer, closer attempts instead of hopeful long shots.

This expected goals calculator turns two simple measurements about a shot into a single number: the probability that the shot is scored. Expected goals, or xG, is the standard way to put a value on a chance, and this page gives you that value for any open-play shot. The model prices a shot from two geometry inputs: distance to goal and the angle the goal subtends at the ball, the spread of the goal mouth as seen from where the ball is struck. To see how much the inputs matter, compare two shots. An open-play shot from 12 m with a 35-degree goal angle is worth 0.109 xG, meaning about 11 of 100 identical chances are scored. Move in to 6 m with a 55-degree angle and the same model gives 0.219 xG, roughly double. The calculator also handles penalties, which the model fixes at 0.79 xG.

The method behind those numbers is the accepted standard for this kind of calculation: the model runs the two geometry inputs through a logistic formula, and its penalty value of 0.79 xG is in line with the long-run conversion rate of penalties across the major leagues. That is why the output is a probability you can compare across shots rather than a loose guess. This page does not just hand you a result. It shows the formula, the step-by-step workings, worked examples and the sources behind the model, so you can follow every part of the calculation and check it yourself.

Worked examples

Open play, 12 m out, 35 degree goal angle

Expected goals (xG) = 0.109. Scoring probability: 10.9%; Chance type: Open play. (12 m · 35 deg · Open play)

Expected goals (xG)0.109
Scoring probability10.9%
Chance typeOpen play

Open play, close range at 6 m

Expected goals (xG) = 0.219. Scoring probability: 21.9%; Chance type: Open play. (6 m · 55 deg · Open play)

Expected goals (xG)0.219
Scoring probability21.9%
Chance typeOpen play

Penalty kick

Expected goals (xG) = 0.790. Scoring probability: 79.0%; Chance type: Penalty. (11 m · 40 deg · Penalty)

Expected goals (xG)0.790
Scoring probability79.0%
Chance typePenalty

How expected goals are calculated

An expected goals calculator does not watch the shot. It measures the geometry and then converts that geometry into a probability. The model takes just two inputs from the moment the ball is struck: the distance to goal, and the angle the goal subtends at the ball — that is, how wide the goal mouth appears from where the shooter stands. Everything else in this section follows from those two numbers.

The two inputs enter a logistic formula. The angle is measured in radians, and distance appears twice: once on its own and once as a log-distance term. Each term gets a weight, the weighted terms are summed into a single number called the logit, and the logit is then pushed through the logistic function, 1 / (1 + e raised to the negative logit). That last step is what keeps every output between 0 and 1, so the result can be read directly as a probability. Squaring the angle and logging the distance let the model bend: a shot's value rises quickly as the angle opens up and falls off more gently as distance grows, rather than moving in a straight line.

The 12 m example shows the arithmetic in words. An open-play shot from 12 m with a 35-degree goal angle is worth 0.109 xG — about 11 of 100 identical chances are scored. The same model, given a shot from 6 m with a 55-degree angle, returns 0.219 xG, roughly double. Halving the distance and widening the angle by 20 degrees does not simply double the raw geometry, but it does roughly double the probability once the logistic step is applied. Notice that the output is a long-run rate, not a verdict on any single strike: the 0.109 shot is scored about one time in nine, and the other eight are not evidence that the model was wrong.

Penalties are the exception that proves the rule. A penalty is fixed at 0.79 xG in the model, in line with the long-run conversion rate of penalties across the major leagues. There is no angle to measure from the spot and no meaningful distance variation, so the model skips the geometry and assigns the historical rate directly.

Because the formula is fixed, the same inputs always produce the same output. Two shots from identical distance and angle get identical xG, whatever the score, the minute, or the identity of the shooter. That is the point of the expected goals calculator: it gives every chance a single, repeatable price built from distance and angle alone.

Inputs: distance to goal and the angle the goal subtends at the ball, in radians. The model also includes a log-distance term. Output: a probability between 0 and 1.

Why distance punishes a shot twice

Distance does not merely make a shot longer; in an expected goals calculator it lowers the value of a chance in two separate ways at once. The model prices every open-play shot from two geometry inputs — the distance to goal and the angle the goal subtends at the ball — and passes them through a logistic formula. Because both inputs move in the same direction as a player retreats from goal, the penalty for distance is compounded rather than simply added.

The first hit is direct. The distance term in the formula shrinks the estimate as the ball gets farther from the target, so a long-range effort starts from a lower baseline before anything else is considered. The second hit comes from the angle. As a shooter moves away from the goal, the mouth of the goal appears narrower — the angle it subtends at the ball shrinks — and that narrower angle feeds a second reduction into the same logistic formula. A defender closing space and a shooter drifting backward therefore cost a team twice over: more ground to cover and less goal to aim at.

The numbers show how quickly the two effects stack. An open-play shot from 12 m with a 35-degree goal angle is worth 0.109 xG — about 11 of 100 identical chances are scored. Move in to 6 m with a 55-degree angle and the same model gives 0.219 xG, roughly double. Halving the distance and widening the angle by 20 degrees does not nudge the value upward; it doubles it. That is the arithmetic behind the coaching message.

This is why analysts push teams toward closer attempts. A speculative shot from outside the area carries a low expected goals value no matter how cleanly it is struck, while working the ball into a better position can multiply the chance's worth. The expected goals calculator makes the trade-off visible: the same shot quality, taken from a tighter angle and a longer range, is worth a fraction of a close-range chance.

The model also shows how far the geometry of open play sits from a set piece. A penalty is fixed at 0.79 xG in the model, in line with the long-run conversion rate of penalties across the major leagues — a value no open-play position from distance approaches. That gap is the clearest argument for patience in possession: the surest route to a high-value chance is to get closer and open up the angle, not to shoot from where the goal looks small.

12 m at 35 degrees: 0.109 xG. 6 m at 55 degrees: 0.219 xG — roughly double for the same model.

Penalties and set pieces

An expected goals calculator treats most shots the same way: it measures the geometry of the chance and converts that into a probability. But not every shot fits that mold. Penalties, free kicks and headers are the situations where a simple distance-and-angle model starts to strain, and where the choices a calculator makes become visible in the number it returns.

A penalty is the clearest example. In this model, a penalty is fixed at 0.79 xG, regardless of who takes it or which corner they aim for. The reason is that the geometry of a penalty barely varies: the ball sits 12 yards from goal with a clear, unobstructed view of the target, so distance and angle tell you almost nothing that separates one penalty from another. What does separate them is the long-run conversion rate of penalties across the major leagues, and 0.79 is set to match that rate. Fixing the value keeps the calculator honest. A logistic formula fed the geometry of a penalty would produce a number, but it would be a number built on inputs that do not change, dressed up as if they did. The fixed figure says plainly: this is what penalties are worth on average.

Free kicks are different, and this is where richer models earn their keep. A direct free kick from a given distance and angle can be priced with the same two geometry inputs the model already uses, but the wall, the keeper's positioning and the shooter's technique all shift the real probability in ways geometry alone cannot capture. A richer model might add a variable for whether a wall is present, or separate direct free kicks from crosses and lay-offs. Headers introduce another layer: the height and pace of the cross, the number of defenders nearby and the attacker's position relative to the ball all matter, and a model that ignores them will misprice the chance. The core lesson is that the more a shot type departs from a clean, open strike, the more a richer model has to add beyond distance and angle.

It helps to see what the geometry alone produces. An open-play shot from 12 m with a 35-degree goal angle is worth 0.109 xG, meaning about 11 of 100 identical chances are scored. Move in to 6 m with a 55-degree angle and the same model gives 0.219 xG, roughly double. Those numbers come from a logistic formula that takes only distance to goal and the angle the goal subtends at the ball. The penalty's fixed 0.79 sits far above both, which is the point: a penalty is not a better-angle version of an open-play shot, it is a different kind of event with its own conversion history.

A penalty is fixed at 0.79 xG because its geometry barely varies; the value tracks the long-run conversion rate of penalties across the major leagues.

Using xG honestly

An expected goals calculator is only as good as the inputs it can see, and the model sees very little. It prices a shot from two geometry inputs — distance to goal and the angle the goal subtends at the ball — through a logistic formula. That is the whole picture: where the ball was struck from. Everything that made the chance easy or hard in real life, from the defender closing in to which foot took the shot, is invisible to it.

Consider the same spot on the pitch with a defender arriving. The geometry is unchanged, so the number is unchanged, but the chance is not. A shot struck under pressure, off balance, or with a weaker foot is a harder task than the model's clean, average version of that location. Goalkeeper position matters just as much: a keeper caught off the line or moving the wrong way turns a modest angle into a real opportunity, while a well-set keeper narrows it. None of this is captured, because none of it is in the two inputs. The number describes the location, not the moment.

The model's scale is worth keeping in mind. An open-play shot from 12 m with a 35-degree goal angle is worth 0.109 xG — about 11 of 100 identical chances are scored. Move in to 6 m with a 55-degree angle and the same model gives 0.219 xG, roughly double. A penalty is fixed at 0.79 xG in the model, in line with the long-run conversion rate of penalties across the major leagues. These figures are averages over many repeats, not predictions of any single shot.

That is the honest way to read xG: it judges process over single outcomes. A striker who takes the 0.219 chance and misses has not necessarily erred, and a player who scores from a low-value position has not necessarily beaten the model. Over a season, the totals tend to say more than any one match, because the noise of finishing and luck averages out. Use the expected goals calculator to ask whether the right chances were being created and conceded — not to grade one shot, one save, or one result.

xG scores the chance, not the execution. Defender pressure, goalkeeper position and weak-foot finishes are outside the model — so treat any single shot's number as an average, not a verdict.

FAQs

What is a good xG for a single shot?

A shot from 6 m in the close-range example scores 0.219, so anything above that is a genuinely big chance. That makes 0.219 a useful benchmark for a strong opportunity. For comparison, a penalty is 0.79, far higher than almost any open-play shot, so treat 0.219 and up as the big-chance zone.

How is xG calculated from shot location?

The calculator uses distance and goal angle through a logistic formula. The 12 m, 35-degree example produces a logit that converts to 0.109. That means the model weighs how far the shot is taken from and how much of the goal the shooter can see, then converts the result into a probability between 0 and 1.

Why is a penalty worth 0.79 xG?

Penalties convert at a long-run rate between 0.75 and 0.80 across the major leagues, so this model fixes the value at 0.79. That single number reflects the typical success rate of a penalty kick, which is far higher than most open-play shots and makes penalties the most valuable standard chance.

Does xG say a shot should have scored?

No. A 0.109 xG means about 11 of 100 identical chances score, so a miss is the normal outcome, not a failure. xG describes the probability of a chance, not a prediction that this particular shot must go in. Most chances, even decent ones, do not convert.

Why do long shots have such low xG?

Distance enters the formula twice: directly, and through the smaller goal angle. As range grows, the shot is farther away and the visible goal shrinks at the same time. Because both factors push the value down together, xG collapses quickly with distance, which is why long shots carry such low value.

What xG does a tap-in have?

Close range with a wide angle is the richest zone the geometry allows. Halving the distance from 12 m to 6 m roughly doubled the example from 0.109 to 0.219. So a tap-in from very close, with a wide view of the goal, sits in the highest-value area the model produces.

Sources

Related calculators

Pythagorean Expectation Calculator
Estimate a team's expected wins from runs scored and allowed, with the classic exponent 2, the run-environment Pythagenpat exponent, or your own.
Betting Odds Calculator
Convert decimal, fractional and American odds between each other, and work out total payout, profit and implied probability for any stake.
wOBA Calculator
Work out wOBA from a full batting line with the official 2023 FanGraphs weights - every way of reaching base priced by the runs it is really worth.