Main

As global temperatures rise, insect diversity continues to decline at alarming rates in many regions4. More than 70% of all insect species are found in the tropics1, where they are essential for ecosystem functioning5. As small ectotherms, insects are particularly vulnerable to increasing temperatures6, yet our knowledge of their heat response is limited. Despite their immense diversity, data on thermal tolerances of tropical insects are sparse and heavily biased towards a few groups (for example, ants and fruit flies)3. Previous analyses suggest that upper thermal limits are relatively static along climate gradients with little plasticity7,8,9, indicating that insects may have a low capacity to tolerate further warming10.

Currently, tropical lowland places are experiencing increasing average and extreme temperatures due to anthropogenic warming2, underscoring the urgency of understanding the ability of insect communities to respond to increasing temperatures and to reveal upper boundaries of heat tolerance. Besides heat, cold waves also challenge tropical animal communities and are expected to increase in intensity under future climate scenarios11. Species turnover, local adaptation to climate and evolutionary constraints influence thermal tolerance limits in insects12, but their relative importance across insect lineages remain unclear.

Heat tolerance is assumed to be strongly related to the ability of organisms to counter the destabilizing effects of high temperature on proteins13. Although production of heat shock proteins can counteract destabilization from heat to some degree, upper thermal limits of protein stability (measured as protein melting temperatures) are, in ectotherms, ultimate indicators of the threshold at which environmental temperature will have high costs and cause thermal injuries and mortality10. Although protein melting temperatures are commonly studied in structural biology, it is unclear whether they vary among insect orders and families, and how they are related to physiological heat tolerance.

Here, we experimentally quantified thermal tolerance ranges across 2,300 insect species spanning 242 families along Afrotropical (Kenya) and Neotropical (Peru) elevational gradients. We compared the relationship of critical thermal maxima (CTmax) to protein melting temperatures for several thousand proteins from more than 600 species across the insect tree of life. Finally, we predicted the thermal effects of current and future climates for Andean-Amazonian and East African insects.

Heat tolerance and plasticity

We tested whether thermal tolerances of insect communities track temperature trends along elevation gradients (Fig. 1a) and whether there are indications of an upper limit in community responses to increasing temperatures. We measured the thermal tolerance of around 8,000 insects from approximately 2,300 DNA-barcoded species in the field using a common dynamic assay approach14,15 (10 min acclimatization at 28 °C, ramping rate of 0.5 °C min−1). Thermal tolerance decreased from low to high elevation and was higher along the East African than along the Neotropical elevation gradient (Fig. 1b). This suggests stronger adaptations of climatic niches in tropical insects compared with species with a Holarctic distribution, whose upper thermal limits did not vary with elevation in a global study16. Long-term impacts of a less forested vegetation and higher exposure to heat in large parts of East Africa over the past million years have potentially shaped the greater heat tolerance of insect communities.

Fig. 1: Thermal tolerance and acclimatization potential across the insect tree of life.
Fig. 1: Thermal tolerance and acclimatization potential across the insect tree of life.
Full size image

a, Mean annual temperature decreased linearly and was slightly lower at the Neotropical (Peru) gradient compared with the Afrotropical gradient (Kenya). b, Field-measured critical thermal maxima (CTmax) of insects (n = 3,229) decreased along both gradients. c,d, This pattern was also visible along the Afrotropical gradient (c) and the Neotropical gradient (d) for each major insect order. Trend lines were calculated with generalized additive models with the smooth term parameter set to k = 5. e,f, For both the Afrotropical gradient (e) and the Neotropical gradient (f), a potential to tolerate higher temperatures after a heat shock treatment was evident at high elevations (high, >1,200 masl) but the effect decreased with elevation (mid, 600–1,200 masl) and became negative in lowland habitats (low, <600 masl) in most insect orders (n = 777 insects). Data are mean ± s.e.m. g, Phylogenetic supertree constructed by adding trees constructed from DNA sequences (from all sampled insects from which sequences could be derived) onto a family-level backbone tree with ancestral trait value reconstruction of CTmax. h, The variation in CTmax was more strongly constrained by phylogeny than by effects of local temperature conditions (elevation), as indicated by variance partitioning. The Ornstein–Uhlenbeck (OU) model had better support than the Brownian motion (BM) model.

Thermal tolerance did not increase in direct proportion to environmental temperature along the elevational gradients. More precisely, for every 1 °C of increase in mean annual temperature, CTmax changed approximately by 0.41 °C in the Neotropics and by 0.31 °C in the Afrotropics. Trends in CTmax and differences between geographic regions were evident in all major insect orders (Fig. 1c,d). Upper thermal safety margins, defined as the difference between environmental temperatures (here, mean annual temperature and the mean of the warmest month across a year) and thermal tolerance limits, increased significantly from the warm lowlands to the cold highlands (Extended Data Fig. 1). Along the East African elevation gradient, CTmax increased linearly from high elevations to about 500 m above sea level (masl) and approached an asymptote at lower elevations (Fig. 1b). A tendency for a saturation curve was also observed in CTmax along the Neotropical elevation gradient, but the pattern was less clear than along the Afrotropical gradient.

