An electric valve (10A, 10D to 10F) having a distal end side configured to be inserted into a valve mounting hole opened in an outer surface of a valve attachment target member having a flow path therein and having a motor as a drive source on a proximal end side, and being capable of changing a flow rate of a fluid flowing through the flow path, the electric valve (10A, 10D to 10F) comprising: a valve body having a rotor case extending in an axial direction of the valve mounting hole and accommodating a rotor of the motor on the proximal end side; a stator having a tubular shape with one end bottomed and an other end opened, the stator being fitted to an outer side of the rotor case; a stator facing portion that is formed by enlarging a diameter of an intermediate position in the axial direction of the valve body and that faces the stator in the axial direction; a tubular portion (57, 57Z) that projects out toward the stator facing portion; and an annular seal member that is sandwiched between the stator facing portion and the tubular portion (57, 57Z) in the axial direction and restricts water from entering the inside of the stator, characterized in that the tubular portion (57, 57Z) is provided integrally with the stator, and the valve body includes a first body sleeve having an in-valve flow path communicating with the flow path, and a second body sleeve assembled to the inner side of the first body sleeve and having the rotor case fixed to a proximal end portion, and a fitting gap between an inner surface of the first body sleeve and an outer surface of the second body sleeve is open on a surface of the stator facing portion facing the stator and is covered by the seal member. a valve body having a rotor case extending in an axial direction of the valve mounting hole and accommodating a rotor of the motor on the proximal end side; a stator having a tubular shape with one end bottomed and an other end opened, the stator being fitted to an outer side of the rotor case; a stator facing portion that is formed by enlarging a diameter of an intermediate position in the axial direction of the valve body and that faces the stator in the axial direction; a tubular portion (57, 57Z) that projects out toward the stator facing portion; and an annular seal member that is sandwiched between the stator facing portion and the tubular portion (57, 57Z) in the axial direction and restricts water from entering the inside of the stator, characterized in that the tubular portion (57, 57Z) is provided integrally with the stator, and the valve body includes a first body sleeve having an in-valve flow path communicating with the flow path, and a second body sleeve assembled to the inner side of the first body sleeve and having the rotor case fixed to a proximal end portion, and a first body sleeve having an in-valve flow path communicating with the flow path, and a second body sleeve assembled to the inner side of the first body sleeve and having the rotor case fixed to a proximal end portion, and a fitting gap between an inner surface of the first body sleeve and an outer surface of the second body sleeve is open on a surface of the stator facing portion facing the stator and is covered by the seal member.