Spain vs Tanzania
Spain vs Tanzania: Median age
Median age in 2023: 44.9 years in Spain and 17.2 years in Tanzania, by UN estimates. In 2023 the value was higher in Spain, by 27.7 years, or 2.6 times that in Tanzania.
years · UN
What the numbers say
- Spain has been higher in every year both have figures for since 1950.
- In 2023, Spain ranked 16 and Tanzania ranked 217 of 229 countries, counting from the highest.
- The UN projection (medium variant) puts Spain at 52.2 years and Tanzania at 32.3 years in 2100.
- The world as a whole: 30.4 years in 2023.
Every year
years · UN
| Year | Spain | Tanzania | World |
|---|---|---|---|
| 2023 | 44.9 | 17.2 | 30.4 |
| 2022 | 44.4 | 17.1 | 30.1 |
| 2021 | 43.9 | 17 | 29.8 |
| 2020 | 43.5 | 16.9 | 29.6 |
| 2019 | 43.1 | 16.8 | 29.3 |
| 2018 | 42.8 | 16.8 | 29 |
| 2017 | 42.4 | 16.7 | 28.8 |
| 2016 | 42.1 | 16.6 | 28.5 |
| 2015 | 41.6 | 16.4 | 28.3 |
| 2014 | 41.2 | 16.3 | 28.1 |
| 2013 | 40.6 | 16.2 | 27.8 |
| 2012 | 40.1 | 16.2 | 27.6 |
| 2011 | 39.6 | 16.1 | 27.4 |
| 2010 | 39.2 | 16.1 | 27.2 |
| 2009 | 38.8 | 16.1 | 27 |
| 2008 | 38.4 | 16.2 | 26.7 |
| 2007 | 38.2 | 16.2 | 26.5 |
| 2006 | 38 | 16.3 | 26.3 |
| 2005 | 37.8 | 16.3 | 26.1 |
| 2004 | 37.5 | 16.3 | 25.9 |
| 2003 | 37.3 | 16.4 | 25.7 |
| 2002 | 37.1 | 16.4 | 25.5 |
| 2001 | 36.8 | 16.4 | 25.3 |
| 2000 | 36.3 | 16.4 | 25.1 |
| 1999 | 35.9 | 16.3 | 24.9 |
| 1998 | 35.5 | 16.3 | 24.7 |
| 1997 | 35.1 | 16.2 | 24.4 |
| 1996 | 34.7 | 16.3 | 24.2 |
| 1995 | 34.3 | 16.3 | 24 |
| 1994 | 33.9 | 16.2 | 23.8 |
| 1993 | 33.6 | 15.9 | 23.5 |
| 1992 | 33.2 | 15.7 | 23.3 |
| 1991 | 32.9 | 15.6 | 23.1 |
| 1990 | 32.5 | 15.5 | 22.9 |
| 1989 | 32.1 | 15.5 | 22.8 |
| 1988 | 31.8 | 15.4 | 22.6 |
| 1987 | 31.5 | 15.3 | 22.4 |
| 1986 | 31.2 | 15.2 | 22.2 |
| 1985 | 30.9 | 15.2 | 22 |
| 1984 | 30.6 | 15.1 | 21.9 |
| 1983 | 30.4 | 15.1 | 21.8 |
| 1982 | 30.1 | 15.2 | 21.7 |
| 1981 | 29.9 | 15.3 | 21.6 |
| 1980 | 29.8 | 15.4 | 21.5 |
| 1979 | 29.6 | 15.5 | 21.3 |
| 1978 | 29.4 | 15.6 | 21.1 |
| 1977 | 29.2 | 15.7 | 21 |
| 1976 | 29.1 | 15.8 | 20.8 |
| 1975 | 29 | 15.8 | 20.7 |
| 1974 | 29 | 15.8 | 20.5 |
| 1973 | 29 | 15.9 | 20.4 |
| 1972 | 29 | 15.9 | 20.4 |
| 1971 | 29.1 | 15.9 | 20.3 |
| 1970 | 29.1 | 16 | 20.3 |
| 1969 | 29.3 | 16 | 20.3 |
| 1968 | 29.4 | 16.1 | 20.4 |
| 1967 | 29.4 | 16.1 | 20.5 |
| 1966 | 29.3 | 16.2 | 20.6 |
| 1965 | 29.2 | 16.3 | 20.8 |
| 1964 | 29.1 | 16.3 | 21 |
| 1963 | 29 | 16.3 | 21.2 |
| 1962 | 28.8 | 16.3 | 21.4 |
| 1961 | 28.6 | 16.3 | 21.4 |
| 1960 | 28.4 | 16.3 | 21.5 |
| 1959 | 28.2 | 16.3 | 21.5 |
| 1958 | 28.1 | 16.3 | 21.5 |
| 1957 | 28 | 16.3 | 21.6 |
| 1956 | 27.9 | 16.3 | 21.7 |
| 1955 | 27.7 | 16.3 | 21.8 |
| 1954 | 27.5 | 16.2 | 21.9 |
| 1953 | 27.2 | 16.2 | 22 |
| 1952 | 27 | 16.1 | 22.1 |
| 1951 | 26.8 | 16.1 | 22.1 |
| 1950 | 26.5 | 16 | 22.2 |
UN projection (medium variant) · 2024–2100
| Year | Spain | Tanzania | World |
|---|---|---|---|
| 2024 | 45.445.3–45.5 | 17.417.4–17.4 | 30.6 |
| 2025 | 45.945.6–46.1 | 17.517.5–17.5 | 30.9 |
| 2026 | 46.345.9–46.7 | 17.617.6–17.7 | 31.1 |
| 2027 | 46.846.1–47.3 | 17.717.7–17.9 | 31.3 |
| 2028 | 47.246.4–47.9 | 17.917.7–18.1 | 31.6 |
| 2029 | 47.646.5–48.6 | 1817.8–18.3 | 31.8 |
| 2030 | 48.146.6–49.2 | 18.117.8–18.5 | 32 |
| 2031 | 48.446.7–49.9 | 18.317.8–18.8 | 32.2 |
| 2032 | 48.846.6–50.5 | 18.417.9–19.1 | 32.4 |
| 2033 | 49.246.5–51.2 | 18.517.9–19.4 | 32.6 |
| 2034 | 49.546.4–51.8 | 18.718–19.7 | 32.8 |
| 2035 | 49.846.2–52.4 | 18.918–20.1 | 33 |
| 2036 | 50.146–53.1 | 1918.1–20.4 | 33.2 |
| 2037 | 50.445.8–53.7 | 19.218.2–20.8 | 33.4 |
| 2038 | 50.645.4–54.3 | 19.418.3–21.1 | 33.6 |
| 2039 | 50.845–54.9 | 19.618.3–21.5 | 33.8 |
| 2040 | 5144.6–55.4 | 19.818.3–21.9 | 34 |
| 2041 | 51.244–56 | 2018.4–22.3 | 34.2 |
| 2042 | 51.443.3–56.5 | 20.218.4–22.7 | 34.4 |
| 2043 | 51.542.7–57.1 | 20.418.5–23.1 | 34.6 |
| 2044 | 51.642.2–57.6 | 20.618.6–23.5 | 34.8 |
| 2045 | 51.741.7–58.1 | 20.818.7–23.9 | 35 |
| 2046 | 51.841.4–58.6 | 2118.8–24.4 | 35.2 |
| 2047 | 51.841.3–59.1 | 21.218.9–24.8 | 35.4 |
| 2048 | 51.841.2–59.6 | 21.419–25.2 | 35.6 |
| 2049 | 51.841.1–60 | 21.619.2–25.6 | 35.9 |
| 2050 | 51.841.1–60.5 | 21.819.3–26.1 | 36.1 |
| 2051 | 51.741.2–60.9 | 2219.4–26.5 | 36.3 |
| 2052 | 51.741.3–61.3 | 22.219.5–26.9 | 36.5 |
| 2053 | 51.741.3–61.8 | 22.419.7–27.3 | 36.7 |
| 2054 | 51.741.4–62.2 | 22.619.8–27.7 | 36.9 |
| 2055 | 51.741.4–62.6 | 22.819.9–28.1 | 37.1 |
| 2056 | 51.741.4–63.1 | 2320–28.4 | 37.3 |
| 2057 | 51.841.5–63.5 | 23.220.1–28.8 | 37.5 |
| 2058 | 51.841.5–63.9 | 23.420.2–29.2 | 37.6 |
| 2059 | 51.941.5–64.2 | 23.620.3–29.5 | 37.8 |
| 2060 | 5241.5–64.5 | 23.820.4–29.9 | 37.9 |
| 2061 | 52.241.4–64.8 | 2420.5–30.2 | 38 |
| 2062 | 52.341.4–65.1 | 24.220.6–30.5 | 38.1 |
| 2063 | 52.441.3–65.4 | 24.420.7–30.9 | 38.3 |
| 2064 | 52.541.2–65.6 | 24.620.8–31.2 | 38.4 |
| 2065 | 52.641.1–65.9 | 24.820.8–31.6 | 38.5 |
| 2066 | 52.641–66.1 | 25.120.9–31.9 | 38.6 |
| 2067 | 52.740.8–66.3 | 25.321–32.3 | 38.7 |
| 2068 | 52.740.7–66.6 | 25.521.1–32.7 | 38.8 |
| 2069 | 52.740.5–66.9 | 25.721.1–33 | 38.9 |
| 2070 | 52.740.4–67.1 | 25.921.2–33.3 | 39 |
| 2071 | 52.740.4–67.4 | 26.121.3–33.7 | 39.1 |
| 2072 | 52.640.3–67.8 | 26.321.4–34 | 39.2 |
| 2073 | 52.540.2–68.1 | 26.521.5–34.3 | 39.3 |
| 2074 | 52.440.2–68.4 | 26.721.6–34.7 | 39.4 |
| 2075 | 52.240.2–68.8 | 2721.7–35 | 39.5 |
| 2076 | 52.140.1–69.2 | 27.221.8–35.3 | 39.6 |
| 2077 | 5240.1–69.6 | 27.421.9–35.6 | 39.7 |
| 2078 | 51.840–70 | 27.622–35.9 | 39.8 |
| 2079 | 51.740–70.4 | 27.822.1–36.2 | 40 |
| 2080 | 51.640–70.8 | 2822.2–36.4 | 40.1 |
| 2081 | 51.539.9–71.2 | 28.322.3–36.7 | 40.2 |
| 2082 | 51.540–71.6 | 28.522.3–37 | 40.3 |
| 2083 | 51.440–72 | 28.722.4–37.2 | 40.4 |
| 2084 | 51.340.1–72.4 | 28.922.5–37.5 | 40.5 |
| 2085 | 51.340.1–72.7 | 29.122.6–37.8 | 40.6 |
| 2086 | 51.340.2–73 | 29.322.7–38 | 40.7 |
| 2087 | 51.340.2–73.3 | 29.522.8–38.2 | 40.9 |
| 2088 | 51.340.2–73.5 | 29.722.9–38.5 | 41 |
| 2089 | 51.440.3–73.8 | 29.923–38.7 | 41.1 |
| 2090 | 51.440.3–74 | 30.223.1–38.9 | 41.2 |
| 2091 | 51.540.4–74.3 | 30.423.2–39.1 | 41.3 |
| 2092 | 51.640.4–74.5 | 30.623.3–39.2 | 41.4 |
| 2093 | 51.740.5–74.7 | 30.823.5–39.4 | 41.5 |
| 2094 | 51.740.6–74.8 | 3123.6–39.6 | 41.6 |
| 2095 | 51.840.7–74.8 | 31.223.6–39.8 | 41.7 |
| 2096 | 51.940.7–74.7 | 31.423.7–39.9 | 41.8 |
| 2097 | 5240.8–74.4 | 31.623.8–40 | 41.9 |
| 2098 | 52.140.8–74.2 | 31.923.9–40.2 | 42 |
| 2099 | 52.240.8–73.9 | 32.124–40.3 | 42 |
| 2100 | 52.240.9–73.5 | 32.324.1–40.4 | 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
Spain vs Tanzania
Health
- Life expectancySpain: 83.7 years in 2023Tanzania: 67 years in 2023
- Child mortalitySpain: 0.3 per 100 live births in 2024Tanzania: 3.7 per 100 live births in 2024
- Infant mortalitySpain: 2.4 per 1,000 live births in 2023Tanzania: 28.9 per 1,000 live births in 2023
- Safe drinking waterSpain: 99.6% in 2022Tanzania: 11.3% in 2022
- DepressionSpain: 3.54% in 2017Tanzania: 3.69% in 2017
- Suicide rateSpain: 5.5 per 100,000 people in 2017Tanzania: 8.8 per 100,000 people in 2017
People
- PopulationSpain: 47.9 million people in 2023Tanzania: 66.6 million people in 2023
- Population growthSpain: 0.02% a year in 2023Tanzania: 2.88% a year in 2023
- Fertility rateSpain: 1.21 births per woman in 2023Tanzania: 4.61 births per woman in 2023
- Urban populationSpain: 80.5% in 2025Tanzania: 36.9% in 2025
- People aged 65 and overSpain: 20.7% in 2023Tanzania: 3% in 2023
- Net migration rateSpain: 2.5 per 1,000 people in 2023Tanzania: -0.6 per 1,000 people in 2023
Economy
Education
Politics
Conflict
Military
- Military spendingSpain: 2.13% of GDP in 2025Tanzania: 1.16% of GDP in 2025
- Military spending in US dollarsSpain: $37.7B in 2025Tanzania: $983M in 2025
- Military spending per personSpain: $839 in 2025Tanzania: $15 in 2025
- Military share of state spendingSpain: 4.7% of government spending in 2025Tanzania: 5.8% of government spending in 2025
- Armed forces personnelSpain: 199,000 people in 2020Tanzania: 28,000 people in 2020
- National powerSpain: 0.66% of world capability in 2022Tanzania: 0.25% of world capability in 2022
- Armed forces, share of workersSpain: 0.87% of the labour force in 2020Tanzania: 0.1% of the labour force in 2020
- Arms importsSpain: 237 million TIV in 2025Tanzania: 4 million TIV in 2025