Main

The growth and development of school-aged children and adolescents (ages 5–19 years) are influenced by their nutrition and environment at home, in the community and at school. Healthy growth and development at these ages help consolidate gains and mitigate inadequacies from early childhood and vice versa1, with lifelong implications for health and well-being2,3,4,5,6. Until recently, the growth and development of older children and adolescents received substantially less attention than in early childhood and adulthood7. Increasing attention on the importance of health and nutrition during school years has been accompanied by a presumption that differences in nutrition and the environment lead to distinct, and generally less healthy, patterns of growth and development at these ages in cities compared to rural areas8,9,10,11,12,13,14,15,16,17. This presumption is despite some empirical studies showing that food quality and nutrition are better in cities18,19.

Data on growth and developmental outcomes during school ages are needed, alongside data on the efficacy of specific interventions and policies, to select and prioritize policies and programmes that promote health and health equity, both for the increasing urban population and for children who continue to grow up in rural areas. Consistent and comparable global data also help benchmark across countries and territories and draw lessons on good practice. Yet, globally, there are fewer data on growth trajectories in rural and urban areas in these formative ages than for children under 5 years of age20 or for adults21. The available studies have been in one country, at one point in time and/or in one sex and narrow age groups. The few studies that covered more than one country22,23,24 mostly focused on older girls and used at most a few dozen data sources and hence could not systematically measure long-term trends. Consequently, many policies and programmes that aim to enhance healthy growth and development in school ages focus narrowly and generically on specific features of nutrition or the environment in either cities or rural areas10,13,25,26,27,28. Little attention has been paid to the similarities and differences between relevant outcomes in these settings or to the heterogeneity of the urban–rural differences across countries.

Here we report on the mean height and BMI of school-aged children and adolescents residing in rural and urban areas of 200 countries and territories (referred to as countries hereafter) from 1990 to 2020. Height and BMI are anthropometric measures of growth and development that are influenced by the quality of nutrition and healthiness of the living environment and are highly predictive of health and well-being throughout life in observational and Mendelian randomization studies2,3,4,5,6. These studies have shown that having low height and excessively low BMI increases the risk of morbidity and mortality, and low height impairs cognitive development and reduces educational performance and work productivity in later life2,3,4. A high BMI in these ages increases the lifelong risk of overweight and obesity and several non-communicable diseases, and might contribute to poor educational outcomes5,6.

We used 2,325 population-based studies that measured height and weight in 71 million participants in 194 countries (Extended Data Fig. 1 and Supplementary Table 2). We used these data in a Bayesian hierarchical meta-regression model to estimate mean height and BMI of children and adolescents aged 5–19 years by rural and urban place of residence, year and age for 200 countries. Details of data sources and statistical methods are provided in the Methods. Our results represent the height and BMI for children and adolescents of the same age over time (that is, successive cohorts) in rural and urban areas of each country, and the difference between the two. For presentation, we summarize the 15 age-specific estimates, for single years of age from 5 to 19, through age standardization, which puts each country-year’s child and adolescent population on the same age distribution and enables comparisons to be made over time and across countries. We also show results, graphically and numerically, for index ages of 5, 10, 15 and 19 years in the Supplementary Information.

In 1990, school-aged boys and girls who lived in cities had a height advantage (that is, were taller) compared with their rural counterparts. The exception was in high-income countries, where the urban height advantage was either negligible (<1.2 cm for age-standardized mean height; posterior probability (PP) for children living in urban areas being taller ranging from 0.51 to >0.99) or there was a small rural advantage (for example, Belgium, the Netherlands and the United Kingdom) (PP for children in rural areas being taller ranging from 0.53 to >0.95 where there was a rural height advantage) (Fig. 1 and Extended Data Fig. 2). The largest height differences between children and adolescents in cities and rural areas in 1990 occurred in some countries in Latin America (for example, Mexico, Guatemala, Panama and Peru), east and southeast Asia (China, Indonesia and Vietnam), central and eastern Europe (Bulgaria, Hungary and Romania) and sub-Saharan Africa (Democratic Republic of Congo (DR Congo) and Rwanda). The urban height advantage in boys and girls in the named countries ranged from 2.4 to 5.0 cm, and the PP of children living in urban areas being taller than children living in rural areas was >0.99 (see Supplementary Table 3 for country-specific numerical values of height in children living in rural versus urban areas, their difference and the corresponding credible intervals (CrIs)).

Fig. 1: Change in the urban–rural height difference from 1990 to 2020.
figure 1

a,b, Change in the urban–rural difference in age-standardized mean height in relation to the change in age-standardized mean rural height in girls (a) and boys (b). Each solid arrow in lighter shade shows one country beginning in 1990 and ending in 2020. The dashed arrows in darker shade show the regional averages, calculated as the unweighted arithmetic mean of the values for all countries in each region along the horizontal and vertical axes. For the urban–rural difference, a positive number shows a higher urban mean height and a negative number shows higher rural mean height. See Extended Data Fig. 2 for urban–rural differences in age-standardized mean height and their change over time shown as maps, together with uncertainties in the estimates. See Supplementary Fig. 4a for results at ages 5, 10, 15 and 19 years. We did not estimate the difference between rural and urban height for countries classified as entirely urban (Bermuda, Kuwait, Nauru and Singapore) or entirely rural (Tokelau).

The urban–rural height gap in the late twentieth century among low-income and middle-income countries was determined by how much children and adolescents in cities and rural areas had approached as opposed to fallen behind their peers in high-income countries, where there was little difference between urban and rural height. In countries such as Bulgaria, Hungary and Romania, the height of children and adolescents living in urban areas approached that of high-income countries, whereas children and adolescents in rural areas lagged behind, leading to a relatively large gap. In much of sub-Saharan Africa and south Asia, the height of children and adolescents lagged behind their peers in high-income countries regardless of where they lived, such that the urban–rural gap was relatively small. In a third group of low-income or middle-income countries that included Indonesia, Vietnam, Panama, Peru, DR Congo and Rwanda, children living in urban areas remained shorter than in high-income countries, but children from rural areas lagged even further behind, such that the urban–rural gap became large.

By 2020, the urban height advantage in school ages became smaller in much of the world. In many high-income western countries and some central European countries, it disappeared or reversed into a small (typically <1 cm) urban disadvantage (Fig. 1 and Extended Data Figs. 2 and 8). Countries with substantial convergence over these three decades were in central and eastern Europe (for example, Croatia), Latin America and the Caribbean (for example, Argentina, Brazil, Chile and Paraguay), east and southeast Asia (for example, Taiwan) and for girls in central Asia (for example, Kazakhstan and Uzbekistan). The urban height advantage in the named countries declined by around 1–2.5 cm from 1990 to 2020 (the PP of urban–rural height difference having declined ≥0.90 for the named countries). In many other middle-income countries (for example, China, Romania and Vietnam), the urban–rural height gaps declined, but children and adolescents living in cities remained taller than their rural counterparts (by 1.7–2.5 cm in the named countries for boys and girls; the PP of children in cities being taller than children in rural areas in 2020 >0.99). The exception to this convergence was for boys in most countries in sub-Saharan Africa and some countries in Oceania, south Asia and the region of central Asia, Middle East and north Africa, where the urban height advantage slightly increased over these three decades. The largest increase in the urban height advantage for boys occurred in countries in east Africa such as Ethiopia (0.9 cm larger height gap in 2020 than 1990; 95% CrI −0.9 to 2.9, and PP of an increase of 0.86), Rwanda (1.0 cm larger gap, 95% CrI −0.7 to 3.0, and PP 0.88) and Uganda (1.1 cm larger gap, 95% CrI of −0.6 to 3.1, and PP 0.89). For girls, the urban–rural gap remained largely unchanged in many countries in sub-Saharan Africa and south Asia.

