Professional commitment of nursing students is closely related to the stability of the nursing team. Personality traits and metacognition may be related to professional commitment. We investigate the association between Big Five personality, metacognition, and professional commitment among nursing students, and further explore whether Big Five personality modifies the association between metacognition and professional commitment. From December 2023 to January 2024, a cross-sectional study was conducted among 3631 nursing students from 17 universities in China through the online platform Sojump.com by cluster sampling method and using the general information questionnaire, BFI-44 (Big Five Inventory 44) scale, metacognition scale and professional commitment scale to investigate their demographic data, personality traits, level of metacognition and level of professional commitment. Latent profile analysis was employed to identify optimal categories of personality traits. Multivariate logistic regression was used to analyze the association between the personality traits and professional commitment, as well as metacognition and professional commitment in all participants and participants with different personality traits subgroups, adjusting for potential covariates. Furthermore, the potential mediating role of metacognition between personality traits and professional commitment was also investigated. Three distinct personality traits were identified: sensitive-negative personality (65.2%), ordinary personality (26.6%), and open-positive personality (8.2%). Compared with nursing students with sensitive-negative personality, nursing students with ordinary personality and open-positive personality were associated with professional commitment, respectively [OR (95% CI): 7.01 (5.99-8.20), 21.09 (15.43-28.83)]. The p value for trend of personality and professional commitment was < 0.001. Metacognition was associated with professional commitment [OR (95% CI): 5.95 (5.20-6.81); p < 0.001]. Personality traits could modify the association between metacognition and professional commitment (pinteraction = 0.009). The mediating role of metacognition between Big Five personality and professional commitment has also been verified. Personality traits and metacognition of nursing students need to be paid attention to, and interventions based on metacognition may help nursing students with different personality traits to improve their professional commitment level.