Plants can adapt to environmental changes by adjusting their functional traits and biomass allocation. The size and number of flowers are functional traits related to plant reproduction. Life history theory predicts that there is a trade-off between flower size and number, and the trade-off can potentially explain the adaptability of plants. Elevation gradients in mountains provide a unique opportunity to test how plants will respond to climate change. In this study, we tried to better explain the adaptability of the alpine plant Gentiana lawrencei var. farreri in response to climate change. We measured the flower size and number, individual size, and reproductive allocation of G. lawrencei var. farreri during the flowering period along an elevation gradient from 3200 to 4000 m, and explored their relationships using linear mixed-effect models and the structural equation model. We found that with elevation increasing, individual size and flower number decreased and flower size increased, while reproductive allocation remained unchanged. Individual size positively affected flower number, but was not related to flower size; reproductive allocation positively affected flower size, but was not related to flower number; there is a clear trade-off between flower size and number. We also found that elevation decreased flower number indirectly via directly reducing individual size. In sum, this study suggests that G. lawrencei var. farreri can adapt to alpine environments by the synergies or trade-offs among individual size, reproductive allocation, flower size, and flower number. This study increases our understanding of the adaptation mechanisms of alpine plants to climate change in alpine environments.