In middle-income countries and emerging economies (newly high-income and industrialized countries) where the height of children and adolescents residing in rural areas converged to those in cities, successive cohorts of children and adolescents living in rural areas outpaced their urban counterparts in becoming taller and attained heights that urban children in the same countries had done decades earlier: growing to heights closer to those seen in high-income countries (Figs. 2 and 3). Successive cohorts of children and adolescents residing in rural areas in sub-Saharan Africa did not experience the accelerated height gain seen in cohorts in rural areas of middle-income countries. Notably, in the case of boys living in sub-Saharan Africa, there was no gain, or possibly a decrease, in height, which in turn led to a persistence or even widening of the urban–rural gap. As a result of these global trends, by 2020, the largest urban–rural gaps in height were seen in Andean and central Latin America (for example, Bolivia, Panama and Peru, by up to 4.7 cm (95% CrI 4.0–5.5 cm) for boys and 3.8 cm (95% CrI 3.3–4.3 cm) for girls) and, especially for boys, in sub-Saharan Africa (for example, DR Congo, Ethiopia, Mozambique and Rwanda, by up to 4.2 cm (95% CrI 2.7–5.7 cm)).

Fig. 2: Urban and rural height in 2020 and the change from 1990 to 2020 for girls.
figure 2

a, Age-standardized mean height in 2020 by urban and rural place of residence for girls. The density plots show the distribution of estimates across countries. b, Age-standardized change in mean height from 1990 to 2020 by urban and rural place of residence for girls. The density plots show the distribution of estimates across countries. c, Change in mean height from 1990 to 2020 in relation to the uncertainty of the change measured by posterior standard deviation. Each point in the scatter plots shows one country. Shaded areas approximately show the PP of an estimated change being a true increase or decrease. The PP of a decrease is one minus that of an increase. If an increase in mean height is statistically indistinguishable from a decrease, the PP of an increase and a decrease is 0.50. PPs closer to 0.50 indicate more uncertainty, whereas those towards 1 indicate more certainty of change. d, Age-standardized mean height in 2020 for all countries. The height of each column is the posterior mean estimate shown together with its 95% CrI. Countries are ordered by region and super-region. See Extended Data Fig. 4 for a map of PP of the estimated change. See Supplementary Fig. 5 for results at ages 5, 10, 15 and 19 years. See Supplementary Table 3 for numerical results, including Crls, as age-standardized and at ages 5, 10, 15 and 19 years. We did not estimate mean rural height in countries classified as entirely urban (Bermuda, Kuwait, Nauru and Singapore), mean urban height in countries classified as entirely rural (Tokelau) or their change over time in these countries, as indicated in grey. Countries are labelled using their International Organization for Standardization (ISO) 3166-1 alpha-3 codes. Afghanistan, AFG; Albania, ALB; Algeria, DZA; American Samoa, ASM; Andorra, AND; Angola, AGO; Antigua and Barbuda, ATG; Argentina, ARG; Armenia, ARM; Australia, AUS; Austria, AUT; Azerbaijan, AZE; Bahamas, BHS; Bahrain, BHR; Bangladesh, BGD; Barbados, BRB; Belarus, BLR; Belgium, BEL; Belize, BLZ; Benin, BEN; Bermuda, BMU; Bhutan, BTN; Bolivia, BOL; Bosnia and Herzegovina, BIH; Botswana, BWA; Brazil, BRA; Brunei Darussalam, BRN; Bulgaria, BGR; Burkina Faso, BFA; Burundi, BDI; Cabo Verde, CPV; Cambodia, KHM; Cameroon, CMR; Canada, CAN; Central African Republic, CAF; Chad, TCD; Chile, CHL; China, CHN; Colombia, COL; Comoros, COM; Congo, COG; Cook Islands, COK; Costa Rica, CRI; Cote d'Ivoire, CIV; Croatia, HRV; Cuba, CUB; Cyprus, CYP; Czechia, CZE; Denmark, DNK; Djibouti, DJI; Dominica, DMA; Dominican Republic, DOM; DR Congo, COD; Ecuador, ECU; Egypt, EGY; El Salvador, SLV; Equatorial Guinea, GNQ; Eritrea, ERI; Estonia, EST; Eswatini, SWZ; Ethiopia, ETH; Fiji, FJI; Finland, FIN; France, FRA; French Polynesia, PYF; Gabon, GAB; Gambia, GMB; Georgia, GEO; Germany, DEU; Ghana, GHA; Greece, GRC; Greenland, GRL; Grenada, GRD; Guatemala, GTM; Guinea Bissau, GNB; Guinea, GIN; Guyana, GUY; Haiti, HTI; Honduras, HND; Hungary, HUN; Iceland, ISL; India, IND; Indonesia, IDN; Iran, IRN; Iraq, IRQ; Ireland, IRL; Israel, ISR; Italy, ITA; Jamaica, JAM; Japan, JPN; Jordan, JOR; Kazakhstan, KAZ; Kenya, KEN; Kiribati, KIR; Kuwait, KWT; Kyrgyzstan, KGZ; Lao PDR, LAO; Latvia, LVA; Lebanon, LBN; Lesotho, LSO; Liberia, LBR; Libya, LBY; Lithuania, LTU; Luxembourg, LUX; Madagascar, MDG; Malawi, MWI; Malaysia, MYS; Maldives, MDV; Mali, MLI; Malta, MLT; Marshall Islands, MHL; Mauritania, MRT; Mauritius, MUS; Mexico, MEX; Micronesia (Federated States of), FSM; Moldova, MDA; Mongolia, MNG; Montenegro, MNE; Morocco, MAR; Mozambique, MOZ; Myanmar, MMR; Namibia, NAM; Nauru, NRU; Nepal, NPL; Netherlands, NLD; New Zealand, NZL; Nicaragua, NIC; Niger, NER; Nigeria, NGA; Niue, NIU; North Korea, PRK; North Macedonia, MKD; Norway, NOR; Occupied Palestinian Territory, PSE; Oman, OMN; Pakistan, PAK; Palau, PLW; Panama, PAN; Papua New Guinea, PNG; Paraguay, PRY; Peru, PER; Philippines, PHL; Poland, POL; Portugal, PRT; Puerto Rico, PRI; Qatar, QAT; Romania, ROU; Russian Federation, RUS; Rwanda, RWA; Saint Kitts and Nevis, KNA; Saint Lucia, LCA; Samoa, WSM; Sao Tome and Principe, STP; Saudi Arabia, SAU; Senegal, SEN; Serbia, SRB; Seychelles, SYC; Sierra Leone, SLE; Singapore, SGP; Slovakia, SVK; Slovenia, SVN; Solomon Islands, SLB; Somalia, SOM; South Africa, ZAF; South Korea, KOR; South Sudan, SSD; Spain, ESP; Sri Lanka, LKA; Saint Vincent and the Grenadines, VCT; Sudan, SDN; Suriname, SUR; Sweden, SWE; Switzerland, CHE; Syrian Arab Republic, SYR; Taiwan, TWN; Tajikistan, TJK; Tanzania, TZA; Thailand, THA; Timor-Leste, TLS; Togo, TGO; Tokelau, TKL; Tonga, TON; Trinidad and Tobago, TTO; Tunisia, TUN; Turkey, TUR; Turkmenistan, TKM; Tuvalu, TUV; Uganda, UGA; Ukraine, UKR; United Arab Emirates, ARE; United Kingdom, GBR; United States of America, USA; Uruguay, URY; Uzbekistan, UZB; Vanuatu, VUT; Venezuela, VEN; Vietnam, VNM; Yemen, YEM; Zambia, ZMB.

