Growth and development affect life-history traits, and consequently organismal fitness. The inevitable increase in body size during ontogeny is associated with changes in both resource use and predation risk, which results in the ontogenetic shift in habitat preferences. In this study, we examined whether the shift in preferred body temperatures (Tps) of newt larvae Triturus alpestris increases the Tps deviation of the most vulnerable stages (after hatching and during metamorphosis) from the Tps range of their main predator, dragonfly larvae Aeshna cyanea– the ‘predator-free temperatures’ hypothesis. Analyses of thermoregulatory behaviour in the laboratory thermal gradient showed that freshly hatched newt larvae maintained lower water temperatures than larvae in later stages, whose Tps largely fell into the Tps range of dragonfly larvae. With respect to the thermal quality of natural habitat, the anti-predator effectiveness of the Tps shift decreased during development. Water temperatures in natural habitats were located largely below the preferred body temperature range of both newt and dragonfly larvae, which limits their potential thermal niche partitioning. We conclude that factors other than predator avoidance drive the ontogenetic Tps shift in our model system.