An automatic analyzer comprising: a dispensing mechanism including a sample dispensing nozzle for dispensing a sample into a reaction container and a supporting arm for supporting the sample nozzle through an elastic member; a controller for controlling an up down movement and a rotation movement of the supporting arm and for analyzing a sample in the reaction container; a capacitance detector set on the dispensing mechanism, the capacitance detector detecting a change of a capacitance of the sample nozzle; a detection member connected to the sample nozzle so that the detection member moves with the sample nozzle; and a stop position detector set on the supporting arm, the stop position detector detecting the detection member when the detection member enters into a detection area of the stop position detector, and characterized by: a memory for storing a contact movement distance of the sample nozzle calculated by the controller, the contact movement distance being a distance from a position wherein the capacitance detector detects that a capacitance of the sample nozzle changes more than or equal to a constant value to a position wherein the stop position detector detects the detection member; wherein the controller is configured to: calculate said contact movement distance; stop a movement of the sample nozzle (11a_ when the sample nozzle contacts a bottom of the reaction container and the stop position detector detects the detection member; to drive the supporting arm to move the sample nozzle upwardly a distance equal to the contact movement distance stored in the memory; and to discharge the sample from the sample nozzle into the reaction container after the sample nozzle is moved upwardly by the distance equal to the contact movement distance. a dispensing mechanism including a sample dispensing nozzle for dispensing a sample into a reaction container and a supporting arm for supporting the sample nozzle through an elastic member; a controller for controlling an up down movement and a rotation movement of the supporting arm and for analyzing a sample in the reaction container; a capacitance detector set on the dispensing mechanism, the capacitance detector detecting a change of a capacitance of the sample nozzle; a detection member connected to the sample nozzle so that the detection member moves with the sample nozzle; and a stop position detector set on the supporting arm, the stop position detector detecting the detection member when the detection member enters into a detection area of the stop position detector, and characterized by: a memory for storing a contact movement distance of the sample nozzle calculated by the controller, the contact movement distance being a distance from a position wherein the capacitance detector detects that a capacitance of the sample nozzle changes more than or equal to a constant value to a position wherein the stop position detector detects the detection member; wherein the controller is configured to: calculate said contact movement distance; stop a movement of the sample nozzle (11a_ when the sample nozzle contacts a bottom of the reaction container and the stop position detector detects the detection member; to drive the supporting arm to move the sample nozzle upwardly a distance equal to the contact movement distance stored in the memory; and to discharge the sample from the sample nozzle into the reaction container after the sample nozzle is moved upwardly by the distance equal to the contact movement distance. a memory for storing a contact movement distance of the sample nozzle calculated by the controller, the contact movement distance being a distance from a position wherein the capacitance detector detects that a capacitance of the sample nozzle changes more than or equal to a constant value to a position wherein the stop position detector detects the detection member; wherein the controller is configured to: calculate said contact movement distance; stop a movement of the sample nozzle (11a_ when the sample nozzle contacts a bottom of the reaction container and the stop position detector detects the detection member; to drive the supporting arm to move the sample nozzle upwardly a distance equal to the contact movement distance stored in the memory; and to discharge the sample from the sample nozzle into the reaction container after the sample nozzle is moved upwardly by the distance equal to the contact movement distance. calculate said contact movement distance; stop a movement of the sample nozzle (11a_ when the sample nozzle contacts a bottom of the reaction container and the stop position detector detects the detection member; to drive the supporting arm to move the sample nozzle upwardly a distance equal to the contact movement distance stored in the memory; and to discharge the sample from the sample nozzle into the reaction container after the sample nozzle is moved upwardly by the distance equal to the contact movement distance.