The invention relates to a method for optimizing vibration of a machine tool, in which a driven shaft 17 is rotated, in which a speed range is subsequently passed through, wherein the vibrations occurring in said speed range are sensed and wherein an optimum speed having a minimized vibration is determined and adjusted.