Introduction

With unprecedented heatwaves sweeping the globe at higher frequencies and intensities1,2,3,4, global warming is increasing the levels of hazard that result in threats to human health5. One primary reason for this situation is thermal stress caused by heatwaves, which aggravates heart failure6,7. Due to the concentration of socioeconomic activities and population agglomeration, cities are considered the areas most affected by heatwaves. In summer 2022, while multiple extreme heatwaves plagued the world, some European and American countries announced a state of heat emergency8,9, and developing countries such as China, India and Pakistan encountered continuous extreme heatwave challenges10,11. The most extreme heatwave events ever recorded in duration and intensity have resulted in significant urban electricity shortages and power outages12,13. Globally, cities are unprepared to confront and respond to upcoming extreme heatwave exposure risks14,15.

Current trends in urbanization and ageing are expected to continue rising well throughout the twenty-first century. The proportion of the world’s urban population is estimated to reach 68% by 2050, and 90% of these 2.5 billion people will be concentrated in the developing countries of Asia and Africa16. Furthermore, the share of people aged 65 or over worldwide is projected to increase to 16%, and nearly 80% of the ageing population will live in low- and middle-income countries17. The long-term challenges posed by the convergence of climate change, urbanization and ageing and their compounding effects have exacerbated the plight of cities in the foreseeable future18,19. Given the increasing risk of urban heatwave exposure, marginalized groups in cities, especially elderly individuals, who have a higher risk of cardiovascular and respiratory diseases and a lack of immediate care, may experience a continuous and serious health threat20,21.

Previous studies have shown that global inequalities are rising widely across countries due to extreme climatic events against the backdrop of climate change22,23,24,25,26. Cities in low- and middle-income countries with relatively poor infrastructure, including shelter, clean water, cooling open space, and sanitation assistance, do not have sufficient social resources to satisfy health security requirements in response to extreme heatwave events27,28,29. Climate change is unevenly increasing the intensity and duration of extreme heatwaves across the globe2,30. As the climate continues to warm, the inequitable risk from extreme heatwave exposure may be aggravated even further31. Existing studies have projected significant growth in extreme temperatures in different regions and countries, indicating that the risk of exposure to dangerous heat will increase unevenly across cities32,33,34. However, aggregated results from multiple cities cannot manifest the wide divergence globally in extreme heatwave exposure risks. Furthermore, it is insufficient to enumerate the overall exposure risk in cities35; especially for the most fragile social groups, the amplified compound risk’s negative effect of inequalities needs to be considered36,37. Recognizing the ageing population and analysing the principal drivers could be more conducive for policy-makers with regard to future urban governance priorities38.

To address these current knowledge gaps, we projected the spatiotemporal trend of the future extreme heatwave exposure risk for 9188 urban settlements from the 2020s to the 2090s based on high-resolution global climate models (GCMs)39 and employed two shared socioeconomic pathways (SSPs) under the representative concentration pathways (RCPs)40 followed by SSP2-4.5 and SSP5-8.541. We enumerated the differences between the total population and the elderly population, and to reveal the inequality in exposure risk to extreme heatwaves across global cities, we adopted the classification of urban settlements by income level and city size separately. We further identified the relative contribution of the driving factors underlying the changing patterns to exposure risk (see Methods and Supplementary Fig. 1). The results of this study aim to provide vulnerability and adaptation assessments for ageing-friendly disaster risk reduction in climate change adaptation strategies under diverse socioeconomic and climate scenarios.

