What this calculator does
This tool builds a soccer (association football) league standings table from each team's match record. You enter every team's wins, draws, losses, goals scored and goals conceded, and it computes points, matches played and goal difference, then ranks all teams from best to worst. It is a universal sports tool that follows the standard FIFA/league points and tie-break logic, so it works for any competition worldwide.
How to use it
Set the number of teams (2-32) and confirm the scoring (the modern default is 3 points for a win, 1 for a draw, 0 for a loss; switch to 2-1-0 for older systems). Fill in each row with W, D, L, GF and GA. Blank cells are treated as 0, so a team that has not played yet simply stays at the bottom with 0 points.
The formula explained
For each team, points are $$\text{Pts} = W \times p_w + D \times p_d + L \times p_l$$ and goal difference is $$\text{GD} = \text{GF} - \text{GA}$$ Matches played is \(W + D + L\). Teams are then sorted by a three-level comparison: (1) higher points first, (2) if tied, higher goal difference, (3) if still tied, more goals scored (GF). Any teams that remain equal on all three keep their input order.
Worked example
Four teams with 3-1-0 scoring: A (W3 D1 L0, 9-3), B (W2 D2 L0, 7-4), C (W2 D1 L1, 6-5), D (W2 D1 L1, 8-7). Points: \(A=10\), \(B=8\), \(C=7\), \(D=7\). C and D tie on points and on GD (+1), so goals scored breaks it: D's 8 beats C's 6. Final table: 1) A 10pts, 2) B 8pts, 3) D 7pts, 4) C 7pts.
FAQ
Why is goal difference used before goals scored? Most leagues rank equal-point teams first by goal difference, then by goals scored, which is exactly the order this tool applies.
Can a team have 0 matches? Yes. All-zero teams get 0 points and 0 goal difference and sort to the bottom.
Does it check that the results are consistent? No. Each row is taken as entered; total league wins need not equal total losses.