Demographics · Africa ranking
Median Age by African country
Median age of the population, in years. Latest reported value for 54 of 54 countries, ranked. Every row links to the full national series with history and sources.
Full ranking
| # | Country | Median Age | Period |
|---|---|---|---|
| 1 | Mauritius | 38.3 years | 2026 |
| 2 | Seychelles | 34.6 years | 2026 |
| 3 | Tunisia | 33.4 years | 2026 |
| 4 | Morocco | 30.1 years | 2026 |
| 5 | Cabo Verde | 29.5 years | 2026 |
| 6 | South Africa | 28.9 years | 2026 |
| 7 | Algeria | 28.8 years | 2026 |
| 8 | Libya | 28 years | 2026 |
| 9 | Djibouti | 25.2 years | 2026 |
| 10 | Egypt | 24.7 years | 2026 |
| 11 | Botswana | 23.7 years | 2026 |
| 12 | Eswatini | 22.7 years | 2026 |
| 13 | Lesotho | 22.1 years | 2026 |
| 14 | Ghana | 21.6 years | 2026 |
| 15 | Gabon | 21.6 years | 2026 |
| 16 | Namibia | 21.5 years | 2026 |
| 17 | Equatorial Guinea | 20.9 years | 2026 |
| 18 | Comoros | 20.7 years | 2026 |
| 19 | Kenya | 20.3 years | 2026 |
| 20 | Rwanda | 20.2 years | 2026 |
| 21 | Sierra Leone | 19.9 years | 2026 |
| 22 | Senegal | 19.8 years | 2026 |
| 23 | Sao Tome and Principe | 19.7 years | 2026 |
| 24 | Guinea-Bissau | 19.6 years | 2026 |
| 25 | Eritrea | 19.5 years | 2026 |
| 26 | Madagascar | 19.4 years | 2026 |
| 27 | Ethiopia | 19.3 years | 2026 |
| 28 | Togo | 19.2 years | 2026 |
| 29 | South Sudan | 19 years | 2026 |
| 30 | Liberia | 19 years | 2026 |
| 31 | Gambia | 18.8 years | 2026 |
| 32 | Sudan | 18.8 years | 2026 |
| 33 | Republic of the Congo | 18.7 years | 2026 |
| 34 | Cote d'Ivoire | 18.5 years | 2026 |
| 35 | Guinea | 18.5 years | 2026 |
| 36 | Malawi | 18.4 years | 2026 |
| 37 | Nigeria | 18.3 years | 2026 |
| 38 | Zimbabwe | 18.3 years | 2026 |
| 39 | Cameroon | 18.2 years | 2026 |
| 40 | Benin | 18.2 years | 2026 |
| 41 | Zambia | 18.2 years | 2026 |
| 42 | Burkina Faso | 18 years | 2026 |
| 43 | Tanzania | 17.6 years | 2026 |
| 44 | Mauritania | 17.5 years | 2026 |
| 45 | Uganda | 17.1 years | 2026 |
| 46 | Angola | 16.7 years | 2026 |
| 47 | Burundi | 16.6 years | 2026 |
| 48 | Mozambique | 16.6 years | 2026 |
| 49 | Mali | 15.9 years | 2026 |
| 50 | Democratic Republic of the Congo | 15.9 years | 2026 |
| 51 | Chad | 15.7 years | 2026 |
| 52 | Niger | 15.7 years | 2026 |
| 53 | Somalia | 15.6 years | 2026 |
| 54 | Central African Republic | 14.6 years | 2026 |
Get this ranking via API
One call to /v1/data returns the latest Median Age figure for every country you pass — JSON, with source metadata on each observation.
curl "https://api.africa-api.com/v1/data?metric_key=median_age_years&latest=true&country_codes=NG,KE,ZA,EG" \
-H "Authorization: Bearer $AFRICA_API_KEY"Get a free API keyFrequently asked questions
Which African country has the highest median age?
Mauritius has the highest median age in Africa at 38.3 years (2026), followed by Seychelles and Tunisia.
How many African countries report Median Age data?
54 of 54 African countries have a recent Median Age 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=median_age_years&latest=true with the country codes you need and a free Africa API key — the response returns the latest value per country as JSON.