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
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 × h | Depth shaft t1 | Depth hub t2 |
|---|---|---|---|
| over 6 to 8 | 2 × 2 | 1.2 | 1 |
| over 8 to 10 | 3 × 3 | 1.8 | 1.4 |
| over 10 to 12 | 4 × 4 | 2.5 | 1.8 |
| over 12 to 17 | 5 × 5 | 3 | 2.3 |
| over 17 to 22 | 6 × 6 | 3.5 | 2.8 |
| over 22 to 30 | 8 × 7 | 4 | 3.3 |
| over 30 to 38 | 10 × 8 | 5 | 3.3 |
| over 38 to 44 | 12 × 8 | 5 | 3.3 |
| over 44 to 50 | 14 × 9 | 5.5 | 3.8 |
| over 50 to 58 | 16 × 10 | 6 | 4.3 |
| over 58 to 65 | 18 × 11 | 7 | 4.4 |
| over 65 to 75 | 20 × 12 | 7.5 | 4.9 |
| over 75 to 85 | 22 × 14 | 9 | 5.4 |
| over 85 to 95 | 25 × 14 | 9 | 5.4 |
| over 95 to 110 | 28 × 16 | 10 | 6.4 |
| over 110 to 130 | 32 × 18 | 11 | 7.4 |
Embed this calculator on your site
Free for workshops, schools and forums — copy this snippet:
<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
- Machining Cost & Cycle Time Calculator
- Inch / mm / Fraction Converter
- ISO Fit & Tolerance Calculator
- Right Triangle (Trig) Calculator
- Material Weight Calculator
- Taper Calculator
- Spur Gear Calculator
- Hardness Converter
- Bolt Torque Calculator
- Tolerance Stack-Up Calculator
- Feeds & Speeds Calculator
- Drilling Speed & Feed Calculator
- Surface Finish Calculator
- Thread & Tap Drill Calculator
- All 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?