Slider-Crank Calculator: Piston Position, Velocity and Acceleration, Offset Slider Stroke and Time Ratio, Inverted Slider-Crank with Coriolis Acceleration, and Scotch Yoke
Solve in-line and offset slider-cranks, the inverted slider-crank and the Scotch yoke from any input. Every length takes an expression, every result shows its equations, and the mechanism exports to CAD as blocks. For four-bars, see the four-bar linkage calculator.
Crank O2A drives rod AB; pin B slides on a straight path. Offset c = 0 is the in-line (engine) case.
Crank O2A carries a slider block that rides along link 4, which turns about O4. This is the quick-return shaper and the hydraulic-cylinder linkage.
The crank pin rides in a slot of the yoke, so the yoke moves in pure simple harmonic motion.
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.
Offset c is the distance of the slider path from O2, measured to the left of the path direction.
Offset c is the distance from the line of link 4 to the slider pin A. Use 0 when the pin rides on the centre line.
P rides on the rod, for example its centre of mass. δ is measured counterclockwise from line AB at A. Set p = 0 to leave it out.
Angles are measured counterclockwise from +x. Positive ω and α are counterclockwise; a positive slider speed moves along the path direction. Speeds of a length (slider, yoke) are in length units per second.
Worked solution: equations, matrices and numbers
The block DXF holds one block per link (crank, rod, slider block, and the ground with the slider path), each drawn in its own frame. 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.
In-Line Slider-Crank: Piston Motion
With crank a, rod b, crank angle θ and no offset, the slider sits at distance x from the crank centre:
Stroke is 2a. The dead centres are at θ = 0° and 180°.
Expanding the square root and keeping the first harmonic of a/b gives the forms used in engine dynamics, at constant ω:
Offset Slider: Stroke and Quick Return
With offset c, the dead centres are where crank and rod line up. The slider then sits at
The crank turns fully only when b ≥ a + |c|.
The two strokes take different crank angles, so one is faster. That is the quick-return effect:
Inverted Slider-Crank and Coriolis Acceleration
Here the slider block rides on a turning link 4, and its distance b along that link changes. The unknowns are θ4 and b:
Differentiating twice gives the terms of a point that moves along a turning link.
A′ is the point of link 4 under the slider and û4 is the unit vector along link 4. The last term, 2ω4ḃ, is the Coriolis acceleration. It acts across link 4.
Scotch Yoke
The crank pin slides in a slot of the yoke, so the yoke follows the pin's horizontal position exactly:
It is the limit of the slider-crank as the rod gets infinitely long: the cos 2θ term disappears. Stroke is 2a, and both strokes take 180° of crank turn.
Sources
R. L. Norton, Design of Machinery, McGraw-Hill: slider-crank and inverted slider-crank position, velocity and acceleration (chapters 4, 6 and 7) and the series form of piston motion (chapter 13, engine dynamics).
J. Angeles and S. Bai, Kinematics of Mechanical Systems, MECH 541 lecture notes, McGill University: vector-loop analysis of planar linkages.
Every rate is also checked by the site's tests against finite differences of the position solution, for every input, both branches and many proportions.