Described is a drive mechanism for a drug infusion pump. In one embodiment, an in-line drive mechanism is provided that includes a motor operatively coupled to a lead screw, which is configured to engage a piston. The piston includes a cavity to receive the motor and the lead screw such that the lead screw and at least a portion of the motor are substantially contained within the piston cavity when the piston is in a retracted position. In one embodiment, at least a portion of the motor is also substantially contained within a cavity of the lead screw regardless of whether the piston is in the retracted or extended position. The configuration of the piston, the lead screw and the motor results in a more compact drug delivery device.