Rail Network Length (km) by Country: 2021 World Rankings

The total length of rail line in the country operated for passenger transport, goods transport, or both. Data from the World Bank.

The United States has the highest length of rail lines (km): 148,553 in 2021. Next are China (109,767), Russia (85,544), India (68,103) and Canada (48,150). Hong Kong has the lowest length of rail lines (km): 230 in 2021. The median across the 112 countries is 2,317, counting each country once, so it is not a world average.

Source: World Bank World Development Indicators. 112 of 218 countries and territories have a figure. Each country shows its latest available year, from 2000 to 2021. The most common is 2021 (65 of 112 countries).

Highest
148,553
United States, 2021
Lowest
230
Hong Kong, 2021
Median
2,317
Counting each country once, so it is not a world average
Coverage
112 of 218
Countries and territories with a figure; latest available, 2000 to 2021
Sum of the table
786,130
Sum of 65 countries with 2021 figures, not an official world figure
APIUse this 112-country ranking via API. 1,000 req/day free; $49/mo for 50,000 daily requests plus bulk downloads.Get API key →
Data ProNeed more than this ranking? Get 281 reviewed World Bank indicators and 47,000+ latest observations, with terms included.Full dataset · $29/mo →
Rail Network Length (km) by Country: 2021 Rankings: 112 countries and territories ranked by length of rail lines (km), with the year of each figure.
#CountryRail Lines (total km)YearChange since 2011 (%)
1United States148,5532021-23.5%
2China109,7672021+51.4%
3Russia85,5442021+0.4%
4India68,1032021+5.7%
5Canada48,1502021n/a
6Germany33,4012021-0.5%
7Brazil32,6222007n/a
8France27,7162021-7.8%
9Ukraine21,6262020-0.2%2011 to 2020
10South Africa20,9532021n/a
11Japan20,08720110.0%2011 to 2011
12Poland18,6202021-5.6%
13Argentina17,8662019n/a
14Italy17,3052021+3.5%
15United Kingdom16,1792021-0.2%
16Kazakhstan16,0062021+11.8%
17Spain15,9632021+1.8%
18Romania10,7692021-0.1%
19Türkiye10,5462021+9.4%
20Sweden9,7142021-3.0%
21Iran9,4552021+13.0%
22Czechia9,3572021-1.2%
23Hungary8,0372021+2.0%
24Pakistan7,79120190.0%2011 to 2019
25Turkmenistan7,6802018+146.5%2011 to 2018
26Finland5,9182021-0.4%
27Indonesia5,4832019+13.6%2011 to 2019
28Belarus5,4742021-0.1%
29Egypt5,1532016n/a
30Cuba5,0762007n/a
31Austria4,9622021+0.9%
32Uzbekistan4,7322021+11.1%
33South Korea4,3092021+18.5%
34Switzerland4,1222021+16.1%
35Thailand4,0922017-8.2%2011 to 2017
36Bulgaria4,0312021-1.0%
37Algeria4,0012021-5.3%
38Norway3,8852021-6.5%
39DR Congo3,64120210.0%
40Slovakia3,6262021+0.1%
41Belgium3,6122021n/a
42Nigeria3,52820150.0%2011 to 2015
43Serbia3,3482021-12.1%
44Vietnam3,1592021+34.6%
45Zimbabwe3,1202020n/a
46Mozambique3,11620110.0%2011 to 2011
47Netherlands3,0412021n/a
48Saudi Arabia2,9392018n/a
49Bangladesh2,8772019+3.1%2011 to 2019
50Sudan2,7472020-36.3%2011 to 2020
51Tanzania2,7012017-0.2%2011 to 2017
52Croatia2,6172021-3.9%
53Portugal2,5272021-9.6%
54Chile2,3962021n/a
55Iraq2,3702014n/a
56Greece2,3392021-8.4%
57Morocco2,2952021+8.8%
58Syria2,1392010n/a
58Azerbaijan2,1392021+2.9%
60Denmark2,1312009n/a
61Lithuania1,9192021+8.6%
62Kenya1,9172004n/a
63Latvia1,8592021-0.3%
64Mongolia1,8212021+0.3%
65Tunisia1,7772021n/a
66Israel1,7202021+59.4%
67Malaysia1,6552021-26.5%
68Ireland1,6502021-14.0%
69Sri Lanka1,5622019+36.0%2011 to 2019
70Uruguay1,4982021n/a
71Georgia1,3872021+9.9%
72Zambia1,2482019n/a
73Slovenia1,2092021-0.0%
74Moldova1,1492021-0.7%
75Estonia1,0332017+30.4%2011 to 2017
76Bosnia and Herzegovina1,0182019-0.9%2011 to 2019
77Ecuador9562000n/a
78Ghana9532006n/a
79Senegal9062004n/a
80Republic of the Congo8932012n/a
81Botswana8862021n/a
82Guatemala8852004n/a
83Cameroon8842021-9.5%
84Costa Rica8482001n/a
85Malawi7972007n/a
86Djibouti7812003n/a
87Benin7582006n/a
88Ethiopia7542018n/a
89Mali7332002n/a
90Mauritania7282021n/a
91Armenia6982021n/a
92North Macedonia6832021-2.3%
93Madagascar67320210.0%
94Cambodia6502004n/a
95Gabon6482021-20.0%
96Côte d'Ivoire63920210.0%
97Tajikistan6202021-0.1%
98El Salvador5472003n/a
99Burkina Faso5182021n/a
100Philippines5092016n/a
101Panama4852000n/a
102Paraguay4412000n/a
103Albania4232009n/a
104Kyrgyzstan4172021-0.0%
105Lebanon4012002n/a
106Venezuela3362006n/a
107Eswatini30020110.0%2011 to 2011
108United Arab Emirates2792021n/a
109Luxembourg2712021-1.5%
110Uganda2592002n/a
111Montenegro2502019+4.5%2011 to 2019
112Hong Kong2302021n/a

