The symbiotic relationships between Neotyphodium endophytes (Clavicipitacea) and certain coolseason (C3) grasses result in the synthesis of several alkaloids that defend the plant against herbivory. Over a 3 month period we evaluated the effects of temperature on the expression of these alkaloids in tall fescue, Festuca arundinacea Schreb, and perennial ryegrass, Lolium perenne L. (Poaceae). Response surface regression analysis indicated that month, temperature, and their interaction had an impact on the alkaloid levels in both grasses. We aimed to identify the alkaloids most closely associated with enhanced resistance to the fall armyworm, Spodoptera frugiperda JE Smith (Lepidoptera: Noctuidae), and clarify the role of temperature in governing the expression of these alkaloids. The dry weights and survival of fall armyworms feeding on endophyte-infected tall fescue or perennial ryegrass were significantly lower than for those feeding on uninfected grass, whereas endophyte infection had no significant influence on survival. For tall fescue, a four-alkaloid model consisting of a plant alkaloid, perloline, and the fungal alkaloids ergonovine chanoclavine, and ergocryptine, explained 47% of the variation in fall armyworm dry weight, whereas a three-alkaloid model consisting of the plant alkaloid perloline methyl ether and the fungal alkaloids ergonovine and ergocryptine explained 70% of the variation in fall armyworm dry weight on perennial ryegrass. Although temperature had a significant influence on overall alkaloid expression in both grasses, the influence of temperature on individual alkaloids varied over time. The levels of those alkaloids most closely linked to armyworm performance increased linearly or curvilinearly with increasing temperature during the last 2 months of the study. We conclude that the growth temperature of grasses can influence the performance of fall armyworm, and that this effect may be mediated through a set of plant-and endophyte-related alkaloids.