A mammography apparatus according to the present invention includes a mounting part coupled to an elevating part so as to be moved upward or downward and having rail parts, a fastening part inserted into the rail parts and slidably coupled to the mounting part and a sensing part installed on the mounting part and configured to generate an electrical signal by being brought into contact with the fastening part so as to detect information about the fastening part, in which the sensing part includes a contact part installed at an end at an entry side of the fastening part slidably coupled to the mounting part and a recognizing part installed on an inner surface of the mounting part which faces the contact part.