Keyway

What is a keyway?

A keyway is a longitudinal groove machined into a shaft, hub, or other machine part, into which a key is installed to transmit torque and ensure proper alignment of the components. Together with the matching groove in the mating component and the key itself, the keyway forms a shaft–hub connection where the force is mainly transmitted through the side surfaces of the groove. In the machine workshop industry, the keyway is a common and standardized solution for attaching, for example, gears, pulleys, couplings, and other power transmission components.

Keyways and keys are dimensioned according to international standards. The most commonly used are parallel keys, whose dimensions are based on the nominal diameter of the shaft and the torque to be transmitted.

Keyway in Power Transmission

The keyway enables mechanical torque transfer between a shaft and a hub while allowing the connection to be disassembled and reassembled as needed. The load is mainly applied to the side faces of the key and the keyway, making the surface pressure and quality of the contact surface crucial for the connection's durability.

When designing the connection, factors such as the transmitted torque, material yield strength, surface pressure, and shaft weakening at the groove location are considered. An excessively deep or wide keyway reduces the shaft’s cross-sectional area and may lower its fatigue strength, while an undersized groove may lead to plastic deformation or wear of the side surfaces.

Keyway Manufacturing Methods

Keyways are produced in machine shops using various methods, depending on the part’s geometry, material, and precision requirements. Typical methods include milling, broaching, slotting, and in certain cases, wire EDM.

Milling is the most common method for producing external keyways on shafts. With a CNC milling machine or machining center, the groove is machined to the specified width and depth using a slotting cutter. This method is suitable for single pieces as well as small and medium series production.

Slotting is especially suited for making internal keyways in hubs and sleeves. The slotting movement is linear, and the cutting tool removes material along the length of the groove. This method is still used when controlled and rigid machining movement is required for making an internal groove.

Broaching is an efficient and precise method for producing internal keyways, particularly in mass production. Pull or push broaches have several successive cutting teeth which increase the groove depth incrementally with a single pass. Broaching achieves excellent dimensional accuracy and surface finish.

EDM wire cutting is suitable for keyway manufacturing, especially in hardened materials or when extremely precise shapes and sharp internal corners are required. Wire cutting allows grooving without mechanical cutting forces, which reduces deformation and is ideal for precision components and special applications.

Keyway Dimensional Tolerances

The dimensional tolerances of keyways are based on standardized key and groove dimensions. Typically, the width of the keyway is toleranced according to ISO system tolerance zones. The keyway width in the shaft is often in tolerance classes like P9 or N9, while a hub’s keyway might be H9. The key width is chosen accordingly to provide either a clearance or light press fit between the side faces.

The tolerance for groove depth is set so that the key carries the load on its side faces, not at the bottom. For this reason, a bottom clearance is a typical design principle. In practice, this means the key height and groove depth are dimensioned so that there is no contact at the bottom under normal loading.

The chosen tolerance grade depends on the application’s accuracy requirements, loading, and assembly method. In precision machining, tighter tolerance classes may be used, whereas medium tolerances are standard in general workshop production.

Geometric Tolerances for Keyways

In addition to dimensional tolerances, geometric tolerances are often specified for keyways. These include, for example:

  • Parallelism of the side faces to the shaft's centerline, ensuring even load distribution.
  • Straightness of the groove, which affects uniform contact with the key along its full length.
  • Perpendicularity in relation to the groove’s end face, if the groove ends at a specific shoulder.
  • Positional tolerance to ensure the groove’s centerline is correctly positioned relative to the shaft centerline.

Geometric tolerances are indicated in technical drawings using GD&T symbols. Especially at high rotational speeds or with dynamically loaded shafts, deviation in groove position can cause imbalance and increased vibration. Therefore, precise positioning of the groove relative to the shaft centerline is critical in accuracy applications.

Keyway Inspection and Quality Assurance

After manufacturing, the keyway is inspected by measuring its width, depth, and position. Measurement tools such as calipers, micrometers, plug gauges, or a coordinate measuring machine are used when precise geometric verification is needed.

Internal grooves can also be inspected using special groove gauges. Geometric tolerances such as parallelism and straightness can be checked with a dial indicator or coordinate measuring equipment. Quality assurance is especially important in power transmission components, where an incorrect keyway may cause premature wear or shaft damage.

Summary

The keyway is a widely used and standardized solution in machine shop applications for transmitting and aligning torque between a shaft and hub. It is typically manufactured by milling, slotting, broaching, or, when necessary, EDM wire cutting. The functionality of the keyway relies on accurate dimensioning, appropriate dimensional and geometric tolerances, and careful machining. When done correctly, a keyway provides a reliable, durable, and serviceable connection for various machining and power transmission applications.