An injection molding machine comprising: a mold clamping unit which is configured to perform mold closing, mold clamping, and mold opening of a mold unit; an injection unit which is configured to inject a molding material into the mold unit; a controller which is configured to control the mold clamping unit and the injection unit; and a distortion detector which is configured to detect a distortion of the mold unit due to a pressure of the molding material which is filled into the mold unit, wherein the controller is configured to control the injection unit, based on the distortion which is detected by the distortion detector, wherein the injection unit includes a cylinder into which the molding material is supplied, an injection member which is configured to advance and retract in the cylinder, and a drive source which is configured to advance and retract the injection member, and advance the injection member, thereby injecting the molding material which is accumulated in front of the injection member, from the cylinder into the mold unit, wherein the controller is configured to drive the drive source, based on the distortion which is detected by the distortion detector, during a holding pressure process of controlling a pressure acting on the molding material from the injection member, and wherein the injection unit further includes a pressure detector which is disposed between the injection member and the drive source and is configured to detect the pressure acting on the molding material from the injection member, and the controller is configured to drive the drive source, based on a pressure which is detected by the pressure detector and the distortion which is detected by the distortion detector, during the holding pressure process. a mold clamping unit which is configured to perform mold closing, mold clamping, and mold opening of a mold unit; an injection unit which is configured to inject a molding material into the mold unit; a controller which is configured to control the mold clamping unit and the injection unit; and a distortion detector which is configured to detect a distortion of the mold unit due to a pressure of the molding material which is filled into the mold unit, wherein the controller is configured to control the injection unit, based on the distortion which is detected by the distortion detector, wherein the injection unit includes a cylinder into which the molding material is supplied, an injection member which is configured to advance and retract in the cylinder, and a drive source which is configured to advance and retract the injection member, and advance the injection member, thereby injecting the molding material which is accumulated in front of the injection member, from the cylinder into the mold unit, wherein the controller is configured to drive the drive source, based on the distortion which is detected by the distortion detector, during a holding pressure process of controlling a pressure acting on the molding material from the injection member, and wherein the injection unit further includes a pressure detector which is disposed between the injection member and the drive source and is configured to detect the pressure acting on the molding material from the injection member, and the controller is configured to drive the drive source, based on a pressure which is detected by the pressure detector and the distortion which is detected by the distortion detector, during the holding pressure process.