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.
Key Size
Dimensions
Fit guidance — verify numeric limits
Cross-section reference
W = nominal key width; t1 = nominal shaft-keyseat depth. Hub depth is not inferred.
Edition and manufacturing check
The inch result is a preliminary lookup aligned to the shaft/key size relationship covered by ASME B17.1-1967 (S2023). Verify all dimensions and tolerances in the licensed standard and controlled drawing.
Official references: ANSI/ASME B17.1-1967 (S2023) · DIN 6885-1:2021-11.
Diameter out of range
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
- Enter the shaft diameter in either inches (ANSI) or millimeters (DIN/metric).
- Select the applicable standard: ANSI B17.1 or DIN 6885.
- The tool selects the table interval that actually contains the entered diameter; it does not round to a nearby shaft size.
- Nominal key width/height and the shaft-keyseat depth are displayed with edition and fit guidance.
- 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.