Ant morphological traits (dry mass, head length, body size and leg length) increased with elevation.• Ant δ 13 C increased with elevation, whereas δ 15 N did not.• Ant δ 13 C values correlated positively with soil C:N ratio. Understanding the responses of species to changing climates is becoming increasingly urgent. Investigating the effects of climate change on the functional traits of species at the intraspecific level is particularly important. We used elevation gradients as proxies for climate change to explore the intraspecific responses of two grounddwelling ant species, Ectomomyrmex javanus and Odontoponera transversa, from 100 to 700 m.a.s.l. within a subtropical evergreen broadleaf forest. Our study addressed the specific relationships among environmental factors, trait variations, and trophic levels. Key functional traits such as dry mass, head length, body size, and leg length exhibited a general increase with elevation. Using stable isotope signatures (δ 13 C and δ 15 N), we quantified shifts in diets and trophic positions along the elevation gradients. Notably, our data revealed a significant elevation-related increase in Ant δ 13 C, whereas δ 15 N exhibited no such correlation. Moreover, Ant δ 13 C values of E. javanus demonstrated a negative correlation with mean annual temperature (MAT), and the δ 13 C values of both species correlated positively with soil C:N ratio. Having revealed that the individual traits and δ 13 C signatures of ground-dwelling ants exhibit significant negative correlations with temperature, our findings suggest that climate warming has the potential to cause intraspecific variation in the functional traits and diets of ground-dwelling ants and possibly other insect species.