# How FIFA ranking works?

Currently, FIFA for each match awards national teams points according to the formula that depend on:

1. (M) Result of the match (win, tie, lost, winning penalty game, lost game after penalty)
Depending on the end result, the number of points is given as follows:
- for the winning match: 3 points
- for winning by penalties: 2 points
- for a draw or for a losing match in penalties: 1 point
- for a lost match: 0 points

2. (I) Tournament ratio
Obviously, a friendly game can not be scored as well as the World Cup final or qualification match. Therefore, depending on the tournament, the following is given the appropriate weight:
I = 4.0 – for match played at the World Championship
I = 3.0 - for continental championships (Euro, Copa America, African Cup of Nations, Gold Cup, Asian Cup) and for the match in Confederations Cup
I = 2.5 – for match in qualification for the World Cup or continental championship
I = 1.0 for a friendly match

3. (T) Position of the opponent in the last ranking published by FIFA.
Points can not be awarded without considering the opponent's strength. When, for example, Germany played a game against France on July 22th, 2017, we took into account the position of the teams in the latest ranking published by the start of the meeting on July 6th, 2017. The T-factor is 200 – team’s position but there are two exceptions:
If the team takes first place then T = 200 or if team takes place 150 and then T = 50 and further teams are also T=50. So the teams between 150 and 211 have the same value (T = 50).

4. (C) Federation Rate
The strength of the federation is calculated on the basis of the last three finals of the World Cup. I will not describe in this article how to calculate this factor, I will only present the final results. It is worth noticing that in the Polish Wikipedia (https://pl.wikipedia.org/wiki/Ranking_FIFA) there is an error: After the 2010 World Cup CONMBOL federation (South America) has a ratio of 0.98 (that is wrong). Correct is C = 1.0 Therefore, the ratio table C looks like this:

After the 2010 World Cup:
Uefa: 1.0
CONMBOL: 1.0
CONCACAF: 0.88
AFC: 0.86
CAF: 0.86
OFC: 0.85

After the 2014 World Cup:
Uefa: 0.99
CONMBOL: 1.0
CONCACAF: 0.85
AFC: 0.85
CAF: 0.85
OFC: 0.85

If the game is played by teams from different federations, the arithmetic mean is assumed. For example: November 24th, 2015 France plays against Brazil: 0.99 + 1/2 = 0.995
We already know how to calculate points for a given match. FIFA ranking is generated by points for matches played in the last 4 years. It is worth noting that not in the calendar years to January 1, should rather say the last 48 months. So if today's example is July 6th, 2017 then:
First year (last 12 months): 2016-06-01 - 2017-05-28
Second year (between 12 and 24 months):  2015-06-02 - 2016-05-31
Third year: 2014-06-02 - 2015-06-01
Fourth year: 2013-06-01 - 2014-06-01

You will ask: why to group matches by date? For each period is calculated the average of the points (the sum of points divided by the number of matches). Each perdid has a ratio. Matches played earliest are honorated.

So:
First year: ratio = 1
Second year: ratio = 0.5
Third year ratio = 0.3
Fourth year ratio = 0.2

The general pattern for the points in the ranking looks like this: (Average points in the last 12 months * 1) + (Average point in the months 12-24 * 0.5) + (Average point in the 24-36 months * 0.3) + (Average point in the 36 - 48months * 0.2)
I will present this on the example of Germany:

Last 12 months
2017-07-02 Chile 1755.1800 points
2017-06-29 Mexico 1515.2400 points
2017-06-25 Cameroon 1391.0400 points
2017-06-22 Chile 585.0600 points
2017-06-19 Australia 1258.5600 points
2017-06-10 San Marino 371.2500 points
2017-06-06 Denmark 147.5100 points
2017-03-26 Azerbaijan 824.1750 points
2017-03-22 England 552.4200 points
2016-11-15 Italy 185.1300 points
2016-11-11 San Marino 371.2500 points
2016-10-11 N.Ireland 1262.2500 points
2016-10-08 Czech Republic 1239.9750 points
2016-09-04 Norway 1113.7500 points
2016-08-31 Finland 412.8300 points
2016-07-07 France 0.0000 points
Avg: 811.6

Last 12 - 24 months

2016-07-02 Italy 1116.7200 points
2016-06-26 Slovakia 1568.1600 points
2016-06-21 N.Ireland 1559.2500 points
2016-06-16 Poland 513.8100 points
2016-06-12 Ukraine 1612.7100 points
2016-06-04 Hungary 534.6000 points
2016-05-29 Slovakia 0.0000 points
2016-03-29 Italy 552.4200 points
2016-03-26 England 0.0000 points
2015-11-13 France 0.0000 points
2015-10-11 Georgia 668.2500 points
2015-10-08 Ireland 0.0000 points
2015-09-07 Scotland 1254.8250 points
2015-09-04 Poland 1232.5500 points

Avg: 758.09

Last 24 - 36 m.

2015-06-10 USA 0.0000 points
2015-03-29 Georgia 549.4500 points
2015-03-25 Australia 124.2000 points
2014-11-18 Spain 564.3000 points
2014-10-14 Ireland 341.5500 points
2014-10-11 Poland 0.0000 points
2014-09-07 Scotland 1277.1000 points
2014-09-03 Argentina 0.0000 points
2014-07-13 Argentina 2340.0000 points
2014-07-08 Brazil 2364.0000 points

Avg: 756.06

Last 36 - 48 m.

2014-07-04 France 2196.0000 points
2014-06-30 Algeria 1986.4800 points
2014-06-26 USA 2109.3600 points
2014-06-21 Ghana 606.3600 points
2014-06-16 Portugal 2352.0000 points
2014-06-06 Armenia 486.0000 points
2014-06-01 Cameroon 139.5000 points
2014-05-13 Poland 128.0000 points
2014-03-05 Chile 558.0000 points
2013-11-19 England 570.0000 points
2013-11-15 Italy 192.0000 points
2013-10-15 Sweden 1335.0000 points
2013-10-11 Ireland 1057.5000 points
2013-09-10 Faroe Islands 375.0000 points
2013-09-06 Austria 1087.5000 points
2013-08-14 Paraguay 151.0000 points

Avg: 958.11

Final pattern: (811.6 * 1) + (758.09 * 0.5) + (756.06 * 0.3) + (958.11 * 0.2) = 1609.09