The limpet Patella vulgata is a key species of northern Atlantic rocky shore-associated communities, and is commonly considered to be important in regulating populations of canopy-forming Ascophyllum nodosum, through consumption of propagules and young recruits. Although P. vulgata is usually regarded as a non-selective epilithic biofilm grazer, a role in the collapse of established A. nodosum through grazing of adult plants has been repeatedly suggested. Factors controlling the preference of P. vulgata for epilithic biofilm or adult algae are still not clearly established. Here, we test the hypothesis that the diet of P. vulgata is mainly driven by the local availability of food sources. Limpets were sampled along the first 6 metres of an A. nodosum bed–bare rock gradient. Stable isotope ratios of their muscle tissue and digestive glands were measured. The contribution of A. nodosum to the diet of limpets was the highest in the immediate vicinity of macroalgae beds, which confirmed our initial hypothesis. However, the contribution of epilithic biofilm did not match our hypothesis, being the lowest for limpets colonizing bare rock. Instead, these limpets relied on a wide array of sources, including ephemeral green algae, biofilm and drifting A. nodosum fragments. Overall, our results indicate that A. nodosum can be readily grazed by limpets, which challenges the hypothesis that these macroalgae dominate rocky shores due to the absence of strong top-down control exerted by herbivores. Our results also highlight the need to consider the small spatial scale to understand the dynamic of herbivore–algae interactions in natural environments.