Latest
1/5

African countries by Median age (years, estimate)

Mauritius has the highest value (38.9) and Central African Republic the lowest (15.5). The median across 54 countries is 20.0. Data years: 2025.

  • 15.5 – 18.5
  • 18.5 – 19.4
  • 19.4 – 20.6
  • 20.6 – 24.5
  • 24.5 – 38.9
  • no data

Source: World Bank / UN WPP. Data methodology

Download: CSV · JSON

No.CountryValueYear of observation
1MauritiusEast Africa38.92025
2SeychellesEast Africa35.32025
3TunisiaNorth Africa33.92025
4MoroccoNorth Africa30.82025
5Cabo VerdeWest Africa30.02025
6South AfricaSouthern Africa29.72025
7AlgeriaNorth Africa29.62025
8LibyaNorth Africa28.82025
9DjiboutiEast Africa26.02025
10EgyptNorth Africa25.52025
11BotswanaSouthern Africa24.52025
12EswatiniSouthern Africa23.52025
13LesothoSouthern Africa22.92025
14GabonCentral Africa22.62025
15GhanaWest Africa22.42025
16NamibiaSouthern Africa22.42025
17Equatorial GuineaCentral Africa22.02025
18ComorosEast Africa21.72025
19KenyaEast Africa21.12025
20RwandaEast Africa21.02025
21Sierra LeoneWest Africa20.72025
22SenegalWest Africa20.62025
23São Tomé and PríncipeCentral Africa20.52025
24Guinea-BissauWest Africa20.42025
25EritreaEast Africa20.22025
26MadagascarEast Africa20.22025
27EthiopiaEast Africa20.12025
28LiberiaWest Africa19.82025
29South SudanEast Africa19.72025
30GambiaWest Africa19.62025
31Republic of the CongoCentral Africa19.62025
32SudanEast Africa19.62025
33Côte d’IvoireWest Africa19.42025
34TogoWest Africa19.42025
35GuineaWest Africa19.32025
36ZimbabweSouthern Africa19.22025
37NigeriaWest Africa19.22025
38MalawiSouthern Africa19.22025
39CameroonCentral Africa19.12025
40BeninWest Africa19.12025
41ZambiaSouthern Africa19.02025
42Burkina FasoWest Africa18.82025
43TanzaniaEast Africa18.52025
44MauritaniaNorth Africa18.52025
45UgandaEast Africa18.02025
46AngolaSouthern Africa17.82025
47MozambiqueSouthern Africa17.72025
48BurundiCentral Africa17.52025
49DR CongoCentral Africa16.92025
50ChadCentral Africa16.92025
51MaliWest Africa16.82025
52NigerWest Africa16.72025
53SomaliaEast Africa16.62025
54Central African RepublicCentral Africa15.52025

Latest available year for each country; years can differ between countries.

Other rankings

PopulationGDP (current US$)GDP per capita (US$)Inflation, consumer prices (%)Life expectancy at birth (years)Under-5 mortality (per 1,000 live births)Extreme poverty (% of population, international poverty line)Secondary school enrolment (% gross)Urban population (% of total)Internet users (% of population)Access to electricity (% of population)Renewable energy (% of final energy consumption)Foreign direct investment, net inflows (USD)Remittances received (USD)Remittances received (% of GDP)External debt stocks (USD)Total debt service (% of GNI)International tourist arrivalsMobile subscriptions (per 100 people)Fertility rate (births per woman)Population growth (% per year)CO₂ emissions per capita (t)Human Development IndexSafely managed drinking water (% of population)Safely managed sanitation (% of population)Stunting in children under 5 (%)Maternal mortality (per 100,000 live births)Refugees hosted in the countryInternally displaced peopleFatalities, best estimatePopulation in 2050 (projection)Population growth 2025–2050 (%)Renewables in electricity generation (%)Fossil fuels in electricity generation (%)Carbon intensity of electricity (gCO₂/kWh)Remaining recoverable oil (2P, estimate)Remaining recoverable gas (2P, estimate)Oil and gas fieldsPublic debt, % of GDPExternal debt, % of GNIDebt service, % of exportsScientific publications per yearTrade with Europe (PL, DE, ES, FR)Electricity use per person, kWhRisk signals in the red zoneFixed broadband per 100 peopleMobile money account, % of adultsMobile share of web traffic, %Agriculture, % of GDPEmployment in agriculture, %Cereal yield, kg per hectareUndernourishment, % of populationPeople in food crisis (IPC 3+), millionsGovernance, average of six WGI scores (0–100)Control of corruption (WGI, 0–100)Rule of law (WGI, 0–100)B-READY business environment score (0–100)Doctors per 1,000 peopleHealth spending, % of GDPDTP3 vaccination, % of childrenMalaria cases per 1,000 at riskUS travel advisory level (1–4)