Rail lines: countries ranked (2020)
66 sovereign states with an observation in 2020, in km. Some countries have 2021 data, but 2020 is the latest year with broad coverage, so it is used for a like-for-like ranking.
Rank 1 is the highest value. Higher is not necessarily better for this measure. Only sovereign states with an observation in 2020 are ranked; there is no imputation.
| Rank | Country | km | Year | Trend | 10-year change |
|---|---|---|---|---|---|
| 1 | United States | 148,750 | 2020 | ||
| 2 | China | 106,235 | 2020 | ||
| 3 | Russia | 85,555 | 2020 | ||
| 4 | India | 67,956 | 2020 | ||
| 5 | Canada | 48,309 | 2020 | ||
| 6 | Germany | 33,399 | 2020 | ||
| 7 | France | 27,872 | 2020 | ||
| 8 | Ukraine | 21,626 | 2020 | ||
| 9 | South Africa | 20,953 | 2020 | ||
| 10 | Poland | 18,611 | 2020 | ||
| 11 | Italy | 17,256 | 2020 | ||
| 12 | United Kingdom | 16,351 | 2020 | ||
| 13 | Kazakhstan | 16,063 | 2020 | ||
| 14 | Spain | 15,848 | 2020 | ||
| 15 | Romania | 10,769 | 2020 | ||
| 16 | Türkiye | 10,378 | 2020 | ||
| 17 | Sweden | 9,711 | 2020 | ||
| 18 | Iran | 9,454 | 2020 | ||
| 19 | Czechia | 9,377 | 2020 | ||
| 20 | Hungary | 7,588 | 2020 | ||
| 21 | Finland | 5,918 | 2020 | ||
| 22 | Belarus | 5,454 | 2020 | ||
| 23 | Austria | 4,966 | 2020 | ||
| 24 | Uzbekistan | 4,732 | 2020 | ||
| 25 | South Korea | 4,285 | 2020 | ||
| 26 | Bulgaria | 4,029 | 2020 | ||
| 27 | Norway | 3,885 | 2020 | ||
| 28 | Switzerland | 3,672 | 2020 | ||
| 29 | Democratic Republic of the Congo | 3,641 | 2020 | ||
| 30 | Slovakia | 3,627 | 2020 | ||
| 31 | Belgium | 3,615 | 2020 | ||
| 32 | Serbia | 3,333 | 2020 | ||
| 33 | Vietnam | 3,159 | 2020 | ||
| 34 | Zimbabwe | 3,120 | 2020 | ||
| 35 | Netherlands | 3,078 | 2020 | ||
| 36 | Sudan | 2,747 | 2020 | ||
| 37 | Croatia | 2,617 | 2020 | ||
| 38 | Portugal | 2,526 | 2020 | ||
| 39 | Chile | 2,396 | 2020 | ||
| 40 | Greece | 2,345 | 2020 | ||
| 41 | Morocco | 2,295 | 2020 | ||
| 42 | Azerbaijan | 2,239 | 2020 | ||
| 43 | Lithuania | 1,911 | 2020 | ||
| 44 | Ireland | 1,888 | 2020 | ||
| 45 | Latvia | 1,859 | 2020 | ||
| 46 | Mongolia | 1,821 | 2020 | ||
| 47 | Tunisia | 1,777 | 2020 | ||
| 48 | Malaysia | 1,655 | 2020 | ||
| 49 | Israel | 1,619 | 2020 | ||
| 50 | Uruguay | 1,498 | 2020 | ||
| 51 | Georgia | 1,411 | 2020 | ||
| 52 | Slovenia | 1,209 | 2020 | ||
| 53 | Moldova | 1,151 | 2020 | ||
| 54 | Botswana | 886 | 2020 | ||
| 55 | Cameroon | 884 | 2020 | ||
| 56 | Mauritania | 728 | 2020 | ||
| 57 | Armenia | 698.4 | 2020 | ||
| 58 | North Macedonia | 683 | 2020 | ||
| 59 | Madagascar | 673 | 2020 | ||
| 60 | Tajikistan | 662 | 2020 | ||
| 61 | Gabon | 648 | 2020 | ||
| 62 | Côte d’Ivoire | 639 | 2020 | ||
| 63 | Burkina Faso | 518 | 2020 | ||
| 64 | Kyrgyzstan | 424 | 2020 | ||
| 65 | Luxembourg | 271 | 2020 | ||
| 66 | United Arab Emirates | 261 | 2020 |
About this measure
The total length of rail line in the country operated for passenger transport, goods transport, or both.
Source: Railisa Database, International Union of Railways (UIC) via World Bank World Development Indicators (IS.RRS.TOTL.KM). Dataset version 2026-11-11, retrieved 2026-12-02. Licence: cc-by-4-0-world-bank.
Railisa Database, International Union of Railways (UIC), via World Bank World Development Indicators, series IS.RRS.TOTL.KM, release 2026-11-11. Retrieved 2026-12-02 from TrackingZoo, "Rail lines: countries ranked", https://trackingzoo.com/rankings/rail-lines.