Fig. 3: Urban and rural height in 2020 and change from 1990 to 2020 for boys.
figure 3

ad, See the caption for Fig. 2 for descriptions of the contents of the figure and for definitions. We did not estimate mean rural height in countries classified as entirely urban (Bermuda, Kuwait, Nauru and Singapore), mean urban height in countries classified as entirely rural (Tokelau) or their change over time, as indicated in grey.

The urban–rural BMI difference was relatively small throughout these three decades, <1.4 kg m–2 in all countries and years and <1.1 kg m–2 in all but nine countries, for age-standardized mean BMI (Fig. 4 and Extended Data Figs. 3 and 9). In 1990, the urban–rural BMI gap was largest in sub-Saharan Africa (for example, Ethiopia, Kenya, Malawi, South Africa and Zimbabwe) and south Asia (for example, Bangladesh and India), followed by parts of Latin America (for example, Mexico and Peru). The urban–rural BMI gap in the two sexes in the named countries ranged from 0.4 to 1.2 kg m–2, and the PP of children and adolescents living in urban areas having a higher BMI than those in rural areas was ≥0.89. At that time, girls and/or boys in rural areas of some of these countries had mean BMI levels that were close to, and in some ages below, the thresholds of being underweight (>1 s.d. below the median of the World Health Organization (WHO) reference population).

Fig. 4: Change in the urban–rural BMI difference from 1990 to 2020.
figure 4

a,b, Change in urban–rural difference in age-standardized mean BMI for girls (a) and boys (b) in relation to change in age-standardized mean rural BMI. See the caption for Fig. 1 for a description of the contents of this figure. See Extended Data Fig. 3 for urban–rural differences in age-standardized mean BMI and their change over time shown as maps, together with uncertainties in the estimates. See Supplementary Fig. 4b for results at ages 5, 10, 15 and 19 years. We did not estimate the difference between rural and urban BMI for countries classified as entirely urban (Bermuda, Kuwait, Nauru and Singapore) or entirely rural (Tokelau).

From 1990 to 2020, the BMI of successive cohorts of children and adolescents in both urban and rural areas increased in all but a few mostly high-income countries (for example, Denmark, Italy and Spain) (Figs. 5 and 6). There was heterogeneity in low-income and middle-income countries in how much the BMI increased in cities compared with rural areas. In the majority of countries in sub-Saharan Africa and south Asia, the BMI of successive cohorts of children and adolescents increased more in rural areas than in cities, leading to a closing of the urban–rural difference. The urban–rural BMI gap declined by up to 0.65 kg m–2 for both girls and boys, and the PP that the urban–rural BMI difference declined from 1990 to 2020 ranged from 0.52 to 0.95. In both sub-Saharan Africa and south Asia, these changes shifted the mean BMI of boys and girls in rural areas out of the range for being underweight. Moreover, in many countries in sub-Saharan Africa, this shift continued beyond the median of the WHO reference population and in some cases approached the threshold for being overweight (>1 s.d. above the median of the WHO reference population). The opposite, a larger increase in urban BMI, happened in most other low-income and middle-income countries, leading to a slightly larger urban BMI excess in 2020 than in 1990. High-income countries and those in central and eastern Europe experienced a mix of increasing and decreasing urban BMI excess, but remained within a small range (−0.3 to 0.6 kg m–2 for almost all countries) over the entire period of analysis. At the regional level, the urban–rural BMI difference changed by <0.25 kg m–2 in these regions.

Fig. 5: Urban and rural BMI in 2020 and change from 1990 to 2020 for girls.
figure 5

ad, See the caption for Fig. 2 for descriptions of the contents of the figure and for definitions. See Extended Data Fig. 5 for a map of PP of the estimated change. See Supplementary Fig. 6 for results at ages 5, 10, 15 and 19 years. See Supplementary Table 4 for numerical results, including CrIs, as age-standardized and at ages 5, 10, 15 and 19 years. We did not estimate mean rural BMI in countries classified as entirely urban (Singapore, Bermuda and Nauru), mean urban BMI in areas classified as entirely countries (Tokelau) or their change over time, as indicated in grey.

Fig. 6: Urban and rural BMI in 2020 and change from 1990 to 2020 for boys.
figure 6

ad, See the caption for Fig. 2 for descriptions of the contents of the figure and for definitions. We did not estimate mean rural BMI in countries classified as entirely urban (Singapore, Bermuda and Nauru), mean urban BMI in countries classified as entirely rural (Tokelau) or their change over time, as indicated in grey.

The urban height advantage was larger in boys than girls in most countries (Supplementary Fig. 3). Urban excess BMI was larger in boys than girls in only about one-half of the countries. For the other half, mostly in high-income western countries and those in sub-Saharan Africa, urban excess BMI was larger in girls than boys. The urban height advantage was slightly larger at 5 years of age than at 19 years of age in most low-income and middle-income countries, especially for girls, but there was little difference across ages in high-income regions and in central and eastern Europe (Supplementary Fig. 4).

Since the introduction of modern sanitation in the nineteenth century, cities provided substantial nutritional and health advantages in high-income and subsequently low-income and middle-income countries19. Our results show that in the twenty-first century, during school ages, these advantages have disappeared in high-income countries and diminished in middle-income countries and emerging economies in Asia, Latin America and the Caribbean, and parts of Middle East and north Africa. Specifically, in these settings, successive cohorts of school-aged children and adolescents living in cities were outpaced by those in rural areas in terms of height gain but gained slightly more weight by 2020, typically in the unhealthy range (Fig. 7). This contrasted with the poorest region in the world: sub-Saharan Africa. In this region, the urban height advantage persisted or even expanded, whereas rural mean BMI went beyond remedying underweight and surpassed the median of the WHO reference population in 2020, hence consolidating the urban advantage. South Asia had a mixed pattern of urban versus rural trends from 1990 to 2020, with children and adolescents in rural areas gaining both more height and more weight for their height than those in cities. Notably, our results also show that differences in height and BMI between urban and rural populations within most countries are smaller than the differences across countries, even those in the same region.

Fig. 7: Change in the urban–rural height and BMI difference from 1990 to 2020.
figure 7

a,b, Change in the urban–rural difference in age-standardized mean height and the urban–rural difference in age-standardized mean BMI in girls (a) and boys (b). See the caption for Fig. 1 for a description of the contents of this figure. See Supplementary Fig. 4c for results at ages 5, 10, 15 and 19 years. We did not estimate the difference between rural and urban height and BMI for countries classified as entirely urban (Bermuda, Kuwait, Nauru and Singapore) or entirely rural (Tokelau).

We also found that the urban–rural BMI gap, although dynamic, changed much less than the BMI of either subgroup of the population and less than commonly assumed when discussing the role of cities in the obesity epidemic8,10,12,13,15,16. Urban–rural BMI differences were especially small in high-income countries, which is consistent with evidence from a few countries that show diets and behaviours are affected more by household socioeconomic status than whether children and adolescents live in cities or rural areas29,30. Urban BMI excess increased slightly more in middle-income countries in east and southeast Asia, Latin America and the Caribbean, and Middle East and north Africa, a trend that was the opposite of the convergence in BMI of adults in these same regions21. Additional analyses of data collected by the NCD Risk Factor Collaboration (NCD-RisC) for young adults (20–29 and 30–39 years) showed that the shift from a small divergent trend to convergence of BMI between urban and rural areas happens in young adulthood (Extended Data Figs. 6 and  7), a period during which there is substantial, but variable, weight gain among population subgroups31. These shifts in trends from adolescence to young adulthood might be a result of changes in diet and energy expenditure that accompany changes in household structure, social and economic roles and the living environment32,33,34.

