Morocco leads Africa in digital trade surpluses, with $26 billion 20-year cumulative gain

  • Morocco achieved the highest cumulative surplus in Africa’s digital trade at $26.4 billion between 2005 and 2024.
  • Mauritius and Tunisia followed distantly with surpluses of $8.7 billion and $4.4 billion, respectively.
  • Nigeria and Angola recorded the deepest deficits, each exceeding $90 billion cumulatively.
  • Africa’s overall digital trade balance remained negative, averaging a -$618 million deficit in 2024.
  • Smaller economies like Kenya and Togo managed modest but consistent surpluses over the years.

Morocco has built a commanding lead in Africa’s digital services trade, recording a cumulative surplus of $26.4 billion between 2005 and 2024. This places it far ahead of Mauritius ($8.7 billion) and Tunisia ($4.4 billion), cementing its role as the continent’s most competitive digital exporter.

In 2024 alone, Morocco posted a surplus of $3.56 billion, the highest in Africa, ahead of Mauritius ($2.65 billion) and Tunisia ($621 million). Other countries like Kenya ($1.9 billion) and Togo ($1.1 billion) also managed to sustain long-term surpluses, but at much smaller scales.

On the flip side, Africa’s largest economies carry the deepest deficits. Nigeria (-$94.5 billion), Angola (-$97.8 billion), and Egypt (-$55.9 billion) have seen decades of heavy outflows on digital services, while South Africa (-$37.2 billion) and Algeria (-$28.4 billion) also rank among the biggest laggards.

Morocco’s cumulative strength shows that consistent investment in digital exports—particularly IT-enabled services and outsourcing—can turn the tide, even in a region where the overall trend remains negative.

Source:

World Trade Organization (WTO)

Period:

2005-2024
HTML code to embed chart
Want a bespoke report?
Reach out
Tags
Related Insights

Morocco nearly matched South Africa in Africa’s vehicle import market in 2025
  • South Africa led with $8.52 billion, only $140 million ahead of Morocco.
  • Morocco’s imports have grown steadily, while South Africa’s 2025 figure was a recovery toward its 2012 peak.
  • Egypt ranked third, followed by Algeria and Nigeria.
  • The top 10 markets accounted for 67.1% of Africa’s $56.48 billion total.
  • Road vehicle imports include vehicles, parts, motorcycles, trailers, and semi-trailers.

Africa’s merchandise exports to China in 2025
  • Africa exported a record $86.2bn worth of goods to China in 2025.
  • China received about 12.5% of Africa’s total merchandise exports.
  • Annual exports remained below $10bn until 2004, before accelerating sharply.
  • Export values have remained relatively high since 2021 despite earlier downturns.
  • The trade relationship remains heavily commodity-led, with limited manufactured exports.

Africa’s export map changed, but only three economies escaped heavy reliance on one buyer
  • Only 3 of 52 African economies met the export-market diversification test in 2025.
  • Nigeria recorded the largest and most sustained shift, with its top-buyer share falling from 43.1% to 9.9%.
  • Madagascar’s top-market share dropped from 40.0% to 14.9% and has remained below 20% since 2021.
  • Libya narrowly qualified at 19.5%, after remaining above the threshold in 2024.
  • The test measures reduced dependence on one export destination, not greater product diversification.

South Africa, Egypt and Morocco accounted for nearly 40% ($313b) of Africa’s merchandise imports in 2025
  • Africa imported merchandise worth $788.9 billion in 2025, representing about 3% of global merchandise imports.
  • South Africa was Africa’s largest merchandise importer, with imports valued at $128.1 billion.
  • Egypt ranked second at $97.5 billion, followed by Morocco at $87.4 billion.
  • The three largest importers accounted for $313 billion, or 39.7% of Africa’s total merchandise imports.
  • South Africa alone accounted for about 16.2% of the continental total.
  • The five largest importers, including Algeria and Nigeria, were responsible for $404.6 billion, or 51.3% of Africa’s imports.
  • Nigeria ranked fifth, with merchandise imports valued at $41.5 billion.

Africa has never sold more than 20% of its goods exports within the continent in three decades
  • Only 16.9% of Africa’s merchandise exports were sold to other African countries in 2024.
  • Africa had the second-lowest intra-continental export share, ahead only of Oceania’s 4.8%.
  • Europe recorded the highest share at 65.6%, followed by Asia at 58.4% and the Americas at 54.0%.
  • Europe’s intra-continental export share was nearly four times Africa’s.
  • Africa’s share increased from 12.1% in 1995 to 16.9% in 2024, a rise of 4.8 percentage points.
  • Despite this long-term improvement, Africa remained below its 2015 peak of 18.8%.
  • Africa has not crossed the 20% mark at any point in the three decades covered.

South Africa accounted for nearly $1 in every $6 Africa earned from merchandise exports in 2025
  • Africa’s merchandise exports reached $689.2 billion in 2025.
  • Exports grew by 9.7%, the fastest rate outside Asia.
  • Africa accounted for just 2.6% of global merchandise exports.
  • South Africa led with $116.4 billion, followed by Nigeria and Egypt.
  • The top 15 economies generated 79.3% of Africa’s exports.

POPULAR TOPICS
SIGN UP TO OUR NEWSLETTER
Get periodic updates about the African startup space, access to our reports, among others.
Subscribe Here
Subscription Form

A product of Techpoint Africa. All rights reserved