Countries in Africa by foreign investment

Net inflows of foreign direct investment — foreigners buying or building lasting stakes in companies — as a share of GDP. Below zero, more was withdrawn than came in. 52 countries in Africa, highest first. World Bank, mostly 2024

Map: Foreign investment — Africa
Highest
15.4%
Mozambique
Median country
2.2%
half above, half below
Countries in Africa by foreign investment, World Bank, mostly 2024
#Country% of GDPYearRegion
1Mozambique15.4%2024Eastern Africa
2Namibia14.2%2024Southern Africa
3Mauritania13.2%2024Western Africa
4Seychelles10.1%2024Eastern Africa
5Liberia9.9%2024Western Africa
6Gambia9.7%2024Western Africa
7Zambia9.3%2024Eastern Africa
8Somalia6.4%2024Eastern Africa
9Senegal6.3%2024Western Africa
10Uganda6.0%2024Eastern Africa
11Guinea5.6%2024Western Africa
12Gabon5.5%2024Middle Africa
13Chad5.1%2024Middle Africa
14Cabo Verde5.0%2025Western Africa
15Mauritius4.6%2024Eastern Africa
16Egypt4.2%2025Northern Africa
=17Congo3.8%2024Middle Africa
=17Rwanda3.8%2024Eastern Africa
19Côte d'Ivoire3.6%2024Western Africa
=20Madagascar3.4%2024Eastern Africa
=20Mali3.4%2024Western Africa
22Ethiopia2.7%2024Eastern Africa
23Benin2.5%2024Western Africa
24Botswana2.4%2024Southern Africa
25Malawi2.3%2024Eastern Africa
26Tanzania2.2%2024Eastern Africa
27DR Congo2.1%2025Middle Africa
=28Libya1.8%2023Northern Africa
=28Morocco1.8%2025Northern Africa
=28Niger1.8%2024Western Africa
=31Cameroon1.7%2024Middle Africa
=31Ghana1.7%2025Western Africa
=31Sierra Leone1.7%2024Western Africa
=34Djibouti1.6%2024Eastern Africa
=34Eswatini1.6%2024Southern Africa
=36Central African Republic1.5%2024Middle Africa
=36Tunisia1.5%2024Northern Africa
=38Equatorial Guinea1.4%2024Middle Africa
=38Nigeria1.4%2025Western Africa
=38Sudan1.4%2023Northern Africa
41Guinea-Bissau1.2%2024Western Africa
42Zimbabwe1.1%2024Eastern Africa
43Burundi1.0%2025Eastern Africa
44Angola0.9%2025Middle Africa
45Togo0.8%2024Western Africa
46Algeria0.5%2024Northern Africa
=47Comoros0.4%2024Eastern Africa
=47Kenya0.4%2024Eastern Africa
49Lesotho-0.2%2025Southern Africa
50South Africa-0.5%2025Southern Africa
51Burkina Faso-0.9%2024Western Africa
52São Tomé and Principe-2.0%2024Middle Africa

No World Bank figure for 2 countries: Eritrea, South Sudan.

Questions

Which country in Africa has the most foreign investment for the size of its economy?
Mozambique has the most foreign investment for the size of its economy in Africa: 15.4% of GDP (2024). Next come Namibia (14.2% of GDP) and Mauritania (13.2% of GDP).
Which country in Africa has the least foreign investment for the size of its economy?
São Tomé and Principe, with -2.0% of GDP (2024).
What is the typical foreign investment of a country in Africa?
The median of the 52 countries in Africa is 2.2% of GDP: half are above it, half below. The median, not the average, because a few countries at the top would drag an average far above almost everyone.
Where do the figures come from?
Net inflows of foreign direct investment — foreigners buying or building lasting stakes in companies — as a share of GDP. Below zero, more was withdrawn than came in. Source: World Bank, mostly 2024. Only independent states are ranked; territories are listed separately. A country’s continent follows Natural Earth; the handful of island states it files under the open ocean are placed by their UN subregion.

Source: World Bank (CC BY 4.0). Figures more than 5 years older than the newest are left out rather than shown beside current ones. Countries sharing a value share a rank. All sources.