Long-term follow-up studies have shown that children and adolescents do not achieve their height potential if they do not consume sufficient and diverse nutritious foods or if they are exposed to repeated or persistent infections, which result in loss of nutrients2. Studies that use data on household socioeconomic and environmental factors have indicated that these physiological determinants of height are themselves affected by income, education, quality of the living environment and access to healthcare in rural as well as urban areas35. This evidence indicates that the relatively small urban–rural height differentials in high-income countries may be because of a greater abundance of nutritious foods, including some fortified foods, better education and healthcare and greater ability to finance programmes that promote healthy growth in countries with greater per-capita income and better infrastructure. Variations across these countries in the urban–rural height gap within this small range may be due to the extent of socioeconomic inequalities and poverty, differences in the availability and cost of nutritious foods between cities and rural areas and whether there are specific programmes (for example, food assistance or school food programmes) that improve nutrition in disadvantaged groups30,36,37. The more marked changes in height in urban versus rural areas took place in middle-income countries and emerging economies. Case studies in some countries where the heights of children and adolescents living in rural and urban areas converged show that the convergence was partly due to using the growth in national income towards programmes and services that helped close gaps in nutrition, sanitation and healthcare between different areas and social groups38,39,40. In countries in central and eastern Europe, transition to a market economy and increases in trade may have reduced the disparity in access to, and seasonality of, healthy foods between urban and rural areas41, and partly underlie the convergence of height seen in our results. By contrast, case studies in some countries have shown that where economic growth was accompanied by large inequalities in income, nutrition and/or services, the urban advantage persisted42,43,44.

The notable exception in the global trends was sub-Saharan Africa, where a stagnation or reversal of height gain in rural areas led to the persistence or widening of urban–rural height differences, whereas the opposite happened for BMI (Fig. 7). Case studies of specific countries have indicated that unfavourable trends in nutrition in rural Africa, where the majority of the poorest people in the world live, started from macroeconomic shocks in the late twentieth century45 and subsequent agriculture, trade and development policies that limited improvements in income and services, and emphasized agricultural exports over local food security and diversity45. These macroeconomic factors in turn led to less diverse diets, with higher caloric intake rather than a shift to protein-rich and nutrient-rich foods (for example, animal products, seafood, fruits and vegetables)46,47,48. Moreover, the slow expansion of infrastructure and services in rural areas restricted improvements in other determinants of healthy growth, such as clean water, sanitation and health care49.

Several other factors may have had a secondary role in the observed trends in height and BMI and their difference in rural and urban areas. First, weight gain during childhood may reduce the age of puberty onset, which in turn may limit height gain during adolescence50,51. No comparable global data currently exist on age at menarche and timing of pubertal growth, even at the national level. Second, rural-to-urban migration and reclassification of previously rural areas to urban as they grow and industrialize may account for some of the observed population-level trends. However, migration tends to be less common in childhood and adolescence than in adulthood in most countries. Finally, improvements in survival among children aged under 5 years in rural areas, particularly low-birthweight children, may have influenced the height and weight of those who survive beyond 5 years of age. However, current data on changes in child survival in rural and urban areas in sub-Saharan Africa are limited and inconclusive in terms of whether mortality declined faster in rural or urban areas52,53.

As attention in global health turns to children and adolescents, there is a need to consider and evaluate how growth and development in these formative ages may be affected both by social and economic policies that influence household income and poverty and by programmes that affect nutrition, health services, infrastructure and living environments in rural and urban areas. The need to identify, implement and evaluate policies and programmes that improve growth and development outcomes is particularly relevant as the increase in poverty and the cost of food, especially of nutrient-rich foods, as a result of the macroeconomic changes resulting from the COVID-19 pandemic and the war in Ukraine, may hinder further gains or even set back healthy growth and development in children and adolescents.

Methods

We estimated trends in mean height and BMI for children and adolescents aged 5–19 years from 1990 to 2020 by rural and urban place of residence for the 200 countries and territories listed in Supplementary Table 1. We pooled, in a Bayesian meta-regression, repeated cross-sectional population-based data on height and BMI. Our results represent estimates of height and BMI for children and adolescents of the same age over time (that is, for successive cohorts) in rural and urban settings for each country.

Data sources

We used a database on cardiometabolic risk factors collated by NCD-RisC. Data were obtained from publicly available multi-country and national measurement surveys, for example, Demographic and Health Surveys (DHS), WHO-STEPwise approach to Surveillance (STEPS) surveys, and those identified through the Inter-University Consortium for Political and Social Research, UK Data Service and European Health Interview & Health Examination Surveys Database. With the help of the WHO and its regional and country offices as well as the World Heart Federation, we identified and accessed population-based survey data from national health and statistical agencies. We searched and reviewed published studies as previously detailed54 and invited eligible studies to join NCD-RisC, as we did with data holders from earlier pooled analyses of cardiometabolic risk factors55,56,57,58. The NCD-RisC database is continuously updated through all the above routes and through periodic requests to NCD-RisC members to ask them to suggest additional sources in their countries.

We carefully checked that each data source met our inclusion criteria, as listed below. Potential duplicate data sources were first identified by comparing studies from the same country and year, followed by checking with NCD-RisC members that had provided data about whether the sources from the same country and year, with similar samples, were the same or distinct. If two sources were confirmed as duplicates, one was discarded. All NCD-RisC members were also periodically asked to review the list of sources from their country to verify that the included data met the inclusion criteria and were not duplicates.

For each data source, we recorded the study population, the sampling approach, the years of measurement and the measurement methods. Only data that were representative of the population were included. All data sources were assessed in terms of whether they covered the entire country, one or more subnational regions (that is one or more provinces or states, more than three cities, or more than five rural communities), or one or a small number of communities (limited geographical scope not meeting above national or subnational criteria), and whether participants in rural, urban or both areas were included. As stated in the sections on the statistical model, these study-level attributes were used in the Bayesian hierarchical model to estimate mean height and BMI by country, year, sex, age and place of residence using all available data while taking into account differences in the populations from which different studies had sampled. All submitted data were checked by at least two independent individuals. Questions and clarifications were discussed with NCD-RisC members and resolved before data were incorporated into the database.

Anonymized individual data from the studies in the NCD-RisC database were re-analysed according to a common protocol. We calculated the mean height and the mean BMI, and the associated standard errors, by sex, single year of age from 5 to 19 years and rural or urban place of residence. Additionally, for analysis of height, participants aged 20–30 years were included, assigned to their corresponding birth cohort, because mean height in these ages would be at least that when they were aged 19 years given that the decline in height with age begins in the third and fourth decades of life59. All analyses incorporated sample weights and complex survey design, when applicable, in calculating summary statistics. For studies that had used simple random sampling, we calculated the mean as the average of all individuals within the group and the associated standard error (s.d. divided by the square root of sample size); for studies that had used multistage (stratified) sampling, we accounted for survey design features, including clusters, strata and sample weights, to weight each observation by the inverse sampling probability and estimated standard error through Taylor series linearization, as implemented in the R ‘survey’ package60. Computer code was provided to NCD-RisC members who requested assistance. For surveys without information on the place of residence, we calculated summary statistics stratified by age and sex for the entire sample, which represented the population-weighted sum of rural and urban means; data on the share of population in urban and rural areas were from the United Nations Population Division61.

