If you’re working with pistons, compressors, or any reciprocating mechanism, it’s essential to know the piston’s position, speed, and acceleration for any given crank angle. This Crank-Slider Mechanism Calculator gives you those values based on crank radius, rod length, and crank angle. Accurate numbers matter—whether you’re tuning an engine, sizing a compressor, or setting up equipment like punch presses. Below you’ll find the core formulas, a sample calculation, engineering context, and some real-world notes on use and limitations.
What is a crank-slider mechanism?
A crank-slider mechanism is a basic way to convert continuous rotation into straight-line movement. The crank spins, the connecting rod pivots, and the piston moves in a straight path. Nothing fancy—just effective for many tasks.
Simple Explanation
If you’ve ever used a bicycle pump, you’ve seen a crank-slider in action. As the handle (the crank) rotates, it drives a rod that moves the piston in and out. The equations tell you exactly where the piston is and how fast it’s traveling as the crank rotates.
📐 Browse all 1000+ Interactive Calculators
Table of Contents
Crank-Slider Mechanism Diagram
Crank-Slider Mechanism Calculator
How to Use This Calculator
This calculator is intended for education, concept evaluation, and preliminary design. Results are based on the equations and assumptions described on this page, but cannot account for every real-world load case, tolerance, material property, environmental condition, installation detail, safety factor, code, or regulatory requirement. Verify all inputs, assumptions, units, and results independently before selecting components or using the result in a real application. Safety-critical, structural, medical, lifting, transportation, or regulated applications must be reviewed by a qualified engineer.
- Enter the crank radius (r) in inches — this is the distance from the crank pivot to the crank pin.
- Enter the connecting rod length (l) in inches — must be greater than the crank radius.
- Enter the crank angle (θ) in degrees — measured from the reference position (typically top dead center).
- Click Calculate to see your result.
📹 Video Walkthrough — How to Use This Calculator
Crank-Slider Mechanism Interactive Visualizer
Here you can see how changing crank radius, rod length, or crank angle actually moves the piston. Mess with the sliders to see how position, velocity, and acceleration vary in a real mechanism. This is how you check your intuition before you build anything.
PISTON POSITION
7.14 in
VELOCITY
-2.13
ACCELERATION
-1.07
FIRGELLI Automations — Interactive Engineering Calculators
Mathematical Equations
This is the math behind where your piston actually is, and how fast and hard it’s moving. Use these if you want to check the numbers yourself or build your own tool.
Primary Position Equation:
x = r cos θ + l √(1 - (r sin θ / l)²)
Velocity Equation:
v = -rω sin θ [1 + (r cos θ) / (l √(1 - (r sin θ / l)²))]
Acceleration Equation:
a = -rω² cos θ [1 + (r cos θ) / (l √(1 - (r sin θ / l)²))] + complex angular terms
Where:
- x = piston position from fixed pivot
- r = crank radius
- l = connecting rod length
- θ = crank angle from reference position
- ω = angular velocity of crank
Simple Example
Crank radius (r) = 2 inches
Rod length (l) = 6 inches
Crank angle (θ) = 90°
x = 2 × cos(90°) + 6 × √(1 - (2 × sin(90°) / 6)²)
x = 0 + 6 × √(1 - 0.111) = 6 × 0.943 = 5.657 inches
Engineering Theory and Analysis
Crank-slider linkages are as basic as it gets for turning rotation into straight-line motion. This setup is used everywhere from engines to factory machines. If you’re designing reciprocating equipment, you need to be able to crunch these numbers. Most problems boil down to geometry and simple physics, but it’s the practical side—loads, speeds, imperfections—that drive design decisions.
Fundamental Principles
This mechanism is simple: fixed ground (the frame), rotating crank, connecting rod, and sliding piston. The crank spins, the rod follows, and the piston slides in a line. The piston’s position comes straight from geometry based on crank angle, radius, and rod length. Nothing magic—just a triangle and a little trigonometry.
The core formula sums up two effects: the crank’s direct swing, and the slight offset of the rod as it pivots. As the crank turns, the piston’s path isn’t perfectly smooth—it speeds up and slows down because the rod is not infinitely long. That’s all captured in the main equation here.
Velocity and acceleration are the time derivatives of position. Because of the geometry, these aren’t pure sine waves; there’s always some distortion compared to a simple rotary system. That’s why engine vibrations never disappear completely, and it’s why rod length matters.
Design Considerations
The connecting rod to crank radius ratio (l/r) is a big deal. Lower ratios mean more side loading on the piston and more vibration. Ratios of 3:1 or 4:1 keep things smoother and help the piston wear evenly. Go much below 2:1 and you’re asking for problems—excess friction, noise, and premature wear.
Crank radius sets stroke length, which is always twice r. Bigger strokes move more fluid (in engines and pumps), but also kick up speeds and forces, which can beat up bearings and rods. You can’t set stroke length without thinking about peak velocity and how hard the system will be hammered at full RPM.
Rotational speed needs special attention. Acceleration scales with the square of angular velocity, so running a mechanism faster heats things up quickly and multiplies dynamic forces. You’ll need to balance stroke, speed, and rod ratio to get reliable performance without blowing up your design.
Practical Applications
Internal Combustion Engines
Automotive and aircraft engines are just crank-slider systems at their core. The crankshaft turns combustion’s straight push into rotary motion. Every serious engine design spends time on this math—getting positions, velocities, and acceleration sorted for each cylinder, to minimize vibration and maximize efficiency.
Piston motion in real engines isn’t evenly spaced; it surges and hesitates, and that drives how you design engine mounts and counterweights. These calculations aren’t optional if you want an engine that’s both fast and long-lasting.
Compressors and Pumps
Reciprocating compressors and pumps use crank-sliders to deliver fluid movement. These often run slower than engines, but the piston position timing still matters—especially when you’re setting valve opening and closing points. Poor timing means you’ll get pressure spikes or poor efficiency.
Piston motion also shows up in vibration and foundation design for heavy industrial compressors. Sometimes, actuators are added for fine adjustments or for unloading (capacity control), but the crank-slider does all the heavy lifting.
Manufacturing Equipment
Many shop machines—like punch presses and stampers—use crank-slider assemblies for precise, repeatable motion. Timing is everything if you want consistent results and to avoid tool clashes or jams. The predictable piston path makes it possible to coordinate other movements or automate feeder systems.
These days, electric actuators sometimes step in for extra precision or for adjustments, but the main power stroke usually still comes from a good old crank-slider.
Worked Example
Suppose you’re setting up a small compressor: crank radius is 1.5 inches, rod is 5.0 inches, crank angle is 45 degrees. Here’s the straightforward math for piston position:
Given:
r = 1.5 inches
l = 5.0 inches
θ = 45° = 0.785 radians
Position Calculation:
x = r cos θ + l √(1 - (r sin θ / l)²)
x = 1.5 × cos(45°) + 5.0 × √(1 - (1.5 × sin(45°) / 5.0)²)
x = 1.5 × 0.707 + 5.0 × √(1 - (1.061 / 5.0)²)
x = 1.061 + 5.0 × √(1 - 0.045)
x = 1.061 + 5.0 × 0.977
x = 1.061 + 4.885 = 5.946 inches
This distance measures from the crank’s main pivot. The total stroke for this setup is 3.0 inches (twice the crank radius). The piston will swing between about 3.44 and 6.44 inches from the pivot as it cycles.
Advanced Considerations
In practice, nothing is perfect. Clearance at the bearings, rod flex, and thermal growth all shift real piston motion away from the ideal. Stack enough tolerances and you may see piston travel varying by several thousandths of an inch or more—which matters in precision jobs.
Once you run at speed, inertia forces go way up. A rapidly accelerating piston can put more load on the bearings than any pressure in the cylinder. That’s why designers stress-test and often overbuild high-speed mechanisms.
Lubrication isn’t uniform either. The piston sits still at each end of its stroke (top and bottom dead center), which creates tough conditions for oil film thickness and wear. Middle of the stroke is where things move the fastest.
Modern machines sometimes add electronic position feedback and actuator-based adjustment. This lets you tweak timing or even automate corrections for wear or load—handy in tightly controlled or automated lines.
Frequently Asked Questions
📐 Browse all 1000+ Interactive Calculators →
About the Author
Robbie Dickson
Chief Engineer & Founder, FIRGELLI Automations
Robbie Dickson brings over two decades of engineering expertise to FIRGELLI Automations. With a distinguished career at Rolls-Royce, BMW, and Ford, he has deep expertise in mechanical systems, actuator technology, and precision engineering.
Need to implement these calculations?
Explore the precision-engineered motion control solutions used by top engineers.
