The resources available to an individual in any given environment are finite, and variation in life history traits reflect differential allocation of these resources to competing life functions. Nutritional quality of food is of particular importance in these life history decisions. In this study we tested trade-offs among growth, immunity and survival in three groups of greater wax moth (Galleria mellonella) larvae fed on diets of high and average nutritional quality. We found rapid growth and weak immunity (as measured by encapsulation response) in the larvae of the high-energy food group. It took longer to develop on food of average nutritional quality. However, encapsulation response was stronger in this group. The larvae grew longer in the low-energy food group, and had the strongest encapsulation response. We observed the highest survival rates in larvae of the low-energy food group, while the highest mortality rates were observed in the high-energy food group. A significant negative correlation between body mass and the strength of encapsulation response was found only in the high-energy food group revealing significant competition between growth and immunity only at the highest rates of growth. The results of this study help to establish relationships between types of food, its nutritional value and life history traits of G. mellonella larvae.