Abstract: A hard disk drive with a controller that determines a position error signal gain. The position error signal gain is determined from a total servo loop gain and a function that is defined by a slope of a line of A and B servo bits measured at N off-track positions. The function determines an actual plant gain and thus provides a more accurate position error signal gain.