Morocco vs Spain

Morocco vs Spain: Median age

Median age in 2023: 29.2 years in Morocco and 44.9 years in Spain, by UN estimates. In 2023 the value was higher in Spain, by 15.7 years, or 1.54 times that in Morocco.

years · UN

Morocco vs Spain: Median ageMedian age in 2023: 29.2 years in Morocco and 44.9 years in Spain, by UN estimates. In 2023 the value was higher in Spain, by 15.7 years, or 1.54 times that in Morocco.
MoroccoSpainUN projection (medium variant)95% prediction intervalWorld

What the numbers say

  • Spain has been higher in every year both have figures for since 1950.
  • In 2023, Morocco ranked 132 and Spain ranked 16 of 229 countries, counting from the highest.
  • The UN projection (medium variant) puts Morocco at 48.1 years and Spain at 52.2 years in 2100.
  • The world as a whole: 30.4 years in 2023.

Every year

years · UN

YearMoroccoSpainWorld
202329.244.930.4
202228.944.430.1
202128.643.929.8
202028.243.529.6
201927.943.129.3
201827.542.829
201727.142.428.8
201626.842.128.5
201526.441.628.3
201426.141.228.1
201325.740.627.8
201225.440.127.6
20112539.627.4
201024.739.227.2
200924.438.827
20082438.426.7
200723.738.226.5
200623.33826.3
20052337.826.1
200422.637.525.9
200322.337.325.7
20022237.125.5
200121.736.825.3
200021.436.325.1
199921.135.924.9
199820.835.524.7
199720.535.124.4
199620.234.724.2
199519.934.324
199419.633.923.8
199319.333.623.5
19921933.223.3
199118.732.923.1
199018.432.522.9
198918.132.122.8
198817.931.822.6
198717.631.522.4
198617.431.222.2
198517.230.922
19841730.621.9
198316.930.421.8
198216.730.121.7
198116.629.921.6
198016.429.821.5
197916.329.621.3
197816.229.421.1
19771629.221
197615.929.120.8
197515.82920.7
197415.72920.5
197315.72920.4
197215.62920.4
197115.529.120.3
197015.529.120.3
196915.529.320.3
196815.529.420.4
196715.529.420.5
196615.629.320.6
196515.629.220.8
196415.829.121
1963162921.2
196216.328.821.4
196116.628.621.4
196016.928.421.5
195917.228.221.5
195817.528.121.5
195717.72821.6
195617.927.921.7
19551827.721.8
195418.227.521.9
195318.227.222
195218.32722.1
195118.326.822.1
195018.326.522.2
UN projection (medium variant) · 2024–2100
YearMoroccoSpainWorld
202429.529.5–29.645.445.3–45.530.6
202529.829.7–3045.945.6–46.130.9
202630.129.8–30.446.345.9–46.731.1
202730.530–30.946.846.1–47.331.3
202830.830.2–31.347.246.4–47.931.6
202931.130.4–31.747.646.5–48.631.8
203031.430.5–32.248.146.6–49.232
203131.730.7–32.648.446.7–49.932.2
20323230.9–3348.846.6–50.532.4
203332.331–33.549.246.5–51.232.6
203432.631.2–33.949.546.4–51.832.8
203532.831.3–34.349.846.2–52.433
203633.131.5–34.750.146–53.133.2
203733.431.6–35.250.445.8–53.733.4
203833.731.8–35.650.645.4–54.333.6
20393432–3650.845–54.933.8
204034.232.2–36.45144.6–55.434
204134.532.4–36.851.244–5634.2
204234.832.6–37.251.443.3–56.534.4
204335.132.8–37.651.542.7–57.134.6
204435.433.1–3851.642.2–57.634.8
204535.833.3–38.351.741.7–58.135
204636.133.5–38.751.841.4–58.635.2
204736.433.8–39.151.841.3–59.135.4
204836.834–39.551.841.2–59.635.6
204937.134.2–39.951.841.1–6035.9
205037.434.4–40.351.841.1–60.536.1
205137.734.6–40.851.741.2–60.936.3
205238.134.8–41.251.741.3–61.336.5
205338.435–41.651.741.3–61.836.7
205438.735.2–4251.741.4–62.236.9
20553935.4–42.451.741.4–62.637.1
205639.335.6–42.851.741.4–63.137.3
205739.635.8–43.251.841.5–63.537.5
205839.936–43.651.841.5–63.937.6
205940.236.1–4451.941.5–64.237.8
206040.536.3–44.45241.5–64.537.9
206140.736.4–44.752.241.4–64.838
20624136.6–45.152.341.4–65.138.1
206341.336.8–45.552.441.3–65.438.3
206441.536.9–45.952.541.2–65.638.4
206541.837.1–46.352.641.1–65.938.5
20664237.3–46.652.641–66.138.6
206742.337.4–4752.740.8–66.338.7
206842.537.6–47.452.740.7–66.638.8
206942.737.8–47.852.740.5–66.938.9
207042.938–48.252.740.4–67.139
207143.138.1–48.552.740.4–67.439.1
207243.338.3–48.952.640.3–67.839.2
207343.538.5–49.252.540.2–68.139.3
207443.738.6–49.652.440.2–68.439.4
207543.938.8–49.852.240.2–68.839.5
20764438.9–50.152.140.1–69.239.6
207744.239.1–50.35240.1–69.639.7
207844.439.3–50.551.840–7039.8
207944.639.4–50.751.740–70.440
208044.739.6–50.951.640–70.840.1
208144.939.8–51.151.539.9–71.240.2
208245.139.9–51.351.540–71.640.3
208345.340.1–51.451.440–7240.4
208445.540.2–51.651.340.1–72.440.5
208545.640.4–51.751.340.1–72.740.6
208645.840.5–51.951.340.2–7340.7
20874640.7–5251.340.2–73.340.9
208846.240.8–52.151.340.2–73.541
208946.440.9–52.251.440.3–73.841.1
209046.541.1–52.351.440.3–7441.2
209146.741.2–52.451.540.4–74.341.3
209246.941.3–52.651.640.4–74.541.4
209347.141.4–52.751.740.5–74.741.5
209447.241.5–52.851.740.6–74.841.6
209547.441.7–52.951.840.7–74.841.7
209647.641.8–5351.940.7–74.741.8
209747.741.9–53.15240.8–74.441.9
209847.942.1–53.252.140.8–74.242
20994842.2–53.352.240.8–73.942
210048.142.3–53.452.240.9–73.542.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 Spain

Health

People

Economy

Education

Politics

Conflict

Military

Climate

Technology and environment