Methodology: Sources, Formulas and Corrections
Everything on AgePyramids is computed from published datasets using the rules on this page. If you find a figure you believe is wrong, email contact@agepyramids.com — corrections are logged publicly below.
Primary source: UN World Population Prospects 2024
- Publisher: United Nations, Department of Economic and Social Affairs, Population Division (2024). World Population Prospects 2024, online edition, released 11 July 2024. Licence: CC BY 3.0 IGO.
- Files used: the age/sex population, demographic indicators (births, deaths, crude birth and death rates, growth), total fertility, life expectancy and net migration series of the official wpp2024 R package (version 1.1-3), which republishes the UN's CSV download files. Medium variant throughout, except the low/high variant totals shown on projection pages.
- Coverage: the UN lists 237 countries and areas; we publish the 236 for which it publishes age and sex estimates (the Holy See is listed without estimates), plus the UN's regional aggregates.
- Reference date: all population figures are for 1 July of the stated year. The package's age files are 1 January stocks; mid-year age distributions are computed as the average of the stocks at the start of the year and the start of the following year — the UN's own approach. Verification: this method reproduces the UN's published world total for 1 July 2026 exactly (8,300,678,396), and country totals, sex splits, births and age-band tables match the UN's published values to within one person (rounding).
- Estimates vs projections: 1950–2023 are UN estimates; 2024–2100 are medium-variant projections. Pages say which is which.
- Median age is interpolated from the single-year mid-year distribution using the UN's published convention; it reproduces the UN's Demographic Indicators median ages (world 31.1, Japan 50.2, India 29.2 in 2026) to within 0.1 years.
- Next revision: the UN has postponed the next World Population Prospects from 2026 to 11 July 2027 (UN document E/CN.9/2026/CRP.1). This site will be rebuilt on the new release when it appears.
Derived figures — the formulas we use
- Pyramid type: Expansive if at least 30% of the population is under 15. Constrictive if the under-15 share is below 20% and the 0–4 band is no more than 85% of the largest band aged 15–49. Otherwise Stationary.
- DTM stage: Stage 5 if deaths per 1,000 ≥ births per 1,000. Stage 1 if the crude birth rate is at least 35 and the crude death rate at least 15. Stage 2 if the fertility rate is above 4.0 children per woman. Stage 4 if fertility is at or below 2.1 and births exceed deaths. Otherwise Stage 3. This is a documented teaching rule, not an official UN classification.
- Dependency ratios: youth = (0–14 ÷ 15–64) × 100; old-age = (65+ ÷ 15–64) × 100; total = youth + old-age.
- Generations: Pew Research Center bands (Silent 1928–1945, Boomers 1946–1964, Generation X 1965–1980, Millennials 1981–1996, Generation Z 1997–2012) and McCrindle bands (Alpha 2013–2024, Beta from 2025), applied to the single-year age distribution: birth year = page year − age.
- Population density: 1 July population ÷ surface area from the World Bank (indicator AG.SRF.TOTL.K2, which includes inland water), matched to UN areas by M49 code, with manual values for a small number of territories the Bank does not list separately.
- One source per figure: we never mix UN and other publishers' numbers for the same statistic on one page.
US state data
State pages use the US Census Bureau's Vintage 2025 estimates: file NST-EST2025-ALLDATA for totals context and SC-EST2025-AGESEX-CIV for the age/sex structure (civilian population by single year of age, 1 July 2025), grouped into five-year bands with an 85+ top group. Census figures are public domain. State totals therefore differ slightly from the UN's United States figures, which are computed on a different basis — each page names its source.
Known issue: Togo interim update (January 2026)
On 19 January 2026 the UN released an interim update to WPP 2024 correcting Togo's population (the 2022 census counted about 8.2 million people against 9.1 million in the July 2024 release). The UN notes that all other locations and the global/regional aggregates are unchanged. As of this site's launch, the update is published as spreadsheet files through the UN's download centre; the corrected machine-readable series had not been incorporated into the wpp2024 package files we build from, so Togo's pages currently show the original July 2024 figures and are flagged here rather than silently adjusted. We will apply the interim update as soon as the corrected series is available in the standard files, and log it below.
Corrections log
- 17 November 2026 — Site launch. Built on WPP 2024 (July 2024 release). Verification pass: world total for 1 July 2026 reproduces the UN's published figure exactly; Japan, India, Ukraine, Greece, Turkmenistan, Mozambique and New Zealand totals match published values exactly or within one person. Median-age convention aligned to the UN's published values (see above). Togo interim update identified but not yet applied (see above).
Reuse
UN data is CC BY 3.0 IGO: credit "United Nations, DESA, Population Division (2024), World Population Prospects 2024". AgePyramids charts and text may be reused with credit to AgePyramids and the UN. Census data is public domain.