The saturated interstices below and adjacent to the riverbed (i.e., the hyporheic zone) can be a refuge for biota during low flows, flow cessation and river drying. Prior to complete drying, organisms are constrained by abiotic and biotic factors (e.g., water temperature, competition) and may respond through vertical migration into the hyporheic zone. However, it remains unclear when temperature and competition become harsh enough to trigger migration. Furthermore, potential consequences of using the hyporheic zone, which is often food-limited, on the survival, effects on ecosystem function and physiology of organisms are unknown. We tested the hypotheses that (1) Gammarus pulex, a widespread detritivore, migrates into the hyporheic zone to avoid increasing surface water temperature and intraspecific competition and (2) that these factors would reduce their survival, leaf mass consumption and energy stores. Using 36 mesocosms, three temperature (15, 20, 25°C) and species density levels (low, medium, high) were manipulated in a factorial design over 15 days. Increasing temperature to 25°C and a threefold increase in density both caused G. pulex to vertically migrate, and the interaction of these factors was additive, rather than antagonistic or synergistic. Importantly, survival, leaf consumption and glycogen content were reduced in high temperature and density treatments, suggesting tradeoffs between tolerating harsh surface conditions and limitations of inhabiting the hyporheic zone. Identifying that the hyporheic zone is used by G. pulex to avoid high water temperature and intraspecific competition is a key finding considering the global-scale increases in temperature and flow intermittence.