Many psychiatric patients suffer from overweight/obesity and subsequent metabolic disturbances, where psychotropic medication is one of the main contributors. However, the magnitude of weight gain ranges individually, which leads to questioning the role of other contributors like lifestyle factors. The present study investigated several lifestyle factors among psychiatric inpatients, their relation to biological factors, and their predictive capability for weight gain during treatment. Using a naturalistic observational study design, psychiatric inpatients of all diagnoses were followed for 4 weeks from the start of treatment with weight gain-associated medication.N= 163 participants entered the study. Lifestyle factors were assessed by patient self-report questionnaires. Body weight change over time was calculated relative to baseline body weight. Our study provides three main findings: (1) Obesity and/or metabolic syndrome (metSy) were associated with emotional eating (disinhibition), craving for fast food and sweets, and weight cycling. (2) Patients without metSy and normal BMI experienced increased sweets craving (also for women), a more positive attitude towards drugs, and an improvement of affect (also for men). (3) Sex, presence of metSy and/or drug dosage interacted with disinhibition change, sweets craving change (trend), and fast food craving change to predict weight change over time. Furthermore, drug attitude change interacted with BMI, drug dosage, and presence of metSy to predict weight change. Lifestyle factors, especially eating behaviors, are related to metabolic disturbances and predict weight gain in interaction with clinical parameters.Supplementary InformationThe online version contains supplementary material available at 10.1007/s00406-022-01442-4.