The high incidence and mortality of gastric cancer (GC) pose a significant threat to human life and health, and it has become an important public health challenge in China. Body weight loss is a common complication after surgical treatment in patients with GC and is associated with poor prognosis and GC recurrence. However, current attention to postoperative weight change in GC patients remains insufficient, and the descriptions of postoperative weight change and its influencing factors are also different. To investigate body weight changes in patients with GC within 6 mo after gastrectomy and identify factors that influence dynamic body weight changes. We conducted a prospective longitudinal study of 121 patients with GC and collected data before (T0) and 1 (T1), 3 (T2), and 6 (T3) mo after gastrectomy using a general data questionnaire, psychological distress thermometer, and body weight measurements. The general estimation equation (GEE) was used to analyze the dynamic trends of body weight changes and factors that influence body weight changes in patients with GC within 6 mo of gastrectomy. The median weight loss at T1, T2, and T3 was 7.29% (2.84%, 9.40%), 11.11% (7.64%, 14.91%), and 14.75% (8.80%, 19.84%), respectively. The GEE results showed that preoperative body mass index (BMI), significant psychological distress, religious beliefs, and sex were risk factors for weight loss in patients with GC within 6 mo after gastrectomy (P < 0.05). Compared with preoperative low-weight patients, preoperative obese patients were more likely to have weight loss (β = 14.685, P < 0.001). Furthermore, patients with significant psychological distress were more likely to lose weight than those without (β = 2.490, P < 0.001), and religious patients were less likely to lose weight 6 mo after gastrectomy than those without religious beliefs (β = -6.844, P = 0.001). Compared to female patients, male patients were more likely to experience weight loss 6 mo after gastrectomy (β = 4.262, P = 0.038). Male patients with GC with high preoperative BMI, significant psychological distress, and no religious beliefs are more likely to lose weight after gastrectomy.