When conducting modal analysis to the structure with crack defect using ansys finite element, we usually adopt the method of cutting a rectangular notch to simulate the crack on the model structure. As a result, the different crack simulation requires repeated modeling, which is a waste of time, and we cannot guarantee the accuracy of the calculation. In this paper, mathematical model between the local stiffness and crack size is established based on the finite element simulation of a diameter of 8mm steel bar. Thus, we can simulate varisized crack defects through a fixed crack notch by the method of modifying local stiffness. The method we used is more simple and accurate than the traditionary one by cutting a rectangular notch to form cracks, and reduces the workload, and has certain research significances.