Enhanced recovery after surgery (ERAS) has been used safely and effectively in patients with gastric cancer. Our aim was to evaluate the short-term outcomes of total gastrectomy (TG) versus distal gastrectomy (DG) for gastric cancer under ERAS. A prospectively collected database of 1349 patients with gastric cancer who underwent TG or DG between January 2016 and September 2022 was retrospectively analyzed. Propensity score matching analysis was used at a ratio of 1:1 to reduce confounding effects, and perioperative clinical outcomes were compared between the two groups. The primary outcome was overall postoperative complications (POCs). Secondary outcomes comprised time to bowel function recovery, postoperative hospital stay, mortality, and 30-day readmission rate. Of 1349 identified patients, 296 (21.9%) experienced overall POCs. Before matching, multivariable analysis revealed that age, body mass index, diabetes, operation time, and extent of gastrectomy were independent risk factors for overall POCs. After matching, each group comprised 495 patients, and no significant differences were observed between the groups for all parameters except tumor location. Compared with TG, DG was associated with significantly earlier days to first flatus and to eating a soft diet, and shorter postoperative hospital stay (P < 0.05). The incidence of overall- and severe POCs (Clavien–Dindo grade ≥ IIIa) in the TG group was significantly higher vs. the DG group (P < 0.05). There was no significant difference in the number of days to eating a liquid diet, or mortality and 30-day readmission rates between the groups (P > 0.05). In the subgroup analysis for middle-third gastric cancer, the TG group experienced higher rates of overall- and severe POCs, with a longer postoperative hospital stay. Compared with DG, patients who underwent TG had higher POC rates, slower recovery of bowel function, and longer duration of hospitalization under ERAS. Therefore, caution is needed when initiating early feeding for patients who undergo TG.