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, 2025

Map: Foreign investment — Africa
Highest
27.4%
Guinea
Median country
2.0%
half above, half below
Lowest
-3.3%
Botswana
Countries in Africa by foreign investment, World Bank, 2025
#Country% of GDPRegion
1Guinea27.4%Western Africa
2Mozambique25.8%Eastern Africa
3Gambia10.6%Western Africa
4São Tomé and Principe10.5%Middle Africa
5Seychelles10.0%Eastern Africa
6Namibia9.6%Southern Africa
7Liberia9.5%Western Africa
8Somalia6.4%Eastern Africa
9Rwanda5.9%Eastern Africa
=10Mauritania5.4%Western Africa
=10Uganda5.4%Eastern Africa
=12Cabo Verde5.0%Western Africa
=12Mauritius5.0%Eastern Africa
=14Madagascar4.5%Eastern Africa
=14Zambia4.5%Eastern Africa
16Egypt4.2%Northern Africa
17Congo3.7%Middle Africa
18Malawi3.6%Eastern Africa
19Djibouti3.2%Eastern Africa
20Ethiopia3.0%Eastern Africa
21Mali2.8%Western Africa
22Sierra Leone2.4%Western Africa
23Equatorial Guinea2.3%Middle Africa
24DR Congo2.1%Middle Africa
=25Benin2.0%Western Africa
=25Côte d'Ivoire2.0%Western Africa
=25Tunisia2.0%Northern Africa
=28Tanzania1.9%Eastern Africa
=28Togo1.9%Western Africa
=28Zimbabwe1.9%Eastern Africa
=31Angola1.8%Middle Africa
=31Gabon1.8%Middle Africa
=31Morocco1.8%Northern Africa
=34Ghana1.7%Western Africa
=34Libya1.7%Northern Africa
=36Central African Republic1.4%Middle Africa
=36Nigeria1.4%Western Africa
=38Guinea-Bissau1.3%Western Africa
=38Lesotho1.3%Southern Africa
40Niger1.2%Western Africa
41Burkina Faso1.1%Western Africa
=42Burundi1.0%Eastern Africa
=42Cameroon1.0%Middle Africa
=42Eswatini1.0%Southern Africa
45Kenya0.8%Eastern Africa
=46Algeria0.5%Northern Africa
=46Comoros0.5%Eastern Africa
48Senegal0.1%Western Africa
=49Chad0.0%Middle Africa
=49Sudan0.0%Northern Africa
51South Africa-0.5%Southern Africa
52Botswana-3.3%Southern 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?
Guinea has the most foreign investment for the size of its economy in Africa: 27.4% of GDP (2025). Next come Mozambique (25.8% of GDP) and the Gambia (10.6% of GDP).
Which country in Africa has the least foreign investment for the size of its economy?
Botswana, with -3.3% of GDP (2025).
What is the typical foreign investment of a country in Africa?
The median of the 52 countries in Africa is 2.0% 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, 2025. 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.