Understanding how biogeochemical cycles relate to the structure of ecological communities is a central research question in ecology. Here we approach this problem by focusing on body size, which is an easily measured species trait that has a pervasive influence on multiple aspects of community structure and ecosystem functioning. We test the predictions of a model derived from metabolic theory using data on ecosystem metabolism and community size structure. These data were collected as part of an aquatic mesocosm experiment that was designed to simulate future environmental warming. Our analyses demonstrate significant linkages between community size structure and ecosystem functioning, and the effects of warming on these links. Specifically, we show that carbon fluxes were significantly influenced by seasonal variation in temperature, and yielded activation energies remarkably similar to those predicted based on the temperature dependencies of individual-level photosynthesis and respiration. We also show that community size structure significantly influenced fluxes of ecosystem respiration and gross primary production, particularly at the annual time-scale. Assessing size structure and the factors that control it, both empirically and theoretically, therefore promises to aid in understanding links between individual organisms and biogeochemical cycles, and in predicting the responses of key ecosystem functions to future environmental change.