A cooking device comprising a main body that has a cavity, a door that opens and closes a front of the cavity, and a controller that controls an opening and a closing of the door , the door has an engaging structure and the main body has a latch that is engaged with or released from the engaging structure , the cooking device further comprises: a drive configured to provide power to move the latch ; and a cam configured to transmit the power of the drive to the latch , wherein the latch have positions comprising a first basic position, a second basic position, and a third basic position, and the position of the latch is controlled by the controller , wherein the first basic position is a position in which the latch is engaged with the engaging structure to maintain a closed state of the door and, when an external force is applied to the door in a direction of opening the door , the latch is released from the engaging structure to open the door , wherein the second basic position is a position in which the latch is not engaged with the engaging structure , wherein the third basic position is a position in which the latch is engaged with the engaging structure to maintain a closed state of the door even when an external force is applied to the door 20 in a direction of opening the door , characterized in that the cam comprises a latch position adjusting profile including a first radius , a second radius and a third radius , and wherein the first radius has a radius such that the latch is disposed in the first basic position when the first radius contacts the contact surface of the latch , the second radius has a radius such that the latch is disposed in the second basic position when the second radius contacts the contact surface of the latch , and the third radius has a radius such that the latch is disposed in the third basic position when the third radius contacts the contact surface of the latch . a drive configured to provide power to move the latch ; and a cam configured to transmit the power of the drive to the latch , wherein the latch have positions comprising a first basic position, a second basic position, and a third basic position, and the position of the latch is controlled by the controller , wherein the first basic position is a position in which the latch is engaged with the engaging structure to maintain a closed state of the door and, when an external force is applied to the door in a direction of opening the door , the latch is released from the engaging structure to open the door , wherein the second basic position is a position in which the latch is not engaged with the engaging structure , wherein the third basic position is a position in which the latch is engaged with the engaging structure to maintain a closed state of the door even when an external force is applied to the door 20 in a direction of opening the door , characterized in that the cam comprises a latch position adjusting profile including a first radius , a second radius and a third radius , and wherein the first radius has a radius such that the latch is disposed in the first basic position when the first radius contacts the contact surface of the latch , the second radius has a radius such that the latch is disposed in the second basic position when the second radius contacts the contact surface of the latch , and the third radius has a radius such that the latch is disposed in the third basic position when the third radius contacts the contact surface of the latch . <EOS>