It grows on cold seashores, preferring stony, shingle, fragmented shale or gravel beaches. It sometimes grows on sand and occasionally in cracks in rocks. It has a very northerly distribution and occurs in Asia, Europe, North America and even the Arctic. In Québec, it is found as far up the estuary as Isle-aux-Coudres (Charlevoix).