The tooth type judgment program includes, extracting point groups indicating a surface of three-dimensional profile data from inputted three-dimensional profile data; moving and/or rotating the three-dimensional profile data of a tooth corresponding to a specific type of tooth; calculating an arrangement relationship in which an error between a point group included in any of a region of the extracted point groups and the three-dimensional profile data of the tooth becomes minimum, and estimating a direction of the tooth included in the region based on the calculated arrangement relationship.