A method for locating the mechanical axis of a long bone involves generating an image of the long bone and determining the angle between the mechanical axis of the bone and a reference axis, which contains at least two reference points towards one end of the bone. A reference arm is positioned relative to the at least two predetermined reference points, and the mechanical axis is located relative to the reference arm with reference to the previously determined angle.