Insects may acclimatize to higher temperatures through stimulated changes in cell signals, metabolism and the production of heat shock proteins that stabilize proteins at stressful temperatures17,18. However, plasticity in upper thermal tolerance may be limited in insects that live in areas that are already exposed to very high environmental temperatures. To study plastic responses to environmental temperature, we conducted a heat shock experiment, exposing insects for 10 min to a sublethal temperature of 40 °C (for insects >2,700 masl: 35 °C) before exposing them gradually to increasing heat. The increase of CTmax in response to a heat shock was on average 1.01 ± 0.31 °C (Afrotropics) and 1.10 ± 2.06 °C (Neotropics) at high elevations, matching results of a global meta-analysis testing plasticity in thermal limits of insects8. However, plasticity in CTmax decreased from high to low elevations at both elevational gradients. In the warm lowlands, a sublethal heat shock did not increase thermal tolerance but led, on average, to reductions in CTmax of insects (effect of heat shock on CTmax, −1.61 ± 1.04 °C in the Neotropics; −0.66 ± 1.59 °C in the Afrotropics; Fig. 1e,f). These results suggest that insect species at higher elevations have a modest potential to increase their heat tolerance by upregulating mechanisms that stabilize metabolic processes against heat. Our finding that a heat shock treatment negatively affects the thermal tolerance of insect species in the warm lowlands suggests that even without the experimental heat shock, protective metabolic mechanisms were already upregulated. Consequently, additional heat exposure from the heat shock treatment could have impaired the ability to withstand more heat19.

We constructed a phylogenetic supertree by mapping DNA sequence-based trees from species to family level, derived from the insects tested for thermal tolerance, onto a family-level backbone tree of insect evolution20 (Fig. 1g). Using CTmax values of the surveyed species, we modelled ancestral trait values and assessed the phylogenetic signal in thermal limits across the insect tree of life. Visual inspection of the plotted CTmax values on the phylogenetic tree and a formal phylogenetic correlogram (Extended Data Fig. 2) revealed a strong phylogenetic signal in CTmax (Pagel’s λ = 0.76, P < 0.001; Blomberg’s K = 0.33, P < 0.001 and 10,000 randomizations), with positive correlations of CTmax among related taxa21. Diptera showed, with few exceptions, generally low CTmax values whereas high thermal tolerance measures characterized aculeate Hymenoptera (bees, ants and others) and Orthoptera. This suggests that thermal tolerance is a conserved trait which may have reciprocally influenced the evolution of microclimatic niches and optimization strategies within different insect orders: Whereas most Diptera are small organisms, which mostly depend on rapid development in temporary shaded and moist habitats22, Orthoptera are often larger, have longer development times, and are often active in open, sun-exposed habitats23.

We tested whether local adaptation and species turnover, reflected in elevational changes in CTmax, or phylogenetic constraints drive CTmax, and whether trait evolution follows a Brownian motion model, assuming random evolutionary drift, or an Ornstein–Uhlenbeck model, with stabilizing selection towards an optimum (Fig. 1h). In both models, elevation and phylogeny explained variation in CTmax significantly, but the Ornstein–Uhlenbeck model was better supported by the data than the Brownian motion model (Extended Data Table 1). The long-term evolutionary optimum from the Ornstein–Uhlenbeck model of trait evolution corresponds to 42.20 °C (θ parameter). Variance partitioning of the preferred Ornstein–Uhlenbeck model showed that the phylogenetic relationship explained slightly more variation in CTmax (partial r2 = 0.23) than elevation (partial r2 = 0.17; Fig. 1). Reconstructions of ancestral traits, a phylogenetic signal in thermal tolerance, the estimation of the long-term evolutionary optimum (θ parameter) and elevational trends in CTmax were robust against sampling completeness, the exclusion of potentially paraphyletic families, problems in family-level assignments of individuals, the method for constructing family trees from DNA sequence information, and potential errors in branch length estimation (Extended Data Fig. 3 and Supplementary Table 1). Our data show, contrary to results of past meta-analyses16, that insect communities show flexibility in responding to decreasing temperatures along elevation gradients. However, our results indicate upper limits in thermal tolerance set by evolutionary constraints, which could have already been reached by tropical lowland insects9.

Cold tolerance and plasticity

As insect responses to heat are costly, increases in CTmax should be paralleled by reduced energetic investments in cold tolerance (critical thermal minima (CTmin)), such that thermal tolerance ranges (CTmax − CTmin) remain constant along temperature gradients10. To investigate thermal tolerance ranges, we additionally measured lower thermal limits along elevations in both geographic regions. The Neotropical data revealed only a slightly lower CTmin of 5.53 ± 3.75 °C compared to the East African data with an average CTmin of 6.04 ± 3.54 °C (Extended Data Fig. 4), so that the overall tolerance range was greater in the Afrotropics (40.25 °C versus 36.36 °C in the Neotropics). In both geographic regions, the thermal tolerance range across the whole insect community did not significantly change with elevation (Neotropics: estimate = 0.00036, F1,23 = 1.785, P = 0.195; Afrotropics: estimate = 0.00003, F1,13 = 0.004, P = 0.951). However, at the order level the thermal tolerance range significantly increased with elevation in the Neotropics in Hymenoptera (estimate = 0.00094, F1,21 = 4.941, P = 0.037), Hemiptera (estimate = 0.00079, F1,20 = 4.511, P = 0.046) and Orthoptera (estimate = 0.00251, F1,14 = 10.39, P = 0.006), potentially indicating relaxed trade-offs between cold and heat tolerance in some lineages (Extended Data Fig. 5). We found no significant changes in thermal tolerance ranges in the Afrotropics. Along the Neotropical gradient, we tested the plastic capacity towards cold (cold hardening), by keeping insects for 10 min at 14 °C before gradually cooling them down. At high elevations, insects tolerated lower temperatures after the cold exposure, indicating the activation of cold hardening mechanisms24, but this was not the case in the lowlands (Extended Data Fig. 4). The lack of a significant hardening potential in the lowlands might be due to the generally warm conditions making protection strategies for tolerating low temperatures unnecessary. However, a reduced cold tolerance could make insect communities in the lowlands sensitive to cold waves, which are predicted to become more frequent in the Amazon in the course of climate change11.

