A rotor comprising: an iron core that assumes a cylindrical or columnar shape; and a plurality of magnets embedded in the iron core and equiangularly arranged with respect to an axis of the iron core, the iron core comprising a first end surface portion including a first end surface of the iron core, a second end surface portion including a second end surface of the iron core opposed to the first end surface, and a central portion disposed between the first end surface portion and the second end surface portion, the plurality of magnets each penetrating through the first and second end surface portions and the central portion, the iron core having a plurality of first gaps formed on an outer peripheral side of each of the magnets and extending along the axis from the first end surface through the first end surface portion, the central portion, and the second end surface portion to the second end surface, and a plurality of second gaps formed on an outer peripheral side of each of the magnets and extending along the axis from the first end surface through the first end surface portion without reaching the central portion, and the first gap and the second gap being alternately arranged in circumferential direction, wherein the iron core has a plurality of third gaps formed on an outer peripheral side of each of the magnets and extending along the axis from the second end surface through the second end surface portion without reaching the central portion the central portion is a region having only the first gaps formed therethrough, the iron core has a length (Xr) along the axis, the first end surface portion has a length along the axis, and the second end surface portion has a length along the axis, the length (Xr) of the iron core is larger than a total of the length of the first end surface portion and the length of the second end surface portion. an iron core that assumes a cylindrical or columnar shape; and a plurality of magnets embedded in the iron core and equiangularly arranged with respect to an axis of the iron core, the iron core comprising a first end surface portion including a first end surface of the iron core, a second end surface portion including a second end surface of the iron core opposed to the first end surface, and a central portion disposed between the first end surface portion and the second end surface portion, the plurality of magnets each penetrating through the first and second end surface portions and the central portion, the iron core having a plurality of first gaps formed on an outer peripheral side of each of the magnets and extending along the axis from the first end surface through the first end surface portion, the central portion, and the second end surface portion to the second end surface, and a plurality of second gaps formed on an outer peripheral side of each of the magnets and extending along the axis from the first end surface through the first end surface portion without reaching the central portion, and the first gap and the second gap being alternately arranged in circumferential direction, wherein the iron core has a plurality of third gaps formed on an outer peripheral side of each of the magnets and extending along the axis from the second end surface through the second end surface portion without reaching the central portion the central portion is a region having only the first gaps formed therethrough, the iron core has a length (Xr) along the axis, the first end surface portion has a length along the axis, and the second end surface portion has a length along the axis, the length (Xr) of the iron core is larger than a total of the length of the first end surface portion and the length of the second end surface portion.