54 countries · 127 indicators · 45 sourcesLiveGet API key

Economy · Africa ranking

Investment (% of GDP) by African country

45.3%Algeria leads · 2025

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

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

Latest available year varies by country (20112025); each row shows its year, and values more than 5 years behind the most recent are marked .

#1 vs #51Algeria vs Equatorial Guinea
Median20%Mali
Lowest-3.7%Equatorial Guinea

By region

regional average
West Africa25.8%
14 countries · led by Mauritania
Southern Africa20.1%
7 countries · led by Lesotho
North Africa20%
6 countries · led by Algeria
East Africa19.8%
15 countries · led by Tanzania
Central Africa16.7%
9 countries · led by Democratic Republic of the Congo

Full ranking

51 of 54 countries
#CountryInvestment (% of GDP)Period
1Algeria
45.3%2025
2Mauritania
44.3%2025
3Tanzania
40.7%2025
4Gambia
40.4%2025
5Guinea
37%2025
6Benin
35.8%2025
7Rwanda
34.1%2025
8Morocco
31.9%2025
9Democratic Republic of the Congo
31.7%2025
10Lesotho
31.2%2025
11Republic of the Congo
29.4%2025
12Botswana
29.2%2025
13Somalia
28.1%2025
14Senegal
26.9%2025
15Guinea-Bissau
25.8%2025
16Gabon
24.8%2025
17Mozambique
24.2%2025
18Madagascar
24.1%2025
19Zambia
23.8%2024
20Sierra Leone
23.2%2025
21Uganda
22.6%2025
22Togo
22.4%2023
23Niger
22%2025
24Chad
20.4%2025
25Ethiopia
20.1%2025
26Mali
20%2025
27Mauritius
19.9%2025
28Cameroon
19.3%2025
29Cote d'Ivoire
19.3%2025
30Seychelles
18.7%2025
31Namibia
18.7%2025
32Cabo Verde
17.4%2025
33Burkina Faso
17.2%2025
34Kenya
17%2025
35Malawi
15.7%2025
36Tunisia
15.2%2025
37Eswatini
15%2024
38Libya
14.3%2025
39South Africa
13.9%2025
40Egypt
12.9%2025
41Eritrea
12.6% ⚠ ’112011
42Comoros
11.8%2025
43Angola
10.6%2024
44Ghana
9.9%2024
45Central African Republic
9.3%2025
46Zimbabwe
8.8%2024
47Sao Tome and Principe
8.7%2025
48South Sudan
5.8% ⚠ ’152015
49Djibouti
1.6%2025
50Sudan
0.7%2025
51Equatorial Guinea
-3.7%2025

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

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

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

Equatorial Guinea has the lowest gross capital formation as a share of GDP of the 51 African countries with data, at -3.7% (2025).

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

51 of 54 African countries have a Investment (% of GDP) figure in the Africa API, each from the latest year available for that country (which can differ between countries, here 2011–2025). Every value links to its 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