Thermal stability of proteins

Protein instability is assumed to be a major contributor to thermal coma and the eventual death of insects when exposed to heat25. Metabolic and physiological responses to heat are rarely studied but are assumed to be phylogenetically conserved12. Finding a strong phylogenetic signal in CTmax, we assessed whether variation in protein architecture among insect orders can explain variation in CTmax. We predicted the melting temperature (Tm) of a random selection of 1,000 proteins per species from published genomic data of 677 insect species (InsectBase 2.0; https://insect-genome.com) using the deep learning model DeepSTABp (https://rptu.de), which predicts protein thermal stability by estimating Tm from protein sequence information26. We found—across all insect orders—the 25% most heat-sensitive proteins per species to have an average Tm of 42.15 ± 0.73 °C (46.88 ± 0.61 °C for all proteins). The lowest heat-sensitive Tm values were in Diptera with a mean Tm = 41.17 ± 1.29 °C, and the highest Tm values were in Orthoptera with Tm = 43.40 ± 1.95 °C. Protein stability differed significantly across taxonomic orders (F5,88637 = 1,951, P < 0.001) and families (F73,88569 = 226, P < 0.001; Fig. 2) while controlling for species and protein identity in a linear mixed effect model. Predicted Tm across insect orders and families were highly predictive of the observed CTmax values (Fig. 2). This suggests that a part of the phylogenetic variation in organism-level CTmax is due to fundamental differences in protein architecture across insect orders, which may have been optimized to different temperature levels in the early evolution of insects. Differences in Tm among insect orders were consistently found for analyses including all proteins, the 25% proteins with the lowest Tm per species and for analyses restricted to the 43 proteins shared in the randomly selected set of proteins across all orders (Extended Data Fig. 6).

Fig. 2: Protein melting temperatures and critical thermal maxima.
Fig. 2: Protein melting temperatures and critical thermal maxima.
Full size image

a, Predicted protein melting temperatures (Tm) across insect orders. Data for the 25% of proteins with the lowest Tm per species are shown (a visualization of data of all proteins is shown in Extended Data Fig. 6). b, Melting temperatures depend on the stability of the structure of proteins, such as cytochrome P450 4C1 (example AlphaFold predicted structure). c,e, Experimentally tested critical thermal maxima (CTmax) of the six major insect orders (n = 3,229 individuals) for the Neotropics (c) and Afrotropics (e). Dots and bars represent mean ± 95% CI and violin polygons show data density. d,f, Correlation of mean CTmax and mean Tm across all insect families from the Neotropics (d) and Afrotropics (f) for which both genomic data and data on CTmax were available. The size of the dots is proportional to the number of species with genomic data per family. Trend lines show predictions of simple linear models and linear models weighted by the number of species with genomic data. Di, Diptera; Co, Coleoptera; He, Hemiptera; Le, Lepidoptera; Hy, Hymenoptera; Or, Orthoptera; ordered from lowest to highest mean.

Thermal sensitivity under climate change

Although tropical insects already operate at very high temperatures, future warming of Amazonian or African ecosystems may push them beyond their physiological limit6, as has been shown for other ectothermic taxa (for example, in amphibians27). We used CTmax data to predict potential thermal injuries in insect communities caused by current (Fig. 3a,b) and future (Fig. 3c–h) surface (insects exposed to direct sunlight on surfaces) and air temperatures (insects in shaded above-ground environments). Notably, thermal tolerance limits are dependent on the interplay of temperature and exposure time15. Temperatures several °C below the measured CTmax can already cause thermal injuries, resulting in heat coma if they accumulate over time19,28. Temperatures higher than the CTmax determined by our protocol can lead to heat coma within time periods below 2 min. We calculated the knockdown time until coma (tcoma) for field-measured shaded air and surface temperatures19. Shaded air temperatures were continuously measured with loggers at our study sites (loggers were unavailable for the Afrotropical gradient, therefore the shaded air temperatures were modelled;  Methods). Surface temperatures were derived from the Ecosystem Spaceborne Thermal Radiometer Experiment on Space Station (ECOSTRESS) sensor aboard the International Space Station, which provides unique high-resolution temporal and spatial measurements of land surface temperatures29. We calculated site-specific tcoma values: first, for an average CTmax per study site (using the median CTmax of all measured insects per study site; Extended Data Fig. 7); second, for heat-sensitive insects (using the 25% quantile of CTmax of all measured insects per study; Fig. 3); and third, for most heat-sensitive insects (using the 10% quantile of CTmax; Extended Data Fig. 7). Moreover, we calculated tcoma for temperatures projected for three future climate change scenarios (SSP1-2.6, SSP3-7.0 and SSP5-8.5;  Methods), adjusted for taking short-term variation in microclimatic temperature into account.

Fig. 3: Vulnerability of tropical insects to current and future temperatures.
Fig. 3: Vulnerability of tropical insects to current and future temperatures.
Full size image

Heat coma time for insect communities along Neotropical (a,ce) and Afrotropical (b,fh) elevation gradients, for present day surface and air temperatures (a,b) and surface and air temperatures predicted under three common climate change scenarios (climate model GFDL-ESM4 under SSP1-2.6 (c,f), SSP3-7.0 (d,g) and SSP5-8.5 (e,h)). In the main graphs, blue dots depict air temperatures that are high enough to cause thermal coma with an exposure of less than 8 h (critical temperature (temp.)), and dark grey dots indicate non-stressful air temperatures (shown are the highest 50% of all temperature measurements). Similarly, orange and red dots indicate critical surface temperatures, and light grey dots indicate temperatures below the threshold that causes substantial thermal injuries. The inset graphs show the percentage of all measured air (blue) and surface (red) temperatures that are critical for heat-sensitive insects (upper 25% of CTmax); ticks on the x axis represent the same elevations as those in the main graphs. The dashed red line shows the predicted mean protein melting temperature (42.15 °C), in line with the prediction that insects do not survive these temperatures.

Under current climate, lowland insects in the Andean-Amazonian ecosystems are most affected by heat, where some measured surface temperatures can cause heat coma in less than 1 min (Fig. 3a,b). The threshold of heat coma in less than 1 min approximately matched our estimates of average protein melting temperatures of insects. Although air temperatures were relatively low, injury-causing surface temperatures were measured along the whole Afrotropical elevation gradient, probably owing to a high proportion of non-forested habitats. This suggests that during peak heat times, insects here need behavioural strategies to escape from heat6. Tropical butterflies, for instance, have shown a thermal buffering ability of up to 1 °C (ref. 30), and twig-nesting ants abscond their nests under heat stress31. We expect that avoidance of stressful temperatures by thermoregulatory behaviour is possible if: first, complex habitat structures exist that provide shade, which can buffer temperatures up to 4 °C (ref. 32); and second, shade air temperatures remain below the injury-causing threshold. In this respect, we found that almost all current air temperatures were below the temperatures that cause thermal injuries in relevant time periods. Furthermore, a high coverage by complex vegetation is evident in both elevation gradients (forest in the Neotropical gradient; forest, shrubland and savannah in the Afrotropical gradient) and provides a diversity of microclimatic habitats that can be used as heat shelter, reducing the risk of immediate overheating effects.

Climate change projections to 2100 (results reported below are based on the model GFDL-ESM4; for results based on a multi-model ensemble, see Supplementary Information) suggest that temperatures across the Neotropical gradient will surpass temperatures in the presently hotter Afrotropical gradient, with the most extreme temperature increases predicted for the Amazonian lowland (Extended Data Fig. 8). Taking upward elevational shifts of lowland species into account by conservatively assuming the CTmax of the lowest plot to be valid across the whole elevation gradient, 20% of future surface temperatures predicted for the Neotropical lowlands (up to 300 masl) under SSP1-2.6 will be high enough to cause heat coma in half the insect community within 8 h (hereafter called ‘critical temperature’). Under SSP3-7.0, the proportion of temperatures above the critical temperature increases to 39% and under SSP5-8.5 it is 52% (Fig. 3c–e). Notably, using a median CTmax of lowland insects, 9%, 29% and 38% of all future air temperatures in the Neotropical lowlands are predicted to be critical under SSP1-2.6, SSP3-7.0 and SSP5-8.5, respectively. For the more heat-sensitive insects (based on the 25% quantile of CTmax), 26%, 45% and 59% of all surface temperatures under SSP1-2.6, SSP3-7.0 and SSP5-8.5, respectively, are predicted to be critical (results for most heat-sensitive group in Extended Data Fig. 7). These values are conservative estimates, assuming that future surface temperatures warm at similar rates as air temperatures (Methods). In total, 15% (SSP1-2.6), 37% (SSP3-7.0) and 47% (SSP5-8.5) of all future air temperatures will be critical for the group of more heat-sensitive insects (Fig. 3c–e). These results suggest that under less optimistic climate change scenarios, heat refugia for Amazonian insects will shrink as future daytime temperatures reach critical levels. However, the response of insects to climate warming is highly complex and experimental assays can only provide a proxy to predict heat tolerance, as populations may decline at temperatures even lower than those that cause heat coma owing to sublethal heat injuries19 and because extreme heat events can lead to increased failure of biological processes before the CTmax of an organism is reached33.

In East Africa, under all three climate change scenarios, the predicted increase in temperature is considerably less than the values predicted for the Andean-Amazonian elevation gradient, leading to slight increases in the proportion of surface temperatures that can be regarded as critical. Air temperatures in East Africa are not critical under SSP1-2.6, whereas under SSP5-8.5, up to 13% of the air temperatures are high enough to cause heat coma in more heat-sensitive insects (Fig. 3f–h and Extended Data Fig. 7).

Conclusion

Our findings—(1) a saturation in upper thermal tolerance from cold highlands to warm lowlands; (2) narrow thermal safety margins towards lower elevations; (3) no evident plasticity or hardening potential in lowlands species; (4) support for phylogenetically constrained evolution of upper thermal tolerance limits; and (5) a high percentage of proteins with melting temperatures approximately in the range of current surface and future air temperatures—suggest that upper limits in the evolution of thermal tolerance traits in tropical lowland insects have nearly been reached34,35. Although these data cannot entirely exclude the possibility of evolution of protein structures to adapt to higher temperatures or the upregulation of mechanisms that stabilize protein structure under heat (such as expression of heat shock proteins), these adaptations would entail high costs and are unlikely to be feasible for the vast number of essential proteins required to sustain metabolism10. Under current climatic conditions, species along the Afrotropical elevation gradient appear closer to their physiological thermal limit, but species along the Neotropical elevation gradient are likely to be more vulnerable under climate change. In the Amazon, temperature anomalies are projected to be much higher and might escalate owing to feedback loops between drought and forest loss36. In the Amazonian lowlands, both surface and air temperatures are predicted to surpass current upper thermal limits of insects. Without strategies to escape from heat by shifting to higher elevations or other cool refugia37 by diapause or by finding shelters from heat38 many insects will experience thermal death. Both heat waves and cold waves will challenge insect communities in the next decades11. Intact tropical rainforests that provide shade and thermal habitat complexity will be essential to buffer the effects of further climate warming. However, opportunities to avoid heat stress are likely to diminish as tropical rainforests become increasingly open through deforestation, logging and tree mortality induced by climate change36. Forest connectivity to allow lowland insects species to migrate to higher elevations will be crucial for the survival of insects in the world’s most biodiverse regions.

Methods

Study area

In Peru, the study was carried out along an elevational gradient from 245 masl to the tree line at 3,588 masl in the Andes of south-east Peru (Kosñipata valley), with continuous and mostly undisturbed wet rainforest/cloud forest. The climatic gradient has three seasonal periods with a wet season (November to March), a dry season (May to July) and austral spring (September and October)39. Mean annual temperatures range from 24.3 °C in the lowlands to 6.7 °C at 3,600 masl (Fig. 1). Mean annual precipitation levels are high with >1,500 mm per year along the whole gradient, peaking at around 1,500 masl with ~5,000 mm (ref. 40). Research was conducted on 26 study plots of approximately 100 m × 100 m in ~250 m elevation intervals and seven field stations distributed along the gradient. Four of the 26 plots were located inside Manú National Park. Nine of the plots matched the long-term research plots of the Andes Biodiversity and Ecosystem Research Group (ABERG) project41.

In Kenya, the study was carried out along an elevational gradient from 11 masl at Watamu to 3,450 masl at Mount Kenya including forests, woodland, scrub and grassland in natural and semi-natural habitats. The climate is mostly semi-arid in the lowlands to humid at higher elevations42 and characterized by seasonality in precipitation. Two rainy seasons occur from March to May and from October to December, a distinct season during the boreal summer from June to September, and a pronounced dry season in January and February43,44. The forested parts of the Taita Hills region and Mount Kenya from ~1,300–2,500 masl are characterized by a tropical montane forest climate with generally high humidity and constant high precipitation (>1,500 mm). Mean annual temperatures range from 26.2 °C at the lowest plot to 8.9 °C at the highest plot (Fig. 1). In total, 15 study plots were selected in similar elevation intervals along the elevation gradient.

Insect collection

Insects of all major orders (mainly Coleoptera, Diptera, Hymenoptera and Lepidoptera; additionally, Hemiptera and Orthoptera) were collected in the Neotropics (n = 4,690) in three seasons (September to December 2022, April to August 2023, and September to December 2023) with sweep nets in the understory of all study plots. In the Afrotropics, insects (n = 3,164) were collected in one season (March to June 2023), applying the same method. We stored live insects in Eppendorf tubes with moist tissue and sugar solution, protected from the sun, and transported them back to the field station, where thermal tolerance measurements of all collected individuals were carried out on the same day. Insect collection was focused on taxonomic breadth covering six major orders rather than on individual species. Note, that our results represent the more common insect communities. In the Supplementary Methods, we provide extensive robustness analyses to assess the effects of incomplete sampling or modifications to the phylogeny.

Measuring thermal limits

We measured critical thermal limits (CT) by exposing the insects in individual plastic tubes (2, 5 or 50 ml, depending on body size) to decreasing (CTmin) or increasing (CTmax) temperatures using a programmable thermoblock (Eppendorf Thermostat C)7,45,46. Each individual was only tested once. To avoid the effects of starvation, each tube was equipped with a piece of paper towel moistened with sugar water. For acclimatization to a common baseline, insects were first exposed to the starting temperature of 28 °C for 10 min. We then increased or decreased temperatures by 1 °C every 2 min—that is, a ramping rate of 0.5 °C min−1—following standardized methods14. After each 2-min interval, we checked all insects for mobility. The temperature at the point of lost mobility, even after tapping or gently shaking the tube, was noted as the upper or lower thermal limit (CTmax or CTmin)14,15. After the test, insects were stored in 96% ethanol for later genetic barcoding and specimen documentation. Since we did not directly measure the body temperature of the insects, CTmin and CTmax values determined with the above-mentioned protocol may not perfectly reflect body temperatures. Nevertheless, owing to the small size and their high surface-area-to-volume ratio, insects equilibrate to environmental temperatures quickly, typically within seconds6.

All thermal limit data were originally stored as csv or xlsx files (Microsoft Excel v.2502) and imported into R v.4.347. Since four different observers measured CTs in the field, we first tested for potential observer bias by evaluating the CTmax of lab-reared ants of one colony. Each observer measured CTmax of ten individual workers of the colony under the same conditions. We found no significant difference in mean CTmax across any of the observers (ANOVA, F3,36 = 1.576, P = 0.212).

For investigating CT patterns along elevation gradients, we applied generalized additive models with elevation as a smooth term explanatory variable. We restricted the smooth term parameter k to 5 to avoid overfitting48,49. Thermal tolerance ranges were calculated by subtracting mean CTmin from mean CTmax for each study plot. We checked the trend of thermal ranges along elevation with an ordinary linear model. We additionally applied the same models for each major insect order. Thermal safety margins were calculated for both datasets by subtracting plot-specific variables of mean annual temperature and mean daily maximum air temperature of the warmest month from the CTmax values. Both temperature data variables were derived from the CHELSA data base (bio1 and bio5 of the BIOCLIM+ dataset)50.

As a test for plastic responses, a subset of insects was first exposed to heat (40 °C, n = 777 insects) or cold (14 °C, only in the neotropics, n = 490 insects) shock for 10 min prior testing, replacing the 28 °C acclimatization period. The sublethal temperatures for the heat shock were identified in pre-experiments. In the Neotropics up to an elevation of 2,700 masl, insects generally survived a 10 min shock of 40 °C; at higher elevations 35 °C was chosen as shock temperature, because a large proportion of the pilot test insects did not survive a 40 °C shock. After the shock, the standard protocol continued from 28 °C with temperature changes in 2-min intervals.

Plastic capacities were analysed by comparing CT measurements between individuals that were exposed or not exposed to a heat or cold shock before CT measurements. We added heat shock or cold shock (yes/no) as a variable for CTmax or CTmin, respectively, and calculated the means for both groups. Data were additionally grouped by elevation level (lowlands: <600 masl, mid: ≥600 masl and <1,200 masl, high ≥1,200 masl), because we expected heat shock effects to vary depending on elevation. We hypothesized that a thermal shock would increase tolerance—that is, have a positive effect. Therefore, for CTmax, effect calculations were done by subtracting the mean thermal tolerance of the control group from the mean thermal tolerance of the group exposed to a heat shock (‘shock yes’ – ‘shock no’). For CTmin, the calculation was done in reverse (‘shock no’ – ‘shock yes’), so that the effect direction remains the same, with a positive effect indicating an increased tolerance level.

Insect identification and phylogeny

All insects were morphologically sorted into orders and, where possible, families, and delimited into species-like units based on individual DNA barcoding. For this, we sampled tissue from all specimens that were tested for thermal tolerance and positioned them in a well filled with 30 μl of absolute ethanol (99.9%) in a 96-well microplate. Sequencing preparation and conduction was done at the Canadian Centre for DNA Barcoding (CCDB). Libraries were created for DNA barcoding (standard 658 bp COI (mitochondrial cytochrome c oxidase subunit I) barcoding) using SMRT sequencing technology on a PacBio Sequel IIe51. All genetic sequences were uploaded together with specimen photographs and sampling information to BOLD (database code DS-A2TP; https://www.boldsystems.org/). The COI sequences had an average length of 557 bp with a minimum overlap of 303 bp (74% of all COI sequences were larger than 500 bp and 50% larger than 600 bp).

We applied the BOLD sequence cluster tool which uses the refined single linkage (RESL) algorithm with a pairwise distance model to sort all insects into unique operational taxonomic units (OTU), which we used as species-like units (called ‘species’ in the text)52. Contaminants, records with stop codons and sequences with a length below 300 base pairs were excluded. In total, 4,300 barcoded individuals were included in the final phylogenetic analyses of which 2,330 were unique OTUs, resulting in an average of 1.8 individuals per OTU. The CTmax data included 2,246 measurements with 1.9 individuals per OTU, the CTmin data included 1,849 total observations with a mean of 2 individuals per OTU. We used the BOLD ID engine (minimum of 80% similarity to databased sequences) to allocate all sampled insects to family level53.

We used R to create a phylogeny based on a family-level backbone tree and DNA sequences20. For this, we downloaded an insect family-level backbone tree54. For each family, a separate subtree was calculated first, using the AlignSeqs function from DECIPHER55 and a maximum likelihood model (TreeLine function). Statistical support for each branch is provided by aBayes values (see data repository). If a family consisted of only one OTU, a ‘tree’ with a single branch of fixed length was constructed. Next, all subtrees were added to the ultrametric backbone tree using the bind.tree function from the ape package56. Branch lengths were calibrated with the bladj function from phylocom57, that estimates node ages based on fossil calibration points while unknown ages are evenly distributed between known nodes54. For clearer visualization (Fig. 1h), terminal tip heights were equalized with the forceEqualTipHeights function from ips58. Note that while this gives the appearance of an ultrametric tree, the branch lengths do not represent absolute time, but the result is a phylogeny with relative branch lengths. All scripts and details of phylogeny construction can be found in20.

We reconstructed ancestral trait values of thermal tolerances using the fastAnc function from phytools59, plotted them on the phylogenetic tree with ggtree60, and calculated a phylogenetic correlogram using phylosignal to test for significance of the phylogenetic signal—that is, if trait values of related OTU are more similar (or dissimilar) than expected by chance21. The phylogenetic parameters Pagel’s lambda and Blomberg’s K were tested with the phylosig function and 10,000 randomizations. To disentangle the effects of adaptation or acclimatization to a local climate from those of phylogenetic relatedness, we applied a phylogenetic regression using the phylolm package, and function of the same name, with elevation as predictor and phylogenetic relationships entering a covariance matrix of the model either based on the assumption of a Brownian motion and an Ornstein–Uhlenbeck model of trait evolution61. We compare the Ornstein–Uhlenbeck and Brownian motion models since they represent two mechanistically contrasting hypotheses about trait evolution and are most commonly used in literature9. Under a Brownian motion model, traits are assumed to have evolved under random evolutionary drift, under an Ornstein–Uhlenbeck model with stabilizing selection towards an optimum. We calculated the evolutionary optimum for CTmax under an Ornstein–Uhlenbeck model—that is, the parameter θ, using the fitContinuous function of the geiger package62. We compared model performance using the Akaike information criterion63. Variance partitioning to extract partial r2 values was conducted on these models using the phylolm.hp package64.

In order to verify the dependence of results concerning elevational trends in CT, on the reconstruction of ancestral traits, the estimation of a phylogenetic signal and of an upper boundary of CTmax (Ornstein–Uhlenbeck model), we conducted an extensive set of robustness analyses considering various modifications of the phylogenetic tree and various data subsets, which is described in the Supplementary Information, with results presented in Extended Data Fig. 3 and Supplementary Table 1.

Protein stability prediction

We predicted the thermal stability of proteins applying the deep learning model DeepSTABp26. It uses a transformer-based protein language model to extract sequence embeddings, which are analysed with advanced deep learning techniques for large-scale protein stability predictions26. To cover proteins from species across all insect orders, we downloaded all available genomes (protein format) from 677 insect species from InsectBase 2.065. This data covered 20 orders, 158 families and 457 genera. Next, in R, we imported all genomic data translated into amino acid FASTA files and then randomly selected 1,000 proteins per species, a trade-off to receive as many overlapping proteins between species as possible while keeping the following analyses at a feasible computation time. We set up a local version of DeepSTABp, to predict melting points for this large number of proteins. Anaconda PowerShell was used to create a conda environment and Python programming language (v.3.13) to run the script66. In DeepSTABp, we set growth conditions to ‘cell’ and a default temperature of 22 °C (ref. 26). For testing robustness of results, we conducted analyses with data from all genomes, only high-quality genomes (BUSCO > 89.9, N50 > 300 kb), and only for proteins which were covered by all insect species. Furthermore, for comparison we used data of all proteins and of the 25% proteins per species that showed the highest thermal sensitivity (n = 88,643 proteins from 677 species).

To investigate the underlying, structural mechanism of heat tolerance in insects, we predicted CTmax by protein melting temperatures Tm. Differences in Tm across orders and families were tested with mixed effect models (lme), setting species-specific protein identity as random term. For the comparison of Tm with field-measured CTmax, we calculated mean CTmax values for each family of the Afrotropical and Neotropical data. We calculated the 25% quantile of Tm for each species (that is, a proxy for an average Tm of temperature sensitive proteins) of the genomic dataset and then averaged these values among all species per family. Using a linear model (lm), we tested the relationship between Tm of the temperature sensitive proteins (average of the 25% quantile of Tm) and the mean CTmax of families. Here, we first calculated an unweighted linear model and, second, a model weighted for the number of species with genomic data in each family.

Climate data

On all Neotropical plots, one TMS-4 soil and one air temperature logger (TOMST) recorded air temperature at 15 cm and 2 cm above the ground, as well as soil temperature and moisture at −6 cm depth in 15-min intervals for approximately one year (September 2022 to December 2023)67. Air temperature was additionally measured at 1.5 m height with iButton sensors (Analog Devices) in 240 min intervals. The sensors were protected from rain and sunlight using white plastic dishes (diameter 18 cm)68. Air temperatures at 1.5 m (Tair at 1.5 m) were highly predictive of the temperature at 15 cm height (Tair at 15 cm)—R² = 0.999, Tair at 1.5 m = 0.26673 + 0.99845 × Tair at 15 cm—and due to the denser sampling intervals, data of the TMS-4 sensor were used for final statistical analyses. At one plot (ID 056), the TMS logger could not be recovered due to fallen trees; therefore, the mean annual temperature from iButton data was used to predict Tair at 15 cm for this plot instead. For the East African study plots, we did not have temperature loggers available but retrieved comparable data by modelling shaded air temperatures using NicheMapR. We simulated hourly temperatures at every plot across one year (micro_global function). This climatic model takes detailed environmental variables into account, such as elevation, slope, solar radiation and absorptivity69.

Additionally, for all study plots climate data (BIOCLIM+: mean annual air temperature (bio1); mean daily maximum air temperature of the warmest month (bio5); mean daily minimum air temperature of the coldest month (bio6)) were extracted from CHELSA data base. This dataset is based on temperature measurements of climate station from the years 1981–2010. This was done to have climate data with higher comparability between the geographic regions and to model future temperatures at the study plots. CHELSA was chosen as it is particularly suitable for modelling climate along mountain slopes due to its terrain-based downscaling of global data (https://chelsa-climate.org). Both bio1 and bio5 climatic variables were highly correlated to estimates of the same measures based on the field-measured climatic data (Extended Data Fig. 9 and Supplementary Information).

Surface temperatures for all study plots were derived from the ECOSTRESS sensor, a radiometer mounted on the International Space Station that measures surface temperatures with a resolution of 70 m (ref. 29). As ECOSTRESS measures surface temperatures at a low temporal resolution and significant parts of the data were filtered due to low data quality (for example, due to cloud cover), surface temperature measurements of study plots were enriched by additional measurements of 50 randomly selected locations within a buffer of 5 km around each plot. For all additional locations the elevational level was determined using the NASA SRTMGL1 digital elevation model (v.003) with a spatial resolution of 1 arc-second (approximately 30 m). We applied a filter (binary ‘0b00’ = best quality retrieval) to only use high-quality surface temperature data. For better visualization, we only plotted temperatures above the 50th percentile of temperature values in Fig. 3.

Heat coma models

For better estimating the effects of current and future temperatures on tropical insects, we converted the dynamic CT values to static CT values and calculated heat coma times tcoma for present and predicted future environmental temperatures19. The static CT model includes a thermal sensitivity coefficient z, which describes how knockdown time changes with temperature. Across different insect species, z varies between 1 and 5, with an average value of 3 (ref. 19). To provide additional estimations of z, we tested ramping rates from 1 to 0.06 °C min−1 with three species of leaf cutter ants in the Neotropics (Acromyrmex coronatus, Acromyrmex octospinosus and Atta colombica) as model organisms, since they could be easily found along an elevation gradient from 270–1,349 masl. In the ant data, we found z to range from 2.16–5.50 along the gradient, which overlapped with reports from the literature. For the final static value calculation, we used z = 3, following a conservative approach. Under the assumption of higher z values, tcoma would be shorter than the values reported in Fig. 3.

For the calculation of the effect of environmental temperatures on tcoma of insect communities under current climate and climate change scenarios we extracted community-level CTmax values from the lowest plot and applied it across the whole elevational gradient, a rather conservative approach, assuming that the thermal sensitivity of insects across the elevation gradient can, by species turnover, adaptation, or acclimatization, increase to values of CTmax currently found in lowland species. We calculated tcoma assuming an average CTmax (median CTmax of all lowland insects), for a 25% quartile of CTmax (termed ‘more heat-sensitive insects’) and for a 10% quantile of CTmax (‘most heat-sensitive insects’). In the Neotropics, the 10% quantile of all insects measured in the lowland CTmax was 40 °C, the 25% quantile was 41 °C, and the median was 42 °C. In the Afrotropics, the 10% quantile of CTmax was 43 °C, 45 °C (25% quantile) and 47 °C (median). For future climate projections (2071–2100) under the three shared socio-economic pathways SSP1-2.6 (sustainable scenario), SSP3-7.0 (medium-high scenario) and SSP5-8.5 (high scenario) we used the GFDL-ESM4 climate model predictions (highest priority; https://protocol.isimip.org/#/ISIMIP3b/biodiversity) of bio5 supplied by the CHELSA database50. We extracted the mean daily maximum air temperature of the warmest month (bio5) and calculated the anomaly based on the difference between current and future bio5 temperatures (Extended Data Fig. 8). We then estimated the future air temperatures by adding these anomalies to the current environmental temperatures measured in the field (Neotropics) and modelled microclimate (Afrotropics), as well as for the surface temperatures (ECOSTRESS) on each plot. Using this approach, we incorporated the fine-scaled temporal variation in environmental temperatures along the Afrotropical and Neotropical elevation gradients to future climate projections. Thereby, we assume that the differences of environmental temperatures at small temporal scale to bio5 remains the same under future climate projections (details in Supplementary Information). We acknowledge that surface temperatures may not warm at the same rate than air temperatures. The difference between surface and air temperatures is expected to increase with increasing temperatures, particularly in open areas70. Thus, our method provides conservative estimates of future surface temperatures. For calculating the percentage of critical temperatures (leading to heat coma within an exposure time of 8 h), we related for each study plot the number of critical temperatures to the total number of temperature values (including 100% of all temperature measurements—that is, including night temperatures).

While reported results are mainly based on the GFDL-ESM4 climate model, all analyses were additionally calculated with a multi-(climate) model ensemble. The detailed methods are described in the Supplementary Information and results of the multi-model-ensemble are shown in Supplementary Fig. 1.

Inclusion and ethics statement

Fieldwork in Peru and Kenya was conducted in collaboration with local research institutions, including the Universidad Peruana Cayetano Heredia and the Museo de Historia Natural in Lima, and the University of Embu in Kenya. All necessary permits were obtained from the respective national authorities (see Acknowledgements). Local scientists were involved in study design, data collection and manuscript preparation, and are included as co-authors. Field logistics were supported by local assistants, who are acknowledged accordingly. The research supported local capacity building through training initiatives and shared data access. The collection of biodiversity data addresses locally relevant priorities and contributes to future monitoring and conservation efforts.

Reporting summary

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