A wire electrical discharge machine having an upper/lower guide thermal displacement correction function that corrects upper/lower guide section thermal displacement by relatively moving a wire electrode and a workpiece, the wire electrical discharge machine comprising: a temperature detection unit (22, 23) configured to detect at least one of the mechanical section temperature, machining fluid temperature, and machine ambient temperature of the wire electrical discharge machine; a storage unit configured to store temperature information acquired by the temperature detection unit (22, 23); a first storage execution unit configured to command individual drive shafts at a reference temperature to relatively move the wire electrode with respect to a reference object, bring the wire electrode into contact with the reference object, and store the position of the wire electrode in the form of reference position coordinates in the storage unit together with the reference temperature; a second storage execution unit configured to command the individual drive shafts at a temperature different from the reference temperature to relatively move the wire electrode with respect to a reference object, bring the wire electrode into contact with the reference object, and store the position of the wire electrode in the form of measured position coordinates in the storage unit together with the temperature different from the reference temperature; an actual position correction amount calculation unit configured to calculate an actual position correction amount for an upper/lower guide section in accordance with the reference position coordinates and with the measured position coordinates; a correction amount calculation unit configured to store a prepared correction amount arithmetic expression and calculate a position correction amount for the upper/lower guide section by substituting a temperature difference between the reference temperature and the temperature different from the reference temperature into the correction amount arithmetic expression; a correction amount adjustment unit configured to calculate a correction amount adjustment value from the actual position correction amount for the upper/lower guide section (2, 3) and from the position correction amount therefor; a position correction amount adjustment unit configured to correct the position correction amount based on the calculated correction amount adjustment value; and a corrective movement amount calculation unit configured to calculate a corrective movement amount for each of the individual drive shafts of the wire electrical discharge machine in accordance with the position correction amount for the upper/lower guide section, which is corrected by the position correction amount adjustment unit; wherein the movement amount for each of the individual drive shafts is corrected by using the corrective movement amount and used to control each of the individual drive shafts. a temperature detection unit (22, 23) configured to detect at least one of the mechanical section temperature, machining fluid temperature, and machine ambient temperature of the wire electrical discharge machine; a storage unit configured to store temperature information acquired by the temperature detection unit (22, 23); a first storage execution unit configured to command individual drive shafts at a reference temperature to relatively move the wire electrode with respect to a reference object, bring the wire electrode into contact with the reference object, and store the position of the wire electrode in the form of reference position coordinates in the storage unit together with the reference temperature; a second storage execution unit configured to command the individual drive shafts at a temperature different from the reference temperature to relatively move the wire electrode with respect to a reference object, bring the wire electrode into contact with the reference object, and store the position of the wire electrode in the form of measured position coordinates in the storage unit together with the temperature different from the reference temperature; an actual position correction amount calculation unit configured to calculate an actual position correction amount for an upper/lower guide section in accordance with the reference position coordinates and with the measured position coordinates; a correction amount calculation unit configured to store a prepared correction amount arithmetic expression and calculate a position correction amount for the upper/lower guide section by substituting a temperature difference between the reference temperature and the temperature different from the reference temperature into the correction amount arithmetic expression; a correction amount adjustment unit configured to calculate a correction amount adjustment value from the actual position correction amount for the upper/lower guide section (2, 3) and from the position correction amount therefor; a position correction amount adjustment unit configured to correct the position correction amount based on the calculated correction amount adjustment value; and a corrective movement amount calculation unit configured to calculate a corrective movement amount for each of the individual drive shafts of the wire electrical discharge machine in accordance with the position correction amount for the upper/lower guide section, which is corrected by the position correction amount adjustment unit; wherein the movement amount for each of the individual drive shafts is corrected by using the corrective movement amount and used to control each of the individual drive shafts.