Foraging birds can manage time spent vigilant for predators by forming groups of various sizes. However, group size alone will not always reliably determine the optimal level of vigilance. For example, variation in predation risk or food quality between patches may also be influential. In a field setting, we assessed how simultaneous variation in predation risk and intake rate affects the relationship between vigilance and group size in foraging Ruddy Turnstones Arenaria interpres. We compared vigilance, measured as the number of ‘head-ups’ per unit time, in habitat types that differed greatly in prey energy content and proximity to cover from which predators could launch surprise attacks. Habitats closer to predator cover provided foragers with much higher potential net energy intake rates than habitats further from cover. Foragers formed larger and denser flocks on habitats closer to cover. Individual vigilance of foragers in all habitats declined with increasing flock size and increased with flock density. However, vigilance by foragers on habitats closer to cover was always higher for a given flock size than vigilance by foragers on habitats further from cover, and habitat remained an important predictor of vigilance in models including a range of potential confounding variables. Our results suggest that foraging Ruddy Turnstones can simultaneously assess information on group size and the general likelihood of predator attack when determining their vigilance contribution.