Geography

Largest Cities in Africa by Population: Top 15 Ranked

On this page
  1. 01Quick answer
  2. 02The 15 largest cities in Africa by population
  3. 03City profiles: 1 to 5
  4. 04City profiles: 6 to 10
  5. 05City profiles: 11 to 15
  6. 06Why Cairo, Lagos and Kinshasa swap places
  7. 07Fastest growth among the giants
  8. 08FAQ

Cairo is the biggest city in Africa, with about 20.9 million people in its urban area in the UN series used here. Lagos and Kinshasa follow at a little over 14 million each, so close that a change of source or boundary can flip them.

That’s the catch with any list of the largest cities in Africa by population: “city” can mean a municipality, a province or an entire sprawl. This ranking sticks to one dataset and one set of figures from top to bottom.

Table of Contents

Quick answer

  • Largest: Cairo, Egypt (about 20.9 million)
  • Second and third: Lagos, Nigeria (14.4 million) and Kinshasa, DR Congo (14.3 million)
  • Fourth and fifth: Luanda, Angola (8.3 million) and Dar es Salaam, Tanzania (6.7 million)
  • Megacities (10 million or more): Cairo, Lagos and Kinshasa

The 15 largest cities in Africa by population

Source and definition: figures come from the UN’s World Urbanization Prospects, 2018 revision, using its projections for 2020. It measures urban agglomerations (the built-up area, beyond official city limits) wherever national data allow.

These are not live headcounts, and many of these cities have grown since 2020. The UN has also published a 2025 revision with a different method for defining cities, so its numbers shouldn’t be mixed with these.

One editorial call: the 2018 series lists Ekurhuleni, South Africa’s East Rand, separately from Johannesburg. It’s a municipality made up of several towns, so it isn’t ranked here.

Rank City Country Population (millions) Year
1 Cairo Egypt 20.9 2020
2 Lagos Nigeria 14.4 2020
3 Kinshasa DR Congo 14.3 2020
4 Luanda Angola 8.3 2020
5 Dar es Salaam Tanzania 6.7 2020
6 Khartoum Sudan 5.8 2020
7 Johannesburg South Africa 5.8 2020
8 Alexandria Egypt 5.3 2020
9 Abidjan Côte d’Ivoire 5.2 2020
10 Addis Ababa Ethiopia 4.8 2020
11 Nairobi Kenya 4.7 2020
12 Cape Town South Africa 4.6 2020
13 Kano Nigeria 4.0 2020
14 Yaoundé Cameroon 4.0 2020
15 Casablanca Morocco 3.8 2020

City profiles: 1 to 5

1. Cairo, Egypt

Aerial view of downtown Cairo with Nile River and urban skyline showcasing landmarks and busy traffic.

Greater Cairo spills across three governorates: Cairo, Giza and Qalyubia. The pyramids are on the Giza side, where apartment blocks run close to the edge of the plateau. Government, universities, media and industry are all concentrated here, which keeps pulling people in. Cairo also opened Africa’s first metro line in 1987, and a new administrative capital has been rising in the desert to the east to relieve the pressure.

2. Lagos, Nigeria

A stunning dusk cityscape view of Lagos Lagoon with vivid reflections and city lights.

Lagos stopped being Nigeria’s capital in 1991 and carried on growing anyway. Its ports, banks, tech firms and the Nollywood film industry draw people from across the country. Geography makes it tight: lagoons split the city, and the Third Mainland Bridge, more than 10 kilometres long, is a daily test of patience for commuters.

3. Kinshasa, DR Congo

Kinshasa looks straight across the Congo River at Brazzaville, capital of the neighbouring Republic of the Congo. Few pairs of national capitals sit so close. A high birth rate and steady migration from the interior drive its growth. It’s also one of the world’s largest French-speaking cities, although Lingala rules the street and the music. Congolese rumba, shared with Brazzaville, is on UNESCO’s intangible heritage list.

4. Luanda, Angola

Stunning aerial shot of Luanda's coastline and urban skyline under a blue sky.

The Portuguese founded Luanda in 1576, and its bayfront still anchors the city. Growth surged during Angola’s long civil war, when people fled the countryside for the relative safety of the coast. Oil money later built towers downtown, while large informal neighbourhoods, known locally as musseques, house much of the population.

5. Dar es Salaam, Tanzania

Dodoma is Tanzania’s official capital, but Dar es Salaam is where the main port and much of the business are. That port also serves landlocked neighbours such as Zambia and Rwanda. The city launched a bus rapid transit system in 2016, with dedicated lanes meant to cut through some of East Africa’s most stubborn traffic.

City profiles: 6 to 10

6. Khartoum, Sudan

Khartoum sits where the Blue Nile meets the White Nile, forming a three-part metropolis with Omdurman and Khartoum North. Treat its figure with real caution. War broke out in April 2023 and forced huge numbers of people from their homes, many of them from the capital. The 2020 number describes a prewar city.

7. Johannesburg, South Africa

Capture the beauty of an urban skyline at sunset with warm orange hues and silhouetted buildings.

Gold built Johannesburg, starting with the 1886 rush on the Witwatersrand. It’s unusual among big cities for having no major river, lake or coastline. Finance and services now matter far more than mining. The wider Gauteng urban region, including Ekurhuleni and Pretoria, is much larger than the figure in the table.

8. Alexandria, Egypt

