A wire electrical discharge machine obtains position error information indicating a position error in a planar direction in a workpiece placed on a mounting table after relative positions between a first guide unit and a second guide unit are changed, and calculates a position of the workpiece with the corrected position error in the planar direction in a state where a wire electrode is inclined according to an inclined state of the workpiece by using this position error information.