An injection molding machine comprising: a motor (21, 51, 51B, 61, 61A, 61B, or 71) which includes a stator (22, 52, 52B, 62, or 62B) and a rotor (23, 53, 53B, 63, or 63B); a platen (14, 15), a support (43b, 43Ba), a movable plate or a motor bracket (24, 54, 54B, 64, 64B) to which the stator (22, 52, 52B, 62, or 62B) is fixed; a rotary member (25a, 55, 55B, 65a, 65Aa, 65Ba, or 67B) which rotates along with the rotor (23, 53, 53B, 63, or 63B); and a bearing (26, 56, 56B, 66, or 66B) which rotatably supports the rotor (23, 53, 53B, 63, or 63B) and/or the rotary member (25a, 55, 55B, 65a, 65Aa, 65Ba, or 67B) and which is retained by said platen (14, 15), support (43b, 43Ba), movable plate or motor bracket (24, 54, 54B, 64, 64B), wherein the rotor (23, 53, 53B, 63, or 63B) includes a magnet section (23b, 53b, 53Bb, 63b, or 63Bb), and at least a part of the bearing (26, 56, 56B, 66, or 66B) is disposed farther toward the inside in a radial direction of the rotor (23, 53, 53B, 63, or 63B) than the magnet section (23b, 53b, 53Bb, 63b, or 63Bb) and is disposed at a position overlapping the magnet section (23b, 53b, 53Bb, 63b, or 63Bb) in an axial direction, the rotor (23, 53, 53B, 63, or 63B) includes a tubular portion (23a1, 53a1, 53Ba1, 63a1, or 63Ba1) on which the magnet section (23b, 53b, 53Bb, 63b, or 63Bb) is mounted, and a connection portion (23a2, 53a2, 53Ba2, 63a2, or 63Ba2) which connects the tubular portion (23a1, 53a1, 53Ba1, 63a1, or 63Ba1) and the rotary member (25a, 55, 55B, 65a, 65Aa, 65Ba, or 67B), and at least a part of the bearing (26, 56, 56B, 66, or 66B) is disposed on the inside of the tubular portion (23a1, 53a1, 53Ba1, 63a1, or 63Ba1). a motor (21, 51, 51B, 61, 61A, 61B, or 71) which includes a stator (22, 52, 52B, 62, or 62B) and a rotor (23, 53, 53B, 63, or 63B); a platen (14, 15), a support (43b, 43Ba), a movable plate or a motor bracket (24, 54, 54B, 64, 64B) to which the stator (22, 52, 52B, 62, or 62B) is fixed; a rotary member (25a, 55, 55B, 65a, 65Aa, 65Ba, or 67B) which rotates along with the rotor (23, 53, 53B, 63, or 63B); and a bearing (26, 56, 56B, 66, or 66B) which rotatably supports the rotor (23, 53, 53B, 63, or 63B) and/or the rotary member (25a, 55, 55B, 65a, 65Aa, 65Ba, or 67B) and which is retained by said platen (14, 15), support (43b, 43Ba), movable plate or motor bracket (24, 54, 54B, 64, 64B), wherein the rotor (23, 53, 53B, 63, or 63B) includes a magnet section (23b, 53b, 53Bb, 63b, or 63Bb), and at least a part of the bearing (26, 56, 56B, 66, or 66B) is disposed farther toward the inside in a radial direction of the rotor (23, 53, 53B, 63, or 63B) than the magnet section (23b, 53b, 53Bb, 63b, or 63Bb) and is disposed at a position overlapping the magnet section (23b, 53b, 53Bb, 63b, or 63Bb) in an axial direction, the rotor (23, 53, 53B, 63, or 63B) includes a tubular portion (23a1, 53a1, 53Ba1, 63a1, or 63Ba1) on which the magnet section (23b, 53b, 53Bb, 63b, or 63Bb) is mounted, and a connection portion (23a2, 53a2, 53Ba2, 63a2, or 63Ba2) which connects the tubular portion (23a1, 53a1, 53Ba1, 63a1, or 63Ba1) and the rotary member (25a, 55, 55B, 65a, 65Aa, 65Ba, or 67B), and at least a part of the bearing (26, 56, 56B, 66, or 66B) is disposed on the inside of the tubular portion (23a1, 53a1, 53Ba1, 63a1, or 63Ba1).