We used two representative SSP-RCP scenarios and analysed the future multidecadal variation in global urban population exposure to extreme heatwave risk. Specifically, SSP2-4.5 is expressed as an intermediate emission scenario continuing historical trends and the status quo of development, while SSP5-8.5 is designed to assume high-intensity urban development and a severely fossil fuel-intensive world. With these scenarios, our study reveals the extent to which vulnerability may be affected by extreme heatwaves in global cities, including consideration of climate change and policy effects. Our results reveal that exposure risks to extreme heatwave events will face significant increases in duration and intensity globally, and future trends in urban exposure present strong spatial disparities. We consider the large and inequitable exposure risk trends in global cities and highlight that elderly populations are more likely to face strongly rising trends in exposure risks. In lower-middle income countries, the highest exposure growth trends on the regional average could cause a disproportionate climate burden for the urban elderly population. With extreme exposure risk concentrating on megacities, as highly integrated systems prone to heat hazards, decision-makers’ governance practices are particularly crucial in preventing public healthcare for vulnerable populations from being paralyzed. Even under SSP2-4.5, to continue along the development pathway, inequitable exposure risks and burdens are imposed on global cities that worsen under SSP5-8.5. These findings call for carbon emission reduction to mitigate global warming and emphasize a timely response to establish protective measures for vulnerable urban elderly individuals under the increasing impacts of extreme climate events42.

Results

Projections of heatwave exposure risks under scenarios

In concept, heatwave exposure risks include the spatial distribution of heatwave characteristics and populations as well as the effects of vulnerability for specific groups. Multi-model climate projection ensemble means were employed to predict future heatwave characteristics, including heatwave duration (HWD) and heatwave average intensity (HWI), from 2020 to 2099 under the SSP2-4.5 to SSP5-8.5 scenarios. The Mann-Kendall (MK) and Sen’s slope estimators were used to quantify the spatial long-term monotonic trends at the grid scale of 0.25-degree resolution. The results from our analysis revealed the significant spatial variability and distribution of the HWD and HWI and significant trends (p < 0.05) throughout most of the globe (see Supplementary Figure 2). Overall, under the moderate scenario (SSP2-4.5), the global average trend of HWD is projected to increase 8 days per decade, and the HWI will increase 0.18 °C per decade. Under the highest emissions scenario (SSP5-8.5), the characteristic increase will be more substantial, with the trend of HWD expected to be 15 days per decade and the HWI of 0.43 °C per decade. The SSP5-8.5 scenario would significantly increase extreme heatwaves worldwide. We found that the increasing trends of HWD and HWI showed significant differences in geographic distribution under the two scenarios. This indicates the highest increasing trends of HWD throughout the tropics of Cancer and Capricorn, especially in South America, Sub-Saharan Africa and Southeast Asia. The spatial pattern of HWI exhibits a persistent increase in northern mid-to-low latitudes with the major regions of global urban settlements.

Under our continuous simulations of the decennial heatwave exposure risk from the 2020s to the 2090s, we calculated all days exceeding the local threshold high temperature and its relative growth intensity and multiplied the population projection for each scenario (see Supplementary Fig. 3 and Fig. 4). The results reveal that the exposure risks are projected to increase dramatically until the 2040s under the SSP5-8.5. Over the 2020 s to the 2090s, the average global exposure risk could increase substantially by 609% and 1429%, respectively, under SSP2-4.5 and SSP5-8.5. Figure 1 shows Sen’s slope of the heatwave exposure risk under the two scenarios. Specifically, Sub-Saharan Africa, Southeast Asia and Central Asia would be the hardest-hit areas of extreme heatwave exposure, and under SSP5-8.5, Europe and North America would slide into widespread severe heat exposure insecurity as well. Furthermore, as preliminary estimates, the spatial distribution of exposure risk to extreme global heatwaves and increasing trends is highly uneven and will continue. The prevalent risk duration and intensity growth are expected to concentrate within Asia, which is a worrisome concern due to the potential for substantial urban growth and further ageing.

Fig. 1: Spatiotemporal variation in exposure risk trend projections.
figure 1

a, b Exposure risk trends estimated by Mann–Kendall test and Sen’s slope under (a) SSP2-4.5 and (b) SSP5-8.5 during 2020s to 2090s. For each pixel, the forecasting results with the Mann-Kendall test at the 95% significant level were considered.

