Morocco vs Pakistan
Morocco vs Pakistan: Median age
Median age in 2023: 29.2 years in Morocco and 20.3 years in Pakistan, by UN estimates. In 2023 the value was higher in Morocco, by 8.9 years, or 1.44 times that in Pakistan.
years · UN
What the numbers say
- Morocco has been higher since 1985, when it overtook Pakistan.
- In 2023, Morocco ranked 132 and Pakistan ranked 187 of 229 countries, counting from the highest.
- The UN projection (medium variant) puts Morocco at 48.1 years and Pakistan at 37.3 years in 2100.
- The world as a whole: 30.4 years in 2023.
Every year
years · UN
| Year | Morocco | Pakistan | World |
|---|---|---|---|
| 2023 | 29.2 | 20.3 | 30.4 |
| 2022 | 28.9 | 20.2 | 30.1 |
| 2021 | 28.6 | 20 | 29.8 |
| 2020 | 28.2 | 19.8 | 29.6 |
| 2019 | 27.9 | 19.7 | 29.3 |
| 2018 | 27.5 | 19.5 | 29 |
| 2017 | 27.1 | 19.4 | 28.8 |
| 2016 | 26.8 | 19.3 | 28.5 |
| 2015 | 26.4 | 19.2 | 28.3 |
| 2014 | 26.1 | 19.2 | 28.1 |
| 2013 | 25.7 | 19.1 | 27.8 |
| 2012 | 25.4 | 19 | 27.6 |
| 2011 | 25 | 18.9 | 27.4 |
| 2010 | 24.7 | 18.8 | 27.2 |
| 2009 | 24.4 | 18.6 | 27 |
| 2008 | 24 | 18.4 | 26.7 |
| 2007 | 23.7 | 18.2 | 26.5 |
| 2006 | 23.3 | 18 | 26.3 |
| 2005 | 23 | 17.8 | 26.1 |
| 2004 | 22.6 | 17.6 | 25.9 |
| 2003 | 22.3 | 17.4 | 25.7 |
| 2002 | 22 | 17.3 | 25.5 |
| 2001 | 21.7 | 17.2 | 25.3 |
| 2000 | 21.4 | 17 | 25.1 |
| 1999 | 21.1 | 16.9 | 24.9 |
| 1998 | 20.8 | 16.8 | 24.7 |
| 1997 | 20.5 | 16.7 | 24.4 |
| 1996 | 20.2 | 16.7 | 24.2 |
| 1995 | 19.9 | 16.6 | 24 |
| 1994 | 19.6 | 16.6 | 23.8 |
| 1993 | 19.3 | 16.7 | 23.5 |
| 1992 | 19 | 16.8 | 23.3 |
| 1991 | 18.7 | 16.9 | 23.1 |
| 1990 | 18.4 | 16.9 | 22.9 |
| 1989 | 18.1 | 16.9 | 22.8 |
| 1988 | 17.9 | 17 | 22.6 |
| 1987 | 17.6 | 17.1 | 22.4 |
| 1986 | 17.4 | 17.1 | 22.2 |
| 1985 | 17.2 | 17.2 | 22 |
| 1984 | 17 | 17.2 | 21.9 |
| 1983 | 16.9 | 17.3 | 21.8 |
| 1982 | 16.7 | 17.3 | 21.7 |
| 1981 | 16.6 | 17.2 | 21.6 |
| 1980 | 16.4 | 17.1 | 21.5 |
| 1979 | 16.3 | 16.9 | 21.3 |
| 1978 | 16.2 | 16.8 | 21.1 |
| 1977 | 16 | 16.8 | 21 |
| 1976 | 15.9 | 16.8 | 20.8 |
| 1975 | 15.8 | 16.8 | 20.7 |
| 1974 | 15.7 | 16.8 | 20.5 |
| 1973 | 15.7 | 16.8 | 20.4 |
| 1972 | 15.6 | 16.9 | 20.4 |
| 1971 | 15.5 | 17 | 20.3 |
| 1970 | 15.5 | 17.1 | 20.3 |
| 1969 | 15.5 | 17.2 | 20.3 |
| 1968 | 15.5 | 17.4 | 20.4 |
| 1967 | 15.5 | 17.6 | 20.5 |
| 1966 | 15.6 | 17.7 | 20.6 |
| 1965 | 15.6 | 17.8 | 20.8 |
| 1964 | 15.8 | 17.9 | 21 |
| 1963 | 16 | 17.9 | 21.2 |
| 1962 | 16.3 | 18 | 21.4 |
| 1961 | 16.6 | 18 | 21.4 |
| 1960 | 16.9 | 18.1 | 21.5 |
| 1959 | 17.2 | 18.1 | 21.5 |
| 1958 | 17.5 | 18 | 21.5 |
| 1957 | 17.7 | 18 | 21.6 |
| 1956 | 17.9 | 18 | 21.7 |
| 1955 | 18 | 17.9 | 21.8 |
| 1954 | 18.2 | 17.8 | 21.9 |
| 1953 | 18.2 | 17.7 | 22 |
| 1952 | 18.3 | 17.6 | 22.1 |
| 1951 | 18.3 | 17.5 | 22.1 |
| 1950 | 18.3 | 17.3 | 22.2 |
UN projection (medium variant) · 2024–2100
| Year | Morocco | Pakistan | World |
|---|---|---|---|
| 2024 | 29.529.5–29.6 | 20.420.4–20.5 | 30.6 |
| 2025 | 29.829.7–30 | 20.620.5–20.7 | 30.9 |
| 2026 | 30.129.8–30.4 | 20.820.6–20.9 | 31.1 |
| 2027 | 30.530–30.9 | 20.920.7–21.1 | 31.3 |
| 2028 | 30.830.2–31.3 | 21.120.8–21.4 | 31.6 |
| 2029 | 31.130.4–31.7 | 21.321–21.6 | 31.8 |
| 2030 | 31.430.5–32.2 | 21.621.1–21.9 | 32 |
| 2031 | 31.730.7–32.6 | 21.821.3–22.3 | 32.2 |
| 2032 | 3230.9–33 | 22.121.5–22.6 | 32.4 |
| 2033 | 32.331–33.5 | 22.321.6–22.9 | 32.6 |
| 2034 | 32.631.2–33.9 | 22.621.8–23.3 | 32.8 |
| 2035 | 32.831.3–34.3 | 22.821.9–23.7 | 33 |
| 2036 | 33.131.5–34.7 | 23.122.1–24.1 | 33.2 |
| 2037 | 33.431.6–35.2 | 23.322.2–24.5 | 33.4 |
| 2038 | 33.731.8–35.6 | 23.622.4–24.9 | 33.6 |
| 2039 | 3432–36 | 23.822.5–25.3 | 33.8 |
| 2040 | 34.232.2–36.4 | 2422.5–25.6 | 34 |
| 2041 | 34.532.4–36.8 | 24.322.6–26 | 34.2 |
| 2042 | 34.832.6–37.2 | 24.522.7–26.3 | 34.4 |
| 2043 | 35.132.8–37.6 | 24.722.8–26.7 | 34.6 |
| 2044 | 35.433.1–38 | 24.922.9–27.1 | 34.8 |
| 2045 | 35.833.3–38.3 | 25.123–27.4 | 35 |
| 2046 | 36.133.5–38.7 | 25.423.1–27.8 | 35.2 |
| 2047 | 36.433.8–39.1 | 25.623.2–28.1 | 35.4 |
| 2048 | 36.834–39.5 | 25.823.3–28.5 | 35.6 |
| 2049 | 37.134.2–39.9 | 2623.4–28.8 | 35.9 |
| 2050 | 37.434.4–40.3 | 26.323.6–29.2 | 36.1 |
| 2051 | 37.734.6–40.8 | 26.523.7–29.6 | 36.3 |
| 2052 | 38.134.8–41.2 | 26.723.9–29.9 | 36.5 |
| 2053 | 38.435–41.6 | 26.924–30.3 | 36.7 |
| 2054 | 38.735.2–42 | 27.224.1–30.6 | 36.9 |
| 2055 | 3935.4–42.4 | 27.424.3–31 | 37.1 |
| 2056 | 39.335.6–42.8 | 27.624.4–31.4 | 37.3 |
| 2057 | 39.635.8–43.2 | 27.824.6–31.7 | 37.5 |
| 2058 | 39.936–43.6 | 28.124.7–32.1 | 37.6 |
| 2059 | 40.236.1–44 | 28.324.9–32.4 | 37.8 |
| 2060 | 40.536.3–44.4 | 28.525–32.7 | 37.9 |
| 2061 | 40.736.4–44.7 | 28.825.2–33 | 38 |
| 2062 | 4136.6–45.1 | 2925.4–33.3 | 38.1 |
| 2063 | 41.336.8–45.5 | 29.225.6–33.6 | 38.3 |
| 2064 | 41.536.9–45.9 | 29.525.7–33.9 | 38.4 |
| 2065 | 41.837.1–46.3 | 29.725.9–34.2 | 38.5 |
| 2066 | 4237.3–46.6 | 29.926–34.5 | 38.6 |
| 2067 | 42.337.4–47 | 30.226.2–34.8 | 38.7 |
| 2068 | 42.537.6–47.4 | 30.426.3–35 | 38.8 |
| 2069 | 42.737.8–47.8 | 30.726.5–35.3 | 38.9 |
| 2070 | 42.938–48.2 | 30.926.6–35.5 | 39 |
| 2071 | 43.138.1–48.5 | 31.226.7–35.8 | 39.1 |
| 2072 | 43.338.3–48.9 | 31.426.9–36.1 | 39.2 |
| 2073 | 43.538.5–49.2 | 31.627–36.4 | 39.3 |
| 2074 | 43.738.6–49.6 | 31.927.2–36.6 | 39.4 |
| 2075 | 43.938.8–49.8 | 32.127.3–36.9 | 39.5 |
| 2076 | 4438.9–50.1 | 32.327.4–37.1 | 39.6 |
| 2077 | 44.239.1–50.3 | 32.627.6–37.4 | 39.7 |
| 2078 | 44.439.3–50.5 | 32.827.7–37.7 | 39.8 |
| 2079 | 44.639.4–50.7 | 3327.9–38 | 40 |
| 2080 | 44.739.6–50.9 | 33.228–38.3 | 40.1 |
| 2081 | 44.939.8–51.1 | 33.528.1–38.6 | 40.2 |
| 2082 | 45.139.9–51.3 | 33.728.2–38.9 | 40.3 |
| 2083 | 45.340.1–51.4 | 33.928.4–39.1 | 40.4 |
| 2084 | 45.540.2–51.6 | 34.128.5–39.4 | 40.5 |
| 2085 | 45.640.4–51.7 | 34.328.6–39.6 | 40.6 |
| 2086 | 45.840.5–51.9 | 34.528.8–39.8 | 40.7 |
| 2087 | 4640.7–52 | 34.728.9–40.1 | 40.9 |
| 2088 | 46.240.8–52.1 | 34.929–40.3 | 41 |
| 2089 | 46.440.9–52.2 | 35.129.1–40.5 | 41.1 |
| 2090 | 46.541.1–52.3 | 35.329.3–40.7 | 41.2 |
| 2091 | 46.741.2–52.4 | 35.529.4–40.9 | 41.3 |
| 2092 | 46.941.3–52.6 | 35.729.5–41.1 | 41.4 |
| 2093 | 47.141.4–52.7 | 35.929.7–41.3 | 41.5 |
| 2094 | 47.241.5–52.8 | 36.129.8–41.4 | 41.6 |
| 2095 | 47.441.7–52.9 | 36.330–41.5 | 41.7 |
| 2096 | 47.641.8–53 | 36.530.1–41.7 | 41.8 |
| 2097 | 47.741.9–53.1 | 36.730.3–41.8 | 41.9 |
| 2098 | 47.942.1–53.2 | 36.930.4–41.9 | 42 |
| 2099 | 4842.2–53.3 | 37.130.5–42.1 | 42 |
| 2100 | 48.142.3–53.4 | 37.330.6–42.3 | 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
Morocco vs Pakistan
Health
- Life expectancyMorocco: 75.3 years in 2023Pakistan: 67.7 years in 2023
- Child mortalityMorocco: 1.6 per 100 live births in 2024Pakistan: 5.6 per 100 live births in 2024
- Infant mortalityMorocco: 14.3 per 1,000 live births in 2023Pakistan: 49.4 per 1,000 live births in 2023
- Safe drinking waterMorocco: 74.8% in 2022Pakistan: 50.6% in 2022
- DepressionMorocco: 5.41% in 2017Pakistan: 3.33% in 2017
- Suicide rateMorocco: 7.1 per 100,000 people in 2017Pakistan: 4.4 per 100,000 people in 2017
People
- PopulationMorocco: 37.7 million people in 2023Pakistan: 248 million people in 2023
- Population growthMorocco: 1% a year in 2023Pakistan: 1.48% a year in 2023
- Fertility rateMorocco: 2.23 births per woman in 2023Pakistan: 3.61 births per woman in 2023
- Urban populationMorocco: 63.1% in 2025Pakistan: 39.5% in 2025
- People aged 65 and overMorocco: 7.8% in 2023Pakistan: 4.2% in 2023
- Net migration rateMorocco: -1.1 per 1,000 people in 2023Pakistan: -6.5 per 1,000 people in 2023
Economy
Education
Politics
Conflict
Military
- Military spendingMorocco: 3.54% of GDP in 2025Pakistan: 2.91% of GDP in 2025
- Military spending in US dollarsMorocco: $5.88B in 2025Pakistan: $11.5B in 2025
- Military spending per personMorocco: $166 in 2025Pakistan: $47 in 2025
- Military share of state spendingMorocco: 10.3% of government spending in 2025Pakistan: 13.8% of government spending in 2025
- Armed forces personnelMorocco: 246,000 people in 2020Pakistan: 943,000 people in 2020
- National powerMorocco: 0.4% of world capability in 2022Pakistan: 1.77% of world capability in 2022
- Armed forces, share of workersMorocco: 2.07% of the labour force in 2020Pakistan: 1.25% of the labour force in 2020
- Arms importsMorocco: 392 million TIV in 2025Pakistan: 706 million TIV in 2025
- Arms exportsMorocco: 26 million TIV in 2024Pakistan: 127 million TIV in 2025