Additionally, summary statistics for nationally representative data from sources that were identified but not accessed using the above routes were extracted from published reports. Data were also extracted for two STEPS surveys that were not publicly available. We also included data from a previous global-data pooling study58, when not accessed through the above routes.

Data inclusion and exclusion

Data sources were included in the NCD-RisC height and weight database if the following criteria were met: measured data on height and weight were available; study participants were 5 years of age or older; data were collected using a probabilistic sampling method with a defined sampling frame; data were from population samples at the national, subnational or community level as defined above; and data were from the countries and territories listed in Supplementary Table 1.

We excluded all data sources that were solely based on self-reported weight and height without a measurement component because these data are subject to biases that vary by geography, time, age, sex and socioeconomic characteristics62,63,64. Owing to these variations, approaches to correcting self-reported data may leave residual bias. We also excluded data sources on population subgroups for which anthropometric status may differ systematically from the general population, including the following: studies that had included or excluded people based on their health status or cardiovascular risk; studies in which participants were only ethnic minorities; specific educational, occupational or socioeconomic subgroups (with the exception noted below); those recruited through health facilities (with the exception noted below); and females aged 15–19 years in surveys that sampled only ever-married women or measured height and weight only among mothers.

We used school-based data in countries and age–sex groups with school enrolment of 70% or higher. We used data for which the sampling frame was health insurance schemes in countries where at least 80% of the population were insured. Finally, we used data collected through general practice and primary care systems in high-income and central European countries with universal insurance because contact with the primary care systems tends to be as good as or better than response rates for population-based surveys.

We excluded participants whose age was <18 years and whose data were not reported by single year of age (<0.01% of all participants) because height and weight may have nonlinear age associations in these ages, especially during growth spurts. We excluded BMI data for females who were pregnant at the time of measurement (<0.01% of all participants). We excluded <0.2% of all participants who had recorded height: <60 cm or >180 cm for ages <10 years; <80 cm or >200 cm for ages 10–14 years; <100 cm or >250 cm for ages ≥15 years, or who had recorded weight: <5 kg or >90 kg for age <10 years; <8 kg or >150 kg for ages 10–14 years; <12 kg or >300 kg for ages ≥15 years, or who had recorded BMI: <6 kg m–2 or >40 kg m–2 for ages <10 years; <8 kg m–2 or >60 kg m–2 for ages 10–14 years; <10 kg m–2 or >80 kg m–2 for ages ≥15 years.

Conversion of BMI prevalence metrics to mean BMI

In 0.5% of our data points, mostly extracted from published reports or from a previous pooling analysis58, the mean BMI was not reported but data were available for the prevalence of one or more BMI categories, for example BMI ≥30 kg m–2. To use these data, we used previously validated conversion regressions65 to estimate the missing primary outcome from the available BMI prevalence metric or metrics. Additional details on regression model specifications along with the regression coefficients are reported at https://github.com/NCD-RisC/ncdrisc-methods/.

Statistical model overview

We used a Bayesian hierarchical meta-regression model to estimate the mean height and BMI by country, year, sex, age and place of residence using the aforementioned data. For presentation, we summarized the 15 age-specific estimates, for single years of age from 5 to 19 years, through age standardization, which puts the child and adolescent population for each country-year on the same age distribution, and hence enables comparisons to be made over time and across countries. We generated age-standardized estimates by taking weighted means of age-specific estimates using age weights from the WHO standard population66. We also show results, graphically and numerically, for index ages of 5, 10, 15 and 19 years in the Supplementary Information.

The statistical model is described in detail in statistical papers67,68, related substantive papers7,20,21,55,56,57,58,65,69 and in the section below on model specification. In summary, the model had a hierarchical structure in which estimates for each country and year were informed by its own data, if available, and by data from other years in the same country and from other countries, especially those in the same region and super-region, with data for similar time periods. The extent to which estimates for each country-year were influenced by data from other years and other countries depended on whether the country had data, the sample size of the data, whether they were national, and the within-country and within-region variability of the available data. For the purpose of hierarchical analysis, countries and territories were organized into 21 regions, mostly based on geography and national income (Supplementary Table 1). Regions were in turn organized into nine super-regions.

We used observation year, that is, the year in which data were collected, as the timescale for the analysis of BMI and birth year as the timescale for the analysis of height, consistent with previous analyses7,65,70. Time trends were modelled through a combination of a linear term, to capture gradual long-term change, and a second-order random walk, which allows for nonlinear trends71, both modelled hierarchically. The age associations of height and BMI were modelled, using cubic splines, to allow for nonlinear changes over age, including periods of rapid and slow rise. Periods of rapid rise representing adolescent growth spurts, which occur earlier in girls than boys72,73,74, were reflected in the placement of spline knots for boys and girls, respectively, as detailed in the section on model specification. Spline coefficients were allowed to vary across countries, informed by their own data as well as data from other countries as specified by a hierarchical structure, as previously described69.

The model also accounted for the possibility that height or BMI in subnational and community samples might differ systematically from nationally representative samples and have larger variation than in national studies. These features were accounted for through the inclusion of fixed-effect and random-effect terms for subnational and community data as detailed in the model specification section below. The fixed effects accounted for systematic differences between subnational or community studies and national studies. The inclusion of random effects allowed national data to have greater influence on the estimates than subnational or community data with similar sample sizes because the subnational and community data have additional variance from the random-effect terms. Both were estimated empirically as a part of model fitting.

Following the approach of previous papers20,21,67, the model included parameters representing the urban–rural height or BMI difference, which is empirically estimated and allowed to vary by country and year. We further expanded the model to allow urban–rural difference in height or BMI to vary by age, as height or weight with age may vary between children residing in rural versus urban areas. If data for a country-year-age group contained a mix of children living in urban and rural areas but were not stratified by place of residence (21% of all data sources), the estimated height or BMI difference was informed by stratified data from other age groups, years and countries, especially those in the same region with data from similar time periods and/or ages.

Statistical model specification

As stated earlier, for each data source, we calculated mean height and BMI, together with corresponding standard errors, stratified by sex, age and rural or urban place of residence. For sources that did not stratify the sample on the place of residence, we obtained age-and-sex-stratified data. Each study contributed up to 30 mean BMI data points or 32 mean height data points for each sex, with the exact number depending on how many age groups were represented in the study and whether the study provided data stratified on urban and rural place of residence. The likelihood for an observation at urbanicity level s (urban-only, rural-only or mixed; referred to as stratum hereafter) and age group h, with age zh, from study i, carried out in country j at time t is as follows:

$$\begin{array}{c}{y}_{s,h,i}\sim N({a}_{j[i]}+{b}_{j[i]}{t}_{i}+{u}_{j[i],{t}_{i}}+{\gamma }_{i}({z}_{h})+{{\boldsymbol{X}}}_{{\boldsymbol{i}}}\,{\boldsymbol{\beta }}+{e}_{i}\\ \,\,+{I}_{s,i}[{p}_{j[i]}+{q}_{j[i]}{t}_{i}+{r}_{j[i]}{z}_{h}+{d}_{i}],{{\rm{S}}{\rm{D}}}_{s,h,i}^{2}/{n}_{s,h,i}+\,{\tau }^{2}),\end{array}$$