Spatiotemporal trends in urban heatwave exposure risks

To measure the spatiotemporal evolution of heatwave exposure risks at the city level, we calculated the scale and average intensity of exposure risk within 9188 global cities on a considerable urbanized scale. We found that urban heatwave exposure risk increases by more than 619% and 1740% under SSP2-4.5 and SSP5-8.5, respectively, both exceeding the global average trends. We evaluated the increasing trend of exposure risk by fitting ordinary least squares (OLS) linear regression for each city over the period of the 2020s to the 2090s. Every urban settlement with a positive increasing trend passed the 0.05 significance test. We found that Asia accounts for 46% of the growth in aggregate urban exposure risk under SSP2-4.5 and decreases to 43% under SSP5-8.5 globally, followed by Africa and South America. In contrast, North America and Europe exhibit growth rates in the proportion of global urban exposure risk trends under SSP5-8.5. The preliminary estimates indicate that from the 2020s to the 2090s, Asia is expected to experience approximately half of the global urban heatwave exposure risks, which raises questions as inequality and vulnerability challenge the sustainability of future urban settlements.

Based on the combination of urban heatwave exposure risk tendencies with the projected population ageing under different scenarios, the possible consequences of compound risk to urban vulnerabilities in the future are emphasized. Significant analogous spatial patterns of increases are anticipated from heatwave risks and ageing trends. The expansion in ageing trends further leads to a tremendous growth risk of elderly populations’ exposure to extreme heatwaves in urban areas. We found that urban elderly exposure risks will increase by 1642% under SSP2-4.5 and 5529% under SSP5-8.5. The proportion of growth trends from Asian cities will account for 50% under SSP2-4.5. Compared with SSP5-8.5, global urban settlements will be exposed to a pervasive high thermal exposure risk for elderly individuals. We adopted the mean plus a standard deviation method to detect the deviation of cities in high-risk growth trends (Fig. 2, see Supplementary Table 6 and Table 7 for further cities’ information). With the unified threshold in SSP2-4.5, we found that 604 cities and 2455 cities in Asia (5250 cities altogether) are included and that 196 (596) cities in Africa (1549), 173 (443) cities in South America (928 cities), 106 (668) cities in Europe (1043 cities) and 39 (305) cities in North America (372 cities) are included under SSP2-4.5 (SSP5-8.5). The exposure risk of elderly population is similar to the overall exposure risk showing as the highest in Asia (Fig. 3). However, the growth rate of the exposure risk for elderly population in each city is higher compared with the exposure risk for total population based on the changes of slope, indicating that exposure risk faced by elderly could increase relatively faster.

Fig. 2: Projections of exposure risk trend for elderly.
figure 2

a, b Spatial distribution of exposure risk trend for elderly in cities under (a) SSP2-4.5 and (b) SSP5-8.5. An OLS liner regression of the exposure risk trend. The point estimates are statistically significant at p < 0.05.

Fig. 3: Comparative evolution for exposure risk of continents.
figure 3

a, b The increases of exposure risks for total population in urban on each continent, respectively, under (a) SSP2-4.5 and (b) SSP5-8.5. c-d, the comparison of exposure risk for urban elderly population under (c) SSP2-4.5 and (d) SSP5-8.5. Solid lines represent the change of aggregate exposure risk in cities area.

Inequalities in compound exposure risk

Previous works have reviewed the intergenerational transmission of climate change inequities specifically under continued global warming43 and have indicated that extreme climate exposure risk could be more concentrated in areas that have been strongly affected by extremes. Based on the analysis of the linkage between the initial scale of heatwave exposure and its increasing trend, trendlines based on the logarithmic relationship can be fitted to them using stepwise regression (Fig. 4). A significant positive relationship exists in both the general population and the ageing group in cities. This trendline correspondence for the ageing group will be 2.1 times that of the total population under SSP2-4.5, and it will be extended to 2.4 times under SSP5-8.5. From an ageing perspective, this combined comparison between the growth trend and its initial risk scale highlights the even stronger disproportionate burden for the elderly population, which could further increase the perpetual climate vulnerabilities across cities at high levels of extreme heatwave exposure risk.

