This paper presents an efficient algorithm for solving the inverse kinematics of a six-degree-of-freedom manipulator with wrist offset, significantly reducing computation time compared to existing methods. The algorithm calculates joint angles by first determining the wrist point and then applies an analytic approach to find the necessary angles for both arm positioning and wrist orientation. Testing indicates that this method can achieve real-time control of manipulators, demonstrating a computation time of only 0.016 seconds compared to 3.984 seconds for a traditional rotational vector algorithm.