Aim: Multiple hypotheses predict how gradients of nutrient availability, plant biomass, and temperature shape trophic pyramids. We aim to disentangle the simultaneous influence of those factors and their indirect effects on trophic structure and individual trophic levels. Location: United States. Time period: 2017. Major taxa studied: Invertebrates. Methods: To examine differences in trophic pyramid shape and abundance within trophic levels and across ecological gradients, we conducted 54 standardized surveys of invertebrate communities in North American grasslands. We tested for the direct and indirect effects of plant biomass, temperature, sodium (Na), other essential elements (e.g. N, P, and K), and toxic heavy metals, (e.g. Ar and Pb) in plant tissue on both individual trophic levels, and trophic pyramid shape, estimated as the community trophic mean (CTM). Results: Plant sodium increased CTM, indicating that high plant sodium concentrations are associated with top-heavy invertebrate trophic pyramids. Sites with higher plant biomass had higher proportions of herbivores compared to higher trophic levels. Finally, increasing temperature resulted in more top-heavy trophic pyramids. Overall, plant biomass, temperature, and plant chemistry directly and indirectly affected the abundances within different trophic levels, highlighting the complexity of factors regulating trophic structure. Main conclusions: Trophic structure of grassland invertebrate communities is strongly influenced by plant sodium, plant biomass, and to a lesser extent, temperature. Grasslands occupy 30% of the Earth's terrestrial surface and are an imperiled ecosystem due to conversion to row crop agriculture. As biogeochemistry and temperature in the Anthropocene are increasingly modified, our results have considerable implications for the trophic structure of future grassland communities.