Objective To investigate the influencing factors for the esophagogastric varices (EGV) and variceal bleeding (EGVB) in cirrhosis patients, and to construct risk prediction models. Methods Clinical data of 301 cirrhosis patients hospitalized in the Department of Gastroenterology, the First Affiliated Hospital of Guangxi Medical University from January 2016 to January 2024 were retrospectively analyzed. First, all patients were divided into an EGV group or a non-EGV group based on endoscopic findings; then, the EGV group was further divided into an EGVB group or a non-EGVB group based on the occurrence of EGVB. Univariate analysis and binary logistic regression model were used to screen independent influencing factors, and prediction models were constructed. The area under the receiver operating characteristic (ROC) curve (AUC) was used to evaluate the predictive performance of the models and various indicators. Results Male (OR=13.052, 95% CI: 2.943-57.887) and ascites (OR=6.073, 95% CI: 1.455-25.346) were independent risk factors for EGV in cirrhosis patients, while a high fibrinogen level was an independent protective factor (OR=0.297, 95% CI: 0.117-0.757) (all P<0.05); the prediction model for EGV constructed based on the above factors had an ROC AUC of 0.857. The globulin-to-platelet ratio had moderate predictive value for esophageal varices (AUC=0.707), and its performance improved when combined with imaging examinations (AUC=0.830); the combination of imaging examinations with the globulin-to-albumin ratio, aspartate aminotransferase-to-platelet ratio index, and fibrosis-4 index improved the predictive performance for gastric varices (AUC=0.745). Among cirrhosis patients with EGV, the red color sign was an independent risk factor for EGVB (OR=9.582, 95% CI: 4.907-17.805), while a high fibrinogen level was an independent protective factor (OR=0.033, 95% CI: 0.001-0.918); the prediction model for EGVB constructed based on the above factors reached a high AUC of 0.988. Conclusion Male and ascites are independent risk factors for EGV in cirrhosis patients, the red color sign is an independent risk factor for EGVB in cirrhosis patients with EGV, and a higher fibrinogen level has a protective effect against both outcomes; the risk prediction models constructed based on the above-mentioned independent influencing factors show good performance. The strategy of combining imaging examinations with serological indicators helps improve non-invasive diagnostic value for EGV.