Shaft key and keyway

Home » Mechanical Transmission » Shaft key and keyway

A Key is used on a shaft keyway to retain mechanical power transmission components such as gear drives and pulleys to transmit power.

What is a key & keyway?

A key and the keyway make up a Keyed joint to secure the hub and the shaft to prevent relative movement between a power transmitting shaft and an attached component. For example, Gear drives, Pulleys or Sprockets are connected securely using keys to the power transmitting shaft.
Keyed joints are an important part of mechanical power transmission elements shaft and couplings, where it ensures the connection transmits the load, power & rotation without slipping and within the accuracy requirement of the design.

Shaft keys_keyway examples
Shaft keys_keyway examples

A key is usually made from steel and is inserted or mounted between the shaft and the hub of the component in an axial direction to prevent relative movement. Keyseat is a recess in the shaft, and the Keyway is the recess in the hub to receive the key and thus securely lock the component. Generally, the term keyseat is rarely used as keyway is referred to both recesses in the industry.

Keyway-key-keyseat-keyed joint
a – Keyway, b – key, c – keyseat, d – keyed joint (Simmons & Maguire, 2004)

Shaft and hub keyways are often cut on key seating machines but can also be made using broaching, milling, shaping, and slotting EDM.

Retention elements such as Splines, flexible couplings, and tapered joints are also used. Set screws and pins can also be used if it’s a very low-power transmission. If the set screws or, in some cases keyed joints are to be used, there must be a method of axial constraints such as circlips and retaining rings.

Advantages & limits of keyed joints

There are various advantages, and disadvantages of using shaft keys hence proper consideration must be given to the finer details of the overall design to evaluate the suitability of the keyed joint.

Advantages of shaft keys & keyed joint

  • Cheap manufacturing cost
  • Well-standardised ( ISO, BS, DIN and ANSI)
  • Medium to High torque transmission
  • Easy mount and dismount, hence easily reusable

Disadvantages of shaft keys & keyed joint

  • Not suitable for alternating directional loads and shocks
  • Possible axial displacement of hub unless locked by an extra component such as a set screw or retainer rings
  • Over time keyed joints might become very difficult to dismantle
  • Keyways introduce stress points due to the notch effect and reduce shaft strength
  • Introduces shaft imbalance
  • Difficult to calculate and combine the load-carrying and the tolerance stack analysis hence keyed joints are over-dimensioned
  • To transmit axial force, it needs a stop lock

Types of Keys

Shaft keys come in a wide variety of types and shapes and can be divided into four categories and subcategories.

  1. Sunk Keys
    • Rectangular & square keys
    • Parallel keys
    • Gib head keys
    • Feather key (sliding clearance with keys)
    • Woodruff key
  2. Saddle keys
    • Flat & Hollow saddle keys
  3. Tangent keys
  4. Round/Circular keys

Of the above types of keys, the Parallel square key and woodruff key are probably used more widely than others due to ease of use and cost.

Double key – Because of manufacturing tolerances and to avoid double fits, only one parallel key is used, but Double keys are occasionally used for very high infrequent loads. This should only be considered if the material is ductile. The calculations should be based on one and a half-parallel key.

Sunk keys are sunk into the shaft for half its thickness, where the measurement is taken at the side of the key. Not along the centre line through the shaft.

Rectangular/square keys

Rectangular shaft key
Rectangular shaft key (Simmons & Maguire, 2004, Google images)

Rectangular keys, as shown, are wider than their height and are sometimes called flat keys. These are used on shafts up to about 500 mm or 20″ in diameter. The extra key width allows it to transmit greater torque without increasing the depth. An increase in depth means a weaker shaft due to a reduction in effective shaft cross-sectional area.

Square shaft key (Simmons & Maguire, 2004, Google images)

As their names suggest, square, cross-sectional keys are generally specified for shafts up to about 25mm or 1″. They can be used for larger shafts when deeper key depth is desirable than rectangular keys. An increase in depth means a weaker shaft due to reduced effective shaft cross-sectional area.

Shaft key taper
Shaft key taper (Simmons & Maguire, 2004)

Square and rectangular keys may have a taper of 1 in 100 along the length of the key, as shown above.

Parallel sunk keys

Parallel sunk keys can be either rectangular or square sections but without the taper. These keys are inexpensive and readily available. It is one of the easiest to install. But the keys must ideally be held by a set screw through the hub. Because vibration or rotational direction reversal often pushes the key out.

