The invention relates to the technical field of thread rolling machines, in particular to a multifunctional thread rolling machine, comprising a transmission device, a support box, a motor, an extension shaft, a linkage plate, a first adapter seat, a second adapter seat, a thread rolling shaft, The adjusting plate, the sliding shaft, the two connecting plates, the electric push rod and the frame plate, the left and right parts of the frame plate are provided with first elongated holes, and the middle of each first elongated hole is provided with a support shaft, and each support shaft The rear part is connected with a fixing nut through a thread, and the front part of each support shaft is sleeved with an extension plate, the middle part of the extension plate is provided with a second elongated hole, each support shaft passes through the corresponding second elongated hole, and the upper part of each extension plate is Photoelectric sensors are installed in all of them, and the front part of the support shaft is connected with a clamping nut through a thread, and the rear end of the clamping nut is in contact with the front end of each corresponding extension plate; it is convenient to adjust the height of the bottom support part, and it is convenient to determine the length of the thread processed on the part, It is convenient for users to operate and has high processing efficiency.