Four links, four joints, one degree of freedom — and an enormous design space. The same four lengths can give a crank-rocker, a double-crank, a double-rocker, or a mechanism that cannot be assembled at all.
This simulator solves the loop closure at every crank angle, draws the coupler curve, and reports the transmission angle. The transmission angle is the number that decides whether the mechanism runs smoothly or fights itself near the dead points.
What a four-bar linkage actually is
Four rigid bodies, four pin joints, one degree of freedom. Fix one link and turn another, and the remaining two move in a relationship that is completely determined by the four lengths. That is the whole mechanism — no springs, no cams, no control system, and yet it produces the coupler curves that run windscreen wipers, rocker arms, pump jacks and most of the linkages in a sewing machine.
The links are named by function. The frame or ground link is the fixed distance between two pivots. The crank is the link that rotates through a full circle. The rocker oscillates instead of rotating. The coupler connects crank to rocker and is where the useful motion usually appears, because any point on the coupler traces a curve far richer than either input or output.
The distinction between crank and rocker is not a choice — it follows from the lengths. A link can rotate fully only if it can pass through both dead-centre positions, and whether that is geometrically possible is decided by the Grashof condition.
This simulator solves the loop closure for every crank angle you set, draws the mechanism to scale, and plots the coupler point path. The rest of the page covers the conditions that decide what the linkage can do, the analysis that predicts where it goes, and the transmission angle that decides whether it will run smoothly or bind.
Where the mechanism earns its keep is where a motorised joint would be overkill. A wiper arm sweeps 110° and must reverse without a limit switch; a pump jack lifts a rod string a metre and a half while the crank turns in a small circle in the gearbox; a rocker arm on an engine tappet transfers a cam profile to a valve. In each case four lengths and four pins do the whole job, and the timing comes from the geometry rather than from a controller.
The Grashof condition decides what the linkage can do
Let the four link lengths be s (shortest), l (longest) and p, q (the two remaining). The Grashof condition is s + l ≤ p + q. When it holds, at least one link can rotate continuously relative to the others. When it fails, every link is limited to oscillation and the mechanism is a double-rocker — a non-Grashof linkage.
Which link rotates depends on where the shortest link sits. If the shortest link is the frame, you get a double-crank: both input and output rotate fully, and the linkage acts as a coupling with a variable angular ratio. If the shortest link is adjacent to the frame, you get a crank-rocker — the classic configuration, one full rotation in, one oscillation out. If the shortest link is the coupler, you get a double-rocker where the coupler makes a full turn while both grounded links oscillate.
The special case s + l = p + q is a change-point or folding linkage: the links can line up dead straight, and at that instant the mechanism can go either way. In a real machine this ambiguity is a defect, because the linkage may flip into the mirror configuration and jam. Designs are kept slightly away from equality for exactly this reason.
The four link lengths in this simulator are fixed at 40, 100, 70 and 120 mm for the frame, crank, coupler and rocker respectively — a Grashof crank-rocker with ample margin. Change them mentally and the classification moves: make the crank longer than the frame plus the rocker and it stops rotating, no matter how much torque you apply.
A useful rule of thumb falls out of the inequality: for a crank-rocker, the crank must be the shortest link and the frame must be longer than the difference between the coupler and the rocker. Violate either and the crank either cannot complete a turn or the rocker hits a dead centre in the wrong place. Working these two inequalities first saves the effort of a full analysis on a mechanism that was never going to rotate.
| Shortest link | s + l ≤ p + q | Type | Behaviour |
|---|---|---|---|
| Frame | Yes | Double-crank | Both grounded links rotate fully |
| Adjacent to frame | Yes | Crank-rocker | One rotates, one oscillates |
| Coupler | Yes | Double-rocker | Coupler rotates, ends oscillate |
| Any | s + l = p + q | Change-point | Can fold and flip — avoid |
| Any | s + l > p + q | Double-rocker | Nothing rotates fully |
Position analysis: solving the loop closure
With the crank angle θ₂ known, the position of the crank pin follows from simple trigonometry: x = a·cos θ₂, y = a·sin θ₂. What remains is to find where the coupler and rocker meet — the intersection of two circles, one centred on the crank pin with radius equal to the coupler length, the other centred on the fixed rocker pivot with radius equal to the rocker.
That intersection has two solutions. They correspond to the linkage being assembled in one of two mirror configurations — the open and crossed branches. A real mechanism stays on whichever branch it was built in, and it can only jump branches at a dead centre. Choosing the wrong root in software produces a picture of a linkage that flips through itself mid-stroke, which is the visual signature of this error.
Writing the loop closure in complex form, a·e^{iθ₂} + b·e^{iθ₃} = d + c·e^{iθ₄}, leads to the standard half-angle solution for θ₃ and θ₄ in terms of the four lengths and θ₂. The algebra is mechanical but worth knowing: it gives both branches directly through the sign of the square root, and it is the form used inside this simulator.
For hand work, the graphical construction is faster: draw the crank circle, mark the crank pin, strike an arc of coupler radius from it, strike an arc of rocker radius from the fixed pivot, and the intersection is the joint. Doing that for a dozen crank angles and joining the results gives the coupler curve without any algebra.
Branch selection is the detail that trips up both hand construction and code. In the graphical method it is the choice of intersection; in code it is the sign in front of the square root. Either way, once chosen, it must stay fixed for the whole cycle, because a linkage cannot change branch without passing through a dead centre. If the plotted rocker angle jumps discontinuously mid-cycle, the branch sign flipped — a bug, not a mechanism.
Velocity, instant centres and the angular ratio
Velocity analysis answers the question a designer actually asks: for this crank speed, how fast does the output rocker move, and where is it fastest? The classical method is the instant centre — at any instant the coupler rotates about a point where its two end velocities are compatible, and once that point is found, all velocities follow from the geometry.
The instant centre of the coupler relative to the frame is the intersection of the line through the two crank-pin directions and the line through the two rocker-pin directions (the Kennedy construction). Distances from that centre are inversely proportional to velocities, so the velocity ratio can be read off a drawing with a ruler.
The result is a ratio that varies through the cycle, and that variation is often the point of the mechanism. A crank-rocker converts constant input speed into an output that sweeps quickly through mid-stroke and slowly near its extremes — exactly what a windscreen wiper needs, and exactly what a pump jack exploits to spend more time lifting slowly than returning quickly.
The time ratio — the fraction of the cycle spent going forward versus returning — is a design specification in its own right, usually expressed as the quick return ratio. A shaper or slotter uses this deliberately: cutting slowly, returning fast, so the non-productive half of the cycle is shortened without increasing cutting speed.
A number makes the point. With a 40 mm crank, a 120 mm coupler, a 100 mm rocker and a 70 mm frame at 60 rpm, the rocker sweeps through roughly 70° with a peak angular velocity near 3 rad/s and a peak ratio of about 3:1 between the fast and slow halves of the cycle. That ratio is a design output, not a nuisance: it is exactly what makes a shaper productive and a wiper clear the screen without stalling at the ends.
Acceleration and the coupler curve
Acceleration analysis is what tells you whether the linkage will shake. Differentiate the velocity polygon once more and you get the acceleration of each joint as the sum of a tangential component and a centripetal component, ω²r, which grows with the square of speed and always points toward the centre of rotation.
For a crank rotating at constant ω, the crank pin sees only centripetal acceleration, a = ω²a. The rocker pin sees both, and near the dead centres the tangential term can spike because the linkage is momentarily changing direction with little mechanical advantage. That spike is the origin of the knock in a worn wiper mechanism.
The coupler curve is the payoff. A point on the coupler traces anything from a simple arc to a figure-eight with two cusps, depending on where the point sits and what the link lengths are. Watt's straight-line linkage, the ellipsograph and the walking-beam of a steam engine are all four-bar mechanisms whose coupler curves were chosen for a specific task.
This simulator plots that curve continuously as the crank turns, which is the fastest way to see the effect of moving the coupler point. Small changes in its position change the curve out of all proportion — a property that makes synthesis by trial productive, and makes hand calculation impractical.
At 300 rpm — 31.4 rad/s — a crank pin at 40 mm radius sees 39 m/s² of centripetal acceleration, about 4 g. The rocker pin sees more, and at the extremes of the sweep the tangential component adds to it. Multiply by the mass of the coupler and you have the shaking force that the frame must react, which is why linkage mechanisms are balanced by adding counterweights to the crank or by running two identical linkages in mirror image.
Transmission angle: the constraint that decides smoothness
The transmission angle μ is the angle between the coupler and the rocker at their joint. It measures how effectively the coupler force produces torque about the rocker pivot: torque is proportional to sin μ, so at μ = 90° the linkage transmits force perfectly, and at μ = 0° it transmits none at all.
The practical rule is to keep μ between 40° and 140° through the whole cycle, with 45° to 135° preferred. Below about 40°, the joint force for a given output torque rises sharply, the pin loads up, friction increases, and the mechanism starts to feel notchy. At small μ the linkage can self-lock, and no amount of input torque will move it.
Transmission angle is a function of link lengths only, so it is fixed at design time. If a linkage has a poor μ somewhere in its cycle, the remedies are geometric: lengthen the coupler, shorten the rocker, or move the frame pivots apart. Adding a flywheel or a bigger motor does not help — the geometry is transmitting force sideways into the bearings.
The minimum transmission angle occurs at the two positions where the crank and frame are collinear, which is also where the rocker reaches its extremes. Checking μ at those two positions alone is enough for most designs, and it is the check this page reports.
In the mechanism simulated above, the minimum transmission angle occurs near crank angles of 0° and 180°, where the crank and frame lines up. If that minimum drops below 40°, the fix is to lengthen the coupler or shorten the rocker; both tend to straighten the joint at the critical positions. A quick sensitivity check — change one length by 10% and watch the minimum — tells you which of the four lengths is doing the work.
| Transmission angle | Assessment | Consequence |
|---|---|---|
| 90° | Ideal | Full force transfer, minimum pin load |
| 70° – 90° | Good | Normal machine design |
| 40° – 70° | Acceptable | Common in compact mechanisms |
| 25° – 40° | Marginal | High joint force, visible vibration |
| Below 25° | Poor | Risk of self-locking, rapid wear |
The three useful configurations
Crank-rocker is the workhorse: continuous input, oscillating output, and a transmission angle that stays healthy over a wide range of proportions. Windscreen wipers, valve gear, pump jacks and most industrial linkages are crank-rockers, because a motor provides rotation and the task needs a sweep.
Double-crank — also called a drag-link — has both grounded links rotating fully, with a ratio that varies through the cycle. It is used where a non-uniform output from a uniform input is wanted: an intermittent feed, a phase-shifting coupling, or a mechanism that must dwell without a cam.
Double-rocker produces oscillation from oscillation, and is the configuration for amplifying or redirecting a small input sweep into a larger output sweep. Because nothing rotates fully, it is often driven by a crank-rocker or a cam upstream, and it appears in linkages whose job is to copy a motion rather than generate one.
Choosing between them is a matter of matching the input and output types first, then checking Grashof and transmission angle. A design that needs a crank but lands in a double-rocker is a specification error that no amount of detail work can rescue — the linkage simply cannot do it.
Real machines show the distinction clearly. A pump jack is a crank-rocker with a very long rocker arm, chosen so the polished rod travels slowly at the top and bottom of the stroke. A drag-link coupling between two shafts is a double-crank used to make one shaft lag and catch up cyclically. A copy linkage on a milling machine is a double-rocker reproducing a template at reduced scale.
Synthesis: designing for a required output
Synthesis runs the analysis backwards: given two or three positions the output must reach, find link lengths that produce them. The classical constructions are graphical — three-position synthesis draws perpendicular bisectors between corresponding point pairs and reads the pivots off the intersections — and they remain the fastest way to get a starting design.
For more demanding specifications — a prescribed coupler curve, a specified velocity ratio, a limit on transmission angle — the practical route is optimisation. Parameterise the four lengths and the coupler point, define an objective that penalises deviation from the target motion plus violation of the Grashof and transmission-angle constraints, and let a solver search. The graphical method gets you a starting point; the solver refines it.
Whatever the method, the result must be checked for the constraints that are easy to forget: the linkage must be assemblable in the intended branch, must not collide with itself or the frame, and must not pass through a change-point where it can flip. A design that satisfies the motion specification and flips mid-cycle is not a design.
In practice, most four-bar work in industry is not synthesis at all but adaptation: take a known good mechanism, scale it, and verify the transmission angle and the branch. The mathematics of synthesis is elegant, but the catalogue of proven proportions is usually faster to reach a working machine.
Manufacturing tolerance matters more than most textbooks admit. A pin clearance of 0.05 mm in a 100 mm link changes the output angle by a few tenths of a degree, which is harmless in a wiper and fatal in a precision copy linkage. If the specification is tight, the design should be over-constrained or the joints preloaded, because a four-bar has no way to absorb clearance without losing accuracy at the output.
Frequently asked questions
What does the Grashof condition tell me?
Whether any link can rotate fully: s + l ≤ p + q means at least one can, and which one depends on where the shortest link sits. If the condition fails, every link oscillates and the mechanism is a double-rocker.
Why does my linkage flip to the other configuration?
It passed through a dead centre where the coupler and one grounded link were collinear, and both assembly branches were momentarily identical. Real mechanisms avoid this by keeping the link lengths away from the change-point equality and by never driving through the dead centre without guidance.
What is a good transmission angle?
Between 40° and 140°, ideally 45° to 135°. Torque transfer is proportional to sin μ, so small angles mean large joint forces and a risk of self-locking. It is set by the link lengths at design time and cannot be fixed afterwards.
Can a four-bar produce an exact straight line?
Only approximately, and only over a limited stroke. Watt's and Roberts' linkages give near-straight lines, which was good enough for steam engines. Exact straight-line motion needs more links — Peaucellier or Hart inversors.
How do I get a quick return?
Offset the crank relative to the rocker pivot, or choose proportions where the forward and return sweeps are unequal. The quick-return ratio is the ratio of the two crank angles, and shapers and slotters are built around it deliberately.
Why does the coupler point matter so much?
Because it traces a curve that neither the crank nor the rocker can produce — cusps, loops and near-straight segments appear from the same four links. Moving the point a few millimetres changes the curve dramatically, which is why it is a primary design variable.