A motor operated valve comprising: a body ; a valve element that is moved toward and away from a valve hole formed in the body to close and open a valve section ; a rotor for driving the valve element in opening/closing directions of the valve section ; a can that is a bottomed cylindrical member fixed to the body and containing the rotor , and that defines an internal space in which fluid pressure acts and an external space in which fluid pressure does not act; and a stator unit including a case having a cylindrical shape and made of resin, a stator mounted in the case and coaxially around the can , a circuit board mounted in the case , a power supply terminal connected with the circuit board , a connector part made of resin and integrally including the power supply terminal therein, and a cap member , the cap member and the case forming a space (S) containing the circuit board , the can bottom being located in the space (S), wherein the connector part has a leak hole that permits leakage of pressure in the space (S) containing the circuit board to outside and wherein the connector part is formed integrally with the case by molding resin, a first seal portion is provided between a first open end portion of the case and the cap member , and a second seal portion is provided between a second open end portion of the case and the body , the second seal portion being a seal ring , the seal ring is between an inner circumferential face of the case and an outer circumferential face of the body , an open end portion of the can is located further inside the case than the seal ring , a position of the can fixed to the body is farther from an open end of the second open end portion of the case in an axial direction than the seal ring . a body ; a valve element that is moved toward and away from a valve hole formed in the body to close and open a valve section ; a rotor for driving the valve element in opening/closing directions of the valve section ; a can that is a bottomed cylindrical member fixed to the body and containing the rotor , and that defines an internal space in which fluid pressure acts and an external space in which fluid pressure does not act; and a stator unit including a case having a cylindrical shape and made of resin, a stator mounted in the case and coaxially around the can , a circuit board mounted in the case , a power supply terminal connected with the circuit board , a connector part made of resin and integrally including the power supply terminal therein, and a cap member , the cap member and the case forming a space (S) containing the circuit board , the can bottom being located in the space (S), wherein the connector part has a leak hole that permits leakage of pressure in the space (S) containing the circuit board to outside and wherein the connector part is formed integrally with the case by molding resin, a first seal portion is provided between a first open end portion of the case and the cap member , and a second seal portion is provided between a second open end portion of the case and the body , the second seal portion being a seal ring , the seal ring is between an inner circumferential face of the case and an outer circumferential face of the body , an open end portion of the can is located further inside the case than the seal ring , a position of the can fixed to the body is farther from an open end of the second open end portion of the case in an axial direction than the seal ring . <EOS>