Fig. 4: The relationship between initial scale and growth trend of exposure risk.
figure 4

a, b City-level measures of exposure risk and its growth trend during 2020s to 2090s under SSP2-4.5 (green points) and SSP5-8.5 (red points), for urban (a) total population and (b) elderly population. The solid lines were calculated using the stepwise regression on log scale, and the 95% confidence interval is specified by the shaded areas.

There are substantial spatial variations in future urban exposure risk to heatwaves. Socioeconomics is of great importance in amplifying or attenuating responses to risk events44. Due to a shortage of corresponding protection measures, low-income countries tend to have higher rates of exposure risk. We calculated the between-group difference in the rate of exposure growth in cities by income category (Fig. 5a, b). The total and elderly population risk growth trends vary by income group with statistically significant differences (Kruskal–Wallis tests, p < 0.05) for the SSP2-4.5 and SSP5-8.5 pathways. The urban elderly populations in lower-middle-income countries will experience the strongest increase in heatwave exposure trends in regional average strength, at 1.2 times that of high-income countries. In elderly population exposure risks between the 2020s and the 2090s, 38% of global growth is from lower-middle-income countries and 31% comes from upper-middle-income countries, whereas 28% is from high-income countries under SSP2-4.5, with a similar share under SSP5-8.5. For the two scenarios, this disproportionate burden of elderly exposure risk in urban areas is an ever-present inequality between different-income countries. Contrasting the two scenarios, the growth of elderly exposure in upper-income and lower-income countries under SSP5-8.5 will be 2.6 times relative to SSP2.4.5; moreover, the multiple of high-income countries could further increase to 4.1 times.

Fig. 5: Uneven distribution of heatwave exposure risk trend.
figure 5

a, b The different exposure risk trend between different income group under (a) SSP2-4.5 and (b) SSP5-8.5. c, d The different exposure risk trend between different city size under (c) SSP2-4.5 and (d) SSP5-8.5. The box indicates the lower (25%) and upper (75%) quantile and the horizontal line indicates the median (50%). P values were calculated by Kruskal–Wallis tests.

We further examined the relationship between exposure risk and city size in the inequality analysis considering whether urban size enhanced or diminished settlement exposure risks, which might be different between the city size and income category (Fig. 5c, d). Correlation analyses between the growth trends of average regional exposure risks and city sizes were performed and showed a positive correlation (p < 0.05). Notably, SSP5-8.5 could reinforce a higher value corresponding to the disparities between the city size groups. In the 2020s, 27% of all urban elderly population exposure risks are concentrated in megacities (over 10 million people), and this proportion might be extended to 29% under SSP2-4.5 and further to 31% under SSP5-8.5 in 2090s. However, the physical complexity of the built environment and socioeconomic effects in large cities could intensify the challenge for risk management. The proportion of the elderly population exposed to extreme heatwave risk is expected to increase with variation across these income and city size types (Fig. 6). For this classification, especially in lower-income countries’ large cities, gross exposure risks will increase more rapidly than high-income countries. In megacities with populations over 10 million (Supplementary Fig. 6), the vast majority of cities in low- and lower-middle-income countries may be forced into riskier areas of heatwave exposure. These exposure risk trends varying city size differ substantially among different income countries. There are relatively higher exposure risk trends probably faced by large cities in lower-income countries (Supplementary Fig. 7).

Fig. 6: Proportional patterns of exposure risk between different income group and city size.
figure 6

The gross exposure risk (vertical axis) for urban elderly population under (a) SSP2-4.5 and (b) SSP5-8.5. c, d The grow rate of heatwave exposure risk (vertical axis) for urban elderly population under (c) SSP2-4.5 and (d) SSP5-8.5 during 2020s to 2090s.

