An instability detection algorithm for an implantable blood pump may include determining a target position of a rotor of the pump, the rotor having permanent magnetic poles for magnetic levitation of the rotor, calculating a positional displacement of the target position from a predefined origin of a coordinate system of a housing of the pump, and calculating, during a rotation of the rotor, geometric deviations of a current position of the rotor from the target position.