Carex pilulifera, the pill sedge, is a European species of sedge found in acid heaths, woods and grassland from Macaronesia to Scandinavia. It grows up to 30 cm (12 in) tall, with 2–4 female spikes and 1 male spike in an inflorescence. These stalks bend as the seeds ripen, and the seeds are collected and dispersed by ants of the species Myrmica ruginodis.