An automatic analyzer comprising: a sample dispensing probe that dispenses a sample into a reaction cell from a sample container holding the sample; a reagent dispensing probe that dispenses a reagent into the reaction cell from a reagent container holding the reagent; and an analyzing unit that analyzes a solution from the reaction of the sample with the reagent, characterized in that the automatic analyzer further comprises a controller configured to: detect a position where the sample dispensing probe or the reagent dispensing probe stops in the vertical direction when the sample dispensing probe or the reagent dispensing probe aspirates a predetermined amount of the sample or reagent from the sample container or the reagent container , and control operation of the sample or reagent dispensing probe so that, a height of the sample dispensing probe or the reagent dispensing probe is calculated in accordance with the detected vertical stopping position, the amount of the sample or reagent to be aspirated/discharged into/from the sample or reagent dispensing probe is corrected based on the height of the sample dispensing probe or the reagent dispensing probe, and the corrected amount of the sample or reagent is aspirated/discharged into/from the sample or reagent dispensing probe. a sample dispensing probe that dispenses a sample into a reaction cell from a sample container holding the sample; a reagent dispensing probe that dispenses a reagent into the reaction cell from a reagent container holding the reagent; and an analyzing unit that analyzes a solution from the reaction of the sample with the reagent, characterized in that the automatic analyzer further comprises a controller configured to: detect a position where the sample dispensing probe or the reagent dispensing probe stops in the vertical direction when the sample dispensing probe or the reagent dispensing probe aspirates a predetermined amount of the sample or reagent from the sample container or the reagent container , and control operation of the sample or reagent dispensing probe so that, a height of the sample dispensing probe or the reagent dispensing probe is calculated in accordance with the detected vertical stopping position, the amount of the sample or reagent to be aspirated/discharged into/from the sample or reagent dispensing probe is corrected based on the height of the sample dispensing probe or the reagent dispensing probe, and the corrected amount of the sample or reagent is aspirated/discharged into/from the sample or reagent dispensing probe. detect a position where the sample dispensing probe or the reagent dispensing probe stops in the vertical direction when the sample dispensing probe or the reagent dispensing probe aspirates a predetermined amount of the sample or reagent from the sample container or the reagent container , and control operation of the sample or reagent dispensing probe so that, a height of the sample dispensing probe or the reagent dispensing probe is calculated in accordance with the detected vertical stopping position, the amount of the sample or reagent to be aspirated/discharged into/from the sample or reagent dispensing probe is corrected based on the height of the sample dispensing probe or the reagent dispensing probe, and the corrected amount of the sample or reagent is aspirated/discharged into/from the sample or reagent dispensing probe. <EOS>