Each figure is the latest available for that country, so rows can refer to different years; compare years before comparing values. n/a means the source has no figure for that country in that column. Values are rounded for display; the CSV download has full precision.

106 countries and territories have no figure

Afghanistan, American Samoa, Andorra, Angola, Antigua and Barbuda, Aruba, Australia, Bahamas, Bahrain, Barbados, Belize, Bermuda, Bhutan, Bolivia, British Virgin Islands, Brunei, Burundi, Cabo Verde, Cayman Islands, Central African Republic, Chad, Channel Islands, Colombia, Comoros, Curaçao, Cyprus, Dominica, Dominican Republic, Equatorial Guinea, Eritrea, Faroe Islands, Fiji, French Polynesia, Gibraltar, Greenland, Grenada, Guam, Guinea, Guinea-Bissau, Guyana, Haiti, Honduras, Iceland, Isle of Man, Jamaica, Jordan, Kiribati, Kosovo, Kuwait, Laos, Lesotho, Liberia, Libya, Liechtenstein, Macao, Maldives, Malta, Marshall Islands, Mauritius, Mexico, Micronesia, Monaco, Myanmar, Namibia, Nauru, Nepal, New Caledonia, New Zealand, Nicaragua, Niger, North Korea, Northern Mariana Islands, Oman, Palau, Papua New Guinea, Peru, Puerto Rico, Qatar, Rwanda, Saint Martin, Samoa, San Marino, Sao Tome and Principe, Seychelles, Sierra Leone, Singapore, Sint Maarten, Solomon Islands, Somalia, South Sudan, St. Kitts and Nevis, St. Lucia, St. Vincent and the Grenadines, Suriname, Taiwan, The Gambia, Timor-Leste, Togo, Tonga, Trinidad and Tobago, Turks and Caicos Islands, Tuvalu, U.S. Virgin Islands, Vanuatu, West Bank and Gaza, Yemen.

World map of length of rail lines (km), latest available, 2000 to 2021. Source: World Bank World Development Indicators.
Highest: United States 148,553 (2021), China 109,767 (2021), Russia 85,544 (2021). Source: World Bank World Development Indicators. One ranked country is too small for the map's outlines and drawn as a dot at the capital. Shapes show location only.
Embed this map
<a href="https://statisticsoftheworld.com/ranking/rail-network-length"><img src="https://statisticsoftheworld.com/maps/IS.RRS.TOTL.KM.svg" width="960" height="500" alt="World map of length of rail lines (km), latest available, 2000 to 2021. Source: World Bank World Development Indicators."></a>
<p>Source: World Bank World Development Indicators. Map: <a href="https://statisticsoftheworld.com/ranking/rail-network-length">Statistics of the World</a></p>

Then and now

The first 10 in each year, among the countries with a figure that year; the last column is the table above (latest available, 2000 to 2021).
#200020112021
1United States (194,077)United States (194,136)United States (148,553)
2Russia (86,075)Russia (85,166)China (109,767)
3India (62,759)China (72,487)Russia (85,544)
4China (58,656)India (64,460)India (68,103)
5Germany (36,642)Germany (33,576)Canada (48,150)
6France (29,330)France (30,071)Germany (33,401)
7Poland (22,560)Ukraine (21,665)Brazil (32,622, 2007)
8Ukraine (22,302)Japan (20,087)France (27,716)
9United Kingdom (16,992)Poland (19,725)Ukraine (21,626, 2020)
10Italy (16,295)Italy (16,726)South Africa (20,953)

Israel rose the most since 2011, +59.4%, among the 52 countries with figures for both 2011 and 2021. Malaysia fell the most, -26.5%.

Rose the most since 2011

  • Israel: +59.4%
  • China: +51.4%
  • Vietnam: +34.6%
  • South Korea: +18.5%
  • Switzerland: +16.1%

Fell the most since 2011

  • Malaysia: -26.5%
  • United States: -23.5%
  • Gabon: -20.0%
  • Ireland: -14.0%
  • Serbia: -12.1%

From the change column: countries whose latest figure is for 2021 and that have a 2011 figure.

By region

