According to one embodiment, a magnetic disk device includes a magnetic disk, a magnetic head including an assist part to assist recording of data into the magnetic disk, a controller configured to control the recording of data by the magnetic head based on a recording condition, and a memory configured to record a first threshold value used to define that an assist element included in the assist part is in a deterioration condition. Furthermore, the controller detects the condition of the assist element, determines whether or not the recording condition is changed based on the detected condition and the first threshold value stored in the memory, and changes the recording condition based on the result of the determination.