Nigeria vs Spain
Nigeria vs Spain: Median age
Median age in 2023: 17.8 years in Nigeria and 44.9 years in Spain, by UN estimates. In 2023 the value was higher in Spain, by 27.2 years, or 2.53 times that in Nigeria.
years · UN
What the numbers say
- Spain has been higher in every year both have figures for since 1950.
- The UN projection (medium variant) puts Nigeria at 34.3 years and Spain at 52.2 years in 2100.
- The world as a whole: 30.4 years in 2023.
Every year
years · UN
| Year | Nigeria | Spain | World |
|---|---|---|---|
| 2023 | 17.8 | 44.9 | 30.4 |
| 2022 | 17.6 | 44.4 | 30.1 |
| 2021 | 17.4 | 43.9 | 29.8 |
| 2020 | 17.2 | 43.5 | 29.6 |
| 2019 | 17.1 | 43.1 | 29.3 |
| 2018 | 16.9 | 42.8 | 29 |
| 2017 | 16.8 | 42.4 | 28.8 |
| 2016 | 16.7 | 42.1 | 28.5 |
| 2015 | 16.7 | 41.6 | 28.3 |
| 2014 | 16.6 | 41.2 | 28.1 |
| 2013 | 16.6 | 40.6 | 27.8 |
| 2012 | 16.6 | 40.1 | 27.6 |
| 2011 | 16.6 | 39.6 | 27.4 |
| 2010 | 16.7 | 39.2 | 27.2 |
| 2009 | 16.7 | 38.8 | 27 |
| 2008 | 16.7 | 38.4 | 26.7 |
| 2007 | 16.8 | 38.2 | 26.5 |
| 2006 | 16.8 | 38 | 26.3 |
| 2005 | 16.8 | 37.8 | 26.1 |
| 2004 | 16.9 | 37.5 | 25.9 |
| 2003 | 16.9 | 37.3 | 25.7 |
| 2002 | 16.9 | 37.1 | 25.5 |
| 2001 | 16.9 | 36.8 | 25.3 |
| 2000 | 16.8 | 36.3 | 25.1 |
| 1999 | 16.8 | 35.9 | 24.9 |
| 1998 | 16.7 | 35.5 | 24.7 |
| 1997 | 16.6 | 35.1 | 24.4 |
| 1996 | 16.5 | 34.7 | 24.2 |
| 1995 | 16.5 | 34.3 | 24 |
| 1994 | 16.4 | 33.9 | 23.8 |
| 1993 | 16.3 | 33.6 | 23.5 |
| 1992 | 16.2 | 33.2 | 23.3 |
| 1991 | 16.2 | 32.9 | 23.1 |
| 1990 | 16.2 | 32.5 | 22.9 |
| 1989 | 16.1 | 32.1 | 22.8 |
| 1988 | 16.1 | 31.8 | 22.6 |
| 1987 | 16.1 | 31.5 | 22.4 |
| 1986 | 16.2 | 31.2 | 22.2 |
| 1985 | 16.2 | 30.9 | 22 |
| 1984 | 16.3 | 30.6 | 21.9 |
| 1983 | 16.4 | 30.4 | 21.8 |
| 1982 | 16.5 | 30.1 | 21.7 |
| 1981 | 16.6 | 29.9 | 21.6 |
| 1980 | 16.7 | 29.8 | 21.5 |
| 1979 | 16.8 | 29.6 | 21.3 |
| 1978 | 16.9 | 29.4 | 21.1 |
| 1977 | 17.1 | 29.2 | 21 |
| 1976 | 17.2 | 29.1 | 20.8 |
| 1975 | 17.3 | 29 | 20.7 |
| 1974 | 17.4 | 29 | 20.5 |
| 1973 | 17.5 | 29 | 20.4 |
| 1972 | 17.7 | 29 | 20.4 |
| 1971 | 17.8 | 29.1 | 20.3 |
| 1970 | 17.9 | 29.1 | 20.3 |
| 1969 | 18 | 29.3 | 20.3 |
| 1968 | 18.1 | 29.4 | 20.4 |
| 1967 | 18.2 | 29.4 | 20.5 |
| 1966 | 18.3 | 29.3 | 20.6 |
| 1965 | 18.3 | 29.2 | 20.8 |
| 1964 | 18.3 | 29.1 | 21 |
| 1963 | 18.3 | 29 | 21.2 |
| 1962 | 18.3 | 28.8 | 21.4 |
| 1961 | 18.3 | 28.6 | 21.4 |
| 1960 | 18.3 | 28.4 | 21.5 |
| 1959 | 18.3 | 28.2 | 21.5 |
| 1958 | 18.3 | 28.1 | 21.5 |
| 1957 | 18.3 | 28 | 21.6 |
| 1956 | 18.2 | 27.9 | 21.7 |
| 1955 | 18.2 | 27.7 | 21.8 |
| 1954 | 18.2 | 27.5 | 21.9 |
| 1953 | 18.2 | 27.2 | 22 |
| 1952 | 18.2 | 27 | 22.1 |
| 1951 | 18.1 | 26.8 | 22.1 |
| 1950 | 18.1 | 26.5 | 22.2 |
UN projection (medium variant) · 2024–2100
| Year | Nigeria | Spain | World |
|---|---|---|---|
| 2024 | 1817.9–18 | 45.445.3–45.5 | 30.6 |
| 2025 | 18.118–18.3 | 45.945.6–46.1 | 30.9 |
| 2026 | 18.418.1–18.6 | 46.345.9–46.7 | 31.1 |
| 2027 | 18.618.2–18.9 | 46.846.1–47.3 | 31.3 |
| 2028 | 18.818.3–19.3 | 47.246.4–47.9 | 31.6 |
| 2029 | 1918.4–19.6 | 47.646.5–48.6 | 31.8 |
| 2030 | 19.318.5–20 | 48.146.6–49.2 | 32 |
| 2031 | 19.518.6–20.4 | 48.446.7–49.9 | 32.2 |
| 2032 | 19.718.7–20.8 | 48.846.6–50.5 | 32.4 |
| 2033 | 2018.8–21.2 | 49.246.5–51.2 | 32.6 |
| 2034 | 20.218.8–21.6 | 49.546.4–51.8 | 32.8 |
| 2035 | 20.518.9–22 | 49.846.2–52.4 | 33 |
| 2036 | 20.718.9–22.4 | 50.146–53.1 | 33.2 |
| 2037 | 2119–22.8 | 50.445.8–53.7 | 33.4 |
| 2038 | 21.219–23.2 | 50.645.4–54.3 | 33.6 |
| 2039 | 21.419–23.6 | 50.845–54.9 | 33.8 |
| 2040 | 21.718.9–24 | 5144.6–55.4 | 34 |
| 2041 | 21.918.9–24.4 | 51.244–56 | 34.2 |
| 2042 | 22.118.9–24.8 | 51.443.3–56.5 | 34.4 |
| 2043 | 22.318.8–25.1 | 51.542.7–57.1 | 34.6 |
| 2044 | 22.518.9–25.5 | 51.642.2–57.6 | 34.8 |
| 2045 | 22.719–25.9 | 51.741.7–58.1 | 35 |
| 2046 | 2319.1–26.3 | 51.841.4–58.6 | 35.2 |
| 2047 | 23.219.1–26.6 | 51.841.3–59.1 | 35.4 |
| 2048 | 23.419.3–27 | 51.841.2–59.6 | 35.6 |
| 2049 | 23.719.4–27.3 | 51.841.1–60 | 35.9 |
| 2050 | 23.919.5–27.7 | 51.841.1–60.5 | 36.1 |
| 2051 | 24.119.7–28.1 | 51.741.2–60.9 | 36.3 |
| 2052 | 24.419.8–28.5 | 51.741.3–61.3 | 36.5 |
| 2053 | 24.619.9–28.8 | 51.741.3–61.8 | 36.7 |
| 2054 | 24.820–29.2 | 51.741.4–62.2 | 36.9 |
| 2055 | 25.120.2–29.5 | 51.741.4–62.6 | 37.1 |
| 2056 | 25.320.3–29.8 | 51.741.4–63.1 | 37.3 |
| 2057 | 25.620.5–30 | 51.841.5–63.5 | 37.5 |
| 2058 | 25.820.6–30.3 | 51.841.5–63.9 | 37.6 |
| 2059 | 26.120.7–30.6 | 51.941.5–64.2 | 37.8 |
| 2060 | 26.320.8–30.9 | 5241.5–64.5 | 37.9 |
| 2061 | 26.620.9–31.1 | 52.241.4–64.8 | 38 |
| 2062 | 26.821–31.4 | 52.341.4–65.1 | 38.1 |
| 2063 | 27.121.1–31.6 | 52.441.3–65.4 | 38.3 |
| 2064 | 27.321.2–31.8 | 52.541.2–65.6 | 38.4 |
| 2065 | 27.521.4–32 | 52.641.1–65.9 | 38.5 |
| 2066 | 27.821.5–32.3 | 52.641–66.1 | 38.6 |
| 2067 | 2821.6–32.5 | 52.740.8–66.3 | 38.7 |
| 2068 | 28.321.7–32.7 | 52.740.7–66.6 | 38.8 |
| 2069 | 28.521.8–32.9 | 52.740.5–66.9 | 38.9 |
| 2070 | 28.821.9–33.1 | 52.740.4–67.1 | 39 |
| 2071 | 2922–33.3 | 52.740.4–67.4 | 39.1 |
| 2072 | 29.222.2–33.5 | 52.640.3–67.8 | 39.2 |
| 2073 | 29.522.3–33.6 | 52.540.2–68.1 | 39.3 |
| 2074 | 29.722.4–33.8 | 52.440.2–68.4 | 39.4 |
| 2075 | 29.922.5–34 | 52.240.2–68.8 | 39.5 |
| 2076 | 30.122.7–34.2 | 52.140.1–69.2 | 39.6 |
| 2077 | 30.322.8–34.4 | 5240.1–69.6 | 39.7 |
| 2078 | 30.622.9–34.6 | 51.840–70 | 39.8 |
| 2079 | 30.823.1–34.7 | 51.740–70.4 | 40 |
| 2080 | 3123.2–34.9 | 51.640–70.8 | 40.1 |
| 2081 | 31.223.4–35.1 | 51.539.9–71.2 | 40.2 |
| 2082 | 31.423.5–35.2 | 51.540–71.6 | 40.3 |
| 2083 | 31.523.7–35.4 | 51.440–72 | 40.4 |
| 2084 | 31.723.9–35.6 | 51.340.1–72.4 | 40.5 |
| 2085 | 31.924.1–35.7 | 51.340.1–72.7 | 40.6 |
| 2086 | 32.124.2–35.9 | 51.340.2–73 | 40.7 |
| 2087 | 32.324.4–36 | 51.340.2–73.3 | 40.9 |
| 2088 | 32.424.6–36.1 | 51.340.2–73.5 | 41 |
| 2089 | 32.624.7–36.2 | 51.440.3–73.8 | 41.1 |
| 2090 | 32.824.9–36.3 | 51.440.3–74 | 41.2 |
| 2091 | 32.925–36.4 | 51.540.4–74.3 | 41.3 |
| 2092 | 33.125.2–36.5 | 51.640.4–74.5 | 41.4 |
| 2093 | 33.325.3–36.6 | 51.740.5–74.7 | 41.5 |
| 2094 | 33.425.5–36.7 | 51.740.6–74.8 | 41.6 |
| 2095 | 33.625.6–36.8 | 51.840.7–74.8 | 41.7 |
| 2096 | 33.725.7–36.8 | 51.940.7–74.7 | 41.8 |
| 2097 | 33.925.8–36.9 | 5240.8–74.4 | 41.9 |
| 2098 | 3426–37 | 52.140.8–74.2 | 42 |
| 2099 | 34.226.1–37 | 52.240.8–73.9 | 42 |
| 2100 | 34.326.2–37.1 | 52.240.9–73.5 | 42.1 |
Each country on its own
Good to know
- Half the people are older than this age and half are younger.
- Source: UN DESA, World Population Prospects 2024.
- The dashed line is the UN projection (medium variant), a scenario rather than a forecast; the band is its 95% prediction interval.
- Ranks count the 229 countries with a value in 2023, highest first.
- The faint line is the world as a whole, as the same source counts it.
How the layers work, where their data comes from and what they can’t tell you: Countries through time
Nigeria vs Spain
Health
- Life expectancyNigeria: 54.5 years in 2023Spain: 83.7 years in 2023
- Child mortalityNigeria: 11.6 per 100 live births in 2024Spain: 0.3 per 100 live births in 2024
- Infant mortalityNigeria: 69.5 per 1,000 live births in 2023Spain: 2.4 per 1,000 live births in 2023
- Safe drinking waterNigeria: 29% in 2022Spain: 99.6% in 2022
- DepressionNigeria: 3.92% in 2017Spain: 3.54% in 2017
- Suicide rateNigeria: 7.5 per 100,000 people in 2017Spain: 5.5 per 100,000 people in 2017
People
- PopulationNigeria: 228 million people in 2023Spain: 47.9 million people in 2023
- Population growthNigeria: 2.1% a year in 2023Spain: 0.02% a year in 2023
- Fertility rateNigeria: 4.48 births per woman in 2023Spain: 1.21 births per woman in 2023
- Urban populationNigeria: 63.8% in 2025Spain: 80.5% in 2025
- People aged 65 and overNigeria: 3% in 2023Spain: 20.7% in 2023
- Net migration rateNigeria: -0.3 per 1,000 people in 2023Spain: 2.5 per 1,000 people in 2023
Economy
Education
Politics
Conflict
Military
- Military spendingNigeria: 0.91% of GDP in 2025Spain: 2.13% of GDP in 2025
- Military spending in US dollarsNigeria: $1.76B in 2025Spain: $37.7B in 2025
- Military spending per personNigeria: $9 in 2025Spain: $839 in 2025
- Military share of state spendingNigeria: 5.9% of government spending in 2025Spain: 4.7% of government spending in 2025
- Armed forces personnelNigeria: 223,000 people in 2020Spain: 199,000 people in 2020
- National powerNigeria: 1.16% of world capability in 2022Spain: 0.66% of world capability in 2022
- Armed forces, share of workersNigeria: 0.23% of the labour force in 2020Spain: 0.87% of the labour force in 2020
- Arms importsNigeria: 21 million TIV in 2025Spain: 237 million TIV in 2025
- Arms exportsNigeria: 4 million TIV in 2022Spain: 341 million TIV in 2025