An electric motor, comprising: a rotor; a stator disposed around the rotor; a housing that has a storage space for storing the rotor and the stator, an opening for opening the storage space to one side in an axial direction along a central axis of rotation of the rotor, an edge surface surrounding the opening, and a notch that is concaved from an edge surface toward the other side in the axial direction; a cover attachable to the housing from the one side in the axial direction; a lead wire connected to the stator; a sealing space formed inside of the housing; a partition wall that is provided inside of the notch of the housing in order to separate the sealing space for injecting a sealant for covering at least a part of the stator and a space outside the sealing space from each other, and comprises a through-hole for allowing the lead wire to be extended to the outside of the sealing space; an elastic member inside of the notch, wherein the elastic member is sandwiched between the partition wall and the housing, or the partition wall is sandwiched between the elastic member and the housing in the axial direction; and a side elastic member that is more elastic than the partition wall and provided between an internal surface of the housing that faces the inside of the notch and the partition wall; wherein the cover has a flat contact surface contactable with the end surface of the partition wall or of the elastic member and the edge surface of the housing, wherein the elastic member is more elastic than the partition wall, and wherein an end surface of the partition wall or of the elastic member that is disposed on the one side in the axial direction is disposed on a plane surface including the edge surface of the housing, or is disposed on the one side in the axial direction with respect to the plane surface. a rotor; a stator disposed around the rotor; a housing that has a storage space for storing the rotor and the stator, an opening for opening the storage space to one side in an axial direction along a central axis of rotation of the rotor, an edge surface surrounding the opening, and a notch that is concaved from an edge surface toward the other side in the axial direction; a cover attachable to the housing from the one side in the axial direction; a lead wire connected to the stator; a sealing space formed inside of the housing; a partition wall that is provided inside of the notch of the housing in order to separate the sealing space for injecting a sealant for covering at least a part of the stator and a space outside the sealing space from each other, and comprises a through-hole for allowing the lead wire to be extended to the outside of the sealing space; an elastic member inside of the notch, wherein the elastic member is sandwiched between the partition wall and the housing, or the partition wall is sandwiched between the elastic member and the housing in the axial direction; and a side elastic member that is more elastic than the partition wall and provided between an internal surface of the housing that faces the inside of the notch and the partition wall; wherein the cover has a flat contact surface contactable with the end surface of the partition wall or of the elastic member and the edge surface of the housing, wherein the elastic member is more elastic than the partition wall, and wherein an end surface of the partition wall or of the elastic member that is disposed on the one side in the axial direction is disposed on a plane surface including the edge surface of the housing, or is disposed on the one side in the axial direction with respect to the plane surface.