A very widespread sedge that can grow both in wet and dry habitats. Found at the margin of a mowed meadow composed mostly of mesophilous European forage grasses, together with C. vulpinoidea .