parallel shaft key uk
Parallel shaft key (

These keys are generally fitted tightly to the bottom of the shaft keyway and the sides of the keyed joint, leaving a clearance at the top of the hub keyway.

Gib head sunk keys

A Gib head-on sunk key is added to make it easier to remove. As shown in figure 8, Gib head sunk keys are generally rectangular or square keys with a taper on the top surface to ensure a tight fit.

Gib head key
Gib head key (Simmons & Maguire, 2004)

Feather keys

Feather keys are attached to the shaft or the hub to permit relative axial movement. As shown in the picture, there are three main feather keys. Double-headed, Peg feather and Feather key. This enables power transmission between the shaft and hub with their parallel opposite faces while simultaneously allowing it to slide.

Feather key types
a – Peg feather key, b – Double-headed, c – feather key with fixing, d – standard Feather key  (Simmons & Maguire, 2004)

Woodruff keys

The Woodruff key is a semi-circular disc and fits into a circular recess in the shaft machined by a woodruff keyway cutter. These woodruff keys are mostly used in machine tools and automobile shafts from ¼” to 2½” (6 mm to 60 mm) in diameter. Woodruff keys cannot carry the same load as long parallel keys.

Woodruff keys
Woodruff keys ( source: IndiaMART)

The advantage of the Woodruff key is that it can accommodate any taper in the hub keyway, and its captive and depth prevent the key from turning over.

Woodruff key and keyway
Woodruff key and keyway (Simmons & Maguire, 2004)

The disadvantages or drawbacks of woodruff keys are that the depth of the keyway weakens the shaft,  these cannot be used as a feather key, are difficult to install, are short, and can’t carry too much load.

Saddle keys

Compared to sunk keys, saddle keys are not sunk into the shaft and hub instead, they are only sunk into the hub. They either sit on a flat or the circumference of the shaft. Power transmission is achieved through friction between the shaft and the key. As shown in the below figure, Saddle keys can be subdivided into Flat saddle, and Hollow saddle keys and are only suitable for light loads to avoid slipping along the shaft.

Types of Saddle keys
Types of Saddle keys (

A flat saddle key is tapered at the top and flat at the bottom, as shown in the figure below. The key fits into a tapered hub keyway pushing down on the flat face of the shaft

Flat saddle key engagement
Flat saddle key engagement ( source: lifelearn)

A hollow saddle key is tapered at the top and curved at the bottom, as shown in the figure below. The key fits into a tapered hub keyway and is pushed down on the curved circumferential surface of the shaft.

Hollow saddle key engagement
Hollow saddle key engagement (source:lifelearn)

Tangent keys

The tangent keys, sometimes called Tangential keys, are fitted as a pair at right angles, as shown in the figure below, where each key only withstands torsion in one direction. These are used in large heavy-duty shafts.

 Tangential Keys and Tangential Keyways
Tangential Keys and Tangential Keyways ( source:

Round / Circular Keys

The round keys are circular in section and fit into holes drilled partly into the shaft and the hub. They have the advantage of easy manufacturing as their keyways may be drilled and reamed after the mating parts have been assembled. Round keys are usually considered to be most appropriate for low-power drives.

Circular key and keyway
Circular key and keyway

Keyway design and key sizing

Shaft key selection is crucial in avoiding premature failure on keyed joints. Read “Shaft key selection & shaft keyway design guide” to understand how to calculate both shear and compressive stresses on the shaft key. The article also discusses critical factors, such as key material, load type, and correct fit, to consider during the embodiment design of the keyed joint.

Standards & Specification

Refer to tabulated dimensions and tolerances of metric keyways for parallel and woodruff keys as per BS 4235-1:1972. Along with keyway size tolerances and keyway depth sizes, some standards also provide information on the recommended key size and keyway depth as a function of shaft diameter.

  • Recommendations for key size, length and keyway depth as a function of shaft diameter are provided in ASME Standards B17.1-1967, ASME standard B17.2-1967.
  • Specification for metric keys and keyways – Parallel and taper keys BS 4235-1:1972
  • Matching the woodruff key to the shaft diameter is also specified in DIN 6888
  • Tangential Keys and Tangential Keyways for alternating shock loads specification DIN 268:1974
  • Tangential Keys and Tangential Keyways for constant loads specification DIN 271:1974