Alexander the Great founded it in 331 BC, and it still stretches in a long, narrow band along the Mediterranean. Port trade and industry support the economy. The modern Bibliotheca Alexandrina, opened in 2002, is a deliberate nod to the ancient library the city lost.

9. Abidjan, Côte d’Ivoire

Abidjan is built around the Ébrié Lagoon, with the towers of the Plateau district facing neighbourhoods across the water. Yamoussoukro became the official capital in 1983, but Abidjan remains the economic centre, helped by a major port that handles cocoa from the world’s top producer.

10. Addis Ababa, Ethiopia

At roughly 2,300 metres or more above sea level, Addis has cool evenings that surprise first-time visitors. It hosts the African Union headquarters, which gives it diplomatic weight well beyond its size. A light rail system opened in 2015, and migration from rural Ethiopia keeps the edges expanding.

City profiles: 11 to 15

11. Nairobi, Kenya

A giraffe at Taronga Zoo with the Sydney Opera House in the background, contrasting wildlife and urban life.

Nairobi began in 1899 as a railway depot. Today it has a national park inside its boundaries, where you can photograph giraffes with office towers behind them. Regional corporate offices, a busy tech sector and the headquarters of the UN Environment Programme all feed its growth.

12. Cape Town, South Africa

Table Mountain and the sea limit where the city can go, and much of the growth has spread across the sandy Cape Flats. In 2018, a severe drought brought Cape Town close to “Day Zero,” the point at which most household taps would have been shut off. Residents cut water use sharply, and the city avoided it.

13. Kano, Nigeria

Kano was a trading power on trans-Saharan routes for centuries. You can still see sections of its old earthen walls and the indigo dye pits at Kofar Mata. It remains northern Nigeria’s main commercial centre, with large markets drawing traders from neighbouring countries.

14. Yaoundé, Cameroon

Yaoundé is Cameroon’s political capital, spread over a series of green hills. Its rival Douala is the port and business hub, and plenty of people assume it’s the bigger of the two. For a ranking by economic weight rather than headcount, see the richest cities in Cameroon. In this UN series, Yaoundé edges ahead.

15. Casablanca, Morocco

Stunning view of Hassan II Mosque against the sunset sky in Casablanca, Morocco.

Rabat is the capital, but Casablanca is where Morocco does business. The Hassan II Mosque stands partly over the Atlantic, with a minaret about 210 metres tall. Industry, finance and the port keep the city well ahead of every other Moroccan urban area.

Why Cairo, Lagos and Kinshasa swap places

Search for the biggest city in Africa and you’ll get Cairo from one site, Lagos from another and Kinshasa from a third. Four things explain most of it.

Boundaries. A city proper stops at an administrative line. An urban agglomeration follows the buildings. A metro area can add surrounding commuter towns. Cairo Governorate alone leaves out Giza, which is plainly part of the same city on the ground.

Kinshasa has the opposite quirk. Its city-province covers nearly 10,000 square kilometres, much of it rural, so a “city” figure can include a lot of countryside.

Old censuses. DR Congo hasn’t held a national census since 1984. Nigeria’s last one was in 2006. Current figures for Kinshasa and Lagos therefore rest heavily on modelling, and different assumptions about growth produce very different totals. Lagos State officials have long argued for numbers far above the UN’s.

Different methods. The UN’s 2025 revision applies a common density-based definition of cities across countries. Cairo ranks among the world’s 10 largest cities there, the only one in that group outside Asia. Method can move a total enormously: Nairobi shows up near 16 million in one current table and under 6 million in another.

Different years. A 2020 projection, a 2026 estimate and a decade-old census can end up side by side in the same list.

The practical rule: when you quote a population, quote the source, definition and year with it. And don’t average two sources. The result describes no actual place.

Fastest growth among the giants

The same UN series projects the five largest African cities forward to 2030. Cairo stays first, but Kinshasa moves clearly past Lagos.

City 2020 (millions) 2030 projection (millions) Approximate growth
Cairo 20.9 25.5 22%
Kinshasa 14.3 21.9 53%
Lagos 14.4 20.6 43%
Luanda 8.3 12.1 46%
Dar es Salaam 6.7 10.8 61%

Dar es Salaam is the fastest riser of this group. Both it and Luanda are projected to cross the 10 million mark, which would take Africa from three megacities to five. These are projections made in 2018, so read them as direction and scale, not as a promise.

FAQ

What is the biggest city in Africa?

Cairo, on an urban-area basis in the UN data used here. Lists that name Lagos or Kinshasa are usually using different boundaries, years or estimation methods.

Is Lagos bigger than Kinshasa?

Only barely in the 2020 figures: about 14.4 million against 14.3 million. That gap is far smaller than the uncertainty in either number. By 2030, the same series puts Kinshasa ahead.

How many megacities does Africa have?

Three in the 2020 figures used here: Cairo, Lagos and Kinshasa. A megacity is an urban area with at least 10 million people.

Which country has the most cities in the top 15?

It’s a three-way tie. Egypt (Cairo and Alexandria), Nigeria (Lagos and Kano) and South Africa (Johannesburg and Cape Town) have two each.

Is the largest city always the capital?

No. Lagos is far bigger than Abuja, Dar es Salaam outgrows Dodoma, and Casablanca is well ahead of Rabat. Johannesburg isn’t one of South Africa’s three capitals either.