Iraq vs Morocco
Iraq vs Morocco: Median age
Median age in 2023: 20.4 years in Iraq and 29.2 years in Morocco, by UN estimates. In 2023 the value was higher in Morocco, by 8.8 years, or 1.43 times that in Iraq.
years · UN
What the numbers say
- Morocco has been higher since 1976, when it overtook Iraq.
- In 2023, Iraq ranked 185 and Morocco ranked 132 of 229 countries, counting from the highest.
- The UN projection (medium variant) puts Iraq at 39.1 years and Morocco at 48.1 years in 2100.
- The world as a whole: 30.4 years in 2023.
Every year
years · UN
| Year | Iraq | Morocco | World |
|---|---|---|---|
| 2023 | 20.4 | 29.2 | 30.4 |
| 2022 | 20.1 | 28.9 | 30.1 |
| 2021 | 19.8 | 28.6 | 29.8 |
| 2020 | 19.6 | 28.2 | 29.6 |
| 2019 | 19.4 | 27.9 | 29.3 |
| 2018 | 19.1 | 27.5 | 29 |
| 2017 | 18.9 | 27.1 | 28.8 |
| 2016 | 18.7 | 26.8 | 28.5 |
| 2015 | 18.5 | 26.4 | 28.3 |
| 2014 | 18.4 | 26.1 | 28.1 |
| 2013 | 18.2 | 25.7 | 27.8 |
| 2012 | 18.1 | 25.4 | 27.6 |
| 2011 | 18 | 25 | 27.4 |
| 2010 | 17.9 | 24.7 | 27.2 |
| 2009 | 17.8 | 24.4 | 27 |
| 2008 | 17.7 | 24 | 26.7 |
| 2007 | 17.6 | 23.7 | 26.5 |
| 2006 | 17.5 | 23.3 | 26.3 |
| 2005 | 17.4 | 23 | 26.1 |
| 2004 | 17.3 | 22.6 | 25.9 |
| 2003 | 17.2 | 22.3 | 25.7 |
| 2002 | 17.1 | 22 | 25.5 |
| 2001 | 17 | 21.7 | 25.3 |
| 2000 | 16.9 | 21.4 | 25.1 |
| 1999 | 16.8 | 21.1 | 24.9 |
| 1998 | 16.7 | 20.8 | 24.7 |
| 1997 | 16.6 | 20.5 | 24.4 |
| 1996 | 16.5 | 20.2 | 24.2 |
| 1995 | 16.4 | 19.9 | 24 |
| 1994 | 16.4 | 19.6 | 23.8 |
| 1993 | 16.3 | 19.3 | 23.5 |
| 1992 | 16.2 | 19 | 23.3 |
| 1991 | 16.1 | 18.7 | 23.1 |
| 1990 | 16 | 18.4 | 22.9 |
| 1989 | 15.9 | 18.1 | 22.8 |
| 1988 | 15.8 | 17.9 | 22.6 |
| 1987 | 15.8 | 17.6 | 22.4 |
| 1986 | 15.7 | 17.4 | 22.2 |
| 1985 | 15.6 | 17.2 | 22 |
| 1984 | 15.5 | 17 | 21.9 |
| 1983 | 15.5 | 16.9 | 21.8 |
| 1982 | 15.4 | 16.7 | 21.7 |
| 1981 | 15.4 | 16.6 | 21.6 |
| 1980 | 15.4 | 16.4 | 21.5 |
| 1979 | 15.3 | 16.3 | 21.3 |
| 1978 | 15.2 | 16.2 | 21.1 |
| 1977 | 15.3 | 16 | 21 |
| 1976 | 15.6 | 15.9 | 20.8 |
| 1975 | 15.9 | 15.8 | 20.7 |
| 1974 | 16.4 | 15.7 | 20.5 |
| 1973 | 16.6 | 15.7 | 20.4 |
| 1972 | 16.8 | 15.6 | 20.4 |
| 1971 | 16.9 | 15.5 | 20.3 |
| 1970 | 17 | 15.5 | 20.3 |
| 1969 | 17.1 | 15.5 | 20.3 |
| 1968 | 17.4 | 15.5 | 20.4 |
| 1967 | 17.6 | 15.5 | 20.5 |
| 1966 | 17.9 | 15.6 | 20.6 |
| 1965 | 18.2 | 15.6 | 20.8 |
| 1964 | 18.5 | 15.8 | 21 |
| 1963 | 18.8 | 16 | 21.2 |
| 1962 | 19.1 | 16.3 | 21.4 |
| 1961 | 19.3 | 16.6 | 21.4 |
| 1960 | 19.4 | 16.9 | 21.5 |
| 1959 | 19.5 | 17.2 | 21.5 |
| 1958 | 19.4 | 17.5 | 21.5 |
| 1957 | 19.4 | 17.7 | 21.6 |
| 1956 | 19.4 | 17.9 | 21.7 |
| 1955 | 19.5 | 18 | 21.8 |
| 1954 | 19.6 | 18.2 | 21.9 |
| 1953 | 19.9 | 18.2 | 22 |
| 1952 | 20.1 | 18.3 | 22.1 |
| 1951 | 20.3 | 18.3 | 22.1 |
| 1950 | 20.5 | 18.3 | 22.2 |
UN projection (medium variant) · 2024–2100
| Year | Iraq | Morocco | World |
|---|---|---|---|
| 2024 | 20.620.6–20.6 | 29.529.5–29.6 | 30.6 |
| 2025 | 20.920.8–20.9 | 29.829.7–30 | 30.9 |
| 2026 | 21.121.1–21.1 | 30.129.8–30.4 | 31.1 |
| 2027 | 21.421.3–21.4 | 30.530–30.9 | 31.3 |
| 2028 | 21.621.5–21.7 | 30.830.2–31.3 | 31.6 |
| 2029 | 21.921.7–22.1 | 31.130.4–31.7 | 31.8 |
| 2030 | 22.121.9–22.4 | 31.430.5–32.2 | 32 |
| 2031 | 22.422–22.8 | 31.730.7–32.6 | 32.2 |
| 2032 | 22.722.2–23.2 | 3230.9–33 | 32.4 |
| 2033 | 22.922.4–23.7 | 32.331–33.5 | 32.6 |
| 2034 | 23.222.6–24.1 | 32.631.2–33.9 | 32.8 |
| 2035 | 23.522.8–24.5 | 32.831.3–34.3 | 33 |
| 2036 | 23.923–25 | 33.131.5–34.7 | 33.2 |
| 2037 | 24.223.2–25.4 | 33.431.6–35.2 | 33.4 |
| 2038 | 24.523.4–25.9 | 33.731.8–35.6 | 33.6 |
| 2039 | 24.923.6–26.5 | 3432–36 | 33.8 |
| 2040 | 25.223.8–27 | 34.232.2–36.4 | 34 |
| 2041 | 25.523.9–27.5 | 34.532.4–36.8 | 34.2 |
| 2042 | 25.824–28 | 34.832.6–37.2 | 34.4 |
| 2043 | 26.124.1–28.5 | 35.132.8–37.6 | 34.6 |
| 2044 | 26.424.2–29 | 35.433.1–38 | 34.8 |
| 2045 | 26.624.3–29.5 | 35.833.3–38.3 | 35 |
| 2046 | 26.824.4–29.9 | 36.133.5–38.7 | 35.2 |
| 2047 | 27.124.5–30.4 | 36.433.8–39.1 | 35.4 |
| 2048 | 27.324.6–30.8 | 36.834–39.5 | 35.6 |
| 2049 | 27.624.7–31.2 | 37.134.2–39.9 | 35.9 |
| 2050 | 27.824.8–31.6 | 37.434.4–40.3 | 36.1 |
| 2051 | 2825–32 | 37.734.6–40.8 | 36.3 |
| 2052 | 28.325.2–32.4 | 38.134.8–41.2 | 36.5 |
| 2053 | 28.525.3–32.8 | 38.435–41.6 | 36.7 |
| 2054 | 28.825.5–33.1 | 38.735.2–42 | 36.9 |
| 2055 | 2925.6–33.5 | 3935.4–42.4 | 37.1 |
| 2056 | 29.225.7–33.9 | 39.335.6–42.8 | 37.3 |
| 2057 | 29.525.9–34.3 | 39.635.8–43.2 | 37.5 |
| 2058 | 29.726.1–34.6 | 39.936–43.6 | 37.6 |
| 2059 | 3026.2–35 | 40.236.1–44 | 37.8 |
| 2060 | 30.226.4–35.3 | 40.536.3–44.4 | 37.9 |
| 2061 | 30.526.5–35.6 | 40.736.4–44.7 | 38 |
| 2062 | 30.726.6–35.9 | 4136.6–45.1 | 38.1 |
| 2063 | 3126.8–36.2 | 41.336.8–45.5 | 38.3 |
| 2064 | 31.226.9–36.5 | 41.536.9–45.9 | 38.4 |
| 2065 | 31.427.1–36.9 | 41.837.1–46.3 | 38.5 |
| 2066 | 31.727.2–37.1 | 4237.3–46.6 | 38.6 |
| 2067 | 31.927.3–37.4 | 42.337.4–47 | 38.7 |
| 2068 | 32.227.5–37.8 | 42.537.6–47.4 | 38.8 |
| 2069 | 32.527.6–38 | 42.737.8–47.8 | 38.9 |
| 2070 | 32.727.7–38.3 | 42.938–48.2 | 39 |
| 2071 | 3327.8–38.6 | 43.138.1–48.5 | 39.1 |
| 2072 | 33.227.9–38.8 | 43.338.3–48.9 | 39.2 |
| 2073 | 33.528–39.1 | 43.538.5–49.2 | 39.3 |
| 2074 | 33.728.1–39.4 | 43.738.6–49.6 | 39.4 |
| 2075 | 3428.2–39.7 | 43.938.8–49.8 | 39.5 |
| 2076 | 34.228.4–40 | 4438.9–50.1 | 39.6 |
| 2077 | 34.528.5–40.3 | 44.239.1–50.3 | 39.7 |
| 2078 | 34.728.6–40.5 | 44.439.3–50.5 | 39.8 |
| 2079 | 34.928.7–40.8 | 44.639.4–50.7 | 40 |
| 2080 | 35.228.8–41.1 | 44.739.6–50.9 | 40.1 |
| 2081 | 35.429–41.3 | 44.939.8–51.1 | 40.2 |
| 2082 | 35.629.1–41.5 | 45.139.9–51.3 | 40.3 |
| 2083 | 35.829.2–41.8 | 45.340.1–51.4 | 40.4 |
| 2084 | 3629.3–42 | 45.540.2–51.6 | 40.5 |
| 2085 | 36.329.4–42.2 | 45.640.4–51.7 | 40.6 |
| 2086 | 36.529.5–42.3 | 45.840.5–51.9 | 40.7 |
| 2087 | 36.729.7–42.4 | 4640.7–52 | 40.9 |
| 2088 | 36.929.8–42.6 | 46.240.8–52.1 | 41 |
| 2089 | 37.129.9–42.8 | 46.440.9–52.2 | 41.1 |
| 2090 | 37.330.1–42.9 | 46.541.1–52.3 | 41.2 |
| 2091 | 37.530.2–43.1 | 46.741.2–52.4 | 41.3 |
| 2092 | 37.630.3–43.2 | 46.941.3–52.6 | 41.4 |
| 2093 | 37.830.4–43.3 | 47.141.4–52.7 | 41.5 |
| 2094 | 3830.6–43.5 | 47.241.5–52.8 | 41.6 |
| 2095 | 38.230.7–43.6 | 47.441.7–52.9 | 41.7 |
| 2096 | 38.430.8–43.7 | 47.641.8–53 | 41.8 |
| 2097 | 38.630.9–43.8 | 47.741.9–53.1 | 41.9 |
| 2098 | 38.731.1–43.8 | 47.942.1–53.2 | 42 |
| 2099 | 38.931.2–43.9 | 4842.2–53.3 | 42 |
| 2100 | 39.131.4–44 | 48.142.3–53.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
Iraq vs Morocco
Health
- Life expectancyIraq: 72.3 years in 2023Morocco: 75.3 years in 2023
- Child mortalityIraq: 2.2 per 100 live births in 2024Morocco: 1.6 per 100 live births in 2024
- Infant mortalityIraq: 19 per 1,000 live births in 2023Morocco: 14.3 per 1,000 live births in 2023
- Safe drinking waterIraq: 59.7% in 2022Morocco: 74.8% in 2022
- DepressionIraq: 3.89% in 2017Morocco: 5.41% in 2017
- Suicide rateIraq: 4.1 per 100,000 people in 2017Morocco: 7.1 per 100,000 people in 2017
People
- PopulationIraq: 45.1 million people in 2023Morocco: 37.7 million people in 2023
- Population growthIraq: 2.15% a year in 2023Morocco: 1% a year in 2023
- Fertility rateIraq: 3.25 births per woman in 2023Morocco: 2.23 births per woman in 2023
- Urban populationIraq: 69.9% in 2025Morocco: 63.1% in 2025
- People aged 65 and overIraq: 3.4% in 2023Morocco: 7.8% in 2023
- Net migration rateIraq: -0.1 per 1,000 people in 2023Morocco: -1.1 per 1,000 people in 2023
Economy
Education
Politics
Conflict
Military
- Military spendingIraq: 2.45% of GDP in 2025Morocco: 3.54% of GDP in 2025
- Military spending in US dollarsIraq: $6.4B in 2025Morocco: $5.88B in 2025
- Military spending per personIraq: $139 in 2025Morocco: $166 in 2025
- Military share of state spendingIraq: 5.5% of government spending in 2025Morocco: 10.3% of government spending in 2025
- Armed forces personnelIraq: 459,000 people in 2020Morocco: 246,000 people in 2020
- National powerIraq: 0.54% of world capability in 2022Morocco: 0.4% of world capability in 2022
- Armed forces, share of workersIraq: 4.4% of the labour force in 2020Morocco: 2.07% of the labour force in 2020
- Arms importsIraq: 55 million TIV in 2025Morocco: 392 million TIV in 2025
- Arms exportsIraq: 20 million TIV in 1989Morocco: 26 million TIV in 2024