Environmental temperature has strong impacts on the rate and efficiency of nutrient use in insects, but little is knownabout how changes in temperature influence their nutrient preference. Here we examined the effect of temperature onthe nutrient preferences of mealworm beetles (Tenebrio molitor L.) by offering them a choice between two nutritionallycomplementary diets (P:C 1:5 vs. 5:1) at four different temperatures (20, 25, 30, or 35 ̊C). Beetles selected protein andcarbohydrate in a 1:1 ratio at 25 and 30 ̊C, but exhibited a significant preference for carbohydrate at 20 and 35 ̊C. Theseresults indicate that nutrient preference can shift plastically to match the altered nutrient requirement of beetles underchanging thermal conditions. The present findings have implications for the impacts of climate warming on diet selectionin insects.