Objective To explore the levels of anxiety and stress and their influencing factors among university students of different majors under stress.Methods An online questionnaire survey was conducted in April 2022 on students majoring in interpreting and medicine in Shanghai to obtain demographic characteristics and health behaviors,and assess their levels of anxiety and stress by using standard scales.A total of 261 valid questionnaires were obtained.Multiple linear regression and binary Logistic regression were used to analyze the relationship between health behaviors,anxiety,and stress among the university students.Results Among the university students majoring in interpreting and medicine,17.4%and 19.4%experienced anxiety,while 51.5%and 55.8%were in a state of stress,respectively.The anxiety status of students in both majors was significantly correlated with sleep quality(interpreting major:β=-7.32,P<0.001;medicine major:β=-9.15,P<0.001).For students majoring in interpreting,those who met the World Health Organization's recommended weekly exercise levels and had shorter screen time outside of work had lower levels of anxiety(β=-5.63,P<0.01;β=0.01,P<0.05).For students majoring in medicine,those with shorter sedentary time each day had lower levels of anxiety(β=1.002,P<0.05),while those who had better sleep quality had lower levels of stress(β=-2.06,P<0.05).Conclusion Students of different majors exhibit similar anxiety and stress levels under stress state,but the influencing factors vary.Targeted health behavior interventions should be carried out for students of different majors to reduce their anxiety and stress levels and promote their mental health.