Keyway Design Calculator

Suggested Key Width (w): -
Suggested Key Height (h): -
Shaft Keyseat Depth (t1): -
Hub Keyway Depth (t2): -

What is a Keyway in Mechanical Design?

A keyway is a critical feature in mechanical engineering used to transmit torque between a rotating shaft and another component, such as a gear, pulley, or coupling. It is a longitudinal slot machined into the shaft (known as the keyseat) and the mating hub. A "key"—usually a rectangular or square piece of metal—is inserted into these slots to lock the two components together, preventing relative rotation while often allowing axial movement if necessary.

How to Use the Keyway Design Calculator

Designing a keyway involves determining the standard width and depth based on the shaft's diameter. This calculator uses standard engineering proportions (typically based on ASME B17.1 for imperial and ISO standards for metric) to provide baseline estimates:

  • Input: Enter the nominal diameter of your shaft.
  • Select Units: Choose between Millimeters or Inches.
  • Calculate: The tool will output the standard key width, height, and the respective depths for both the shaft and the hub.

Keyway Design Principles & Formulas

For most standard applications, the square key is the preferred choice. The general rule of thumb for a square key is that the width (w) and height (h) should be approximately 1/4th of the shaft diameter. Specifically:

Width (w) ≈ D/4
Shaft Depth (t1) ≈ h/2

While these formulas offer a quick estimation, heavy-duty applications might require flat keys or specialized splines to handle higher torque loads without shearing the key.

Frequently Asked Questions

What is the difference between a keyway and a keyseat?

Strictly speaking, the keyseat is the groove machined into the shaft, while the keyway is the slot in the mating hub. However, in common workshop language, "keyway" is often used to describe both.

What materials are used for keys?

Most industrial keys are made from medium-carbon steel (like 1045 or 1018 steel) to ensure they are strong enough to transmit torque but soft enough to act as a "mechanical fuse"—shearing before expensive gears or shafts are damaged during an overload.