To provide a machine tool hardly judging a tool to be incorrect even though the correct tool to be used in machining is fetched.
When a drill is identified as an undercut type (YES of s21), a microcomputer 64 reads a diameter of an undercut part of the drill from a tool data base (s22). A diameter of the drill held in a main spindle 52 is measured (s23). A difference between the read diameter of the undercut part and the measured diameter of the drill is calculated (s24). If the calculated difference is a predetermined threshold or more (YES of s28), a warning process is executed (s29), and if it is smaller than the predetermined threshold (NO of s28), a tool deciding process is finished. By this, the drill held in the main spindle 52 is judged that it is the correct drill to be used.