Railways in Africa · 2008–2022

What country in Africa has the most railways?

South Africa has the most railways in Africa, with 30,400 km of railway lines.

Ranking by km
#CountryShare of #1kmYear
1 South Africa 30,400 2021
2 Sudan 7,251 2014
3 Egypt 5,085 2014
4 Mozambique 4,787 2014
5 Tanzania 4,097 2022
6 Algeria 4,020 2019
7 DR Congo 4,007 2014
8 Kenya 3,819 2018
9 Nigeria 3,798 2014
10 Zimbabwe 3,427 2014
11 Zambia 3,126 2014
12 Angola 2,761 2022
13 Namibia 2,628 2014
14 Tunisia 2,173 2014
15 Morocco 2,067 2014
16 Uganda 1,244 2014
17 Guinea 1,086 2017
18 Cameroon 987 2014
19 Ghana 947 2022
20 Senegal 906 2017
21 Botswana 888 2014
22 Madagascar 836 2018
23 Malawi 767 2014
24 Mauritania 728 2014
25 Côte d'Ivoire 660 2008
26 Ethiopia 659 2017
27 Gabon 649 2014
28 Burkina Faso 622 2014
29 Mali 593 2014
30 Togo 568 2014
31 Republic of the Congo 510 2014
32 Benin 438 2014
33 Liberia 429 2008
34 Eritrea 306 2018
35 Eswatini 301 2014
36 South Sudan 248 2018
37 Djibouti 97 2017

Key facts

Runners-up

Sudan is 2nd and Egypt 3rd in Africa.

Lead

South Africa has 4.2× the figure of Sudan.

Share of the total

South Africa alone accounts for 31.0% of all 37 ranked countries in Africa.

Top 10

The ten largest together account for 72.2%.

Questions

What country in Africa has the most railways?

South Africa has the most railways in Africa, with 30,400 km of railway lines.

What country in Africa has the second most railways?

Sudan ranks second in Africa, with 7,251 km.

How many countries are in this ranking?

37 countries in Africa with data from Central Intelligence Agency (CIA) (2008–2022). Territories are not ranked.

↑ ↓ to move↵ to open