A rectangular connecting element fitted between shaft and hub keyways to transmit torque.
02 / CONSTRUCTION
Construction & recognition
The key sides transmit load. Keyways, shaft-hub fits and axial retention have separate roles; the key cannot replace every locating and locking function.
03 / APPLICATIONS
Common applications
Connecting pulleys, gears and coupling hubs to transmission shafts.
Image copyright belongs to the manufacturers or original authors. Brands and models identify illustrations; consult official documentation when selecting parts.
ENGINEERING GUIDE
Selection and design guide
A rectangular key sunk into a shaft keyway and a hub keyway that transmits torque through its two sides; it centres well and is easy to fit and remove, but it cannot locate the part axially. Selection starts with b×h from the shaft diameter, then sets the key length from the hub length, and ends with a bearing check and, where needed, a shear check.
01Construction and how it works
A parallel key is a rectangular steel bar of section b×h, with the lower half sunk in the shaft keyway (depth t1) and the upper half entering the hub keyway (depth t2). The two sides are the working faces: as the shaft turns, one side of the key is pushed by the shaft keyway wall and the other pushes the hub keyway wall, and the torque passes through that way. A clearance is left between the top of the key and the bottom of the hub keyway, so the joint is not tightened on the top face, which is why it centres well; for the same reason it cannot carry axial force, and the hub needs a shaft shoulder, a retaining ring or a sleeve to locate it axially.
Parallel key and keyways. Top left: front and side views of the key, where b is the key width, h the key height and ℓ the key length, the two sides are finished to Ra 1.6 and the top and bottom faces to Ra 6.3, and S1 and S2 are parallelism tolerances, each half the tolerance on b and h (S1 = Tolerance of b × 1/2). Top middle: section of the key, where c is the chamfer. Top right: section of the key groove, where b2 is the hub keyway width, b1 the shaft keyway width, r1 and r2 the groove bottom radii, the groove sides are finished to Ra 1.6 and the groove bottom to Ra 6.3. Bottom row: longitudinal and cross sections after assembly, where d is the shaft diameter, t1 the shaft keyway depth and t2 the hub keyway depthSource: MISUMI technical data, Machine Keys and Key Grooves (FA mechanical parts catalogue technical data, English edition)
Keys are usually made from medium carbon steel square bar such as 45 steel. Failure is usually not a broken key but crushing of the working face of the weaker part, most often the hub, or wear in a sliding joint. A parallel key is therefore normally checked in bearing only (note to table 6-3-16 in the Mechanical Design Handbook).
02Types and designation systems
Forms of parallel key
Form
Ends
Working length l
Keyway machining
Features
A type
Round at both ends
L − b
Milled with an end mill
The key does not shift in the groove and this form is the most common; stress concentration at the groove end is higher
B type
Square at both ends
L
Milled with a disc cutter
Needs a set screw or a clamp plate to stop it shifting
C type
Round at one end, square at the other
L − b/2
—
Used at a shaft end
Feather key
With screw holes, fixed to the shaft
—
—
The hub slides along the shaft; use loose fit tolerances
Thin parallel key
As a standard parallel key
—
—
Smaller h, for thin-walled hubs (GB/T 1567)
Working length from Mechanical Design Handbook table 6-3-16; forms from GB/T 1096-2003 and GB/T 1567-2003 (the key type table in section 2.1 of the handbook and table 6-3-19).
Three fits: tolerance zones across the key width
Fit (GB name / JIS name)
Shaft keyway b1
Hub keyway b2
Use
Loose fit / sliding
H9
D10
Feather key, where the hub has to slide on the shaft
Normal fit / ordinary
N9
JS9
General fixed joint, easy to assemble and strip
Close fit / precision
P9
P9
Heavy load, shock or reversing torque, with no side clearance allowed
Tolerance zones agree between GB/T 1095-2003 and MISUMI Machine Keys and Key Grooves (JIS B 1301 extract).
03Key parameters
Limit deviations of keyway width (mm)
Key width b
Key width h8
Normal: shaft N9
Normal: hub JS9
Close: shaft and hub P9
Loose: shaft H9
Loose: hub D10
2, 3
0 / −0.014
−0.004 / −0.029
±0.0125
−0.006 / −0.031
+0.025 / 0
+0.060 / +0.020
4, 5, 6
0 / −0.018
0 / −0.030
±0.015
−0.012 / −0.042
+0.030 / 0
+0.078 / +0.030
8, 10
0 / −0.022
0 / −0.036
±0.018
−0.015 / −0.051
+0.036 / 0
+0.098 / +0.040
12~18
0 / −0.027
0 / −0.043
±0.0215
−0.018 / −0.061
+0.043 / 0
+0.120 / +0.050
20~28
0 / −0.033
0 / −0.052
±0.026
−0.022 / −0.074
+0.052 / 0
+0.149 / +0.065
32~50
0 / −0.039
0 / −0.062
±0.031
−0.026 / −0.088
+0.062 / 0
+0.180 / +0.080
Keyway deviations from MISUMI Machine Keys and Key Grooves (JIS B 1301 extract), in agreement with GB/T 1095-2003 (Mechanical Design Handbook table 6-3-18); key width h8 from GB/T 1096-2003 (handbook table 6-3-19).
Other tolerances on the key itself (GB/T 1096-2003)
Item
Requirement
Key height h
h8 for square keys (b = 2~6); h11 for rectangular keys (b ≥ 8)
Key length L
h14; series 10, 12, 14, 16, 18, 20, 22, 25, 28, 32, 36, 40, 45, 50, 56, 63, 70, 80, 90, 100, 110, 125, 140, 160, 180, 200, 250 and so on
Marking example
GB/T 1096 key 16×10×100 (A type); for B and C types put B or C before the dimensions
From Mechanical Design Handbook table 6-3-19 (printed page 6-232). In the MISUMI data (JIS) the key length tolerance is h12 in principle and the length series starts at 6 and 8, unlike GB.
04Selection and calculation
Look up the key section b×h from the shaft diameterUse the table below, which also gives the shaft keyway depth t1 and the hub keyway depth t2.
Set the key length L from the hub lengthChoose a value from the length series slightly shorter than the hub; normally not more than (1.6~1.8)d.
Choose the fitNormal fit for a fixed joint; close fit for shock or reversing torque; loose fit (feather key) where the hub has to slide.
Check bearing, and shear where neededTake the allowable value of the weakest of key, shaft and hub. If it is short, lengthen the hub and the key, or use two keys.
Key and keyway depth by shaft diameter (mm)
Shaft diameter d
Key b×h
Shaft keyway depth t1
Hub keyway depth t2
t1, t2 deviation
Groove bottom radius r
6~8
2×2
1.2
1.0
+0.1 / 0
0.08~0.16
>8~10
3×3
1.8
1.4
+0.1 / 0
0.08~0.16
>10~12
4×4
2.5
1.8
+0.1 / 0
0.08~0.16
>12~17
5×5
3.0
2.3
+0.1 / 0
0.16~0.25
>17~22
6×6
3.5
2.8
+0.1 / 0
0.16~0.25
>22~30
8×7
4.0
3.3
+0.2 / 0
0.16~0.25
>30~38
10×8
5.0
3.3
+0.2 / 0
0.25~0.40
>38~44
12×8
5.0
3.3
+0.2 / 0
0.25~0.40
>44~50
14×9
5.5
3.8
+0.2 / 0
0.25~0.40
>50~58
16×10
6.0
4.3
+0.2 / 0
0.25~0.40
>58~65
18×11
7.0
4.4
+0.2 / 0
0.25~0.40
>65~75
20×12
7.5
4.9
+0.2 / 0
0.40~0.60
>75~85
22×14
9.0
5.4
+0.2 / 0
0.40~0.60
>85~95
25×14
9.0
5.4
+0.2 / 0
0.40~0.60
>95~110
28×16
10.0
6.4
+0.2 / 0
0.40~0.60
>110~130
32×18
11.0
7.4
+0.2 / 0
0.40~0.60
From MISUMI Machine Keys and Key Grooves (JIS B 1301 extract), checked line by line against GB/T 1095-2003 (Mechanical Design Handbook table 6-3-18, printed page 6-231). On drawings the shaft keyway is usually dimensioned as d − t1 and the hub keyway as d + t2, with the tolerance taken from t1 and t2 and (d − t1) taking the minus sign.
σp = 2T / (d · k · l) ≤ σpp
σp
Bearing stress on the working face, MPa
T
Transmitted torque, N·mm
d
Shaft diameter, mm
k
Contact height between key and hub, mm; the handbook takes k = 0.4h
l
Working length of the key, mm: L − b for A type, L for B type, L − b/2 for C type
σpp
Allowable bearing stress, MPa, see the table below
Mechanical Design Handbook table 6-3-16 (printed page 6-230). For a sliding joint (feather key) replace σpp with the allowable pressure ppp. The site calculator uses a contact height of h/2, which gives a transmissible torque about 25% higher than 0.4h under the same conditions, so it is optimistic.
τ = 2T / (d · b · l) ≤ τp
τ
Shear stress in the key, MPa
b
Key width, mm
τp
Allowable shear stress, MPa, see the table below
The section of a standard key is matched to its strength, so shear is rarely the governing case; check it quickly when the torque is high and the key short.
Allowable values for keyed joints (MPa)
Item
Joint type
Material of the joined parts
Static load
Light shock
Shock
Allowable bearing stress σpp
Fixed joint
Steel
125~150
100~120
60~90
Allowable bearing stress σpp
Fixed joint
Cast iron
70~80
50~60
30~45
Allowable pressure ppp
Sliding joint
Steel
50
40
30
Allowable shear stress τp
—
—
120
90
60
From Mechanical Design Handbook table 6-3-17. Take the value for the weakest of key, shaft and hub; in a sliding joint where the surface sliding against the key is hardened, ppp may be raised 2~3 times.
Where one key is not enough, two may be used, set 180° apart around the circumference and counted as 1.5 keys because the load is not shared evenly. Lengthening the hub and the key is another option, but the key length normally does not exceed (1.6~1.8)d; beyond that, thicken the shaft or change to a spline or a shrink disc (handbook section 2.2).
Keyway symmetry: shaft and hub keyways are normally held to grades 7~9 of GB/T 1184 relative to the axis, with the key width b as the nominal size (note 4 to GB/T 1095). Poor symmetry leaves the key bearing on one corner only.
Shaft keyway length tolerance H14 (note 3 to GB/T 1095); an A type keyway needs a little extra length beyond the key so that the round end does not bottom out.
Normal fit: tap the key lightly into the shaft keyway and push the hub on; close fit is P9 on both sides, the key has to be pressed in and the hub takes a higher assembly force, so state the assembly method on the drawing.
Leave clearance in the height direction: there should be a gap between the top of the key and the bottom of the hub keyway; if the key bottoms, t2 was cut too shallow and the hub will be forced off centre.
Key chamfers: the four edges of the key carry chamfers C or r, and the groove bottom has matching radii r1 and r2; the key chamfer must be larger than the groove bottom radius, or the key cannot seat.
06Failure modes and maintenance
Common failures, causes and actions
Symptom
Main cause
Action
Hub keyway side crushed, keyway widened
Bearing stress over the limit, soft hub material (aluminium, cast iron)
Recalculate for the hub material; lengthen the hub or use two keys; change to a steel hub
Clearance appears between key and keyway, shock on reversal
Normal fit used under reversing or shock load, so the working faces wear
Change to close fit (P9), add a set screw over the key, or change to a shrink disc
Feather key working face worn
Pressure in the sliding joint too high, lubrication poor
Check against ppp; harden the sliding surface; add lubrication
Shaft breaks at the keyway end
Stress concentration at the keyway end, high alternating bending moment
Keep the keyway away from the shaft shoulder fillet; round the A type keyway end; allow for the keyway when checking the shaft diameter
Key sheared off
Overload, seizure or shock
Provide overload protection (safety coupling, torque limiter)
Failure modes compiled from the notes to table 6-3-16 in the Mechanical Design Handbook.
07Common design mistakes
Using a parallel key for axial location. A parallel key transmits torque only, and the hub still needs a shaft shoulder plus a retaining ring, a sleeve or a set screw.
Taking the steel allowable values for an aluminium hub. On an aluminium timing pulley or coupling the keyway side crushes first, so the allowable value must be taken for aluminium; cast iron is only about half that of steel.
Using a normal fit on a reversing servo shaft. N9/JS9 leaves a small side clearance, and frequent reversals widen the keyway; use a close fit or a keyless connection for a locating shaft.
Sizing the key to the full hub length or longer. The A type working length is L − b, and only the part inside the hub counts however long the key is.
Dimensioning the keyway width without the depth. Give d − t1 and d + t2 with their tolerances, or the shop works to experience and the key top may bottom out.
Carrying over the bracketed JIS sizes. Do not use 7×7, 15×10 and the like in new designs, as no standard part can be bought for them domestically.
Keys and keyways (the MISUMI data cites the 1996 edition)
GB numbers and editions from part 6, chapter 3, section 2, keyed connections, of the Mechanical Design Handbook; current editions apply.
Standard part shops supply keys to b×h×L and form (A, B or C type), and key bar stock in fixed lengths can be bought and cut on site.
—Sources
MISUMI technical data, Machine Keys and Key Grooves ↗FA mechanical parts catalogue technical data, catalogue pages 3557~3558 (English edition): JIS B 1301 extract, parallel key and keyway drawings, keyway dimensions with the three fit tolerances, and notes on the suitable shaft diameter
Tables and formulas are rearranged from the sources above. Verify against the current standard and the manufacturer catalogue before finalising a design. Updated 2026-11-17
ONLY ON MECHWIKI / SELECT · BUY · MAINTAIN
Buying and using: calculators, sellers, uses
The notes below cover the “Retaining rings & keys” category. MechWiki prepared these category notes from public standards and engineering references. Use the selected manufacturer’s catalog for ratings, life factors and dimensions.
TOOLS / CALCULATE
Related selection calculators
Use these calculators for a preliminary estimate, then verify the result against this entry, the manufacturer catalogue and installation limits. Results do not replace a specific model rating.
The directory links to manufacturer selection and CAD resources and identifies the maker of the pictured example. Check stock and lead time with the supplier. Price comparison and ranking are not available yet.
MISUMIFactory automation and tooling components with selection and CAD resources.