54 countries · 127 indicators · 45 sourcesLiveGet API key

Economy · Africa ranking

FDI (% of GDP) by African country

15.6%Mozambique leads · 2024

Mozambique has the highest net FDI inflows as a share of GDP of any African country, at 15.6%, ahead of Namibia and Egypt.

Net foreign direct investment inflows as a share of GDP. 54 of 54 countries, ranked · UNCTAD STRUCTURAL TRADE, 2024.

#1 vs #54Mozambique vs Lesotho
Median2.4%South Sudan
Lowest-1.8%Lesotho

By region

regional average
West Africa4.5%
16 countries · led by Liberia
East Africa4.1%
16 countries · led by Mozambique
Southern Africa3.5%
7 countries · led by Namibia
North Africa3.5%
6 countries · led by Egypt
Central Africa2.9%
9 countries · led by Gabon

Full ranking

54 of 54 countries
#CountryFDI (% of GDP)Period
1Mozambique
15.6%2024
2Namibia
15.4%2024
3Egypt
15.2%2024
4Liberia
14.2%2024
5Mauritania
14%2024
6Seychelles
13.8%2024
7Gambia
9.8%2024
8Somalia
6.4%2024
9Uganda
5.9%2024
10Senegal
5.5%2024
11Gabon
5.5%2024
12Rwanda
5.4%2024
13Chad
5.1%2024
14Guinea
5%2024
15Zambia
4.9%2024
16Mauritius
4.6%2024
17Cote d'Ivoire
4.4%2024
18Democratic Republic of the Congo
4.1%2024
19Sierra Leone
4%2024
20Republic of the Congo
3.7%2024
21Niger
3%2024
22Ethiopia
2.8%2024
23Mali
2.7%2024
24Sao Tome and Principe
2.6%2024
25Benin
2.5%2024
26Botswana
2.4%2024
27Madagascar
2.4%2024
28South Sudan
2.4%2024
29Cabo Verde
2.3%2024
30Tanzania
2.1%2024
31Ghana
2%2024
32Malawi
1.9%2024
33Eswatini
1.9%2024
34Tunisia
1.8%2024
35Cameroon
1.7%2024
36Sudan
1.7%2023
37Djibouti
1.6%2024
38Equatorial Guinea
1.5%2024
39Central African Republic
1.5%2024
40Guinea-Bissau
1.3%2024
41Zimbabwe
1.3%2024
42Kenya
1.2%2024
43Morocco
1%2024
44Libya
0.9%2013
45Togo
0.8%2024
46Burundi
0.7%2024
47South Africa
0.6%2024
48Algeria
0.5%2024
49Comoros
0.5%2024
50Nigeria
0.4%2024
51Burkina Faso
0.4%2024
52Angola
-0.1%2024
53Eritrea
-1.5%2024
54Lesotho
-1.8%2024

Get this ranking via API

GET /v1/data

One call to /v1/data returns the latest FDI (% of GDP) figure for every country you pass — JSON, with source metadata on each observation.

curl "https://api.africa-api.com/v1/data?metric_key=fdi_net_inflows_pct_gdp&latest=true&country_codes=NG,KE,ZA,EG" \
  -H "Authorization: Bearer $AFRICA_API_KEY"

Cite or republish this ranking

Data: Africa APIUNCTAD STRUCTURAL TRADE, 2024. Free to republish with a link to this page. Pull the live figures via the API above so your version never goes stale.

Embed this ranking

free · auto-updating

Drop this chart into your article or site — it stays live as the data updates. Paste the snippet anywhere HTML is allowed (a citation link is included).

<iframe src="https://africa-api.com/embed/fdi-gdp-share" width="100%" height="560" loading="lazy" style="border:1px solid #e3e3e3;border-radius:10px;max-width:640px" title="FDI (% of GDP) by African country — Africa API"></iframe>
<p style="font:13px/1.5 system-ui,sans-serif;margin:.5rem 0"><a href="https://africa-api.com/data/fdi-gdp-share">FDI (% of GDP) by African country — Africa API</a></p>

Frequently asked questions

Which African country has the highest net FDI inflows as a share of GDP?

Mozambique has the highest net FDI inflows as a share of GDP in Africa at 15.6% (2024), followed by Namibia and Egypt.

Which African country has the lowest net FDI inflows as a share of GDP?

Lesotho has the lowest net FDI inflows as a share of GDP of the 54 African countries with data, at -1.8% (2024).

How many African countries report FDI (% of GDP) data?

54 of 54 African countries have a recent FDI (% of GDP) figure in the Africa API. Each value links to the country's full series with source and history.

How do I get this ranking via API?

Call GET /v1/data?metric_key=fdi_net_inflows_pct_gdp&latest=true with the country codes you need and a free Africa API key — the response returns the latest value per country as JSON.

More economy rankings