Abstract Understanding the complex behavior of two-phase shocks in CO2 flows is essential for a variety of applications, including carbon capture and storage () and transcritical refrigeration cycles. This study presents a comprehensive numerical investigation of two-phase shock waves using the multispecies user-defined real gas model in Ansys Fluent. The simulations are performed for de-Laval nozzles, exploring the two-phase shock features for three-dimensional (3D), two-dimensional (2D), and two-dimensional axisymmetric geometries. The nonequilibrium condensation, subsequent evaporation, and denucleation occurring across the shock are modeled through a set of user-defined scalar transport equations implemented within Ansys Fluent. The two-phase computational fluid dynamics (CFD) simulations are carried out in proximity to the critical point where real gas effects are relevant. The CO2 real gas properties are computed using an in-house Python code and integrated into the solver via user-defined functions as external look-up tables. This study provides valuable insights into the physical processes underlying two-phase shocks in CO2 flows and their sensitivity to geometric variations and thermodynamic conditions. The findings contribute to the development and modification of predictive models and optimized designs for systems involving two-phase CO2 flows. The results highlight the influence of geometry configurations and thermodynamic conditions on shock location and intensity, providing comparisons for shock waves occurring in two-phase flows and supercritical single-phase flows.