Demographics · North Africa
Libya Median Age
28 yearsas of 2026+1.1% vs 2025
Median age of the population, in years. Source: UN World Population Prospects. Updated March 7, 2026.
Trend
History
| Period | Median Age |
|---|---|
| 2026 | 28 years |
| 2025 | 27.7 years |
| 2024 | 27.5 years |
| 2023 | 27.2 years |
| 2022 | 26.9 years |
| 2021 | 26.7 years |
| 2020 | 26.5 years |
| 2019 | 26.2 years |
| 2018 | 26 years |
| 2017 | 25.8 years |
| 2016 | 25.6 years |
| 2015 | 25.4 years |
Get this via API
The series above is served by the /v1/data endpoint. With a free key you get JSON for every country and indicator on this site.
curl "https://api.africa-api.com/v1/data?country_code=LY&metric_key=median_age_years" \
-H "Authorization: Bearer $AFRICA_API_KEY"Median Age across Africa
Rank all 54 ->| Country | Median Age |
|---|---|
| Nigeria | 18.3 years |
| Kenya | 20.3 years |
| South Africa | 28.9 years |
| Egypt | 24.7 years |
| Ghana | 21.6 years |
| Ethiopia | 19.3 years |
Frequently asked questions
What is Libya's median age?
Libya's median age is 28 years as of 2026, according to UN World Population Prospects.
What is the source for this figure?
The figure comes from UN World Population Prospects and is republished by the Africa API with the retrieval date shown on this page.
How do I get Libya Median Age data via API?
Call GET /v1/data?country_code=LY&metric_key=median_age_years with a free Africa API key to receive the full time series as JSON.
More Libya demographics data