Four-Bar Linkage Calculator: Position, Angular Velocity, Angular Acceleration and Jerk, Grashof Condition, Transmission Angle, Coupler Curves and Instant Centers

Solve any four-bar from any input link. Every length and angle takes an expression, every result shows the equations behind it, and the linkage exports to CAD as blocks.

Inputs
Variables (optional)

Name a value once and use it in any box below: r = 40, then 3*r. Boxes take expressions: + − * / ^, sqrt(), pi. sin, cos, tan and their inverses work in degrees.

Link Lengths
mm
mm
mm
mm
°
Coupler Point P
mm
°

P rides on the coupler: δ is measured counterclockwise from line AB at A. Set p = 0 to leave it out.

Known Position and Motion
°
rad/s
rad/s²
rad/s³
Assembly (branch)

Angles are measured counterclockwise from +x. Positive ω and α are counterclockwise. A four-bar has two assemblies for one input angle: open (links 3 and 4 do not cross) and crossed.

Mechanism and Results
Worked Solution, Plot and CAD Export
Worked solution: equations, matrices and numbers
Plot over a full cycle
Export to CAD
mm
mm

The block DXF holds one block per link, drawn on its own centre line from its first pivot. AutoCAD and SolidWorks (Insert ▸ DXF/DWG) bring each link in as a block placed at this position, ready for a layout sketch. Units are written into the file.

Reference Guide: Four-Bar Linkages
01

Vector Loop and Position

The loop

Walk around the linkage from O2 and back. The link vectors add to zero:

Vector loop \[ r_2 e^{i\theta_2} + r_3 e^{i\theta_3} - r_4 e^{i\theta_4} - r_1 e^{i\theta_1} = 0 \]

Split into x and y, that is two equations in the two unknown angles. Knowing any one of θ2, θ3, θ4 fixes the other two (twice: open and crossed).

Freudenstein's equation

With θ1 = 0, eliminating θ3 gives the input–output equation:

Freudenstein \[ K_1\cos\theta_4 - K_2\cos\theta_2 + K_3 = \cos(\theta_2-\theta_4),\quad K_1=\frac{r_1}{r_2},\ K_2=\frac{r_1}{r_4},\ K_3=\frac{r_2^2-r_3^2+r_4^2+r_1^2}{2r_2r_4} \]
This tool finds the same two roots by intersecting circles: B lies on a circle of radius r3 about A and on a circle of radius r4 about O4. No real intersection means the linkage cannot assemble at that angle.
02

Velocity, Acceleration and Jerk

Differentiate the loop

Each time derivative of the loop is linear in the newest unknowns. With the input's rate known, that is a small linear system:

Velocity \[ i r_2\omega_2 e^{i\theta_2} + i r_3\omega_3 e^{i\theta_3} - i r_4\omega_4 e^{i\theta_4} = 0 \]
Closed form (θ2 input) \[ \omega_3 = \frac{r_2\omega_2\sin(\theta_4-\theta_2)}{r_3\sin(\theta_3-\theta_4)},\qquad \omega_4 = \frac{r_2\omega_2\sin(\theta_2-\theta_3)}{r_4\sin(\theta_4-\theta_3)} \]
Acceleration and jerk

The second derivative adds the centripetal terms r ω²; the third adds the jerk terms. The same coefficient matrix appears every time, with a new right-hand side:

Acceleration \[ r_2(i\alpha_2-\omega_2^2)e^{i\theta_2} + r_3(i\alpha_3-\omega_3^2)e^{i\theta_3} - r_4(i\alpha_4-\omega_4^2)e^{i\theta_4} = 0 \]
The worked solution shows the matrix, the right-hand side and the result for each step, plus the closed-form check when the crank is the input.
03

Grashof Condition and Transmission Angle

Can a link turn all the way?

Let S and L be the shortest and longest links and P, Q the other two. If S + L < P + Q (Grashof), the shortest link can turn fully relative to its neighbours:

Shortest link isLinkage
Crank (input)Crank-rocker
GroundDouble-crank (drag link)
CouplerDouble-rocker
Rocker (output)Rocker-crank

If S + L > P + Q, it is a triple-rocker: no link turns fully. S + L = P + Q is a change-point linkage that can fold flat.

Transmission angle

μ is the angle between the coupler and the rocker. Near 90° the coupler pushes the rocker well; near 0° or 180° it only pulls on the pivot.

Law of cosines on diagonal AO4 \[ \cos\mu = \frac{r_3^2 + r_4^2 - r_1^2 - r_2^2 + 2r_1r_2\cos(\theta_2-\theta_1)}{2r_3r_4} \]
Rule of thumb: keep μ between about 40° and 140° over the whole cycle.
04

Instant Centres and Mechanical Advantage

Kennedy's theorem

Any three links share three instant centres on one straight line. I12 = O2, I14 = O4, I23 = A and I34 = B are the pins. I13 lies where lines O2A and O4B cross; I24 where line AB crosses the ground line O2O4.

Velocity ratio
From I24 \[ \frac{\omega_4}{\omega_2} = \frac{\overline{I_{24}I_{12}}}{\overline{I_{24}I_{14}}} \]

Mechanical advantage is the inverse of the speed ratio times the ratio of the output to input lever arms. It grows without limit at a toggle, where ω4 passes through zero.

05

Sources

J. Angeles and S. Bai, Kinematics of Mechanical Systems, MECH 541 lecture notes, McGill University: Freudenstein's equation (eqs. 3.8–3.10), the half-angle solution (3.73–3.77), mobility and transmission angle (3.83–3.87, 3.145).

F. Freudenstein, “Approximate synthesis of four-bar linkages,” Trans. ASME 77 (1955) 853–861.

R. L. Norton, Design of Machinery, McGraw-Hill: four-bar velocity (eq. 6.18) and acceleration (eq. 7.12) closed forms, used as a check.

Every rate is also checked by the site's tests against finite differences of the position solution, for every input link, both assemblies and many linkages.