How To Calculate Hydraulic Cylinder Stroke Length?
Sep 30, 2026
Choosing the correct hydraulic cylinder stroke length is essential for ensuring that a machine completes its required movement without overextending or retracting the cylinder beyond its intended operating range.
An incorrectly selected stroke can cause incomplete machine movement, mechanical interference, excessive loading on the piston rod, or damage to the cylinder and connected components. For equipment with pivoting arms, lifting mechanisms, or linkage systems, calculating the stroke is more complicated than simply measuring the distance the load needs to travel.
This guide explains how to calculate hydraulic cylinder stroke length for direct linear movement and articulated mechanisms, and what additional dimensions should be checked before ordering a hydraulic cylinder.
1. What Is Hydraulic Cylinder Stroke Length?
Hydraulic cylinder stroke length is the maximum linear distance the piston can travel inside the cylinder, from its fully retracted position to its fully extended position.
For example, a hydraulic cylinder with a 500 mm stroke has a nominal piston travel of 500 mm between its designed end positions.
Stroke length is different from:
Overall cylinder length: The total physical length of the cylinder, which depends on its mounting and construction.
Retracted length: The distance between specified mounting reference points when the cylinder is fully retracted.
Extended length: The distance between the same reference points when the cylinder is fully extended.
Machine travel: The distance moved by the machine component connected to the cylinder.
These dimensions are related, but they are not interchangeable. A machine component may travel a different distance from the cylinder stroke because of the mounting geometry and mechanical linkage.
2. How to Calculate Stroke Length for Direct Linear Movement
For a cylinder directly connected to a component that moves in a straight line, the required stroke can usually be calculated from the difference between the two cylinder mounting positions.
The basic formula is:
Required Stroke = Extended Mounting Distance − Retracted Mounting Distance
For example, assume the distance between the cylinder mounting pins is:
Fully retracted position: 650 mm
Fully extended position: 1,050 mm
The required cylinder stroke is:
1,050 − 650 = 400 mm
Therefore, the preliminary stroke requirement is 400 mm.
This method is suitable when the cylinder and moving component have a direct linear relationship. However, both measurements must be taken between the same mounting reference points.
Do not calculate stroke using the overall machine length or the distance between unrelated structural points.
3. How to Calculate Stroke Length for a Hydraulic Linkage System
For construction machinery, lifting equipment, agricultural machinery, and industrial mechanisms, the cylinder often operates through a pivoting arm or linkage.
In these applications, cylinder movement and machine movement are not necessarily equal.
The correct method is to calculate the distance between the cylinder's two mounting points at the beginning and end of the required machine movement.
Method 1: Use the Two Cylinder Mounting Positions
Suppose a hydraulic cylinder is connected between:
A fixed mounting pin on the machine frame
A moving mounting pin on a rotating arm
Measure the distance between these two pins at both operating limits.
If the cylinder pin-to-pin distance is:
Retracted position: 720 mm
Extended position: 1,180 mm
Then:
Required Stroke = 1,180 − 720
Required Stroke = 460 mm
The cylinder needs a nominal stroke of at least 460 mm, subject to the final design and clearance checks.
Method 2: Calculate the Distance Using Pivot Geometry
When the mounting positions are defined by a rotating arm, the cylinder length can be calculated using the law of cosines.
For a mechanism with:
A fixed machine pivot O
A fixed cylinder mounting point A
A moving cylinder mounting point B on a rotating arm
The distance between the cylinder mounting points is:
L = √(a² + r² − 2ar cos θ)
Where:
L = distance between cylinder mounting pins
a = distance from fixed pivot O to fixed cylinder mounting point A
r = distance from pivot O to moving cylinder mounting point B
θ = included angle between the two mounting-point position vectors
Calculate L at the beginning and end of the machine's required operating angle.
The required cylinder stroke is:
Stroke = |L₂ − L₁|
For example, if the calculated cylinder mounting distance changes from 680 mm to 1,120 mm during the required arm movement:
Stroke = |1,120 − 680|
Stroke = 440 mm
This method is useful for boom cylinders, bucket cylinders, lifting mechanisms, and other applications where the cylinder controls rotational movement.
For mechanisms with multiple connected links, calculate the actual pin positions using the complete linkage geometry rather than applying a simple two-point formula.
4. Calculate the Required Stroke from the Machine's Working Range
Before choosing a standard hydraulic cylinder stroke, identify the machine's complete working range.
For example, a lifting mechanism may need to move between a lower loading position and an upper unloading position. The cylinder must cover the full movement without reaching its mechanical limits too early.
The design process should include:
Minimum operating position: Identify the cylinder mounting distance when the machine is at its starting position.
Maximum operating position: Determine the mounting distance when the machine reaches its required final position.
Intermediate positions: Check whether the cylinder or connected components interfere with the machine structure during movement.
Mechanical limits: Confirm that the cylinder does not force the machine beyond its intended operating range.
A cylinder may have enough stroke to reach both endpoints but still interfere with the frame or connected components at an intermediate position. This is why checking the full movement path is important, particularly for articulated equipment.
5. Consider Stroke Allowance and Mechanical End Stops
The calculated distance between the two required operating positions establishes the basic stroke requirement. However, the final cylinder design must also consider how the machine controls its end positions.
A cylinder should not be used as an unintended mechanical stop unless it has been specifically designed for that purpose.
If the machine requires the cylinder to stop before reaching its internal end of travel, the design must account for the required operating margin and control arrangement.
Check the following:
Whether the machine has separate mechanical stops
Whether external limit switches or position sensors control movement
Whether the cylinder uses internal cushioning
Whether the piston could repeatedly impact the cylinder end cover
Whether manufacturing and installation tolerances affect the final pin-to-pin dimensions
There is no universal extra stroke allowance that applies to every hydraulic cylinder. The required margin depends on the mechanism, control system, cylinder design, and operating conditions.
6. How Cushioning Affects Hydraulic Cylinder Stroke Selection
Hydraulic cylinder cushioning is used to reduce piston impact as it approaches the end of its travel.
In high-inertia applications, a moving load can generate substantial impact energy when the cylinder reaches the end of its stroke. Cushioning helps decelerate the piston before it reaches the mechanical end position.
Applications that may require cushioning include:
Heavy lifting equipment
Industrial presses and handling systems
Long-stroke cylinders carrying large moving loads
Machinery with frequent high-speed movement
Equipment where end-of-stroke impact can damage connected structures
Cushioning does not increase the nominal stroke length. It changes how the piston decelerates near the end of its travel.
When specifying a cylinder, identify whether cushioning is required at the cap end, rod end, or both ends. The cushion design should be matched to the moving mass, operating speed, pressure, and expected cycle conditions.
7. How Stroke Length Affects Hydraulic Cylinder Design
Stroke length influences more than the distance a cylinder can move.
Piston Rod Buckling
A longer stroke can increase the unsupported length of the extended piston rod. When the cylinder pushes under compression, this can increase the risk of rod buckling.
For long-stroke hydraulic cylinders, rod diameter and mounting conditions should be checked against the maximum compressive load and effective buckling length.
A cylinder with a suitable bore may still require a larger piston rod because of its stroke and mounting arrangement.
Cylinder Installation Length
A longer stroke generally requires a longer cylinder assembly. Before selecting the stroke, check whether the available machine space can accommodate both the retracted and extended cylinder lengths.
This is especially important for compact machinery, telescopic mechanisms, and equipment with limited installation clearance.
Oil Volume and Operating Speed
A longer stroke requires more hydraulic oil to complete one movement.
The theoretical oil volume required for extension is:
V = A × S
Where:
V = oil volume (mm³)
A = piston area (mm²)
S = stroke length (mm)
For retraction, use the annular area instead of the full piston area.
For example, a cylinder with a 100 mm bore and a 500 mm stroke has a piston area of approximately 7,854 mm².
Its theoretical extension oil volume is:
V = 7,854 × 500
V = 3,927,000 mm³
This is approximately 3.93 litres.
At the same bore and pump flow rate, increasing stroke length increases the time required to complete the movement. Therefore, stroke selection should be checked alongside the available pump flow and required machine cycle time.
8. Common Mistakes When Selecting Hydraulic Cylinder Stroke
Using machine travel as cylinder stroke
A pivoting arm may move through a large distance while the cylinder mounting points move through a smaller or larger distance. Calculate the cylinder pin-to-pin movement instead of assuming both distances are equal.
Measuring from different reference points
The retracted and extended measurements must use the same mounting references. Mixing pin-to-pin distance with overall cylinder length produces an incorrect result.
Ignoring intermediate positions
A cylinder may fit at both end positions but collide with the machine frame during movement. Check the complete operating path.
Ignoring piston rod buckling
Longer stroke can increase the effective unsupported rod length. Check rod stability under the maximum compression load.
Selecting a longer stroke without checking installation space
A longer stroke increases the extended cylinder length and may interfere with other machine components.
Using cushioning to compensate for incorrect stroke selection
Cushioning reduces end-of-stroke impact but does not correct an incorrectly calculated stroke or unsuitable machine geometry.
9. What Information Should You Provide When Ordering a Hydraulic Cylinder?
When requesting a hydraulic cylinder quotation, stroke length alone is not enough to define the complete product.
Provide the following information whenever possible:
Required stroke length
Cylinder bore diameter
Piston rod diameter
Retracted pin-to-pin length
Extended pin-to-pin length
Mounting type and pin dimensions
Required extension and retraction forces
Working pressure
Operating speed and cycle time
Cushioning requirements
Working environment and temperature
Installation drawings or machine layout
For custom hydraulic cylinders, an installation drawing showing the mounting points and movement range is particularly useful. It allows the supplier to understand the actual operating geometry instead of relying on a stroke value without context.
Slyy Hydraulic supplies hydraulic cylinders, piston rods, honed tubes, and cold drawn tubes for hydraulic equipment applications. When specifying a cylinder, the stroke must be considered together with the rod diameter, tube dimensions, working load, and mounting arrangement. These components work together to determine whether the finished cylinder can achieve the required movement and withstand the operating conditions.
Conclusion
To calculate hydraulic cylinder stroke length, determine the distance between the cylinder mounting points at the required starting and ending positions.
For direct linear movement, the stroke is generally the difference between the two mounting distances. For pivoting mechanisms, calculate the mounting-point distance at both operating angles using the actual linkage geometry.
Before confirming the stroke, check installation length, intermediate clearances, piston rod buckling, oil volume, operating speed, and end-of-stroke cushioning. A correctly selected stroke allows the hydraulic cylinder to complete the machine's movement without unnecessary structural or hydraulic limitations.






