The invention discloses an automatic cooker. The automatic cooker comprises a machine body, a turning cooking mechanism, a stirring cooking mechanism, a water and oil injection device and a control system, wherein an operation table is arranged on the machine body, and a heating device stretching out of the operation table is arranged in the machine body; the turning cooking mechanism comprises a wok and a first drive module, the wok is located above the heating device, the first drive module is located in the machine body, the machine body is provided with a chute, and the wok penetrates through the chute and then is connected with the first drive module; the stirring cooking mechanism comprises a stirring spatula and a second drive module, the stirring spatula is located above the wok, the second drive module is located in the machine body and partly stretches out of the machine body, and the stirring spatula and the second drive module are connected; the water and oil injection device is arranged on the outer wall of the machine body; the control system is arranged in the machine body, and the heating device, the first drive module, the second drive module and the water and oil injection device are all connected with the control system. The automatic cooker enables food to make full contact with air to guarantee that the food is heated uniformly, the turning cooking quality of the food is improved, and turning cooking efficiency is high.