A major challenge in ecology is to understand how different species interact to determine ecosystem function, particularly in communities with large numbers of co-occurring species. We use a trait-based model of microbial litter decomposition to quantify how different taxa impact ecosystem function. Further, we build a novel framework that highlights the interplay between taxon traits and environmental conditions, focusing on their combined influence on community interactions and ecosystem function. Our results suggest that the impact of a taxon is driven by its resource acquisition traits and the community functional capacity, but that physiological stress amplifies the impact of both positive and negative interactions. Further, net positive impacts on ecosystem function can arise even as microbes have negative pairwise interactions with other taxa. As communities shift in response to global climate change, our findings reveal the potential to predict the biogeochemical functioning of communities from taxon traits and interactions.