A numerical method of calculation of the three-dimensional flow of turbomachinery gas in an axial turbomachinery stage is proposed. It takes account of the aerodynamic interaction between the stator and the rotor. Results of a computational investigation of a spatial transonic flow in the last stage of a high-capacity steam turbine are presented.