Afghanistan vs Morocco

Afghanistan vs Morocco: Median age

Median age in 2023: 16.9 years in Afghanistan and 29.2 years in Morocco, by UN estimates. In 2023 the value was higher in Morocco, by 12.3 years, or 1.72 times that in Afghanistan.

years · UN

Afghanistan vs Morocco: Median ageMedian age in 2023: 16.9 years in Afghanistan and 29.2 years in Morocco, by UN estimates. In 2023 the value was higher in Morocco, by 12.3 years, or 1.72 times that in Afghanistan.
AfghanistanMoroccoUN projection (medium variant)95% prediction intervalWorld

What the numbers say

  • Morocco has been higher since 1978, when it overtook Afghanistan.
  • In 2023, Afghanistan ranked 219 and Morocco ranked 132 of 229 countries, counting from the highest.
  • The UN projection (medium variant) puts Afghanistan at 34.8 years and Morocco at 48.1 years in 2100.
  • The world as a whole: 30.4 years in 2023.

Every year

years · UN

YearAfghanistanMoroccoWorld
202316.929.230.4
202216.828.930.1
202116.628.629.8
202016.428.229.6
201916.227.929.3
201816.127.529
201715.927.128.8
201615.726.828.5
201515.526.428.3
201415.326.128.1
201315.125.727.8
20121525.427.6
201114.82527.4
201014.624.727.2
200914.524.427
200814.32426.7
200714.223.726.5
200614.123.326.3
2005142326.1
200413.922.625.9
200313.922.325.7
200213.92225.5
200113.921.725.3
20001421.425.1
199914.121.124.9
199814.220.824.7
199714.320.524.4
199614.420.224.2
199514.619.924
199414.719.623.8
199314.819.323.5
199214.91923.3
199114.918.723.1
19901518.422.9
198915.118.122.8
198815.117.922.6
198715.217.622.4
198615.217.422.2
198515.317.222
198415.41721.9
198315.516.921.8
198215.616.721.7
198115.716.621.6
198015.816.421.5
197915.916.321.3
19781616.221.1
197716.21621
197616.315.920.8
197516.415.820.7
197416.515.720.5
197316.615.720.4
197216.715.620.4
197116.815.520.3
19701715.520.3
196917.115.520.3
196817.315.520.4
196717.415.520.5
196617.515.620.6
196517.515.620.8
196417.615.821
196317.61621.2
196217.716.321.4
196117.816.621.4
196017.916.921.5
19591817.221.5
19581817.521.5
195718.117.721.6
195618.117.921.7
195518.21821.8
195418.218.221.9
195318.318.222
195218.318.322.1
195118.418.322.1
195018.418.322.2
UN projection (medium variant) · 2024–2100
YearAfghanistanMoroccoWorld
202417.116.9–17.329.529.5–29.630.6
202517.316.7–17.829.829.7–3030.9
202617.416.5–18.230.129.8–30.431.1
202717.616.4–18.530.530–30.931.3
202817.816.5–18.830.830.2–31.331.6
20291816.6–19.131.130.4–31.731.8
203018.216.7–19.431.430.5–32.232
203118.417–19.731.730.7–32.632.2
203218.617.2–19.93230.9–3332.4
203318.817.4–20.132.331–33.532.6
203419.117.6–20.432.631.2–33.932.8
203519.317.9–20.532.831.3–34.333
203619.518.2–20.733.131.5–34.733.2
203719.718.5–20.733.431.6–35.233.4
20382018.8–20.733.731.8–35.633.6
203920.219.1–20.83432–3633.8
204020.519.5–2134.232.2–36.434
204120.719.8–21.134.532.4–36.834.2
20422120.2–21.234.832.6–37.234.4
204321.220.6–21.335.132.8–37.634.6
204421.521–21.535.433.1–3834.8
204521.721.4–21.635.833.3–38.335
20462221.7–21.836.133.5–38.735.2
204722.221.8–22.236.433.8–39.135.4
204822.522–22.536.834–39.535.6
204922.822.1–22.937.134.2–39.935.9
20502322.2–23.237.434.4–40.336.1
205123.322.5–23.637.734.6–40.836.3
205223.622.7–23.938.134.8–41.236.5
205323.822.9–24.238.435–41.636.7
205424.123.2–24.538.735.2–4236.9
205524.323.4–24.73935.4–42.437.1
205624.623.6–24.939.335.6–42.837.3
205724.923.8–25.239.635.8–43.237.5
205825.123.9–25.539.936–43.637.6
205925.424–25.840.236.1–4437.8
206025.624.2–25.940.536.3–44.437.9
206125.924.4–25.940.736.4–44.738
206226.124.7–25.94136.6–45.138.1
206326.424.8–2641.336.8–45.538.3
206426.625–26.241.536.9–45.938.4
206526.925.1–26.341.837.1–46.338.5
206627.125.3–26.74237.3–46.638.6
206727.425.4–27.242.337.4–4738.7
206827.625.6–27.542.537.6–47.438.8
206927.925.7–27.842.737.8–47.838.9
207028.125.9–27.942.938–48.239
207128.326–27.943.138.1–48.539.1
207228.626.3–28.143.338.3–48.939.2
207328.826.5–28.543.538.5–49.239.3
20742926.7–28.743.738.6–49.639.4
207529.326.9–28.943.938.8–49.839.5
207629.527.1–29.34438.9–50.139.6
207729.827.2–29.744.239.1–50.339.7
20783027.3–3044.439.3–50.539.8
207930.227.3–30.344.639.4–50.740
208030.527.4–30.544.739.6–50.940.1
208130.727.5–30.844.939.8–51.140.2
208230.927.7–3145.139.9–51.340.3
208331.227.8–31.245.340.1–51.440.4
208431.427.9–31.645.540.2–51.640.5
208531.628.1–31.945.640.4–51.740.6
208631.828.2–32.345.840.5–51.940.7
208732.128.3–32.34640.7–5240.9
208832.328.4–32.446.240.8–52.141
208932.528.6–32.846.440.9–52.241.1
209032.728.8–33.246.541.1–52.341.2
209132.928.9–33.546.741.2–52.441.3
209233.229.1–33.846.941.3–52.641.4
209333.429.3–34.147.141.4–52.741.5
209433.629.5–34.247.241.5–52.841.6
209533.829.7–34.247.441.7–52.941.7
20963429.9–34.347.641.8–5341.8
209734.230–34.447.741.9–53.141.9
209834.430.2–34.647.942.1–53.242
209934.630.4–34.64842.2–53.342
210034.830.5–34.648.142.3–53.442.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

Afghanistan vs Morocco

Health

People

Economy

Education

Politics

Conflict

Military

Climate

Technology and environment