Abstract In this paper, the dynamics of the flexible riser are investigated based on the absolute nodal coordinate formulation (ANCF). The stiffness, generalized elastic force, external load, and mass matrixes of the element are deduced based on the principle of energy conversion and assembled with the finite element method. The motion equation of the flexible riser is established. The influence of the environmental load conditions on the flexible riser model is studied in the MATLAB environment. Moreover, the accuracy and reliability of the programs are verified for a beam model with theoretical solutions. Finally, the static and dynamic characteristics of the flexible riser are analyzed, systematically adopting the ANCF method, which in turn proves the effectiveness and feasibility of the ANCF. Therefore, the proposed method is a powerful scheme for investigating the dynamics of flexible structures with large deformation in ocean engineering.