Africa is home to some of the world’s fastest-growing economies, driven by a combination of natural resource wealth, a booming young population, rapid urbanization, and expanding technology sectors. According to the International Monetary Fund’s World Economic Outlook, the continent’s total GDP is projected to reach approximately $3.6 trillion, with the five largest economies—South Africa, Egypt, Nigeria, Algeria, and Morocco—accounting for nearly half of that total.

However, the continent’s economic landscape is far from static. Currency devaluations, commodity price cycles, and political shifts have reshaped the rankings in recent years, with some nations rising and others falling. This comprehensive guide covers the top 20 largest economies in Africa, ranked by nominal GDP, with key insights into the drivers and challenges shaping each economy.

TOP 20 LARGEST ECONOMIES IN AFRICA

1. South Africa – GDP: $480 Billion

South Africa remains the largest economy in Africa, with a GDP of approximately $480 billion. The country boasts a diversified industrial base that includes mining, manufacturing, finance, and agriculture. South Africa is the world’s largest producer of platinum and a major exporter of gold, diamonds, and coal.

The financial sector is highly developed, with the Johannesburg Stock Exchange ranking among the largest in emerging markets. However, the economy faces significant challenges, including high unemployment (exceeding 30%), persistent inequality, and energy supply constraints. Despite these headwinds, South Africa’s economic depth and institutional maturity keep it at the top of the continental rankings.

2. Egypt – GDP: $430 Billion

Egypt ranks as the second-largest economy in Africa, with a GDP of approximately $430 billion. The economy is driven by revenues from the Suez Canal, tourism, natural gas exports, and a growing manufacturing sector. Egypt’s strategic location at the crossroads of Africa, Asia, and Europe has made it a hub for trade and logistics.

The country has undertaken significant economic reforms, including currency liberalization and subsidy reductions, to stabilize its economy and attract foreign investment. However, inflation and external debt remain concerns. Egypt’s large and youthful population of over 110 million provides both a growing consumer market and a labor force.

3. Nigeria – GDP: $377 Billion

Nigeria is the third-largest economy in Africa, with a GDP of approximately $377 billion. The economy is heavily dependent on oil, which accounts for the vast majority of export earnings and government revenue. However, Nigeria has been actively diversifying, with rapid growth in technology, entertainment, and agriculture.

The country’s tech ecosystem, often referred to as “Silicon Lagoon,” has produced several unicorns and attracted significant venture capital. Nigeria’s population of over 220 million makes it Africa’s most populous nation and a massive consumer market. The naira’s devaluation in recent years has reduced the dollar value of Nigeria’s GDP, but the economy remains fundamentally strong in purchasing power parity terms.

4. Algeria – GDP: $317 Billion

Algeria ranks fourth with a GDP of approximately $317 billion. The economy is heavily dependent on natural gas exports, which account for the majority of government revenue and export earnings. Algeria is a major supplier of natural gas to Europe, and the country has significant untapped shale gas reserves.

The government has made efforts to diversify the economy through investments in renewable energy, agriculture, and manufacturing, but progress has been gradual. High youth unemployment and dependence on hydrocarbons remain structural challenges. Algeria’s large foreign exchange reserves provide a buffer against external shocks.

5. Morocco – GDP: $194 Billion

Morocco ranks fifth with a GDP of approximately $194 billion. The country has emerged as a North African economic success story, driven by automotive manufacturing, renewable energy, logistics, and tourism. Morocco is now the largest exporter of automobiles in Africa, with major international manufacturers operating plants in the country.

The country has also made significant investments in solar and wind energy, positioning itself as a leader in the renewable energy transition. Its strategic location near Europe and free trade agreements with the EU and the US have made it an attractive destination for foreign investment.

6. Angola – GDP: $152 Billion

Angola ranks sixth with a GDP of approximately $152 billion. The economy is heavily dependent on oil exports, which account for more than 90% of export earnings. Angola is the second-largest oil producer in Africa after Nigeria.

The country has made efforts to diversify its economy, with investments in agriculture, mining, and manufacturing, but progress has been slowed by corruption, infrastructure deficits, and the legacy of a long civil war. The government has implemented reforms to improve the business environment and attract foreign investment.

7. Kenya – GDP: $147 Billion

Kenya ranks seventh with a GDP of approximately $147 billion. The country is East Africa’s economic powerhouse, with a diversified economy that includes agriculture, tourism, manufacturing, and a rapidly growing technology sector. Nairobi is known as “Silicon Savannah,” home to numerous tech startups and innovation hubs.

Kenya is a global leader in mobile money, with M-Pesa revolutionizing financial inclusion. The country serves as a regional hub for logistics, finance, and diplomatic activity. However, challenges remain, including high public debt, unemployment, and infrastructure gaps.

8. DR Congo – GDP: $123 Billion

