An annual of open habitats on heaths, in cleared and burnt woodland, on bushy commons, banks and sea-cliffs, usually growing on sandy, non-calcareous soils. 0-365 m (Rinns of Kells, Kirkcudbrights.).
There has been little change in the distribution of S. sylvaticus since the 1962 Atlas.
European Temperate element.