This is a major dominant of fens and calcareous shores, usually occurring in dense clumps. Inflorescences are highly variable; some plants are largely male, with few or even no perigynia in the spikes and others are mostly female, with few or no male flowers, these looking quite different. Baffling at first, once one is familiar with the species, this odd feature makes it easy to recognize.