The Democratic Republic of the Congo ranks eighth with a GDP of approximately $123 billion. The country is incredibly resource-rich, possessing vast reserves of cobalt, copper, diamonds, gold, and other minerals critical to the global energy transition. The DRC is the world’s largest producer of cobalt, a key component in electric vehicle batteries.

However, the economy is hampered by political instability, corruption, inadequate infrastructure, and ongoing conflict in the eastern regions. Despite these challenges, the DRC’s mineral wealth positions it as a potential economic powerhouse.

9. Ethiopia – GDP: $122 Billion

Ethiopia ranks ninth with a GDP of approximately $122 billion. The country has one of the fastest-growing economies in Africa, driven by agriculture, manufacturing, and services. Ethiopia has made significant investments in infrastructure, including the Grand Ethiopian Renaissance Dam, which is expected to boost electricity generation and support industrial development.

The country’s large population of over 120 million provides a growing labor force and consumer market. However, political tensions, internal conflict, and foreign exchange shortages have dampened growth in recent years.

10. Ghana – GDP: $118 Billion

Ghana ranks tenth with a GDP of approximately $118 billion. The economy is driven by oil, gold, and cocoa exports, with oil production from the Jubilee Field providing a significant boost to government revenues. Ghana is one of the world’s largest cocoa producers and a major gold exporter.

The country has made progress in economic diversification, with growth in services, manufacturing, and technology. However, high public debt, inflation, and currency depreciation have posed challenges. Ghana’s democratic stability and strong institutions make it an attractive destination for investment.

11. Côte d’Ivoire – GDP: $112 Billion

Côte d’Ivoire ranks eleventh with a GDP of approximately $112 billion. The country is the world’s largest producer of cocoa and a significant exporter of coffee, oil, and rubber. The economy has grown steadily in recent years, driven by agriculture, infrastructure investment, and a favorable business environment.

Côte d’Ivoire is one of the fastest-growing economies in West Africa and serves as a regional hub for finance and trade. The government has prioritized economic diversification and improved governance.

12. Tanzania – GDP: $95 Billion

Tanzania ranks twelfth with a GDP of approximately $95 billion. The economy is driven by agriculture, tourism, mining, and a growing manufacturing sector. Tanzania is a major producer of gold and has significant natural gas reserves. The country’s stable political environment and strategic location make it a hub for trade in East Africa.

The government has invested in infrastructure, including ports and railways, to support economic growth. However, poverty remains widespread, particularly in rural areas.

13. Uganda – GDP: $73 Billion

Uganda ranks thirteenth with a GDP of approximately $73 billion. The economy is predominantly agricultural, with coffee, tea, and cotton as major exports. Uganda has significant oil reserves, with production expected to begin in the coming years.

The country has made progress in economic growth and poverty reduction, but challenges remain, including infrastructure gaps, corruption, and a rapidly growing population. Uganda’s strategic location in the Great Lakes region makes it a potential trade hub.

14. Cameroon – GDP: $65 Billion

Cameroon ranks fourteenth with a GDP of approximately $65 billion. The economy is diversified, with oil, agriculture, forestry, and manufacturing contributing to growth. Cameroon is a major exporter of cocoa, coffee, timber, and oil.

The country has a relatively well-developed infrastructure compared to some of its neighbors, but political tensions and security challenges in the Anglophone regions have dampened economic activity. The government has prioritized infrastructure investment and economic diversification.

15. Tunisia – GDP: $61 Billion

Tunisia ranks fifteenth with a GDP of approximately $61 billion. The economy is driven by tourism, manufacturing, and services, with a well-educated workforce and a strategic location near Europe. Tunisia has historically been a destination for European tourists, though political instability since 2011 has affected the sector.

The country has a diversified industrial base, including textiles, automotive components, and electronics. However, high unemployment and slow growth remain challenges.

16. Zimbabwe – GDP: $57 Billion

Zimbabwe ranks sixteenth with a GDP of approximately $57 billion. The economy is driven by mining (gold, platinum, diamonds), agriculture (tobacco, maize), and manufacturing. Zimbabwe has faced severe economic challenges over the past two decades, including hyperinflation, currency instability, and international sanctions.

The country has made efforts to stabilize the economy and attract investment, but progress has been uneven. Zimbabwe’s mineral wealth and agricultural potential provide a foundation for future growth.

17. Libya – GDP: $52 Billion

Libya ranks seventeenth with a GDP of approximately $52 billion. The economy is almost entirely dependent on oil exports, which account for more than 95% of government revenue. Libya has the largest proven oil reserves in Africa but has been plagued by political instability and conflict since 2011.

Oil production has fluctuated due to blockades and security issues. Despite these challenges, Libya’s oil wealth provides significant potential for economic recovery if stability can be restored.

18. Sudan – GDP: $45 Billion

Sudan ranks eighteenth with a GDP of approximately $45 billion. The economy is driven by agriculture, gold mining, and oil, though the ongoing civil war has severely disrupted economic activity. Sudan has significant agricultural potential, with vast arable land and water resources.