Decomposition of compound exposure risk factors

To understand how these compound factors affect urban exposure risk, including climate change, urban population size and population ageing, a decomposition method is introduced to calculate the respective contribution of different effects between different groups across cities36,45. We compare the drivers of exposure risk estimates at the two periods of 2030s to 2060s and 2060 to 2090s (Fig. 7). Our results combine the effect of heatwave characteristics and ageing population growth to consider compound risk, highlighting that exposure increases are primarily driven by the climate effect and ageing as well as their interaction effects globally. Climate change explains 39% of the increase in the 2030s to the 2060s and 53% in the 2060s to the 2090s under SSP2-4.5. With later-stage growth mainly caused by climate change, it could worsen to 58% under SSP5-8.5. We find that rising ageing greatly contributes to exposure growth, especially during the far future periods, which explains 31% and 19% under SSP2-4.5 and SSP5-8.5, respectively. The increasing contribution of the interaction effect leads to a decrease in the single factor of ageing, but the absolute amount might increase by 214% under SSP5-8.5. In high-income countries, the climate effect is the most important component explaining the increase in urban elderly exposure risks, accounting for 53% and 58% of the importance, respectively, during the 2030s to the 2060s and the 2060s to the 2090s. However, in contrast, the ageing effect is responsible for the relatively higher proportion of exposure risk in low-, lower-middle-, and upper-middle-income countries, with further growth expected to approach 38% of the exposure risk under SSP2-4.5 during the 2060s to the 2090s. Furthermore, under SSP5-8.5 forcing, the climate and ageing effects will lead to even more intense growth in the urban exposure risk for the elderly population. The decline in urban population size may not be sufficient to counteract the negative effects of increasing exposure risks in middle-income countries, which highlights that the imposed interaction according to various future scenario analyses will impose a cumulative exposure risk with the inequality challenge of global warming and that ageing is substantially increasing in lower-income countries.

Fig. 7: Decomposition of factors driving growth in heatwave exposure risks.
figure 7

ac Contribution of factors under SSP2-4.5 over periods of 2030s to 2060s (a), 2060s to 2090s (b), 2020s to 2090s (c). df Contribution of factors under SSP5-8.5, period presenting as above. HIC high-income countries, UMIC upper middle-income countries, LMIC lower-middle-income countries, LIC low-income countries.

Discussion

This study projected spatiotemporal characteristics of global extreme heatwaves from the 2020s to the 2090s based on the multi-model ensemble mean from 27 GCM outputs combined with future global population projections for each SSP scenario to assess the increasing trend in exposure risks to the total population and elderly groups across 9188 urban settlements. This study further analysed the influential factors for the change patterns of exposure risks to advance policy-makers’ common understanding of and responses to future intertwined risks of climate change, urbanization and ageing. The results of our models indicated that the extreme heatwave exposure risk to the elderly population will increase significantly and continue along the current socioeconomic pathway of the SSP2-4.5 scenario, especially after the 2040s. The growth trend of exposure risks presents high spatial heterogeneity, which indicates that inequality exists between different income country categories and the city size. This discrepancy at a high-resolution gridded scale could provide a better understanding of the inequality across global cities in future scenarios, particularly in view of the exposure risk for vulnerable elderly individuals. We observed differences in the driving factors for increasing exposure risk between income categories, and climate and ageing effects were the primary contributors. The proportion of factors display similar precent contributions by city size, with the effect of population concentration being more significant in medium to large cities (see Supplementary Fig. 8).

