An X-ray analyzer comprising: a specimen stage; a spectrometer having a spectroscopic element which disperses X-rays emitted from a specimen placed on the specimen stage and an X-ray detector which detects X-rays dispersed by the spectroscopic element; a temperature measuring unit including at least a first temperature sensor for measuring a temperature of the specimen stage and a second temperature sensor for measuring a temperature of the spectrometer; and a storage unit which stores calibration data of the spectrometer, and a previous measurement result by the temperature measuring unit at the time of execution of the calibration of the spectrometer; characterized in that the X-ray analyzer further comprises: a processing unit which acquires a measurement result by the temperature measuring unit, calculates a temperature variation amount of the acquired measurement result with respect to the previous measurement result stored in the storage unit, and executes calibration or notifies that calibration is needed, if the temperature variation amount exceeds a variation amount set in advance, wherein the processing unit acquires a temperature of the specimen stage as measured by the first temperature sensor, calculates a temperature variation amount of the acquired temperature with respect to a previous temperature of the specimen stage at the time of execution of the calibration as stored in the storage unit, and executes calibration or notifies that calibration is needed, when the temperature variation amount exceeds a first variation amount, and the processing unit acquires a temperature of the spectrometer as measured by the second temperature sensor, calculates a temperature variation amount of the acquired temperature with respect to a previous temperature of the spectrometer at the time of execution of the calibration as stored in the storage unit, and executes calibration or notifies that calibration is needed, when the temperature variation amount exceeds a second variation amount. a specimen stage; a spectrometer having a spectroscopic element which disperses X-rays emitted from a specimen placed on the specimen stage and an X-ray detector which detects X-rays dispersed by the spectroscopic element; a temperature measuring unit including at least a first temperature sensor for measuring a temperature of the specimen stage and a second temperature sensor for measuring a temperature of the spectrometer; and a storage unit which stores calibration data of the spectrometer, and a previous measurement result by the temperature measuring unit at the time of execution of the calibration of the spectrometer; characterized in that the X-ray analyzer further comprises: a processing unit which acquires a measurement result by the temperature measuring unit, calculates a temperature variation amount of the acquired measurement result with respect to the previous measurement result stored in the storage unit, and executes calibration or notifies that calibration is needed, if the temperature variation amount exceeds a variation amount set in advance, wherein the processing unit acquires a temperature of the specimen stage as measured by the first temperature sensor, calculates a temperature variation amount of the acquired temperature with respect to a previous temperature of the specimen stage at the time of execution of the calibration as stored in the storage unit, and executes calibration or notifies that calibration is needed, when the temperature variation amount exceeds a first variation amount, and the processing unit acquires a temperature of the spectrometer as measured by the second temperature sensor, calculates a temperature variation amount of the acquired temperature with respect to a previous temperature of the spectrometer at the time of execution of the calibration as stored in the storage unit, and executes calibration or notifies that calibration is needed, when the temperature variation amount exceeds a second variation amount. a processing unit which acquires a measurement result by the temperature measuring unit, calculates a temperature variation amount of the acquired measurement result with respect to the previous measurement result stored in the storage unit, and executes calibration or notifies that calibration is needed, if the temperature variation amount exceeds a variation amount set in advance, the processing unit acquires a temperature of the specimen stage as measured by the first temperature sensor, calculates a temperature variation amount of the acquired temperature with respect to a previous temperature of the specimen stage at the time of execution of the calibration as stored in the storage unit, and executes calibration or notifies that calibration is needed, when the temperature variation amount exceeds a first variation amount, and the processing unit acquires a temperature of the spectrometer as measured by the second temperature sensor, calculates a temperature variation amount of the acquired temperature with respect to a previous temperature of the spectrometer at the time of execution of the calibration as stored in the storage unit, and executes calibration or notifies that calibration is needed, when the temperature variation amount exceeds a second variation amount.