A controller for an AC rotating machine for an AC rotating machine including a first winding and a second winding which have a phase difference; the controller comprising: a first current detector (4a, 4c) configured to detect current of the first winding; a second current detector (4b, 4d) configured to detect current of the second winding; a control section (5, 5a, 5b, 5c) configured to compute a first voltage command and a second voltage command, based on a current command and a current detection value of the AC rotating machine; a first voltage applying unit configured to apply voltage to the first winding based on the first voltage command; a second voltage applying unit configured to apply voltage to the second winding based on the second voltage command; a first detectability determining unit (12a, 12c, 12d, 12e) configured to determine detectability of the current of the first winding by the first current detector (4a, 4c), comparing at least one of the first voltage command and the second voltage command with two predetermined thresholds; and an estimated sum current computing unit (14, 14a, 14b) configured to compute estimated sum current, which is a sum of the current of the first winding and the current of the second winding, wherein the control section (5, 5a, 5b, 5c) is further configured to, when the first detectability determining unit (12a, 12c, 12d, 12e) determines that the first current detector (4a, 4c) cannot detect the current of the first winding, compute the first voltage command based on an estimated current value of the first winding which has been calculated by subtracting the current of the second winding detected by the second current detector (4b, 4d) from the estimated sum current output from the estimated sum current computing unit (14, 14a, 14b), characterized in that the estimated sum current computing unit (14, 14a, 14b) is further configured to: when the first detectability determining unit (12a, 12c, 12d, 12e) has determined that the first current detector (4a, 4c) can detect the current of the first winding, output the sum of the current of the first winding detected by the first current detector (4a, 4c) and the current of the second winding detected by the second current detector (4b, 4d) as the estimated sum current, and when the first detectability determining unit (12a, 12c, 12d, 12e) determines that the first current detector (4a, 4c) cannot detect the current of the first winding, maintain the estimated sum current which has been output as a previous value. a first current detector (4a, 4c) configured to detect current of the first winding; a second current detector (4b, 4d) configured to detect current of the second winding; a control section (5, 5a, 5b, 5c) configured to compute a first voltage command and a second voltage command, based on a current command and a current detection value of the AC rotating machine; a first voltage applying unit configured to apply voltage to the first winding based on the first voltage command; a second voltage applying unit configured to apply voltage to the second winding based on the second voltage command; a first detectability determining unit (12a, 12c, 12d, 12e) configured to determine detectability of the current of the first winding by the first current detector (4a, 4c), comparing at least one of the first voltage command and the second voltage command with two predetermined thresholds; and an estimated sum current computing unit (14, 14a, 14b) configured to compute estimated sum current, which is a sum of the current of the first winding and the current of the second winding, wherein the control section (5, 5a, 5b, 5c) is further configured to, when the first detectability determining unit (12a, 12c, 12d, 12e) determines that the first current detector (4a, 4c) cannot detect the current of the first winding, compute the first voltage command based on an estimated current value of the first winding which has been calculated by subtracting the current of the second winding detected by the second current detector (4b, 4d) from the estimated sum current output from the estimated sum current computing unit (14, 14a, 14b), characterized in that the estimated sum current computing unit (14, 14a, 14b) is further configured to: when the first detectability determining unit (12a, 12c, 12d, 12e) has determined that the first current detector (4a, 4c) can detect the current of the first winding, output the sum of the current of the first winding detected by the first current detector (4a, 4c) and the current of the second winding detected by the second current detector (4b, 4d) as the estimated sum current, and when the first detectability determining unit (12a, 12c, 12d, 12e) determines that the first current detector (4a, 4c) cannot detect the current of the first winding, maintain the estimated sum current which has been output as a previous value. when the first detectability determining unit (12a, 12c, 12d, 12e) has determined that the first current detector (4a, 4c) can detect the current of the first winding, output the sum of the current of the first winding detected by the first current detector (4a, 4c) and the current of the second winding detected by the second current detector (4b, 4d) as the estimated sum current, and when the first detectability determining unit (12a, 12c, 12d, 12e) determines that the first current detector (4a, 4c) cannot detect the current of the first winding, maintain the estimated sum current which has been output as a previous value.