Keyway Size Calculator

Enter a shaft diameter to find a preliminary nominal parallel-key size and shaft-keyseat depth. The inch lookup is aligned to the ASME B17.1 size relationship; the metric lookup reproduces legacy DIN 6885-1:1968 geometry and must be checked against DIN 6885-1:2021-11 before manufacturing.

Use the Keyway Size Calculator

Shaft Input

Quick examples

Enter a shaft diameter on the left to see standard keyway dimensions.

Copied!

Summary

Enter a shaft diameter to find a preliminary nominal parallel-key size and shaft-keyseat depth. The inch lookup is aligned to the ASME B17.1 size relationship; the metric lookup reproduces legacy DIN 6885-1:1968 geometry and must be checked against DIN 6885-1:2021-11 before manufacturing.

How it works

  1. Enter the shaft diameter in either inches (ANSI) or millimeters (DIN/metric).
  2. Select the applicable standard: ANSI B17.1 or DIN 6885.
  3. The tool selects the table interval that actually contains the entered diameter; it does not round to a nearby shaft size.
  4. Nominal key width/height and the shaft-keyseat depth are displayed with edition and fit guidance.
  5. Copy any value to clipboard with one click for use in drawings or CNC programs.

Use cases

  • Selecting keyway dimensions during mechanical shaft design.
  • Verifying dimensions on a machinist or engineering drawing.
  • Specifying key stock size when ordering hardware.
  • Cross-checking ANSI vs. DIN equivalents on international projects.
  • Teaching students standard shaft-key fitting principles.
  • Quick field reference on a tablet or phone without paper charts.

Frequently Asked Questions

Last updated: 2026-09-19 · Reviewed by Nham Vu