Temperate and alpine ecosystems are considered the most sensitive and vulnerable region towards climate change in the Indian Himalayan region. The current study investigates forest composition in relation to environmental and edaphic factors, which is critical for determining plant community patterns. The impact of climatic and soil properties was studied to better understand species diversity and composition over an elevational gradient (2500–4800 m) in Beas Valley, Northwestern Himalaya. A total of 181 species from 15 community types, representing 122 genera and 53 families (9 Trees, 13 shrubs, and 142 herbs) were recorded from the valley. Non-metric multidimensional scaling (NMDS) analysis revealed significant compositional dissimilarity (PseudoF = 10.16, R2 = 0.48, p < 0.001) among vegetation types. Structural equation modeling (SEM) results indicated that tree species diversity was significantly influenced by solar radiation (β=0.17, p = 0.001) and winter temperature (β=41.95, p = 0.017). It was observed that solar radiation and winter temperature shape the community types in high elevation temperate regions. In contrast, precipitation, solar radiation along with summer temperature determine the composition of sub-alpine communities, whereas solar radiation, winter temperature and soil pH determine the composition of alpine communities. This indicated that multiple environmental factors are responsible for this diversity. The research findings shed light on crucial factors influencing high elevation plant diversity, emphasizing the significance of understanding environmental correlations for effective conservation. This is pioneer study, which will act as a reference for future studies in Beas valley. This scientific foundation allows for prioritized conservation efforts, focusing on areas with specific environmental conditions influencing forest composition and plant diversity, ultimately contributing to better management and preservation of high elevation plant communities.