How to Choose and Fit Retaining Pins for Alignment
Last Updated: November 7, 2026
Quick Summary
Choosing retaining pins for mechanical component alignment starts by deciding whether you need a pin to hold a part on a shaft or to set its exact position. Then match the fit (clearance, transition or interference) to the hole, and select diameter and material for the load and environment. Retaining pins hold parts without precise location, so use dowel or detent pins where accuracy matters.
- Retaining pins hold a component on a shaft; alignment pins set exact position between two parts.
- Calculate clearance by subtracting the pin's maximum diameter from the hole's minimum diameter.
- Use stainless steel retaining pins where moisture, washdown or corrosive fluids are present.
- Use two pins, with one diamond or relieved pin, to lock position and rotation without binding.
- Clean and deburr the hole before inserting the pin, and never strike the pin directly with a hammer.
Table of Contents
- Retaining Pins and Alignment Pins Are Not the Same Thing
- Types of Alignment and Locating Pins Compared
- Pin Fit and Tolerance: Calculating Pin-and-Hole Clearance
- Selecting Pin Diameter, Material and Hardness
- Pin Installation Methods That Protect Your Components
- Two-Pin Alignment Strategy and Diagnosing Failures
- Order Your Retaining Pins and Specify Your Next Assembly
- Frequently Asked Questions
Getting a shaft and its housing to line up every time is harder than it looks. A pin that sits a fraction of a millimetre off can throw an entire assembly out of true, and it often shows up only after the machine has been running for weeks. This problem is common in precision assembly work, and much of it traces back to one confusion: people treat retaining pins and alignment pins as if they do the same job. They do not.
Choosing the right retaining pin for mechanical component alignment starts with knowing what the pin is meant to do, how it fits the hole, and what material will hold up under load. This guide walks through each of those decisions in order, so you can specify the right part the first time.
Retaining Pins and Alignment Pins Are Not the Same Thing
A retaining pin holds a component in place on a shaft. An alignment pin sets the exact position of one part relative to another. The retaining pin, also called a spring cotter or R-pin, relies on its own spring force to stay put once inserted through the shaft. Our product range of retaining pins covers the sizes and materials you can choose from.
Confusing the two causes trouble. A retaining pin will not hold two parts to a tight tolerance, and an alignment pin will not reliably stop a collar from sliding off a shaft. Decide which job you need done before you pick a part.
Types of Alignment and Locating Pins Compared
Several pin types can handle alignment work, and each suits a different load and access situation. The main options are:
- Dowel pins for permanent, precise location between two parts
- Detent pins for repeatable, lockable positioning
- Spring-loaded locking balls for quick positioning that needs to release on demand
- Retaining pins for holding a component on a shaft without precision location
Dowel Pins for Alignment in Precision Assemblies
Dowel pins are the usual choice when parts must return to the same position every time. They are pressed or slip-fitted into matching holes, and a dowel pin's diameter tolerance controls how exact that position is.
Detent Pins and Spring-Loaded Locking Balls
Detent pins and spring-loaded locking balls hold a part in one of several set positions and let it be released by hand or by a small force. They suit adjustable fixtures and indexing mechanisms. Keep in mind that the spring behind the detent wears over time, so plan for periodic checks in high-cycle equipment.
Pin Fit and Tolerance: Calculating Pin-and-Hole Clearance
Fit decides whether a pin locates accurately or simply rattles, and it is the single variable most often left vague on a drawing. The pin-and-hole relationship falls into three broad groups:
- Clearance fit: the pin slides into the hole with a small gap, useful for easy removal and for pins that must be inserted by hand
- Transition fit: the pin enters with light force and holds reasonably well, sitting between free assembly and a press fit
- Interference fit: the pin is slightly larger than the hole and is pressed in, giving the most secure location and the highest resistance to movement under load
To calculate clearance, subtract the pin's maximum diameter from the hole's minimum diameter. A result close to zero suggests a transition fit, while a larger positive number means free movement. The reverse, a negative result, indicates interference, where the pin is larger than the hole at its smallest. Work these numbers against the limits on your drawing, not the nominal sizes, because the extremes are what decide whether the assembly goes together on the line.
The trade-off is repeatability against assembly force. A tighter fit reduces play and improves positional repeatability, but it raises the force needed to insert the pin and the risk of galling or hole damage during assembly. A looser fit assembles easily but allows the component to shift by the clearance amount, which shows up as variation between assemblies. A light transition fit can balance location and removal for pins that are removed occasionally, while a clearance fit suits pins that must be swapped quickly.
Hole-position tolerance matters as much as hole size. If two holes are drilled independently, their centrelines can be offset from the drawing by the positional tolerance of the drilling operation, and no amount of pin-diameter tuning will recover that error. Reaming after drilling tightens both the size and the position, which is why locating holes are usually reamed rather than left as-drilled. Check the positional tolerance on the drawing before you assume the calculated fit is what you will get.
If your hole is machined with a drill and not reamed, the actual size can drift from the nominal figure and the hole can come out lobed rather than round. Measure a sample of holes with an internal micrometer or bore gauge before you commit to a pin size.
The three fit types and how they trade repeatability against assembly force:
| Fit type | How the pin enters | Best for |
|---|---|---|
| Clearance fit | Slides in with a small gap | Easy removal and hand insertion |
| Transition fit | Enters with light force | Pins removed occasionally |
| Interference fit | Pressed in, slightly larger than hole | Most secure location and highest load resistance |
Selecting Pin Diameter, Material and Hardness
Diameter depends on the load the pin carries and the size of the hole it fits. A pin that is too thin can shear under load, while an oversized one can split the surrounding material. Work from the shear force your application produces, then choose a diameter with a suitable safety margin.
Material choice comes down to the environment. Standard high carbon steel with a zinc finish works well in dry, indoor conditions. Where moisture, washdown or corrosive fluids are present, stainless steel is the better option, because it resists rust far longer. Our stainless steel retaining pin range is suited to those harsher settings.
Hardness matters too. A pin that is too soft will deform and lose its grip, and one that is too hard can become brittle. Ask your supplier for the hardness specification and check it against the stress your pin will see in service.
Pin Installation Methods That Protect Your Components
Good installation protects both the pin and the part it locates. Work through these steps:

- Clean the hole and remove any burrs that could scrape the pin on entry.
- Lightly oil the pin to reduce friction and wear during insertion.
- Start the pin square to the hole, then press or tap it in with a suitable tool.
- Never strike the pin directly with a hammer, as this can deform the wire or the housing.
- Confirm the pin is fully seated and that the component sits without play.
A common mistake is forcing an undersized or oversized pin into place. That damages the hole and shortens the pin's life. If a pin does not go in with reasonable hand pressure, stop and check the fit.
Two-Pin Alignment Strategy and Diagnosing Failures
Where accuracy matters most, use two pins rather than one. A single pin lets the part rotate around it, but two pins spaced apart lock both position and rotation. The spacing should be as wide as the component allows, because a longer distance between pins reduces the angular error for a given amount of play in each hole, the same clearance produces a smaller rotation when the pins are further apart.
The trap is overconstraint. If both pins are round and both holes are a close fit, any small error in hole spacing will fight the pins as the part is assembled, and the part will either bind or distort to close the gap. The standard fix is a round pin in one hole and a diamond or relieved pin in the other. The diamond pin is relieved on its sides so it controls position in one direction only, absorbing differences in hole spacing without binding. One pin should be the true locating pin with a close fit, and the other the relieved pin, which takes up the spacing error while still preventing rotation.
When a pin fails, work through the causes in order rather than replacing the pin and hoping. A common pattern is:
- Burrs or swarf in the hole, the pin seats at an angle, wears on one side and loses its grip. Clean and deburr before assembly.
- Hole-position error, the pin is forced into a misaligned hole, so it bends or the hole deforms. Check hole location against the drawing.
- Wear from a loose fit, clearance allows the pin to fret against the hole, and both enlarge over time. Inspect for ovality in the hole, not just pin diameter.
- Galling, metal picks up on the pin or hole during insertion, especially with stainless against stainless. Use a suitable lubricant and check surface finish.
- Thermal expansion, parts machined at one temperature and run at another can change fit. Where service temperature differs markedly from assembly temperature, allow for the difference in expansion between pin and housing material.
Inspect worn pins and holes at regular intervals, and replace parts before the wear shows up as misalignment on the finished product. A pin that has lost its fit is cheaper to replace than the assembly it locates.
Order Your Retaining Pins and Specify Your Next Assembly
Once you know the pin type, fit, diameter and material you need, you are ready to order. Give your supplier the shaft diameter, the wire diameter, the material and any finish requirement, and ask for a quotation. SpringXpert offers a large range of retaining pins in carbon steel and stainless steel, with a 12 hour response time guaranteed. Our team, backed by ISO 9001 certification and over 20 years of manufacturing experience, can help you match the right pin to your assembly.
Frequently Asked Questions
What is the difference between a retaining pin and an alignment pin?
A retaining pin holds an item on a shaft by spring force, keeping it from sliding off. An alignment pin, such as a dowel pin, sets the precise position of one component relative to another. Retaining pins are removable and fit loosely, while alignment pins are typically a close or interference fit in a reamed hole. Using a retaining pin where location accuracy matters will let parts shift, so choose by function rather than by shape.
When should you use a dowel pin instead of a retaining pin?
Use a dowel pin when two parts must return to the same position every time they are assembled, such as a fixture plate or a bearing housing. Use a retaining pin when you need to secure a washer, gear or pulley on a shaft and remove it later without tools. Dowel pins need a tight fit and an accurately sized hole, while retaining pins rely on their own spring force to stay in place.
How do you install pins without damaging the components?
Check the hole diameter and burrs before inserting any pin. Deburr the hole edges, apply a light lubricant, and press or tap the pin in square to the bore. For retaining pins, bend the legs fully around the shaft after insertion so the pin cannot work loose. Avoid hammering hardened components directly, and use a drift or fixture to spread the load.
What causes misalignment in pinned mechanical assemblies?
The most common causes are oversized or worn holes, pins that are too short or too soft, and burrs that stop the pin from seating fully. Using a retaining pin in place of an alignment pin also causes drift over time. Inspect pin and hole dimensions at installation, and replace any pin that shows wear or deformation at the contact faces.


