An improved surgical system and procedure for correcting a deformity between first and second bones using an alignment guide based on a correction factor. The correction factor can be based on a virtual model of the first and second bones in a deformed configuration and a corrected configuration. In the virtual corrected configuration, first and second virtual axes can be fixed in the respective first and second bones. When reverted to the virtual deformed configuration, the orientation of the first and second axes can be used to determine the correction factor. The alignment guide is used to insert one or more k-wires into each of the first and second bones in a deformed configuration. A correction guide is passed along the k-wires to rotate and/or translate the first bone relative to the second bone into the corrected configuration.