Skip to content
You Start with one site
Amounts in Start with one site
Mechanisms & Machines · Course

Will it move? Joints and degrees of freedom

Lesson 1 of 6 Intermediate 12 min read
Found this useful?

A mechanism with too few degrees of freedom locks up and does nothing. One with too many flops around, going wherever the load pushes it. The difference between a useful machine and an expensive pile of parts is whether someone counted the constraints correctly, before any metal was cut. This lesson gives you that count from just the number of links and joints, and it is the very first check every mechanism designer runs.

#Kinematics #DegreesOfFreedom #GrublersEquation

3 bars, 3 pins4 bars, 4 pins5 bars, 5 pins
1. left and right2. forward and back3. spin

Every joint trades freedom for constraint

Drop a single rigid part on a table and it has exactly three ways to move in the plane: slide left and right, slide up and down, and spin. Three degrees of freedom, no more. The moment you pin it to another part, you take some of those freedoms away. That is the whole idea: a joint permits the motion you want and removes the motion you do not. In a plane, for every joint, permitted plus removed always equals three.

Joints come in two families, and the only thing that separates them is how they touch.

Revolute (pin) removes 2, leaves 1 turn lower pair Prismatic (slider) removes 2, leaves 1 slide lower pair Cam / gear (contact) removes 1, leaves 2 higher pair
A lower pair (revolute or prismatic) touches over a surface and removes two freedoms. A higher pair (a cam or two gear teeth) touches along a line or at a point, so it can roll and slip at once and removes only one. That single difference is why the equation below has separate terms for the two.
A door hingeLets the door turn. Stops it sliding either way.Pin joint · takes 2 freedoms, leaves 1
A drawerLets it slide in and out. Stops it turning or moving sideways.Slider joint · takes 2, leaves 1
A wheel on the roadRolls and can slip along the road. Only stopped from sinking into it.Contact joint · takes 1, leaves 2
Brought in by 3 moving links9
Taken away by 4 pin joints8
Left over: the mobility1

One freedom left means one motor moves everything, the same way every time.

One equation for whether it moves

Add up the freedom of every moving part, subtract the constraint of every joint, and whatever is left is the mobility: the number of independent inputs the mechanism needs. That accounting is the Kutzbach-Grübler equation:

M = 3(n − 1) − 2j₁ − j₂
  • n is the number of links, including the frame. The frame is fixed, so only n − 1 links can move, and each contributes 3 freedoms.
  • j₁ is the number of lower pairs (revolute or prismatic). Each one removes 2 freedoms.
  • j₂ is the number of higher pairs (cam or gear contact). Each one removes 1 freedom.

Read it as total freedom minus total constraint. What survives is mobility, written M or DOF (the same thing).

The value of M tells you what you have made:

  • M of 1 is a single-input mechanism: one motor produces a fully determined, repeatable motion. This is what most designs aim for.
  • M of 2 or more still moves, but it needs that many independent motors to control it.
  • M of 0 is a structure: rigid, going nowhere (which is exactly right for a bridge, and useless for a machine).
  • M below zero is over-constrained: it will bind or lock, unless special geometry rescues it.
Two traps that cost most people marks. First, forgetting to count the frame as a link makes every answer exactly 3 too low. Second, when three links meet at one pin, that is not one joint: k links sharing a pin make k − 1 joints. Count pins by the links that meet there.
bar 1bar 2bar 3 1 + 2: one joint1 + 3: one joint3 links, 1 pin = 2 joints

Try it: the mobility explorer

Load a mechanism, or change the counts yourself. The bar below is the moving parts' total freedom: the grey part is what the joints use up, and the teal part left over is the mobility.

Load
Links n4
Lower pairs j₁4
Higher pairs j₂0

Two things worth noticing while you play. The four-bar and the slider-crank give the identical answer, because swapping one pin for one slider trades a lower pair for another lower pair, and the count does not change. And a rigid triangle lands on M of 0: three bars pinned in a triangle cannot move, which is why triangles brace everything from roof trusses to bicycle frames.

See it: what M = 0, 1 and 2 look like

M = 3(n − 1) − 2j₁
Shapes for one crank angle
Links n, pins j₁

Lengths in mm, on a frame 140 mm long. The triangle has bars of 80 and 100. The four-bar has a crank of 50, a coupler of 130 and a rocker of 100. The five-bar has a crank of 50, two links of 90 and a second driven link of 70. With the five-bar, the faint shapes have the same crank angle and a different second motor angle: one motor is not enough to fix where it is.

Application: the four-bar diverter arm

A packaging line needs an arm that swings each box onto one of two belts, driven by a single motor. It is a crank-rocker four-bar, four bars pinned in a loop. Drive it below and predict what the rocker will do, then work out the question that decides whether the design is even buildable.

Predict first