The results from the study reveal crucial aspects of the future inequitable increase in extreme heatwave exposure faced by vulnerable elderly populations in urban areas, emphasizing the need to develop targeted climate adaptation strategies to mitigate the negative impacts of compounded factors. Based on data on population structure by the UN, although the ageing rate in developed countries and their cities currently remains high, the ageing rate in developing countries in the future will be faster and will catch up, and developing countries will become ageing societies. However, elderly populations are more vulnerable, which can lead to the occurrence of disease and even death because of frequent heatwave events. According to our prediction, the exposure growth rate for elderly individuals in lower-middle income countries will be 3352% under SSP2-4.5 and, even worse, 11448% under SSP5-8.5. The potential for intensifying thermal stress risks presents challenges to the urban population, public health, the built environment and infrastructure in developing countries. Our results indicate that cities in densely populated Southern Asia could experience even more pernicious health impacts during extremely intense exposure in the future, which is consistent with the findings of previous simulation research. There is an urgent need for vigilance to prevent the intergenerational transmission of extreme heat exposure, for which there is a lack of financial and technical assistance in most of the least-developed countries due to insufficient and poor residential care infrastructure against extreme heatwave stress.

The persistence of worldwide energy poverty is thought to pose formidable challenges to public health well-being and sustainable urban development46. The United Nations’ (UN) Sustainable Development Goal 7 (SDG 7) is “Ensure access to affordable, reliable, sustainable and modern energy for all”47. Energy poverty remains at an unacceptably high level for most developing countries, and the incidence and intensity will increase substantially. It is essential to ensure urban energy sustainability to guarantee climate adaptation to the future notable impact on the cooling demand with the increase in heatwaves. The analysis in this study ignored the popularity of air conditioning because of the lack of relevant data on cities. However, according to relevant energy data, 90% of U.S. households are equipped with air conditioning, 86% in South Korea, 60% in China, and 5% in India48, which could potentially result in an underestimation of the inequality of heatwave exposure risk. Intense extreme heatwave events lead to large increases in urban power outage risk, and disproportionately high electrical demands are reflected in rising power prices that could exacerbate energy poverty49,50. The high coverage of air conditioning remains a serious concern given the tense relationship between carbon emissions and the Paris Agreement’s long-term objective to achieve carbon neutrality51. Regarding low-carbon energy, it must be considered that the cost of renewable energy would impose potential additional costs on residents, probably contributing to deeper energy poverty.

Research at the urban scale is key to exploring global sustainable development in the future. We adopted the MME statistics from 27 sets of CMIP6 GCMs to reduce the uncertainty of a single GCM model52. We expect significant importance in the urban simulation of future compound exposure risks; therefore, more detailed data and processing are needed to support further urban-scale studies53,54,55. Due to insufficient data, the ageing rate in the country was adopted as a substitute for the ageing rate in cities and was therefore likely to be an overestimation of the actual exposure risk of urban elderly population56. To refine the research results, the predicted rate of ageing at the national scale can be adjusted to obtain the future proportion of ageing at the urban scale and thereby provide a uniform urban ageing rate.

In summary, we aimed to provide insights to cities and governments for early intervention and protection from the compound thermal risk, especially in the elderly population. Our findings show that with increased interactions of global warming and urbanization and ageing, low- and middle-income developing countries will be more vulnerable to negative effects, which could adversely affect their sustainable development28. In contrast to developed countries, which are in the mature stage of urbanization, developing countries are undergoing a rapid urbanization process that brings about a change in land use and a rapid increase and agglomeration of the population that affects the local climate57,58. However, when infrastructure, disaster prevention and mitigation facilities do not keep pace with economic development, the serious consequence is that cities and urban populations are less able to cope with risks. In addition, as regions with high density of populations and economic activities, urban agglomerations have profound social significance, and evaluating their future risk under climate change is necessary. Based on these analyses, it is most important to provide evidence for policy-makers to make decisions to improve the sustainability of cities and manage risks effectively, especially for developing countries.

Methods

Climate data