Gold has become a major export in recent years, helping to offset the loss of oil revenues following the secession of South Sudan. However, conflict, inflation, and international sanctions have crippled the economy.

19. Zambia – GDP: $41 Billion

Zambia ranks nineteenth with a GDP of approximately $41 billion. The economy is heavily dependent on copper mining, which accounts for the majority of export earnings. Zambia is one of the world’s largest copper producers and has significant potential for growth as global demand for the metal rises.

The country has made progress in economic reforms and debt restructuring, but challenges remain, including poverty, infrastructure gaps, and a reliance on a single commodity.

20. Senegal – GDP: $40 Billion

Senegal ranks twentieth with a GDP of approximately $40 billion. The economy is driven by agriculture, fishing, tourism, and a growing services sector. Senegal has recently begun oil and gas production, which is expected to significantly boost government revenues and economic growth in the coming years.

The country has a stable political environment and has made progress in infrastructure development and economic reforms. Dakar serves as a regional hub for finance and trade in West Africa.

COMPARISON TABLE

Rank Country 2026 GDP (USD Billions) Key Economic Driver
1 South Africa ~$480B Diversified industrial base, mining, finance
2 Egypt ~$430B Suez Canal, tourism, manufacturing
3 Nigeria ~$377B Oil production, technology ecosystem
4 Algeria ~$317B Natural gas exports
5 Morocco ~$194B Automotive manufacturing, renewable energy, logistics
6 Angola ~$152B Oil exports
7 Kenya ~$147B Technology, agriculture, logistics
8 DR Congo ~$123B Cobalt, copper, and mineral wealth
9 Ethiopia ~$122B Agriculture, manufacturing, services
10 Ghana ~$118B Oil, gold, cocoa exports
11 Côte d’Ivoire ~$112B Cocoa, coffee, oil
12 Tanzania ~$95B Agriculture, tourism, mining
13 Uganda ~$73B Agriculture; emerging oil sector
14 Cameroon ~$65B Oil, agriculture, forestry
15 Tunisia ~$61B Tourism, manufacturing, services
16 Zimbabwe ~$57B Mining and agriculture
17 Libya ~$52B Oil exports
18 Sudan ~$45B Agriculture and gold
19 Zambia ~$41B Copper mining
20 Senegal ~$40B Agriculture, fishing, tourism

TIPS FOR UNDERSTANDING AFRICA’S ECONOMIC LANDSCAPE

Five Nations Dominate the Continent: The top five economies—South Africa, Egypt, Nigeria, Algeria, and Morocco—are projected to generate nearly half of Africa’s total GDP, accounting for approximately $1.8 trillion out of the continent’s projected $3.6 trillion economy. This concentration of economic power attracts greater investment but also risks widening development gaps with smaller, less diversified economies.

Currency Devaluations Have Reshaped Rankings: Over the past six years, the continent’s top economies have undergone notable shifts driven by currency devaluations, inflation, and commodity cycles. Nigeria saw the sharpest setback after naira devaluations weakened its dollar-denominated GDP, while Morocco steadily strengthened its position through industrial expansion and export growth.

New Economic Challengers Are Emerging: While the current landscape is dominated by five major powers, countries such as Kenya, Ethiopia, Tanzania, and the Democratic Republic of the Congo are increasingly viewed as future economic heavyweights due to their fast-growing populations, expanding infrastructure, mineral wealth, and rising industrial capacity.

Purchasing Power Parity (PPP) Tells a Different Story: When adjusted for purchasing power parity (PPP), which accounts for cost-of-living differences, the rankings shift significantly. Egypt and Nigeria lead the continent with PPP-adjusted GDPs of approximately $2.53 trillion and $2.39 trillion respectively, followed by South Africa at $1.06 trillion.

Data Sources Vary: Different sources may present slightly different figures due to varying methodologies and update timings. For example, one source lists Nigeria as the largest economy at $510B, followed by Egypt at $507B and South Africa at $426B. These discrepancies highlight the importance of cross-referencing multiple sources when analyzing economic data.

CONCLUSION

Africa’s economic landscape is defined by both remarkable opportunity and persistent challenge. The continent’s five largest economies—South Africa, Egypt, Nigeria, Algeria, and Morocco—dominate the rankings, accounting for nearly half of Africa’s total GDP and serving as the primary drivers of continental growth. Yet beneath these headline figures lies a dynamic and shifting picture. Currency devaluations have reshuffled the rankings, with Nigeria falling from its previous position while Morocco has steadily risen.

New challengers like Kenya, Ethiopia, and the DRC are emerging as future economic heavyweights, buoyed by technology, infrastructure, and mineral wealth. And when adjusted for purchasing power parity, the rankings tell a different story entirely, with Egypt and Nigeria leading the continent. Understanding these nuances is essential for investors, policymakers, and anyone seeking to engage with Africa’s rapidly evolving economies. As the continent continues to urbanize, digitize, and integrate, the top 20 largest economies will remain the primary engines of growth for decades to come.