You are about to turn the crank to a new angle. How many positions can the rocker end up in?

O₂ O₄ P
45°
Drag the crank or press play; it turns clockwise. Fixing one number, the crank angle, fixes every other link: that is what one degree of freedom means, one input and a fully determined machine. The gold point P is a fixed point on the coupler, and the dotted line is the exact path P traces, a whole family of useful motions from a single turning input.
The question
Will a single motor control the whole arm, and is one motor really enough? Work out its mobility to decide.
What you know: the arm has 4 links (the fixed frame, plus the crank, coupler, and rocker) and 4 revolute pin joints, with no cam or gear contacts.
Use M = 3(n − 1) − 2j₁ − j₂, where n is the number of links (count the frame too), j₁ is the lower pairs (every pin and slider), and j₂ is the higher pairs (cam or gear contacts). A result of M = 1 means one motor fully controls the arm.
Show the worked solution
  1. Count the links and joints

    Include the frame: n = frame + crank + coupler + rocker, so n = 4.

    All four connections are pins, which are revolute lower pairs, so j₁ = 4. There are no cam or gear contacts, so j₂ = 0.

  2. Apply the equation

    M = 3(n − 1) − 2j₁ − j₂ = 3(4 − 1) − 2(4) − 0.

    M = 9 − 8 = 1. One degree of freedom, so it needs one motor, applied at the crank O₂.

  3. Verify it in the animation above

    The animation exposes exactly one input, the crank angle. Sweep it, and the coupler angle, the rocker angle, and the traced coupler path all follow from that single number.

    There is no second freedom to set anywhere. That is the physical meaning of M = 1. If the mobility were 2, you would need a second independent input to pin the figure down, and one slider would leave the linkage floppy.

See it move
A four-bar built in the FreeCAD course: the crank turns all the way round, the follower rocks between two limits. One input sets every link, which is what M = 1 means.
Why designers reach for it. Four links and four pins is the smallest closed chain that still moves with one input. Remove a joint and it falls apart into loose bars; add a constraint and it locks solid. Almost every mechanism in this course is a variation on that balance. If you want to size a real one to hit specific angles, the full four-bar simulator lets you set the four lengths and read the output; here, the point is the feel of one input controlling everything.

Application: the engine slider-crank

An engine does not use four pins. It turns a crank and drives a piston in a straight bore, yet its mobility is identical to the four-bar. Seeing exactly why sharpens the joint-counting intuition more than any amount of memorising.

See it move
A slider crank, built in the FreeCAD course: one turn of the crank drives the slider 60 mm along its guide and back. Count the joints as it moves: three pins and one slide, and still only one input.
The question
Find the engine's mobility, then explain why replacing one pin with a sliding piston does not change it.
What you know: 4 links (frame, crank, connecting rod, piston), joined by 4 lower pairs: 3 revolute pins and 1 prismatic slider (the piston in its bore). No higher pairs.
Use the same equation, M = 3(n − 1) − 2j₁ − j₂. Remember a slider is a lower pair, so it counts in j₁ exactly like a pin.
Show the worked solution
  1. Count, and find the one prismatic joint

    Links: frame, crank, connecting rod, piston, so n = 4.

    Joints: three revolute pins (crank-to-frame, crank-to-rod, rod-to-piston) plus one prismatic slider (the piston in its bore). A prismatic joint is a lower pair as well, so j₁ = 4 and j₂ = 0.

  2. Apply the equation

    M = 3(4 − 1) − 2(4) − 0 = 9 − 8 = 1, identical to the four-bar.

  3. Why swapping a pin for a slider changed nothing

    Picture the four-bar's rocker growing longer and longer. Its tip traces an ever-flatter arc until, in the limit, the arc becomes a straight line and the pin becomes a slider. A slider is a pin on an infinitely long link, which is why the mobility is preserved.

    Both the pin and the slider are lower pairs removing 2 constraints, so the count does not change. Even adding an offset (e ≠ 0) for a quick-return effect changes the path traced, never the joint count, so the mobility stays 1.

Practical impact. Because a revolute and a prismatic are interchangeable in the equation, a designer can swap a pin-jointed rocker for a hydraulic cylinder without disturbing the degree-of-freedom budget. You use exactly this freedom when sizing actuators later in the course.
Your turn: the toggle clamp

A toggle clamp holds a workpiece with huge force from a light hand push, and stays clamped when you let go. Model it as a four-bar: frame, handle, link, and clamping bar, joined by four revolute pins. (a) What is its mobility, and how many inputs does it need? (b) Its clamping power comes from a special position where the handle link and the coupler line up straight. Why does the clamping force spike there, even though the mobility never changes? Attempt both, then reveal.

