An apparatus comprising: a memory storing a plurality of templates of hip components; a first display; and one or more processors coupled to the memory and the display, the one or more processors configured to: display, on the first display, an image of at least a portion of a hip of a patient; superimpose a template of a hip component from the memory on the displayed image of the at least a portion of the hip of a patient; position the template of the hip component at a planned location relative to the at least a portion of the hip; with the template of the hip component positioned at the planned location, determine, a planned change in at least one of a leg length, an offset, or an anterior-posterior, AP, position for the hip, wherein the planned change is based on the template of the hip component superimposed on the displayed image of the at least a portion of the hip of a patient; with the template of the hip component positioned at the planned location, determine a virtual distance between an anatomical landmark on the displayed image of the at least a portion of the hip of a patient and a location on the template of the hip component, the location being on the hip component; output, on the display, the planned change and the virtual distance; receive a physical distance between a physical landmark of a hip that corresponds to the virtual landmark and a location on a physical hip component that corresponds to the location on the template of the hip component, the physical distance being different than the virtual distance; determine an updated change value in the at least one of the leg length, the offset, or the AP position, wherein the updated change value is based upon the template of the hip component being repositioned to match the physical distance; and output, on the first display or on a second display, the updated change value in the at least one of the leg length, the offset, or the AP position. a memory storing a plurality of templates of hip components; a first display; and one or more processors coupled to the memory and the display, the one or more processors configured to: display, on the first display, an image of at least a portion of a hip of a patient; superimpose a template of a hip component from the memory on the displayed image of the at least a portion of the hip of a patient; position the template of the hip component at a planned location relative to the at least a portion of the hip; with the template of the hip component positioned at the planned location, determine, a planned change in at least one of a leg length, an offset, or an anterior-posterior, AP, position for the hip, wherein the planned change is based on the template of the hip component superimposed on the displayed image of the at least a portion of the hip of a patient; with the template of the hip component positioned at the planned location, determine a virtual distance between an anatomical landmark on the displayed image of the at least a portion of the hip of a patient and a location on the template of the hip component, the location being on the hip component; output, on the display, the planned change and the virtual distance; receive a physical distance between a physical landmark of a hip that corresponds to the virtual landmark and a location on a physical hip component that corresponds to the location on the template of the hip component, the physical distance being different than the virtual distance; determine an updated change value in the at least one of the leg length, the offset, or the AP position, wherein the updated change value is based upon the template of the hip component being repositioned to match the physical distance; and output, on the first display or on a second display, the updated change value in the at least one of the leg length, the offset, or the AP position. display, on the first display, an image of at least a portion of a hip of a patient; superimpose a template of a hip component from the memory on the displayed image of the at least a portion of the hip of a patient; position the template of the hip component at a planned location relative to the at least a portion of the hip; with the template of the hip component positioned at the planned location, determine, a planned change in at least one of a leg length, an offset, or an anterior-posterior, AP, position for the hip, wherein the planned change is based on the template of the hip component superimposed on the displayed image of the at least a portion of the hip of a patient; with the template of the hip component positioned at the planned location, determine a virtual distance between an anatomical landmark on the displayed image of the at least a portion of the hip of a patient and a location on the template of the hip component, the location being on the hip component; output, on the display, the planned change and the virtual distance; receive a physical distance between a physical landmark of a hip that corresponds to the virtual landmark and a location on a physical hip component that corresponds to the location on the template of the hip component, the physical distance being different than the virtual distance; determine an updated change value in the at least one of the leg length, the offset, or the AP position, wherein the updated change value is based upon the template of the hip component being repositioned to match the physical distance; and output, on the first display or on a second display, the updated change value in the at least one of the leg length, the offset, or the AP position.