Background and AimsTo counteract the ongoing worldwide biodiversity loss, conservation actions are required to re-establish populations of threatened species. Two key factors predominantly involved in finding the most suitable habitats for endangered plant species are the surrounding plant community composition and the physicochemical parameters of the soil rooting zone. However, such factors are likely to be context- and species-dependent, so it remains unclear to what extent they influence the performance of target species.MethodsWe studied large and small Swiss populations of the endangered orchidCypripedium calceolus. We measured functional traits related toC. calceolusplant and population performance (clonal patch area, plant height, number, of leaf, stems, flowers and fruits), realized vegetation surveys, soil profile analyses, and tested for relationships between plant traits and the surrounding vegetation structure or soil physicochemical parameters.ResultsLarge populations contained bigger patches with more stems and leaves, and produced more flower per individual than small populations. Neither vegetation alliances nor soil classes per se could predictC. calceolusfunctional traits and population size. However, functional traits explaining population performance and size were related to specific soil parameters (soil organic matter content, pH and phosphorus), in addition to a combination of presence-absence of plant indicator species, relating to ecotones between forests and clearings.ConclusionWe show that even for species that can grow across a wide range of vegetation groups both indicator species and specific soil parameters can be used to assess the most favourable sites to implement (re)-introduction actions.Supplementary InformationThe online version contains supplementary material available at 10.1007/s11104-023-05945-4.