Four-dimensional phase-contrast magnetic resonance imaging (4D flow MRI) is a relatively new type of MRI acquisition technique that provides a unique and comprehensive set of information within a single acquisition, including hemodynamic and anatomical information. This study was designed to noninvasively evaluate the correlation between the presence and severity of spontaneous splenorenal shunt (SRS) or gastrorenal shunt (GRS) and 4D flow MRI-derived parameters. This retrospective case-control study enrolled 70 patients who were diagnosed with hepatocirrhosis portal hypertension and admitted to the Second Affiliated Hospital of Chongqing Medical University. Patients were divided into three groups according to the diameter of the SRS and GRS. 4D flow MRI-derived parameters, including the turbulent kinetic energy, total volume (TV), flow velocity, blood flow volume (BFV), maximum flow (MF), wall shear stress, and relative pressure, were obtained for eight cut planes: proximal to the splenomesenteric confluence and liver hilum of the portal vein (PV1/PV2); the left/right branch of the bifurcation of the PV (LPV/RPV), at the mesosplenic confluence of the splenic vein (SV1), at the splenic hilum of the SV (SV2); at the proximal to the splenomesenteric confluence of the superior mesenteric vein (SMV1), and 5 cm from the splenomesenteric confluence of the SMV (SMV2). Comparisons among the three groups were based on one-way analysis of variance (ANOVA). Logistic regression was used to identify the risk factors for small SRS/GRS (S-SRS/GRS) and for large SRS/GRS (L-SRS/GRS). Receiver operating characteristic curves were used to evaluate the diagnostic performance of the independent risk factors for SRS and GRS. The associations between the clinical data and the 4D flow MRI-derived parameters of GRS and SRS were assessed via Spearman correlation coefficient analysis. The presence of SRS or GRS was correlated with TVLPV (r=-0.302; P=0.035), TVPV1 (r=-0.385; P=0.001), TVPV2 (r=-0.301; P=0.013), BFVPV1 (r=-0.360; P=0.010), BFVSMV2 (r=0.371; P=0.008), MFPV1 (r=-0.341; P=0.004), and MFPV2 (r=-0.291; P=0.017). Meanwhile, the severity of the SRS or GRS was correlated with alanine aminotransferase level (r=-0.535; P<0.001), BFVLPV (r=-0.560; P=0.008), aspartate aminotransferase level (r=-0.321; P=0.038), and model for end-stage liver disease score (r=0.323; P=0.039). TVPV1, TVPV2, BFVPV1, BFVPV2, and MFSMV2 were found to be independent risk factors for L-SRS/GRS, with intermediate diagnostic efficacy, with the area under the curve (AUC)TV PV1=0.706 [95% confidence interval (CI): 0.519-0.853; sensitivity, 61.54%; specificity, 80.77%; P=0.018], AUCBFV PV1 =0.694 (95% CI: 0.507-0.844; sensitivity, 95.00%; specificity, 63.16%; P=0.035), AUCTV PV2 =0.729 (95% CI: 0.544-0.870; sensitivity, 77.78%; specificity, 66.67%; P=0.016), AUCBFV PV2 =0.718 (95% CI: 0.531-0.862; sensitivity, 60.00%; specificity, 82.35%; P=0.017), and AUCMF SMV2 =0.788 (95% CI: 0.608-0.912; sensitivity, 44.00%; specificity, 84.46%; P=0.005), respectively. As the TV of PV1 and PV2 and the BFV of PV1 and PV2 decreased, the risk of L-SRS/GRS increased. As the MF of SMV2 increased, the risk of the presence of L-SRS/GRS increased. 4D flow MRI-derived parameters correlated with the presence and severity of SRS or GRS. Meanwhile, the independent risk factors for the presence of L-SRS/GRS were the TV of LPV, PV1, and PV2; the BFV of PV1 and SMV2; and the MF of PV1 and PV2.