How football tables split teams level on points — and why the rules shift
A guide to the maths and logic behind goal difference, goals scored and head-to-head records, and why FIFA, UEFA and the Premier League don't all rank ties the same way.

A league table sorts clubs by points first, but points alone rarely settle everything. Once two or more teams finish with the same points total, a competition falls back on a published order of tiebreakers to decide who sits above whom.
The most widely used first tiebreaker is goal difference: goals scored minus goals conceded across all matches played. That figure is compared directly against any other side level on points, with the bigger positive total ranked higher.
If goal difference is also identical, the next criterion is usually total goals scored. A team that has found the net more often is ranked above one with the same points and the same goal difference but fewer goals. This rewards attacking output even when defensive records cancel out.
Head-to-head results are the other major tool, but competitions use them differently. According to Wikipedia, FIFA competitions tend to apply goal difference and goals scored before turning to the matches between the tied sides, whereas UEFA and AFC competitions instead put head-to-head points first, ahead of overall goal difference.
Wikipedia cites the 2018 FIFA World Cup as an illustration of how goal difference alone can separate sides on identical points: South Korea and Germany both finished Group F with three points, but South Korea's goal difference of −1 beat Germany's −2, putting South Korea through.
Head-to-head comparisons themselves can be built from different ingredients. Some formats compare only the points earned in matches between the tied teams; others add goals scored in those specific fixtures, sometimes including an away-goals count from meetings between the sides concerned.
How the Premier League orders it
The Premier League's own method, as described by Wikipedia, ranks tied clubs first by goal difference and then by total goals scored across the season. If clubs are still level after that, they are simply treated as occupying the same league position.
That changes, however, when the tie actually affects the championship, relegation or qualification for other competitions. In those cases the Premier League brings in head-to-head results — points earned in matches between the tied clubs, then away goals from those same fixtures. If the sides remain level even then, a play-off at a neutral venue is used to decide the final ranking.
Why competitions set their own order
Wikipedia's general entry on tiebreakers notes that many sports build their own sequence of statistics to compare tied teams one at a time, and that if every criterion ends in a dead heat, some competitions fall back on a coin toss or a draw of lots — as happened between Ireland and the Netherlands at the 1990 FIFA World Cup. A small number of tournaments have also used a fair play table, ranking sides by their accumulated yellow and red cards when nothing else separates them.
These are table-based solutions, designed for round-robin group or league formats where a draw is a normal, accepted result. They are distinct from knockout football, where a tie cannot simply stand: Wikipedia notes that competitions such as the FA Cup historically used a full replay when a tie finished level, working through extra time and penalties if needed, though replays have been dropped from the quarter-final stage onwards in that competition.
The underlying pattern is that every method — goal difference, goals scored, head-to-head, or extra fixtures — is simply a different way of using statistics already generated by the matches played, rather than new games invented purely to settle the tie, except where a genuine play-off or replay is required.