length of rail lines (km) by World Bank region: countries with a figure, highest, lowest and median.
RegionCountriesHighestLowestMedian, each country counted onceSum of same-year figures
East Asia & Pacific11China (109,767)Hong Kong (230)3,159120,941 (6 countries, 2021)
Europe & Central Asia46Russia (85,544)Montenegro (250, 2019)3,619347,393 (39 countries, 2021)
Latin America & Caribbean12Brazil (32,622, 2007)Venezuela (336, 2006)9213,894 (2 countries, 2021)
Middle East, North Africa, Afghanistan & Pakistan13Iran (9,455)United Arab Emirates (279)2,29519,527 (6 countries, 2021)
North America2United States (148,553)Canada (48,150)98,352196,703 (2 countries, 2021)
South Asia3India (68,103)Sri Lanka (1,562, 2019)2,87768,103 (1 country, 2021)
Sub-Saharan Africa25South Africa (20,953)Uganda (259, 2002)88629,570 (9 countries, 2021)

A regional sum adds the countries with 2021 figures; it is not an official regional figure.

Where major economies rank

  • United States: 148,553 in 2021, rank 1 of 112.
  • China: 109,767 in 2021, rank 2 of 112.
  • India: 68,103 in 2021, rank 4 of 112.
  • Japan: 20,087 in 2011, rank 11 of 112.
  • Germany: 33,401 in 2021, rank 6 of 112.
  • United Kingdom: 16,179 in 2021, rank 15 of 112.
  • France: 27,716 in 2021, rank 8 of 112.
  • Brazil: 32,622 in 2007, rank 7 of 112.
  • Canada: 48,150 in 2021, rank 5 of 112.
  • Nigeria: 3,528 in 2015, rank 42 of 112.

Compare these economies side by side

About these figures

Definition. The total length of rail line in the country operated for passenger transport, goods transport, or both. (The publisher's definition of “Rail lines (total route-km)”, copied from the World Bank (World Development Indicators) on 2026-09-07.)

Unit. route-kilometers

Coverage. 112 of 218 countries and territories have a figure. Each country shows its latest available year, from 2000 to 2021. The most common is 2021 (65 of 112 countries).

The median and any other summary on this page count each country once, so they are not world averages. Values are rounded for display; the CSV download has full precision.

The publisher revises past years when it updates the series, so a figure here can change after it first appears.

Questions about these figures

Which country has the highest length of rail lines (km)?

The United States has the highest length of rail lines (km): 148,553 in 2021. The figures come from the World Bank World Development Indicators.

Which country has the lowest length of rail lines (km)?

Hong Kong has the lowest length of rail lines (km): 230 in 2021.

How many countries are ranked, and for which years?

112 countries and territories have a figure in this ranking. Each country shows its latest available year, from 2000 to 2021. The most common is 2021 (65 of 112 countries).

What is the median length of rail lines (km) across countries?

The median is 2,317: half of the 112 countries are above it and half below. The most common year of the figures is 2021. It counts each country once, so it is not a world average.

How much of the combined total do the largest countries account for?

Among the 65 countries with 2021 figures, the ten largest account for 73.5% of their combined total.

Which country's length of rail lines (km) changed the most since 2011?

Among the 52 countries with figures for both 2011 and 2021, Israel changed the most: +59.4% since 2011, to 1,720 in 2021.

Where does the United States rank on length of rail lines (km)?

The United States ranks 1 of 112, at 148,553 in 2021.

Which country has the highest length of rail lines (km) in each region?

East Asia & Pacific: China (109,767); Europe & Central Asia: Russia (85,544); Latin America & Caribbean: Brazil (32,622, 2007); Middle East, North Africa, Afghanistan & Pakistan: Iran (9,455); North America: the United States (148,553); South Asia: India (68,103); Sub-Saharan Africa: South Africa (20,953). Figures are for 2021 unless another year is shown. Regions follow the World Bank's groups.

Use and cite this data

  • The download button above saves this table's rows as CSV, filtered and in the order shown. The API also serves this indicator as CSV: statisticsoftheworld.com/api/v1/rankings/IS.RRS.TOTL.KM?format=csv. It lists the stored latest figures highest first under the publisher's country names and can include the World aggregate, so its rows and ranks can differ from this table.
  • Licence: CC BY 4.0. Attribution is required; dataset-specific notices and third-party restrictions still apply. Source terms.
  • The map above can be embedded: open "Embed this map" under it for code that links back to this page.
  • Each country has its own row link, such as https://statisticsoftheworld.com/ranking/rail-network-length#USA.
  • Spotted an error? Report a data correction. How to cite: citation guide.

Statistics of the World. Rail Network Length (km) by Country: 2021 Rankings. Data: World Bank World Development Indicators, figures for 2000 to 2021. https://statisticsoftheworld.com/ranking/rail-network-length

APIFree · No credit card

Use this data programmatically

Fetch the same 112-country ranking as JSON or CSV: fresh on every request, drop-in for dashboards, scripts, and notebooks. 1,000 free requests/day, no signup needed; sign up for usage tracking and 50,000/day on Pro.

curl 'https://statisticsoftheworld.com/api/v1/rankings/IS.RRS.TOTL.KM?format=csv' \
  -o rail-network-length.csv