We applied climate data based on a collection of 27 high-resolution GCMs to analyse future projections of extreme heatwaves derived from 0.25-degree grid and daily scale near-surface air maximum temperature (Tmax). The GCM outputs are from the most recent updated Coupled Model Intercomparison Project Phase 6 (CMIP6) simulations developed in different countries under different SSP scenarios for the historical period of 1950 to 2014 and the projection period of 2020–210039 (specific models’ selection in the Supplementary Table 2). The SSP-RCP scenarios for CMIP6 were used to explore possible changes under different aerosol emissions with corresponding policy- and socioeconomic-induced development impacts. Our analysis employed two SSP2-4.5 and SSP5-8.5 scenarios, of which SSP2-4.5 represents modest mitigation and SSP5-8.5 refers to fossil fuel-based development. The overall GCM results were generated by the multi-model ensemble (MME) mean for the composite projections52.

Urban settlement data

The urban settlement boundary data were obtained from the Global Urban Centre for Human Settlements Database (GHS-UCDB). The GHS-UCDB is currently the most comprehensive normative spatial dataset covering the economic and environmental attributes of global cities59. In addition, a consistent standard for identifying the global existing urban continuum is necessary to facilitate reasonable comparisons among cities. To calculate the population heatwave exposure within cities, we selected regions with areas >1 km2 and urban population size over 100,000 in 2015. Finally, 9,188 urban settlements were included in our study to estimate future exposure risk. The analysis used income group data and city size data in 2015 from the urban settlements’ attributes of GUS-UCDB statistics (classification of study region see Supplementary Figure 5).

Population and ageing structure projection data

The gridded population projections under the different SSP scenarios were obtained from the Global One-Eighth Degree Population Base Year and Projection Grids Based on the SSPs60. The population projections were at a resolution of 0.125 degrees and ten-year intervals from 2010 to 2100. For population age structures corresponding to the SSP, we derived the ageing rate of each decade’s average over future time periods from 2020 to 2090 from the SSP database hosted by the IIASA61. The number of ageing populations over the age of 65 in cities was computed by the product of its urban population size and national ageing rate under corresponding scenarios36.

Heatwave definition

A heatwave event was defined as a consecutive period of at least 3 days when the daily Tmax was above the 95th percentile of the reference32,62. We adopted the gridded percentage as the relative threshold rather than a fixed temperature (i.e., 35 °C) for regional analysis35. The percentage was generated based on a 5-day moving window of daily Tmax over the historical period of the summer season, from June to August in the Northern Hemisphere and December to February in the Southern Hemisphere, from 1950 to 2014. Here, we improved the thresholds and concentrated the month of high temperatures as extreme heatwaves63 compared to the criteria setting of the 90th percentile and warm season (i.e., May to September) in relevant research32,64. We further calculated the heatwave characteristics of heatwave duration (HWD) and heatwave average intensity (HWI) for each SSP scenario.

Quantification of heatwave exposure risk

The heatwave exposure risk was quantified by the product of heatwave characteristics and population distribution23. The annual heatwave characteristics were computed by multiplying the number of heatwave duration days and average intensity, highlighting the response of heatwave exposure processes to evident warming signals, particularly in tropical regions where the HWD tends towards the ceiling. Hence, the unit of heatwave exposure risk was defined as person-days-Δ°C. We remapped the decade-averaged heatwave characteristics to match the population projections’ temporal resolution. For each urban settlement, we extracted the total value and average of heatwave exposure within its continuum boundary. To address the compatible scale between simulation resolution and urban boundaries, all the simulations were resampled to 0.0125° by using nearest neighbour interpolation.

$$\begin{array}{c}{Heatwave}\,{exposure}\,{ris}{k}_{i,y}=\\ {HW}{D}_{i,y}* \left({HW}{I}_{i,y}-{{Threshold}}_{i}^{95}\right)* {{Population}}_{i,y}^{{total}}* {{Ageing}\,{Rate}}_{i,y}^{65+}\end{array}$$
(1)

