The purpose of this work is to increase the productivity and accuracy of processing long-length parts of the "shaft" type on CNC machines. Based on the analysis of existing methods for improving the accuracy of processing long shafts on CNC machines, a new method for controlling the spatial error of processing long shafts by changing the processing modes was proposed. The proposed method allows, by changing the processing modes, namely feed, to reduce the radial component of the cutting force and reduce the amount of deflection when machining parts on CNC machines. A technical and economic analysis and justification of scientific research was carried out. The economic effect of the proposed method.