Shapes & spaces

Planar three joint robot inverse kinematics calculator from an end pose

Solve all isolated elbow branches of a planar three-revolute-joint arm for a desired position and end orientation.

Your numbers

Calculated on your device. Your inputs aren’t sent to us.

Your result

Ready when you are

Enter your inputs and select Calculate.

Report an issue

Behind the numbers

How this calculation works

Solve all isolated elbow branches of a planar three-revolute-joint arm for a desired position and end orientation.

THE FORMULAw=(x-l3 cos phi,y-l3 sin phi); cos theta2=(||w||^2-l1^2-l2^2)/(2l1l2); theta3=phi-theta1-theta2.

A worked example

Three unit links reaching (2,1) with orientation zero have elbow branches (0,90,-90) and (90,-90,0) degrees. Both reproduce the same end pose.

Good to know

Three positive planar link lengths, desired x,y,orientation and optional joint-angle intervals. Wrist reduction to analytic two-link branches, all feasible elbow branches, singular/continuum status and forward-pose residual. No collision-free path, dynamics or unreported branch selection.

Position and orientation for a planar arm

A planar three-revolute-joint robot has three link lengths and three relative joint angles. The first angle turns from the base axis, the second turns from the first link and the third turns from the second. A desired end pose includes two position coordinates and a final orientation, giving three scalar constraints for those three joint variables.

The same end pose can have more than one solution because the elbow can bend on either side of the wrist direction. This page keeps the feasible branches rather than silently choosing whichever inverse cosine is evaluated first. Its output concerns a static geometric pose, not a command that has been checked for physical robot safety or motion feasibility.

Planar three joint robot inverse kinematics calculator from an end pose worked exampleThree unit linksTarget pose: (2,1), 0°Branch 1: (0°, 90°, −90°)Branch 2: (90°, −90°, 0°)
Scroll across to see the full diagram.
Three unit links reaching (2,1) with orientation zero have elbow branches (0,90,-90) and (90,-90,0) degrees. Both reproduce the same end pose.

Compare this with the Four bar linkage position calculator with assembly branches. Solve joint angles of an open three-revolute-joint arm from a desired position and orientation, rather than solve the closure of a four-bar loop at a fixed input angle.

Preparing lengths, pose and joint intervals

Enter three strictly positive link lengths, then the desired x and y coordinates and end orientation. The position origin is the first joint at the base. Orientation is the direction of the final link, measured from the positive x axis in the stated degree convention. Mixing absolute link angles with relative joint angles is a common source of apparently inconsistent answers.

Optional joint intervals restrict each relative angle. Equivalent angles can differ by complete turns, so the implementation must compare periodic representatives with the actual intervals rather than discard a branch just because its principal angle lies outside them. A feasible end position without a feasible orientation or joint-limit assignment is not a valid full-pose solution.

Reducing the problem to the wrist

The final link's direction is known from the target orientation. Subtract that link vector from the desired endpoint to obtain the wrist position. The first two links must reach this wrist, turning the three-joint problem into the familiar two-link geometric triangle. Its reachable distance lies between the absolute difference and the sum of the first two lengths.

The law of cosines gives the cosine of the second joint angle. A resolved value outside minus one to one means the target wrist is unreachable. Near the boundary, a tolerance check may distinguish numerical rounding from a genuinely impossible input. Clamping a materially invalid cosine into range would fabricate a singular solution and is therefore inappropriate.

Recovering every elbow branch

For each admissible sign of the elbow sine, compute the base angle by subtracting the triangle's internal offset from the wrist direction. The final joint angle then makes the sum of the three relative angles equal the desired orientation modulo a complete turn. The two signs generally produce the elbow-up and elbow-down branches.

At full extension or folding, those branches can coincide and should be deduplicated. A zero wrist with equal first two links can create a continuous family of base angles rather than an isolated pair. The output must state that continuum explicitly. Returning one arbitrary base angle would misrepresent the solution set and could interact incorrectly with joint intervals.

The two-branch default pose

The default arm has three unit links and targets position (2,1) with orientation zero degrees. Removing the last horizontal unit link leaves wrist position (1,1). The two-link triangle has a right-angle elbow, so its branches are (0,90,-90) and (90,-90,0) in relative joint degrees.

For the first branch, the link vectors point right, up and right. Their sum is (2,1), and the final direction is right. For the second, they point up, right and right, producing the same end pose. This hand-checkable vector sum validates the relative-angle convention and shows why reporting a single branch would omit a genuine solution.

Forward verification and singular status

Every returned angle triple is checked by forward kinematics: add the three link vectors using their cumulative angles and compare with the requested endpoint. Separately compare the cumulative final angle with the target orientation modulo full turns. A small endpoint residual alone cannot establish the final orientation, especially when the third link is short.

The wrist triangle also reveals singularities. Straight or fully folded configurations reduce local controllability and may cause large joint changes for a small target change. A singular pose can still satisfy the geometric equations. Its status describes sensitivity and branch merging, not a claim that the requested configuration is invalid under all possible joint limits.

What remains outside inverse kinematics

The page does not check self-collision, external obstacles, joint torque, acceleration limits, cable winding or whether the arm can move continuously from its current state to the returned pose. Those constraints require additional models. A mathematically feasible angle set should not be treated as an executable robot trajectory merely because its forward-position residual is small.

Likewise, no branch is inherently better just because it appears first in a table. Applications may select one using distance from current joint angles, manipulability, clearance or another stated objective. This calculator supplies the complete supported static branch information and residuals so that such a choice can be made explicitly, while leaving physical safety and motion planning to an appropriate system.

A few questions, answered

Are the joint angles absolute directions?

No. They are relative joint turns; link directions use cumulative sums of those angles.

Why are there two solutions?

The two-link wrist triangle usually has two elbow orientations, each followed by a final joint adjustment.

What does continuum mean?

A singular wrist configuration admits a continuous family of joint angles rather than finitely many isolated branches.

Is a returned pose safe to execute?

The result establishes geometric pose consistency only. Collision, dynamics and hardware safety are outside this calculation.

Find your calculator

Start typing to explore the library.