54 countries · 127 indicators · 45 sourcesLiveGet API key

Economy · Africa ranking

Investment (% of GDP) by African country

43.1%Mauritania leads · 2024

Mauritania has the highest gross capital formation as a share of GDP of any African country, at 43.1%, ahead of Algeria and Tanzania.

Gross capital formation (investment in fixed assets and inventories) as a share of GDP. 50 of 54 countries, ranked · World Bank — World Development Indicators, 2024.

#1 vs #50171×Mauritania vs Djibouti
Median20.9%Cote d'Ivoire
Lowest0.3%Djibouti

By region

regional average
West Africa25.6%
14 countries · led by Mauritania
Southern Africa21.5%
7 countries · led by Botswana
Central Africa20.9%
8 countries · led by Democratic Republic of the Congo
East Africa18.4%
15 countries · led by Tanzania
North Africa18.2%
6 countries · led by Algeria

Full ranking

50 of 54 countries
#CountryInvestment (% of GDP)Period
1Mauritania
43.1%2024
2Algeria
41.1%2024
3Tanzania
39.8%2024
4Senegal
37.5%2024
5Botswana
36%2024
6Benin
35.1%2024
7Democratic Republic of the Congo
32.5%2024
8Guinea
32.1%2024
9Morocco
30.1%2024
10Gambia
29.9%2024
11Lesotho
27.2%2023
12Republic of the Congo
26.8%2024
13Chad
26.8%2024
14Somalia
26.7%2024
15Rwanda
25.9%2024
16Namibia
25.6%2024
17Guinea-Bissau
24.9%2024
18Togo
24.5%2022
19Zambia
23.8%2024
20Central African Republic
23.6%2024
21Uganda
22.4%2024
22Madagascar
22.2%2024
23Niger
22.1%2024
24Burkina Faso
21.9%2024
25Mauritius
21.2%2024
26Cote d'Ivoire
20.9%2024
27Ethiopia
20.6%2024
28Sierra Leone
20.5%2024
29Mali
19.5%2024
30Gabon
19.1%2024
31Cameroon
18.9%2024
32Mozambique
17.7%2024
33Seychelles
17.2%2024
34Kenya
16.8%2024
35Cabo Verde
16.4%2024
36Eswatini
15%2024
37Malawi
14.5%2023
38Libya
14.3%2024
39South Africa
14.1%2024
40Egypt
13%2024
41Eritrea
12.6%2011
42Comoros
11.7%2024
43Angola
10.4%2024
44Ghana
10%2024
45Equatorial Guinea
9%2024
46Zimbabwe
8.8%2024
47Tunisia
7.9%2024
48South Sudan
5.8%2015
49Sudan
2.9%2024
50Djibouti
0.3%2024

Get this ranking via API

GET /v1/data

One call to /v1/data returns the latest Investment (% 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=gross_capital_formation_pct_gdp&latest=true&country_codes=NG,KE,ZA,EG" \
  -H "Authorization: Bearer $AFRICA_API_KEY"

Cite or republish this ranking

Data: Africa APIWorld Bank — World Development Indicators, 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/investment-gdp-share" width="100%" height="560" loading="lazy" style="border:1px solid #e3e3e3;border-radius:10px;max-width:640px" title="Investment (% 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/investment-gdp-share">Investment (% of GDP) by African country — Africa API</a></p>

Frequently asked questions

Which African country has the highest gross capital formation as a share of GDP?

Mauritania has the highest gross capital formation as a share of GDP in Africa at 43.1% (2024), followed by Algeria and Tanzania.

Which African country has the lowest gross capital formation as a share of GDP?

Djibouti has the lowest gross capital formation as a share of GDP of the 50 African countries with data, at 0.3% (2024).

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

50 of 54 African countries have a recent Investment (% 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=gross_capital_formation_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