Countries Ranked by Rail lines (total km) (2021)
Rail lines (total km): each country's latest value (2016–2021), ranked from highest to lowest. Source: The World Bank (CC BY 4.0).
Summary
United States ranks #1 with 148,550 km. China is second with 109,770 km, 35.3% behind. The top five are United States, China, Russian Federation, India and Canada. Together the top 10 account for 66.4% of the total across the 84 countries listed. The median across all 84 is 2,990 km; Hong Kong SAR, China is last at 230.1 km. United States's figure has fallen 24% since 1997 (195,800 km to 148,550 km in 2021).
- #1
- United States · 148,550 km
- Median
- 2,990 km
- Coverage
- 84 countries
- Data year
- 2021
- Last updated
- 2026-11-14
United States 16.9%China 12.5%Russian Federation 9.8%India 7.8%Canada 5.5%All others 47.5%
Full ranking
| Rank | Country | Rail lines (total km) (km) | Year |
|---|---|---|---|
| 1 | United States | 148,550 | 2021 |
| 2 | China | 109,770 | 2021 |
| 3 | Russian Federation | 85,544 | 2021 |
| 4 | India | 68,103 | 2021 |
| 5 | Canada | 48,150 | 2021 |
| 6 | Germany | 33,401 | 2021 |
| 7 | France | 27,716 | 2021 |
| 8 | Ukraine | 21,626 | 2020 |
| 9 | South Africa | 20,953 | 2021 |
| 10 | Poland | 18,620 | 2021 |
| 11 | Argentina | 17,866 | 2019 |
| 12 | Italy | 17,305 | 2021 |
| 13 | United Kingdom | 16,179 | 2021 |
| 14 | Kazakhstan | 16,006 | 2021 |
| 15 | Spain | 15,963 | 2021 |
| 16 | Romania | 10,769 | 2021 |
| 17 | Türkiye | 10,546 | 2021 |
| 18 | Sweden | 9,714 | 2021 |
| 19 | Iran, Islamic Rep. | 9,455 | 2021 |
| 20 | Czechia | 9,357 | 2021 |
| 21 | Hungary | 8,037 | 2021 |
| 22 | Pakistan | 7,791 | 2019 |
| 23 | Turkmenistan | 7,680 | 2018 |
| 24 | Finland | 5,918 | 2021 |
| 25 | Indonesia | 5,483 | 2019 |
| 26 | Belarus | 5,474 | 2021 |
| 27 | Egypt, Arab Rep. | 5,153 | 2016 |
| 28 | Austria | 4,962 | 2021 |
| 29 | Uzbekistan | 4,732 | 2021 |
| 30 | Korea, Rep. | 4,309 | 2021 |
| 31 | Switzerland | 4,122 | 2021 |
| 32 | Thailand | 4,092 | 2017 |
| 33 | Bulgaria | 4,031 | 2021 |
| 34 | Algeria | 4,001 | 2021 |
| 35 | Norway | 3,885 | 2021 |
| 36 | Congo, Dem. Rep. | 3,641 | 2021 |
| 37 | Slovak Republic | 3,627 | 2021 |
| 38 | Belgium | 3,612 | 2021 |
| 39 | Serbia | 3,348 | 2021 |
| 40 | Viet Nam | 3,159 | 2021 |
| 41 | Zimbabwe | 3,120 | 2020 |
| 42 | Netherlands | 3,041 | 2021 |
| 43 | Saudi Arabia | 2,939 | 2018 |
| 44 | Bangladesh | 2,877 | 2019 |
| 45 | Sudan | 2,747 | 2020 |
| 46 | Tanzania | 2,701 | 2017 |
| 47 | Croatia | 2,617 | 2021 |
| 48 | Portugal | 2,527 | 2021 |
| 49 | Chile | 2,396 | 2021 |
| 50 | Greece | 2,339 | 2021 |
| 51 | Morocco | 2,295 | 2021 |
| 52 | Azerbaijan | 2,139 | 2021 |
| 53 | Lithuania | 1,919 | 2021 |
| 54 | Latvia | 1,859 | 2021 |
| 55 | Mongolia | 1,821 | 2021 |
| 56 | Tunisia | 1,777 | 2021 |
| 57 | Israel | 1,720 | 2021 |
| 58 | Malaysia | 1,655 | 2021 |
| 59 | Ireland | 1,650 | 2021 |
| 60 | Sri Lanka | 1,562 | 2019 |
| 61 | Uruguay | 1,498 | 2021 |
| 62 | Georgia | 1,387 | 2021 |
| 63 | Zambia | 1,248 | 2019 |
| 64 | Slovenia | 1,209 | 2021 |
| 65 | Moldova | 1,149 | 2021 |
| 66 | Estonia | 1,033 | 2017 |
| 67 | Bosnia and Herzegovina | 1,018 | 2019 |
| 68 | Botswana | 886 | 2021 |
| 69 | Cameroon | 884 | 2021 |
| 70 | Ethiopia | 754 | 2018 |
| 71 | Mauritania | 728 | 2021 |
| 72 | Armenia | 698.4 | 2021 |
| 73 | North Macedonia | 683 | 2021 |
| 74 | Madagascar | 673 | 2021 |
| 75 | Gabon | 648 | 2021 |
| 76 | Côte d'Ivoire | 639 | 2021 |
| 77 | Tajikistan | 620 | 2021 |
| 78 | Burkina Faso | 518 | 2021 |
| 79 | Philippines | 509 | 2016 |
| 80 | Kyrgyz Republic | 417 | 2021 |
| 81 | United Arab Emirates | 279 | 2021 |
| 82 | Luxembourg | 271 | 2021 |
| 83 | Montenegro | 250 | 2019 |
| 84 | Hong Kong SAR, China | 230.1 | 2021 |
About the top 10
#1 United States
United States ranks #1 on this list with 148,550 km.
- Capital
- Washington, D.C.
- Continent
- North America
- Income group
- High income
- Population
- 341.78 million people (2025)
- GDP
- US$30.77 trillion (2025)
- GDP per person
- US$90,027 (2025)
- Life expectancy
- 78.9 years (2024)
- Urban population
- 80.2% of population (2025)
Largest cities: New York metropolitan area, New York City, Chicago.
Also ranks #1 in gdp (current us$) · #1 in health expenditure per capita · #1 in imports of goods and services.
#2 China
China ranks #2 on this list with 109,770 km.
- Capital
- Beijing
- Continent
- Asia
- Income group
- Upper middle income
- Population
- 1.41 billion people (2025)
- GDP
- US$19.5 trillion (2025)
- GDP per person
- US$13,862 (2025)
- Life expectancy
- 78 years (2024)
- Urban population
- 66.3% of population (2025)
Largest cities: Chongqing, Shanghai, Beijing.
Also ranks #1 in urban population · #1 in gdp ppp · #1 in labour force size.
#3 Russian Federation
Russian Federation ranks #3 on this list with 85,544 km.
- Capital
- Moscow
- Continent
- Europe
- Income group
- High income
- Population
- 143.51 million people (2025)
- GDP
- US$2.56 trillion (2025)
- GDP per person
- US$17,547 (2025)
- Life expectancy
- 73.4 years (2024)
- Urban population
- 75.3% of population (2025)
Largest cities: Moscow, Saint Petersburg, Novosibirsk.
Also ranks #1 in land area · #1 in surface area · #1 in forest area.
#4 India
India ranks #4 on this list with 68,103 km.
- Capital
- New Delhi
- Continent
- Asia
- Income group
- Lower middle income
- Population
- 1.46 billion people (2025)
- GDP
- US$3.96 trillion (2025)
- GDP per person
- US$2,703 (2025)
- Life expectancy
- 72.2 years (2024)
- Urban population
- 35.7% of population (2025)
Largest cities: Delhi, Mumbai, Bengaluru.
Also ranks #1 in population · #1 in rural population · #1 in remittances received.
#5 Canada
Canada ranks #5 on this list with 48,150 km.
- Capital
- Ottawa
- Continent
- North America
- Income group
- High income
- Population
- 41.65 million people (2025)
- GDP
- US$2.32 trillion (2025)
- GDP per person
- US$55,698 (2025)
- Life expectancy
- 82.1 years (2024)
- Urban population
- 82.9% of population (2025)
Largest cities: Toronto, Montreal, Calgary.
Also ranks #2 in surface area · #3 in forest area · #4 in land area.
#6 Germany
Germany ranks #6 on this list with 33,401 km.
- Capital
- Berlin
- Continent
- Europe
- Income group
- High income
- Population
- 83.49 million people (2025)
- GDP
- US$5.05 trillion (2025)
- GDP per person
- US$60,496 (2025)
- Life expectancy
- 80.8 years (2024)
- Urban population
- 82.1% of population (2025)
Largest cities: Berlin, Hamburg, Munich.
Also ranks #2 in tourism receipts · #3 in gdp (current us$) · #3 in exports of goods and services.
#7 France
France ranks #7 on this list with 27,716 km.
- Capital
- Paris
- Continent
- Europe
- Income group
- High income
- Population
- 68.72 million people (2025)
- GDP
- US$3.37 trillion (2025)
- GDP per person
- US$48,986 (2025)
- Life expectancy
- 83 years (2024)
- Urban population
- 78.8% of population (2025)
Largest cities: Paris, Metropolis of Lyon, Bordeaux Métropole.
Also ranks #1 in tourism arrivals · #1 in account ownership (female) share · #3 in remittances received.
#8 Ukraine
Ukraine ranks #8 on this list with 21,626 km (2020).
- Capital
- Kyiv
- Continent
- Europe
- Income group
- Upper middle income
- Population
- 38.98 million people (2025)
- GDP
- US$214.23 billion (2025)
- GDP per person
- US$5,866 (2025)
- Life expectancy
- 74.7 years (2024)
- Urban population
- 69.6% of population (2025)
Largest cities: Kyiv, Kharkiv, Odesa.
Also ranks #1 in net migration · #3 in refugee population by origin · #4 in arable land share.
#9 South Africa
South Africa ranks #9 on this list with 20,953 km.
- Capital
- Pretoria, Cape Town
- Continent
- Africa
- Income group
- Upper middle income
- Population
- 64.75 million people (2025)
- GDP
- US$427.18 billion (2025)
- GDP per person
- US$6,598 (2025)
- Life expectancy
- 66.3 years (2024)
- Urban population
- 63.8% of population (2025)
Largest cities: City of Johannesburg Metropolitan Municipality, Johannesburg, Cape Town.
Also ranks #2 in unemployment rate · #2 in youth unemployment rate · #2 in income share of richest 10%.
#10 Poland
Poland ranks #10 on this list with 18,620 km.
- Capital
- Warsaw
- Continent
- Europe
- Income group
- High income
- Population
- 36.44 million people (2025)
- GDP
- US$1.04 trillion (2025)
- GDP per person
- US$28,420 (2025)
- Life expectancy
- 78.4 years (2024)
- Urban population
- 60.1% of population (2025)
Largest cities: Katowice urban area, Warsaw, Kraków.
Also ranks #2 in tourism arrivals · #7 in alcohol consumption per capita · #12 in refugee population by asylum.
Profile facts: World Bank (CC BY 4.0) and Wikidata (CC0); weather links go to Purr Weather, another ChowChow Labs site.
Source and method
Rail lines (total km): each country's latest value (2016–2021), ranked from highest to lowest.
Source: The World Bank, indicator IS.RRS.TOTL.KM. Licence: CC BY 4.0. Retrieved: 2026-11-14.
The World Bank: Rail lines (total route-km): Railisa Database, International Union of Railways (UIC) (via World Development Indicators)
Original data provider, as recorded by the World Bank: Railisa Database, International Union of Railways (UIC).
Values are shown as published. Provider terms: The World Bank. All licences: Sources & licences.