where the country-specific intercept and linear time slope from the jth country (j = 1 … J, where J = 200 which is the total number of countries in our analysis) are denoted \({a}_{j}\) and \({b}_{j}\), respectively. We describe the hierarchical model used for the \({a}^{{\prime} }\)s and \({b}^{{\prime} }s\) in the section ‘Linear components of country time trends’. Letting T = 31 be the total number of years from 1990 to 2020, the T-length vector \({u}_{j}\) captures smooth nonlinear change over time in country j, as described in the section ‘Nonlinear change’. The age effects of the hth age group (with age \({z}_{h}\)) in study \(i\) are denoted by \({\gamma }_{i}\); we describe the age model in the section ‘Age model’. The matrix \({\boldsymbol{X}}\) contains terms describing whether studies were representative at the national, subnational or community level. In addition, a random effect, \({e}_{i}\), is estimated for each study, described in the section ‘Study-level term and study-specific random effects’.

Linear components of country time trends

The model had a hierarchical structure, whereby studies were nested in countries, which were nested in regions (indexed by k), which were nested in super-regions (indexed by l), which were all nested in the globe (see Supplementary Table 1 for a list of countries and territories in each region, and regions in each super-region). This structure allowed the model to share information across units to a greater degree when data were non-existent or weakly informative (for example, had a small sample size or were not nationally representative) and, to a lesser extent, in data-rich countries and regions75.

The \(a\) and \(b\) terms are country-specific linear intercepts and time slopes with terms at each level of the hierarchy, denoted by the superscripts c, r, s and g, respectively:

$$\begin{array}{l}\,{a}_{j}={a}_{j}^{c}+{a}_{k[\,j]}^{r}+{a}_{l[k]}^{s}+{a}^{{\rm{g}}},\\ \,{b}_{j}={b}_{j}^{c}+{b}_{k[\,j]}^{r}+{b}_{l[k]}^{s}+{b}^{{\rm{g}}},\\ {a}_{j}^{x}\sim N(0,{\kappa }_{a}^{x}),\\ {b}_{j}^{x}\sim N(0,{\kappa }_{b}^{x}),\end{array}$$

where x = {c, r, s}.

The \(\kappa \) terms were each assigned a flat prior on the s.d. scale76. We also assigned flat priors to \({a}^{{\rm{g}}}\) and \({b}^{{\rm{g}}}\).

Nonlinear change

Mean BMI or height may change nonlinearly over time7,54,58,65,70. We captured smooth nonlinear change in time in urban and rural strata of country j using the vector \({u}_{j}\). Just as \({a}_{j}\) and \({b}_{j}\) are each defined as the sum of country, region, super-region and global components, we defined

$${u}_{j}={u}_{j}^{c}+{u}_{k[\,j]}^{r}+{u}_{l[k]}^{s}+{u}^{{\rm{g}}}.$$

To allow the model to differentiate between the degrees of nonlinearity that exist at the country, region, super-region and global levels, we assigned the four components of each \(u\) a Gaussian autoregressive prior71,77. In particular, the \(T\) vectors \({u}_{j}^{c}\) (j = 1 … J), \({u}_{k}^{r}\) (k = 1 … K), \({u}_{l}^{s}\) (l = 1 … L) and \({u}^{{\rm{g}}}\) each have a normal prior with mean zero and precision \({\lambda }_{{\rm{c}}}P\), \({\lambda }_{{\rm{r}}}P\), \({\lambda }_{{\rm{s}}}P\) and \({\lambda }_{{\rm{g}}}P\), respectively, where the scaled precision matrix \(P\) in the Gaussian autoregressive prior penalizes first and second differences as follows:

$$\begin{array}{c}P\,=\,[\begin{array}{ccccc}\,1 & \,0 & \,0 & \,\cdots & \,0\\ -2 & \,1 & \,0 & \,\cdots & \,0\\ \,1 & -2 & \,1 & \,\cdots & \,0\\ \,0 & \,1 & -2 & \,\cdots & \,0\\ \,0 & \,0 & \,1 & \,\cdots & \,0\\ \,\vdots & \,\vdots & \,\vdots & \,\ddots & \,\vdots \\ \,0 & \,0 & \,0 & \,\cdots & \,1\end{array}]\,[\begin{array}{ccccccc}\,1 & -2 & \,1 & \,0 & \,0 & \,\cdots & \,0\\ \,0 & \,1 & -2 & \,1 & \,0 & \,\cdots & \,0\\ \,0 & \,0 & \,1 & -2 & \,1 & \,\cdots & \,0\\ \,\vdots & \,\vdots & \,\vdots & \,\vdots & \,\vdots & \,\ddots & \,\vdots \\ \,0 & \,0 & \,0 & \,0 & \,0 & \,\cdots & \,1\end{array}]\\ \,=\,[\begin{array}{ccccccc}\,1 & -2 & \,1 & \,0 & \,0 & \,\cdots & \,0\\ -2 & \,5 & -4 & \,1 & \,0 & \,\cdots & \,0\\ \,1 & -4 & \,6 & -4 & \,1 & \,\cdots & \,0\\ \,0 & \,1 & -4 & \,6 & -4 & \,\cdots & \,0\\ \,0 & \,0 & \,1 & -4 & \,6 & \,\cdots & \,0\\ \,\vdots & \,\vdots & \,\vdots & \,\vdots & \,\vdots & \,\ddots & \,\vdots \\ \,0 & \,0 & \,0 & \,0 & \,0 & \,\cdots & \,1\end{array}].\end{array}$$

P is multiplied by the estimated precision parameters \({\lambda }_{{\rm{c}}}\), \({\lambda }_{{\rm{r}}}\), \({\lambda }_{{\rm{s}}}\) and \({\lambda }_{{\rm{g}}}\), thus upweighting or downweighting the strength of its penalties and ultimately determining the degree of smoothing at each level. For each of the four precision parameters, we used a truncated flat prior on the s.d. scale (\(1/\surd \lambda \))76. We truncated these priors such that log\(\lambda \) ≤ 20 for each of the four \({\lambda }^{{\prime} }s\). This upper bound is enforced as a computational convenience, whereby models with log\(\lambda \) > 20 are treated as equivalent to a model with log\(\lambda \) = 20 as they essentially have no extralinear variability in time. In practice, this upper bound had little effect on the parameter estimates. Furthermore, we ordered the \({\lambda }^{{\prime} }s\) a priori as follows: \({\lambda }_{{\rm{c}}}\) < \({\lambda }_{{\rm{r}}}\) < \({\lambda }_{{\rm{s}}}\) < \({\lambda }_{{\rm{g}}}\). This prior constraint conveys the natural expectation that, for example, the global height or BMI trend has less extralinear variability than the trend of any given region, which in turn has less variability than those of constituent countries.

The matrix \(P\) has rank \(T\) − 2, corresponding to a flat, improper prior on the mean and the slope of the \({u}_{j}^{{\rm{c}}}\)’s, the \({u}_{k}^{{\rm{r}}}\)’s and the \({u}_{l}^{{\rm{s}}}\)’s and \({u}^{{\rm{g}}}\), and is not invertible78. Thus, we had a proper prior in a reduced-dimension space71, with the prior expressed as follows:

$$P({u}_{j}^{{\rm{c}}}| {\lambda }_{{\rm{c}}})\propto {\lambda }_{{\rm{c}}}^{\frac{T-2}{2}}\exp \left\{-\frac{{\lambda }_{{\rm{c}}}}{2}{u}_{j}^{{\rm{c}}{\prime} }P{u}_{j}^{{\rm{c}}}\right\}.$$

