An image recording apparatus includes a liquid chamber that stores liquid, a first electrode pin and a second electrode pin to be inserted into the liquid chamber, applying unit for applying voltage across the first electrode pin and the second electrode pin, with the first electrode pin as an anode side and the second electrode pin as a cathode side, and detecting unit for detecting electric current flowing, and detection operation of detecting amount of liquid in the liquid chamber by the detecting unit detecting the electric current when the applying unit applies voltage. Prior to the detection operation, an oxidization aging operation is performed, in which the applying unit applies voltage across the first electrode pin and the second electrode pin. An amount of an oxide layer formed on at least a portion of the first electrode pin exposed inside the liquid chamber is greater than the second.