Economy · Africa ranking

GDP by African country

$401.14BSouth Africa leads · 2024

Gross domestic product in current US dollars. Latest reported value for 54 of 54 countries, ranked. Every row links to the full national series with history and sources.

Full ranking

#CountryGDPPeriod
1South Africa$401.14B2024
2Egypt$389.06B2024
3Algeria$269.32B2024
4Nigeria$252.26B2024
5Morocco$160.61B2024
6Ethiopia$149.74B2024
7Kenya$120.34B2024
8Angola$101B2024
9Cote d'Ivoire$87.11B2024
10Ghana$82.31B2024
11Tanzania$78.84B2024
12Democratic Republic of the Congo$70.96B2024
13Uganda$53.91B2024
14Cameroon$53.3B2024
15Tunisia$51.33B2024
16Sudan$49.67B2024
17Libya$48.49B2024
18Zimbabwe$41.54B2024
19Senegal$32.81B2024
20Mali$26.79B2024
21Zambia$25.3B2024
22Guinea$25.01B2024
23Burkina Faso$23.12B2024
24Mozambique$22.75B2024
25Benin$21.48B2024
26Gabon$20.9B2024
27Niger$19.88B2024
28Chad$19.52B2024
29Botswana$19.4B2024
30Madagascar$17.42B2024
31Republic of the Congo$15.72B2024
32Mauritius$14.94B2024
33Rwanda$14.25B2024
34Namibia$13.37B2024
35Equatorial Guinea$12.77B2024
36South Sudan$12B2015
37Somalia$11.97B2024
38Malawi$11.32B2024
39Mauritania$10.91B2024
40Togo$10.65B2024
41Sierra Leone$6.97B2024
42Eswatini$4.86B2024
43Liberia$4.78B2024
44Djibouti$4.15B2024
45Burundi$3.08B2024
46Central African Republic$2.75B2024
47Cabo Verde$2.73B2024
48Gambia$2.4B2024
49Lesotho$2.27B2024
50Guinea-Bissau$2.22B2024
51Seychelles$2.17B2024
52Eritrea$2.07B2011
53Comoros$1.44B2024
54Sao Tome and Principe$822.15M2024

Get this ranking via API

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

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

Frequently asked questions

Which African country has the highest gross domestic product?

South Africa has the highest gross domestic product in Africa at $401.14B (2024), followed by Egypt and Algeria.

How many African countries report GDP data?

54 of 54 African countries have a recent 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=gdp_current_usd&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