Note that if \({u}_{j}^{{\rm{c}}}\) had a non-zero mean, this would introduce non-identifiability with respect to \({a}_{j}^{{\rm{c}}}\). By the same token, \({b}_{j}^{{\rm{c}}}\) would not be identifiable if \({u}_{j}\) had a non-zero time slope, and similarly for the other means and slopes. Thus, to achieve identifiability of the \({a}^{{\prime} }s\), \({b}^{{\prime} }s\), and \({u}^{{\prime} }{\rm{s}}\), we constrained the mean and slope of \({u}^{{\rm{g}}}\) and of each \({u}^{{\rm{s}}}\), \({u}^{{\rm{r}}}\) and \({u}^{{\rm{c}}}\) to be zero. Enforcing orthogonality between the linear and nonlinear portions of the time trends meant that each can be interpreted independently.

For the cases in which we have observations for at least two different time points, this improper prior will not lead to an improper posterior because the data will provide information about the mean and slope. In order to enforce the desired orthogonality between the linear and nonlinear portions of the model, we constrained the mean and slope of the \({u}_{j}^{{\rm{c}}}\)’s, \({u}_{k}^{{\rm{r}}}\)’s and \({u}_{l}^{{\rm{s}}}\)’s and of \({u}^{{\rm{g}}}\) to be zero71.

For the six countries with no height data, and seven countries with no BMI data, we took the Moore–Penrose pseudoinverse of P 79, setting to infinity those eigenvalues that correspond to the non-identifiability. This effectively constrained the non-identified portions of the model to zero, as the corresponding variances are set to zero77; in this case the Rue and Held correction71 is not needed. An intermediate case occurs when data are observed for only one time point in a country. In this case, the full conditional precision has rank \(T-1\) because the mean but not the linear trend of \({u}_{j}^{{\rm{c}}}\) is identified by the data. We therefore constrained the linear trend of \({u}_{j}^{{\rm{c}}}\) to zero by taking the generalized inverse of the full conditional precision. We then constrained the mean of \({u}_{j}^{{\rm{c}}}\) to zero using the one-dimensional version of the Rue and Held correction71.

Age model

To capture sex-specific patterns of growth, especially adolescent growth spurts, we modelled age using cubic splines. The number and position of the knots of the splines were selected on the basis of a combination of physiological and statistical considerations, as described in a national level analysis7. For age group h with age zh, in study i, the age effect for height and BMI is given, respectively, as follows:

$$\begin{array}{l}{\gamma }_{i}({z}_{h})={\gamma }_{1i}\,{z}_{h}+{\gamma }_{2i}{z}_{h}^{2}+{\gamma }_{3i}{z}_{h}^{3}+{\gamma }_{4i}{({z}_{h}-{k}_{1})}_{+}^{3}+{\gamma }_{5i}{({z}_{h}-{k}_{2})}_{+}^{3}+{\gamma }_{6i}{({z}_{h}-{k}_{3})}_{+}^{3}+{\gamma }_{7i}{({z}_{h}-{k}_{4})}_{+}^{3},\end{array}$$
(height)
$$\begin{array}{l}{\gamma }_{i}({z}_{h})={\gamma }_{1i}\,{z}_{h}+{\gamma }_{2i}{z}_{h}^{2}+{\gamma }_{3i}{z}_{h}^{3}+{\gamma }_{4i}{({z}_{h}-{k}_{1})}_{+}^{3}+{\gamma }_{5i}{({z}_{h}-{k}_{2})}_{+}^{3}.\end{array}$$
(BMI)

For height, four spline knots were placed at ages {\({k}_{1},{k}_{2},{k}_{3},{k}_{4}\}\,=\)\(\{\,8,\,10,\,12,14\}\) for girls and at ages {\({k}_{1}\),\({k}_{2},{k}_{3},{k}_{4}\}=\{10,12,14,16\}\) for boys. For BMI, we used two spline knots (at ages 10 and 15 years) because, at the population level, changes in BMI with age are smoother than those in height7,72,73. Each of the spline coefficients was allowed to vary across countries, with a hierarchical structure as described in a previous paper69, using the equation below, where \(\psi \) is the global intercept, and \(c,r\,{\rm{and}}\,s\) are the country, region and super-region random intercepts, respectively. The kth age effect coefficients for study (\({\gamma }_{k,i}\)) for each age group h, with age zh, are given as follows:

$$\begin{array}{l}{\gamma }_{k,i}={\psi }_{k}+{c}_{k,j[i]}+{r}_{k,l[i]}+{s}_{k,m[i]},\\ {c}_{k,j} \sim N(0,{\sigma }_{k,c}^{2}),\\ {r}_{k,l} \sim N(0,{\sigma }_{k,r}^{2}),\\ {s}_{k,l} \sim N(0,{\sigma }_{k,s}^{2}).\end{array}$$

A flat improper prior was placed on each of the \({{\sigma }}_{k}\)’s .

Study-level term and study-specific random effects

Mean height or BMI from individual studies may deviate from the true country-year mean owing to factors associated with sampling, response or measurement. We used a study-level term to help account for potential systematic differences associated with data sources that are representative of subnational and community populations. Our model therefore included time-varying offsets (referred to as fixed effects above) for subnational and community data in the term \({{\boldsymbol{X}}}_{{\boldsymbol{i}}}{\boldsymbol{\beta }}\):

$$\begin{array}{l}{{\boldsymbol{X}}}_{{\boldsymbol{i}}}{\boldsymbol{\beta }}={\beta }_{1}I\{{X}_{j[i],t[i]}^{{\rm{cvrg}}}={\rm{subnational}}\}+{\beta }_{2}I\{{X}_{j[i],t[i]}^{{\rm{cvrg}}}={\rm{subnational}}\}{t}_{i}\\ \,+\,{\beta }_{3}I\{{X}_{j[i],t[i]}^{{\rm{cvrg}}}={\rm{community}}\}+{\beta }_{4}I\{{X}_{j[i],t[i]}^{{\rm{cvrg}}}={\rm{community}}\}{t}_{i},\end{array}$$

where \({X}_{j\left[i\right],t\left[i\right]}^{{\rm{cvrg}}}\) is the indicator for whether the coverage of study i, in country j and year t, is subnational or community.

Even after accounting for sampling variability, national studies may still not reflect the true mean height or BMI level of a country with perfect accuracy, and subnational and community studies have even larger variability. In study i, the study-specific random effect \({e}_{i}\) allows all age groups from the same study to have an unusually high or an unusually low mean after conditioning on the other terms in the model. Each \({e}_{i}\) is assigned a normal prior with variance depending on whether study i is representative at the national, subnational or community level. Random effects from national studies were constrained to have smaller variance (\({v}_{{\rm{n}}}\)) than random effects of subnational studies (\({v}_{{\rm{s}}}\)), which were in turn constrained to have smaller variance than community studies (\({v}_{{\rm{c}}}\)). To make country-level predictions, we set \({e}_{i}=0\), thus not including random effects arising from imperfections and variations in study design and implementation and from within-country variability of height or BMI means.

Urban and rural strata

To model mean height and BMI by urban and rural places of residence, the model included offsets for the two strata. The offsets were captured by country-specific intercept, linear time and age effects, using a centred indicator term (\({I}_{s,i}\)):

$${I}_{s,i}[{p}_{j[i]}+{q}_{j[i]}{t}_{i}+{r}_{j[i]}{z}_{h}+{d}_{i}],$$

where \({I}_{s,i}=-1+2{X}_{s,i}^{{\rm{u}}{\rm{r}}{\rm{b}}}\), with