Show the worked solution
  1. Mobility

    It is a four-bar: n = 4, four revolute joints so j₁ = 4, and j₂ = 0.

    M = 3(4 − 1) − 2(4) − 0 = 1. One degree of freedom, driven by one input, your hand on the handle.

  2. Why the force spikes at the toggle position

    Mobility counts how many inputs a mechanism needs. It says nothing about how force flows at a given instant, which is set by the geometry of that moment.

    When two links line up straight (the toggle, or singular, position), a large motion of the handle produces almost no motion at the clamp. By the balance of work in and work out, a small input force then produces a very large clamping force, and the mechanism naturally holds.

    The mobility is still 1 the whole time. The singularity is about instantaneous force and motion, not the degree-of-freedom count. Telling these two apart, overall mobility versus instantaneous behaviour at a singular position, is the last idea of this lesson.

Application: the scissor lift, when the equation lies

So far the equation has matched reality exactly. Now the case every engineer must recognise: a mechanism that moves on a single motor, yet whose raw count comes out negative. The scissor lift is the classic example, and reconciling the contradiction is one of the most useful skills in this lesson.

Predict first

A symmetric scissor lift plainly rises and falls on a single hydraulic cylinder. When you apply the mobility equation to it, what do you expect it to say?

The question
Work out the scissor lift's mobility with the equation. The number will surprise you, because a real lift plainly rises on one cylinder. What has the equation missed, and what is the true mobility?
What you know: 4 links (base, two crossed arms, platform), joined by 5 lower pairs: 3 revolute pins and 2 prismatic sliders. No higher pairs. The cylinder drives the motion and is not counted as a link.
Use M = 3(n − 1) − 2j₁ − j₂, then compare the number you get with a lift that clearly moves on a single input.
Show the worked reconciliation
  1. Apply the equation naively

    Inventory: n = 4, j₁ = 5 (three revolute and two prismatic), j₂ = 0.

    M = 3(4 − 1) − 2(5) − 0 = 9 − 10 = −1. Read literally, that predicts an over-constrained structure that should not move at all, and might even bind.

  2. Compare with reality

    A real scissor lift clearly moves: one cylinder raises the platform, and it stays horizontal at every height. That is the behaviour of a 1-DOF mechanism, not a −1 structure.

    So the equation is off by 2: it says −1, the mechanism does +1. This gap is Grübler's paradox.

  3. Reconcile with redundant constraints

    The equation assumes every joint imposes independent constraints. The scissor lift's symmetry breaks that assumption: equal-length arms pivoting at their shared midpoint force the platform to stay parallel to the base, and that one condition is enforced by several joints at once, so some constraints overlap and do no new work.

    Let r be the number of redundant constraints. The corrected mobility is M = 3(n − 1) − 2j₁ − j₂ + r. Solving with the observed value: 1 = −1 + r, so r = 2 redundant constraints.

    The visible signature is the platform staying level at every height: the symmetry enforces it automatically, which is exactly the overlap the raw equation could not see.

The rule to remember. The equation is necessary but not sufficient; it is exact only when the joint constraints are independent. On symmetric or parallel-motion designs (scissor lifts, pantographs, parallelogram linkages), suspect redundant constraints before you suspect your arithmetic. Engineers exploit this on purpose: the redundancy that "breaks" the equation is the very thing that keeps the platform level and stiff.

Check yourself

Question 1

A planar mechanism has 5 links and 6 revolute joints (no higher pairs). What is its mobility?

Question 2

Why does a prismatic (sliding) joint count the same as a revolute (pin) joint in the equation?

Question 3

You compute the mobility of a four-bar and get M = −2. What did you most likely do wrong?

Question 4

A scissor lift raises smoothly on one hydraulic cylinder, yet the equation gives a negative M (−1, as in the application above). What is going on?

3 bars, 3 pins3(3 − 1) − 2(3) = 0A structure. Good for a roof, useless for a machine.
4 bars, 4 pins3(4 − 1) − 2(4) = 1One motor, one fixed motion. What most machines want.
5 bars, 5 pins3(5 − 1) − 2(5) = 2It moves, but it needs two motors to control it.
Key points
  • A free part in a plane has 3 freedoms; every joint trades some away. Lower pairs (pin, slider) remove 2; higher pairs (cam, gear) remove 1.
  • Mobility M = 3(n − 1) − 2j₁ − j₂ is total freedom minus total constraint. Include the frame in n.
  • M = 1 is the design sweet spot: one motor, fully determined motion. The four-bar and slider-crank both land here.
  • On special geometry (parallel or symmetric links), trust the motion over the raw count: that is Grübler's paradox.

You now know whether a mechanism moves and how many motors it needs. The next question is where every link actually sits for a given input: pointing the crank at an angle and finding the exact position of the coupler and rocker. That is position analysis, and it is where you write the vector loop you will reuse for the rest of the course.

Found this useful?

Discussion

    Comments show your name. Be kind, stay on the topic.