where i is the grid, y is the year, the HWDi,y is the sum length of heatwave events of year y for grid i, the HWIi,y is the average daily maximum temperature throughout the heatwave events of year y for grid i, Thresholdi95 is the 95th percentile of the historical temperature threshold for the grid i. Populationi,ytotal is the number of population at year y for grid i within urban area, here vulnerable elderly population is defined as people over 65, the Ageing Rate65 + i,y is the proportion of over 65 at year y for grid i within each country.

Spatiotemporal analysis

The Mann–Kendall test and Theil-Sen’s slope estimator were used to evaluate the magnitude of the spatiotemporal monotonic trends in heatwave characteristics and exposure risks at a gridded scale65,66,67. The results in the zonal analysis were extracted with statistical significance above the 95% confidence interval. We calculated the spatiotemporal trend analysis for future projections from 2020 to 2099, and trends were quantified in decadal units. In addition, we adopted simple OLS regression to estimate the growth trend of exposure risk for each urban settlement under scenarios and retained only the urban settlements with statistically significant trends (P < 0.05)2.

Decomposing the compound exposure risk factors

We adopted the decomposition method to calculate the drivers of elderly population heatwave exposure from the climate effect, urban population and population ageing23,36,45 (see Supplementary Text and Supplementary Table 2). The climate effect referred to the combination of HWD and HWI; the urban population was the sum of the population within urban settlements; and population ageing was the local proportion of elderly population. For each scenario, the drivers’ contribution was estimated for the baseline (2020s), early (2030s–2060s) and late (2060s–2090s) future periods, and then the relative contribution of each driver in different income groups was sequentially calculated. The drivers of compound exposure risk were computed as follows:

$$\begin{array}{c}{Climate}\,{effect}={SI}{M}_{{CLIMATE}}{{\mbox{-}}}{SI}{M}_{{CONTROL}}\end{array}$$
(2)
$$\begin{array}{c}{Population}\,{effect}={SI}{M}_{{POPULATION}}{{\mbox{-}}}{SI}{M}_{{CONTROL}}\end{array}$$
(3)
$$\begin{array}{c}{Ageing}\,{effect}={SI}{M}_{{AGEING}}{{\mbox{-}}}{SI}{M}_{{CONTROL}}\end{array}$$
(4)
$$\begin{array}{c}{Climate}\,{and}\,{Population}\,{interaction}\,{effect}\\= {SI}{M}_{{POPULATION}+{CLIMATE}}{{\mbox{-}}}\left({SI}{M}_{{POPULATION}}+{SI}{M}_{{CLIMATE}}\right)+{SI}{M}_{{CONTROL}}\end{array}$$
(5)
$$\begin{array}{c}{Population}\,{and}\,{Ageing}\,{interaction}\,{effect} \\ = {SI}{M}_{{POPULATION}+{AGING}}{{\mbox{-}}}\left({SI}{M}_{{POPULATION}}+{SI}{M}_{{AGEING}}\right)+{SI}{M}_{{CONTROL}}\end{array}$$
(6)
$$\begin{array}{c}{Climate}\,{and}\,{Ageing}\,{interaction}\,{effect} \\ = {SI}{M}_{{CLIMATE}+{AGEING}}{{\mbox{-}}}\left({SI}{M}_{{CLIMATE}}+{SI}{M}_{{AGEING}}\right)+{SI}{M}_{{CONTROL}}\end{array}$$
(7)
$$\begin{array}{c}{Population}\,{and}\,{Climate}\,{and}\,{Ageing}\,{interaction}\,{effect} \\ = {SI}{M}_{{POPULATION}+{CLIMATE}+{AGEING}}\\ -\left({SI}{M}_{{POPULATION}+{CLIMATE}}+{SI}{M}_{{POPULATION}+{AGEING}}+{SI}{M}_{{CLIMATE}+{AGEING}}\right)\\ +\left({SI}{M}_{{POPULATION}}+{SI}{M}_{{CLIMATE}}+{SI}{M}_{{AGRING}}\right){{\mbox{-}}}{SI}{M}_{{CONTROL}}\end{array}$$
(8)