Rail Lines (total km) by Country

InfrastructureSource: World Bank World Development Indicators ↗Updated November 2026

As of 2021, United States leads globally in rail lines (total km) at 148,553, followed by China, Russia, India. At the lower end, Hong Kong, Montenegro, Uganda rank among the lowest. The global median is 2,295 (Morocco). This indicator falls under the "Infrastructure" category and is sourced from the World Bank World Development Indicators. Data is available for 112 countries.

Countries
112
Highest
148,553
United States
Lowest
230
Hong Kong
Median
2,295
Morocco

All Countries Ranked

Download every country's latest figure, free, with its year, source, licence and unit on each row: CSV

Rail Lines (total km) by country — 112 countries ranked (2021). Source: World Bank World Development Indicators.
#CountryRail Lines (total km)Year
1United States148,5532021
2China109,7672021
3Russia85,5442021
4India68,1032021
5Canada48,1502021
6Germany33,4012021
7Brazil32,6222007
8France27,7162021
9Ukraine21,6262020
10South Africa20,9532021
11Japan20,0872011
12Poland18,6202021
13Argentina17,8662019
14Italy17,3052021
15United Kingdom16,1792021
16Kazakhstan16,0062021
17Spain15,9632021
18Romania10,7692021
19Türkiye10,5462021
20Sweden9,7142021
21Iran9,4552021
22Czechia9,3572021
23Hungary8,0372021
24Pakistan7,7912019
25Turkmenistan7,6802018
26Finland5,9182021
27Indonesia5,4832019
28Belarus5,4742021
29Egypt5,1532016
30Cuba5,0762007
31Austria4,9622021
32Uzbekistan4,7322021
33South Korea4,3092021
34Switzerland4,1222021
35Thailand4,0922017
36Bulgaria4,0312021
37Algeria4,0012021
38Norway3,8852021
39DR Congo3,6412021
40Slovakia3,6262021
41Belgium3,6122021
42Nigeria3,5282015
43Serbia3,3482021
44Vietnam3,1592021
45Zimbabwe3,1202020
46Mozambique3,1162011
47Netherlands3,0412021
48Saudi Arabia2,9392018
49Bangladesh2,8772019
50Sudan2,7472020
51Tanzania2,7012017
52Croatia2,6172021
53Portugal2,5272021
54Chile2,3962021
55Iraq2,3702014
56Greece2,3392021
57Morocco2,2952021
58Syria2,1392010
59Azerbaijan2,1392021
60Denmark2,1312009
61Lithuania1,9192021
62Kenya1,9172004
63Latvia1,8592021
64Mongolia1,8212021
65Tunisia1,7772021
66Israel1,7202021
67Malaysia1,6552021
68Ireland1,6502021
69Sri Lanka1,5622019
70Uruguay1,4982021
71Georgia1,3872021
72Zambia1,2482019
73Slovenia1,2092021
74Moldova1,1492021
75Estonia1,0332017
76Bosnia and Herzegovina1,0182019
77Ecuador9562000
78Ghana9532006
79Senegal9062004
80Republic of the Congo8932012
81Botswana8862021
82Guatemala8852004
83Cameroon8842021
84Costa Rica8482001
85Malawi7972007
86Djibouti7812003
87Benin7582006
88Ethiopia7542018
89Mali7332002
90Mauritania7282021
91Armenia6982021
92North Macedonia6832021
93Madagascar6732021
94Cambodia6502004
95Gabon6482021
96Côte d'Ivoire6392021
97Tajikistan6202021
98El Salvador5472003
99Burkina Faso5182021
100Philippines5092016
101Panama4852000
102Paraguay4412000
103Albania4232009
104Kyrgyzstan4172021
105Lebanon4012002
106Venezuela3362006
107Eswatini3002011
108United Arab Emirates2792021
109Luxembourg2712021
110Uganda2592002
111Montenegro2502019
112Hong Kong2302021

Frequently Asked Questions

Which country has the highest rail lines (total km) in 2021?

United States ranks #1 with rail lines (total km) of 148,553 as of 2021, based on data from the World Bank World Development Indicators.

Which country has the lowest rail lines (total km)?

Hong Kong ranks last (#112) with 230 as of 2021.

What is the global median for rail lines (total km)?

The median value is 2,295 (Morocco, ranked #57 out of 112 countries).

How many countries report data for rail lines (total km)?

112 countries have available data for rail lines (total km). Data is sourced from the World Bank World Development Indicators and updated regularly.

What category does rail lines (total km) belong to?

Rail Lines (total km) is classified under the "Infrastructure" category. Statistics of the World tracks 337 indicators across 27 categories.

Related Indicators in Infrastructure