A rotary electric machine comprising: - a stator disposed within a casing filled with a cooling gas, the stator including a stator core , a stator coil , and stator coil ends at both end portions of the stator coil ; - a rotor disposed at an inner peripheral side of the stator with a gap therebetween and including a rotor core mounted on a rotation shaft and a rotor coil; - fans mounted near both end portions of the rotation shaft and ach configured to suck the cooling gas from an axial side opposite to the rotor coil as an intake side and send the cooling gas to an outer peripheral side; and - gas coolers housed in gas cooler chambers provided outside the casing and at an upper portion of the casing in which the stator coil ends are located, the gas coolers being installed near openings of the casing , - wherein a gas circulation passage is formed in which the cooling gas sucked by each fan from a space (A) provided at the intake side of the fan circulates through a space (B) surrounding the fan to the gas cooler chamber , then to the gas cooler and to a space (C) including the stator coil end , and then to the gap between the rotor and the stator and gas passages formed in the rotor and the stator to a space (D) between an outer periphery of the stator and the casing and returning to the space (A) provided at the intake side of the fan , and wherein gas coolers are installed above each stator coil end , - wherein partition walls are provided at both sides of each stator coil end so as to partition off the space (C) including the stator coil end, and a gas passage for the cooling gas from the space (D) between an outer periphery of the stator and the casing toward the space (A) provided at the intake side of the fan , wherein, in a gas passage from the gas cooler to the space (C) including the stator coil end, a guide plate is provided at a downstream side of the opening of the casing so as to have an inclination angle relative to an opening surface of the opening for causing the cooling gas to flow to a plurality of directions. - a stator disposed within a casing filled with a cooling gas, the stator including a stator core , a stator coil , and stator coil ends at both end portions of the stator coil ; - a rotor disposed at an inner peripheral side of the stator with a gap therebetween and including a rotor core mounted on a rotation shaft and a rotor coil; - fans mounted near both end portions of the rotation shaft and ach configured to suck the cooling gas from an axial side opposite to the rotor coil as an intake side and send the cooling gas to an outer peripheral side; and - gas coolers housed in gas cooler chambers provided outside the casing and at an upper portion of the casing in which the stator coil ends are located, the gas coolers being installed near openings of the casing , - wherein a gas circulation passage is formed in which the cooling gas sucked by each fan from a space (A) provided at the intake side of the fan circulates through a space (B) surrounding the fan to the gas cooler chamber , then to the gas cooler and to a space (C) including the stator coil end , and then to the gap between the rotor and the stator and gas passages formed in the rotor and the stator to a space (D) between an outer periphery of the stator and the casing and returning to the space (A) provided at the intake side of the fan , and - wherein partition walls are provided at both sides of each stator coil end so as to partition off the space (C) including the stator coil end, and a gas passage for the cooling gas from the space (D) between an outer periphery of the stator and the casing toward the space (A) provided at the intake side of the fan , <EOS>