Afghanistan vs Pakistan

Afghanistan vs Pakistan: Median age

Median age in 2023: 16.9 years in Afghanistan and 20.3 years in Pakistan, by UN estimates. In 2023 the value was higher in Pakistan, by 3.3 years, or 1.2 times that in Afghanistan.

years · UN

Afghanistan vs Pakistan: Median ageMedian age in 2023: 16.9 years in Afghanistan and 20.3 years in Pakistan, by UN estimates. In 2023 the value was higher in Pakistan, by 3.3 years, or 1.2 times that in Afghanistan.
AfghanistanPakistanUN projection (medium variant)95% prediction intervalWorld

What the numbers say

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

Every year

years · UN

YearAfghanistanPakistanWorld
202316.920.330.4
202216.820.230.1
202116.62029.8
202016.419.829.6
201916.219.729.3
201816.119.529
201715.919.428.8
201615.719.328.5
201515.519.228.3
201415.319.228.1
201315.119.127.8
2012151927.6
201114.818.927.4
201014.618.827.2
200914.518.627
200814.318.426.7
200714.218.226.5
200614.11826.3
20051417.826.1
200413.917.625.9
200313.917.425.7
200213.917.325.5
200113.917.225.3
2000141725.1
199914.116.924.9
199814.216.824.7
199714.316.724.4
199614.416.724.2
199514.616.624
199414.716.623.8
199314.816.723.5
199214.916.823.3
199114.916.923.1
19901516.922.9
198915.116.922.8
198815.11722.6
198715.217.122.4
198615.217.122.2
198515.317.222
198415.417.221.9
198315.517.321.8
198215.617.321.7
198115.717.221.6
198015.817.121.5
197915.916.921.3
19781616.821.1
197716.216.821
197616.316.820.8
197516.416.820.7
197416.516.820.5
197316.616.820.4
197216.716.920.4
197116.81720.3
19701717.120.3
196917.117.220.3
196817.317.420.4
196717.417.620.5
196617.517.720.6
196517.517.820.8
196417.617.921
196317.617.921.2
196217.71821.4
196117.81821.4
196017.918.121.5
19591818.121.5
1958181821.5
195718.11821.6
195618.11821.7
195518.217.921.8
195418.217.821.9
195318.317.722
195218.317.622.1
195118.417.522.1
195018.417.322.2
UN projection (medium variant) · 2024–2100
YearAfghanistanPakistanWorld
202417.116.9–17.320.420.4–20.530.6
202517.316.7–17.820.620.5–20.730.9
202617.416.5–18.220.820.6–20.931.1
202717.616.4–18.520.920.7–21.131.3
202817.816.5–18.821.120.8–21.431.6
20291816.6–19.121.321–21.631.8
203018.216.7–19.421.621.1–21.932
203118.417–19.721.821.3–22.332.2
203218.617.2–19.922.121.5–22.632.4
203318.817.4–20.122.321.6–22.932.6
203419.117.6–20.422.621.8–23.332.8
203519.317.9–20.522.821.9–23.733
203619.518.2–20.723.122.1–24.133.2
203719.718.5–20.723.322.2–24.533.4
20382018.8–20.723.622.4–24.933.6
203920.219.1–20.823.822.5–25.333.8
204020.519.5–212422.5–25.634
204120.719.8–21.124.322.6–2634.2
20422120.2–21.224.522.7–26.334.4
204321.220.6–21.324.722.8–26.734.6
204421.521–21.524.922.9–27.134.8
204521.721.4–21.625.123–27.435
20462221.7–21.825.423.1–27.835.2
204722.221.8–22.225.623.2–28.135.4
204822.522–22.525.823.3–28.535.6
204922.822.1–22.92623.4–28.835.9
20502322.2–23.226.323.6–29.236.1
205123.322.5–23.626.523.7–29.636.3
205223.622.7–23.926.723.9–29.936.5
205323.822.9–24.226.924–30.336.7
205424.123.2–24.527.224.1–30.636.9
205524.323.4–24.727.424.3–3137.1
205624.623.6–24.927.624.4–31.437.3
205724.923.8–25.227.824.6–31.737.5
205825.123.9–25.528.124.7–32.137.6
205925.424–25.828.324.9–32.437.8
206025.624.2–25.928.525–32.737.9
206125.924.4–25.928.825.2–3338
206226.124.7–25.92925.4–33.338.1
206326.424.8–2629.225.6–33.638.3
206426.625–26.229.525.7–33.938.4
206526.925.1–26.329.725.9–34.238.5
206627.125.3–26.729.926–34.538.6
206727.425.4–27.230.226.2–34.838.7
206827.625.6–27.530.426.3–3538.8
206927.925.7–27.830.726.5–35.338.9
207028.125.9–27.930.926.6–35.539
207128.326–27.931.226.7–35.839.1
207228.626.3–28.131.426.9–36.139.2
207328.826.5–28.531.627–36.439.3
20742926.7–28.731.927.2–36.639.4
207529.326.9–28.932.127.3–36.939.5
207629.527.1–29.332.327.4–37.139.6
207729.827.2–29.732.627.6–37.439.7
20783027.3–3032.827.7–37.739.8
207930.227.3–30.33327.9–3840
208030.527.4–30.533.228–38.340.1
208130.727.5–30.833.528.1–38.640.2
208230.927.7–3133.728.2–38.940.3
208331.227.8–31.233.928.4–39.140.4
208431.427.9–31.634.128.5–39.440.5
208531.628.1–31.934.328.6–39.640.6
208631.828.2–32.334.528.8–39.840.7
208732.128.3–32.334.728.9–40.140.9
208832.328.4–32.434.929–40.341
208932.528.6–32.835.129.1–40.541.1
209032.728.8–33.235.329.3–40.741.2
209132.928.9–33.535.529.4–40.941.3
209233.229.1–33.835.729.5–41.141.4
209333.429.3–34.135.929.7–41.341.5
209433.629.5–34.236.129.8–41.441.6
209533.829.7–34.236.330–41.541.7
20963429.9–34.336.530.1–41.741.8
209734.230–34.436.730.3–41.841.9
209834.430.2–34.636.930.4–41.942
209934.630.4–34.637.130.5–42.142
210034.830.5–34.637.330.6–42.342.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 Pakistan

Health

People

Economy

Education

Politics

Conflict

Military

Climate

Technology and environment