Usual resident population at 30 June, from the ONS mid-year estimates.
Local authorities, regions and nations run from 1991 on current boundaries; neighbourhoods and middle areas in England and Wales from mid-2022 on 2021 boundaries; Scottish neighbourhoods and intermediate zones from mid-2011 on 2022 Data Zones and Intermediate Zones, which are National Records of Scotland's small area population estimates, not ONS's. The source link is ONS's and carries no Scottish small-area figure; the NRS files are named in the source detail.
Where each figure is read from
ONS mid-year population estimates, all persons, all ages: Nomis dataset NM_2002_1 (gender=Total, age=All Ages, value) for authorities (TYPE424), regions (TYPE480) and countries; the "Mid-YYYY LSOA 2021" and "Mid-YYYY MSOA 2021" sheets' Total column in https://www.ons.gov.uk/file?uri=/peoplepopulationandcommunity/populationandmigration/populationestimates/datasets/lowersuperoutputareamidyearpopulationestimates/mid2022revisednov2025tomid2024/sapelsoasyoa20222024.xlsx and https://www.ons.gov.uk/file?uri=/peoplepopulationandcommunity/populationandmigration/populationestimates/datasets/middlesuperoutputareamidyearpopulationestimates/mid2022revisednov2025tomid2024/sapemsoasyoa20222024.xlsx; NRS small-area estimates on 2022 Data Zones mid-2011 to mid-2024, the Persons row per zone in https://www.nrscotland.gov.uk/media/yqqbrvbw/small-area-population-estimates-mid-2011-to-mid-2024-2022-dz.zip; the same NRS estimates per 2022 Intermediate Zone as republished by Public Health Scotland in https://www.opendata.nhs.scot/dataset/7f010430-6ce1-4813-b25c-f7f335bdc4dc/resource/802a981a-4bfa-4fd6-805b-59d56602a152/download/iz2022-pop-est_01092026.csv, Male plus Female AllAges
How the publisher measures it
The Scottish intermediate-zone figure is the sum of the published Male and Female AllAges rows of NRS's estimates as Public Health Scotland republishes them, which carry no persons row at that level. Scottish data zones read NRS's own file. All other figures are a publisher's own row.