A rotating electrical machine comprising: a stator; and a permanent-magnet-embedded rotor comprising: a rotor core adapted to be arranged inwardly of a stator in a radial direction; a first permanent magnet, which is fitted in a first embedding hole formed like a rectangular slit in the rotor core near an outer circumferential surface thereof, and which extends in a direction orthogonal to a d-axis; a pair of second permanent magnets, which are each fitted in a second embedding hole formed in a rectangular shape at both sides of the first permanent magnet in a circumferential direction, and which extend along a q-axis; a pair of first gaps formed to be continuous from both shorter sides of the first embedding hole; and a pair of second gaps formed in the rotor core to be distant from both ends of the first permanent magnet in the circumferential direction toward the second permanent magnet, wherein the d-axis represents a direction orthogonal to the lengthwise direction of the first permanent magnet and extending through a space between the pair of second permanent magnets, characterized in that each second gap includes, with respect to the radial direction of the rotor core, a radially outer end located at an outermost side and a radially inner end located at an innermost side, a pole face of the first permanent magnet is located between the radially outer ends of the second gaps and the radially inner ends thereof in the radial direction of the rotor core, and each second gap is formed such that a magnetic flux passes through a space between the second permanent magnets and the second gaps. a stator; and a permanent-magnet-embedded rotor comprising: a rotor core adapted to be arranged inwardly of a stator in a radial direction; a first permanent magnet, which is fitted in a first embedding hole formed like a rectangular slit in the rotor core near an outer circumferential surface thereof, and which extends in a direction orthogonal to a d-axis; a pair of second permanent magnets, which are each fitted in a second embedding hole formed in a rectangular shape at both sides of the first permanent magnet in a circumferential direction, and which extend along a q-axis; a pair of first gaps formed to be continuous from both shorter sides of the first embedding hole; and a pair of second gaps formed in the rotor core to be distant from both ends of the first permanent magnet in the circumferential direction toward the second permanent magnet, wherein a rotor core adapted to be arranged inwardly of a stator in a radial direction; a first permanent magnet, which is fitted in a first embedding hole formed like a rectangular slit in the rotor core near an outer circumferential surface thereof, and which extends in a direction orthogonal to a d-axis; a pair of second permanent magnets, which are each fitted in a second embedding hole formed in a rectangular shape at both sides of the first permanent magnet in a circumferential direction, and which extend along a q-axis; a pair of first gaps formed to be continuous from both shorter sides of the first embedding hole; and a pair of second gaps formed in the rotor core to be distant from both ends of the first permanent magnet in the circumferential direction toward the second permanent magnet, wherein the d-axis represents a direction orthogonal to the lengthwise direction of the first permanent magnet and extending through a space between the pair of second permanent magnets, characterized in that each second gap includes, with respect to the radial direction of the rotor core, a radially outer end located at an outermost side and a radially inner end located at an innermost side, a pole face of the first permanent magnet is located between the radially outer ends of the second gaps and the radially inner ends thereof in the radial direction of the rotor core, and each second gap is formed such that a magnetic flux passes through a space between the second permanent magnets and the second gaps.