To provide a rotating electric machine that can further improve reliability by preventing a leak between terminals of a capacitor element.
A regulator 9 equipped to an AC generator for a vehicle is composed of a regulator case 92 in which a control circuit for adjusting a generation voltage is housed, the capacitor element 93 that comprises a high-potential side terminal 100 and a low-potential side terminal 101 and absorbs a surge generated by the voltage adjustment operation of the control circuit, a housing 94 that is formed to the regulator case 92 and houses the capacitor element 93, and a sealing resin 95 for the capacitor element 93 filled in the housing 94. The high-potential side terminal 100 and the low-potential side terminal 101 of the capacitor element 93 are exposed from the sealing resin 95, and a partition board 96 is arranged between the high-potential side terminal 100 and the low-potential side terminal 101.