Free calculator

Keyway Calculator — DIN 6885 Key Size, Depth and G-Code for the Shaft Slot

Enter the shaft diameter to get the standard parallel key according to DIN 6885-1, the depth in shaft and hub, the dimensions you measure with a caliper, a strength check and a program for the slot.

Key b × h × l–mm, DIN 6885-1 form A
Depth in shaft t1–mm
Depth in hub t2–mm
Measure d − t1–mm, bottom to far side
Hub measure d + t2–mm
Depth from slot edge–mm (crown –)
Contact pressure–N/mm²
Shear in key–N/mm²
Shortest key for this torque–mm

G-code for the shaft slot

How it works

Contact pressure p = 2000 × M / (d × (h − t1) × (l − b))  ·  Crown height = d/2 − √(d²/4 − b²/4): the edge of the slot lies this much below the top of the shaft.

DIN 6885-1 key table

Shaft Ø (mm)Key b × hDepth shaft t1Depth hub t2
over 6 to 82 × 21.21
over 8 to 103 × 31.81.4
over 10 to 124 × 42.51.8
over 12 to 175 × 532.3
over 17 to 226 × 63.52.8
over 22 to 308 × 743.3
over 30 to 3810 × 853.3
over 38 to 4412 × 853.3
over 44 to 5014 × 95.53.8
over 50 to 5816 × 1064.3
over 58 to 6518 × 1174.4
over 65 to 7520 × 127.54.9
over 75 to 8522 × 1495.4
over 85 to 9525 × 1495.4
over 95 to 11028 × 16106.4
over 110 to 13032 × 18117.4

Embed this calculator on your site

Free for workshops, schools and forums — copy this snippet:

HTML
<iframe src="https://cnccode.com/embed/keyway-calculator/" width="100%" height="720" style="border:0" loading="lazy" title="Keyway Calculator"></iframe>

More free CNC tools

Frequently asked questions

Which key fits a 25 mm shaft?
An 8 × 7 mm key. The slot in the shaft is 4.0 mm deep and the hub slot 3.3 mm.
What tolerance does the slot width have?
Common choices are P9 for a tight fit and N9 for a normal fit in the shaft, with P9 or JS9 in the hub. Use the ISO fit calculator for the exact limits.
Where is the depth measured from?
t1 is measured from the top of the round shaft. It is easier to measure from the slot bottom to the opposite side of the shaft, which is the value d − t1.
Was this page helpful?