In this study,the spur gear with crack faults in the transmission system is taken as the research object.Considering the factors of tooth contact,bending,shearing,radial compression,and elastic deformation,an algorithm for correcting the time-va-rying meshing stiffness of the cracked spur gear pair is proposed.By simplifying the gear as a cantilever beam,the influence of the length,depth,and angle of the crack on the meshing stiffness of the spur gear is analyzed,and the correction calculation of the time-varying meshing stiffness is realized by MATLAB programming.The research results provide a theoretical basis for the crack failure mechanism of spur gear pair.