Preoperative fasting causes significant perioperative discomfort in patients. Preoperative oral carbohydrate (POC) is an important element of the enhanced recovery after surgery protocol, but its effect on cirrhotic patients who tend to have abnormal gastric emptying remains unclarified. We investigated the influence of POC on gastric emptying and preprocedural well-being in cirrhotic patients. A prospective, randomized, controlled study of cirrhotic patients with gastroesophageal varices scheduled for elective therapeutic endoscopy under intravenous anesthesia was conducted. We enrolled 180 patients and divided them into three groups: those not supplemented with carbohydrates for 8 h before therapeutic endoscopy (control group) and those administered a carbohydrate beverage 2 h (2 h group) and 4 h (4 h group) before endoscopy. The residual gastric volume was quantified before anesthesia, gastric emptying was evaluated using gastric ultrasonography, and preprocedural well-being was assessed using the visual analogue scale (VAS). Preanesthesia gastric sonography scores were similar among the three groups. No patient had residual gastric volume > 1.5 ml/kg in the control and 4 h groups, but six patients (11%) had a residual gastric volume of >1.5 ml/kg in the 2 h group, hence were at a risk of regurgitation and aspiration. Moreover, VAS scores for six parameters (thirst, hunger, mouth dryness, nausea, vomiting, and fatigue) in the 2 h group and three parameters (thirst, hunger, and mouth dryness) in the 4 h group were significantly lower than those in the control group, suggesting a beneficial effect on cirrhotic patients' well-being. Preoperative gastric peristaltic and operation scores, postoperative complications, length of hospital stay, and in-hospital expenses were not significantly different among the three groups. Our study indicated that avoiding preoperative fasting with oral carbohydrates administered 4 h before anesthesia can be achieved in cirrhotic patients. Further studies to assess whether POC can help improve postoperative outcomes in cirrhotic patients are needed.