$${X}_{s,i}^{{\rm{urb}}}=\left\{\begin{array}{ll}1, & {\rm{if}}\,{\rm{stratum}}\,s\,{\rm{contains}}\,{\rm{only}}\,{\rm{urban}}\,{\rm{individuals}},\\ 0, & {\rm{if}}\,{\rm{stratum}}\,s\,{\rm{contains}}\,{\rm{only}}\,{\rm{rural}}\,{\rm{individuals}},\\ {X}_{j[i],t[i]}^{{\rm{urb}}}, & {\rm{if\; stratum}}\,s\,{\rm{contains\; a\; mixture\; of\; urban}}\,{\rm{and}}\,{\rm{rural}}\,{\rm{individuals}}.\end{array}\right.$$

In other words, for data not stratified by place of residence, the model treated the unstratified mean height or BMI as equivalent to the weighted sum of the (unobserved) urban sample mean height or BMI and rural sample mean height or BMI, with the weights based on the proportion of the population of that country living in urban areas in the year of the survey (\({X}_{j\left[i\right],t[i]}^{{\rm{urb}}}\)).

The intercept (\(p\)) and slope (\(q\)) terms capture the country-to-country variation in the magnitude of the height or BMI difference between urban and rural populations and how the difference changes over time. The slope (\(r\)) captures the country-to-country variation in the BMI or height difference between urban and rural populations across age groups. These were specified with the same geographical hierarchy as the country-specific intercepts (\(a\)) and slopes (\(b\)) as follows:

$$\begin{array}{l}\,{p}_{j}={p}_{j}^{c}+{p}_{k[\,j]}^{r}+{p}_{l[k]}^{s}+{p}^{{\rm{g}}},\\ \,{q}_{j}={q}_{j}^{c}+{q}_{k[\,j]}^{r}+{q}_{l[k]}^{s}+{q}^{{\rm{g}}},\\ \,{{\rm{r}}}_{j}={r}_{j}^{c}+{r}_{k[\,j]}^{r}+{r}_{l[k]}^{s}+{r}^{{\rm{g}}},\\ {p}_{j}^{x}\sim N(0,{\kappa }_{p}^{x}),\\ {q}_{j}^{x}\sim N(0,{\kappa }_{q}^{x}),\\ {r}_{j}^{x}\sim N(0,{\kappa }_{r}^{x}),\end{array}$$

where \(x=\{c,r,s\}\). The study random effect term \({d}_{i}\) incorporates deviations from the country-level urban–rural difference in each study and is analogous to \({e}_{i}\).

Residual age-by-study variability

The age patterns across communities within a given country may differ from the overall age pattern of that country. This within-study variability cannot be captured by the \(e\) terms, which are equal across age-specific observations in each study, so we included an additional variance component for each study, \({\tau }^{2}\).

Model implementation

All analyses were done separately by sex because age, geographical and temporal patterns of height and BMI differ between girls and boys7,65. We fitted the statistical model using Markov chain Monte Carlo (MCMC). We started 35 parallel MCMC runs from randomly generated overdispersed starting values. For computational efficiency, each chain was run for a total of 75,000 iterations. All chains converged to the same target distribution within this number, but due to the overdispersed initial values, the length of burn-in required to converge to the target distribution varied. After the runs were completed, we used trace plots to monitor convergence and to select chains that had completed burn-in within 35,000 iterations. This resulted in 16 chains for boys and 17 for girls for BMI, and 14 chains for boys and 16 for girls for height. Within each of these chains, post-burn-in iterations were thinned by keeping every 10th iteration, which were then combined for all chains and further thinned to a final set of 5,000 draws of the model parameter estimates. We used the posterior distribution of the model parameters to obtain the posterior distributions of our outcomes: mean urban and rural height and BMI, and the urban–rural difference in mean height and BMI. Posterior estimates were made for one-year age groups from 5 to 19 years, as well as for age-standardized outcomes, by year. The reported Crls represent the 2.5th and the 97.5th percentiles of the posterior distributions. We also report the posterior s.d. of estimates, and PP that the estimated change in height or BMI in rural or urban areas, and in the urban–rural height or BMI difference over time, represents a true increase or decrease.

Convergence was confirmed for the country-sex specific posterior outcomes—namely mean urban height and BMI, mean rural height and BMI and the urban–rural difference in mean height and BMI—for reporting ages (5, 10, 15, 19 years and age-standardized) and years (1990 and 2020) using the R-hat diagnostic80,81. For height, the 2.5th to 97.5th percentiles of the R-hats for the reporting ages and years were 0.999–1.010 for girls and 0.999–1.004 for boys. For BMI, the 2.5th to 97.5th percentiles of the R-hats were 0.999–1.004 for girls and 0.999–1.005 for boys.

We applied the pool-adjacent-violators algorithm, a monotonic regression that uses an iterative algorithm based on least squares to fit a free-form line to a sequence of observations such that the fitted line is non-decreasing82,83, on the posterior height estimates to ensure that the height for each birth cohort increased monotonically with age. In practice, this had little effect on the results, with height at age 19 years adjusted by an average of 0.26 cm or less for both boys and girls. All analyses were conducting using the statistical software R (v.4.1.2)84.

Strengths and limitations

An important strength of our study is its novel scope of presenting consistent and comparable estimates of urban and rural height and BMI among school-aged children and adolescents, which is essential to formulate and evaluate policies that aim to improve health in these formative ages. We used a large number of population-based studies from 194 countries and territories covering around 99% of the population of the world. We maintained a high level of data quality and representativeness through repeated checks of study characteristics against our inclusion and exclusion criteria, and did not use any self-reported data to avoid bias in height and weight. Data were analysed according to a consistent protocol, and the characteristics and quality of data from each country were rigorously verified through repeated checks by NCD-RisC members. We used a statistical model that used all available data and took into account the epidemiological features of height and BMI during childhood and adolescence by using nonlinear time trends and age associations. The model used the available information on the urban–rural difference in height and BMI and estimated the age-varying and time-varying urban–rural difference for all countries and territories hierarchically.

Despite our extensive efforts to identify and access data, some countries had fewer data, especially those in the Caribbean, Polynesia, Micronesia and sub-Saharan Africa. Of the studies used, fewer than half had data for children aged 5–9 years compared to nearly 90% with data for children and adolescents aged 10–19 years. The scarcity of data is reflected in the larger uncertainty of our estimates for these countries and regions, and younger age groups. This reflects the need to systematically include school-aged children in both health and nutrition surveys, and, especially in countries where school enrolment is high, to use schools as a platform for monitoring growth and developmental outcomes for entire national populations and key subgroups such as those in rural and urban areas. Although urban and rural classifications are commonly based on definitions by national statistical offices, classification of cities and rural areas may, appropriately, vary by country according to their demographic characteristics (for example, population size or density), economic activities, administrative structures, infrastructure and environment. Similarly, urbanization takes place through a variety of mechanisms such as changes in fertility in rural and urban areas, migration and reclassification of previously rural areas to urban as they grow and industrialize. Each of these mechanisms may have different implications for nutrition and physical activity, and hence height and/or BMI, and should be a subject of studies that follow individual participants and changes in their place of residence. Finally, there is variation in growth and development of children within rural or urban areas based on household socioeconomic status and community characteristics that affect access to and the quality of nutrition, the living environment and healthcare35,85,86. Among these, in some cities, a large number of families live in slums19,87. School-aged children and adolescents living in slums have nutrition, environment and healthcare access that is typically worse than other residents of the city, although often better than those in rural areas19,87,88,89,90.

Reporting summary

Further information on research design is available in the Nature Portfolio Reporting Summary linked to this article.