Shaft Key Calculator

Parallel keys to DIN 6885-1 / ISO 773: key size for the shaft, surface pressure on the shaft and hub keyway sides, key shear, the key length needed for a torque and the torque a key can carry. One or two keys, steel or cast iron hubs, shock factor.

TorqueMath.com · Shaft Key Calculator
mm
N·m
mm
Key ends
Number of keys
Weakest part (shaft, key or hub)
Method and assumptionsMethod: Uniform flank pressure on the effective key length (simplified from DIN 6892 method C, as in Roloff/Matek); key sizes per DIN 6885-1 / ISO 773Basis: Allowable pressure 0.9·Re of the weakest part (cast iron ≈ 0.5·Rm), shear 0.5·Re of the key; shock factor KA on torque; two keys share 0.75Limits: No DIN 6892 method B load-peak factors, no fatigue of the keyway or key, no tapered or Woodruff keys; keys beyond 1.3·d not credited realisticallyReferences: DIN 6885-1 · ISO 773 · DIN 6892Formulas · How this calculator was checked · TorqueMath v2.1

Standard keys DIN 6885-1 near your shaft

Shaft Ø over – toKey b × hShaft groove t1Hub groove t2Length neededTorque at your length

How it is calculated

The key transmits the torque as a force on its side faces at the shaft radius. The flank that sticks into the hub is lower than the one in the shaft (h − t1 against t1), so the hub side usually has the higher surface pressure and decides the key length. Shear of the key itself is rarely critical.

Force at the shaft surface F = 2·T·KA / d Hub side pressure p_hub = F / ((h − t1) · l_eff · i · φ) Shaft side pressure p_shaft = F / (t1 · l_eff · i · φ) Key shear τ = F / (b · l_eff · i · φ) Effective length l_eff = l − b (round ends, form A), l − b/2 (one round end, form C), l (square ends, form B) Load share φ = 1 for one key, 0.75 for two keys at 180° Allowable pressure p_zul = 0.9 · Re of the weakest part (steel); 0.9 · ~ 0.5·Rm for grey cast iron; allowable shear 0.5 · Re of the key

Key sizes from DIN 6885-1 (identical to ISO 773 for b × h; groove depths t1 / t2 for the standard height). The pressure check follows the simplified method of DIN 6892 (method C) as used in Roloff/Matek: uniform pressure over the effective flank. Keys longer than about 1.3·d do not carry more, because the shaft twists along the key; use two keys or a spline instead. Fatigue of the shaft at the keyway is checked separately in the shaft calculator (Kf, Kfs).

This calculator sizes a parallel (feather) key to DIN 6885-1 / ISO 773 for a shaft and hub. Enter the shaft diameter, the torque, the key length and a shock factor, and choose the key ends, one or two keys and the weakest material. It picks the standard key for the diameter and returns the surface pressure on the hub and shaft sides of the keyway, the shear in the key, the key length the torque needs and the torque your key can carry, with a table of the neighbouring key sizes.

Worked example: 300 N·m through a 40 mm shaft into a C45 hub

  1. Shaft Ø40 mm, torque 300 N·m, shock factor KA 1.25, one round-ended key (form A) 50 mm long, weakest part C45 (Re 305 MPa).
  2. DIN 6885-1 for shafts over 38 up to 44 mm: key 12 × 8 mm, shaft groove t1 = 5.0 mm, hub groove t2 = 3.3 mm.
  3. Force at the shaft surface: F = 2·T·KA/d = 2 × 300 000 × 1.25 / 40 = 18 750 N. Effective length l − b = 50 − 12 = 38 mm.
  4. Hub side: p = F / ((h − t1)·l_eff) = 18 750 / (3 × 38) = 164 MPa. Shaft side: 18 750 / (5 × 38) = 98.7 MPa. Key shear: 18 750 / (12 × 38) = 41.1 MPa.
  5. Allowable pressure 0.9 × 305 = 275 MPa, so the hub side is at 60 %. The length needed is 18 750 / (3 × 275) + 12 = 35 mm, and the 50 mm key can carry about 500 N·m.

A 12 × 8 × 50 mm key transmits 300 N·m with shocks at 60 % of the allowable pressure on the hub flank, which governs. A 36 mm key would just do; 50 mm gives margin without exceeding the useful 1.3 × d.

FAQ

How do I choose the key size for a shaft?

Key width and height are standardised by shaft diameter in DIN 6885-1 and ISO 773, for example 12 × 8 mm for shafts over 38 up to 44 mm. The calculation then decides the length: the torque divided by the shaft radius gives the force on the key flank, and the flank pressure must stay below the allowable value of the weakest part.

Why does the hub side of the keyway usually fail first?

The key sits deeper in the shaft (t1) than it sticks into the hub (h − t1), so the flank area in the hub is smaller and the pressure higher. Hubs are also often made of a softer material, such as cast iron, which lowers the allowable pressure further.

What is the effective length of a key?

Only the straight part of the flank carries load. For round-ended keys (form A) the effective length is the overall length minus the key width; for keys with one round end (form C) it is minus half the width; square-ended keys (form B) use the full length.

Is a longer key always stronger?

No. Beyond about 1.3 times the shaft diameter the shaft twists along the key, so the end farthest from the load carries little. For higher torques use two keys at 180° (counted with a 0.75 load-share factor), a spline or an interference fit.

What allowable pressure should I use for a key?

A common simplified rule (DIN 6892 method C, Roloff/Matek) is about 0.9 times the yield strength of the weakest part for steel, with a shock factor on the torque. Brittle grey cast iron hubs are limited to roughly half their tensile strength. Keyways also lower shaft fatigue strength, which must be checked separately.

Does a key reduce the strength of the shaft?

Yes. The keyway is a notch: with an end-milled keyway the fatigue stress concentration is about 2 in bending and nearly 3 in torsion. Use the shaft calculator's fatigue panel with these Kf and Kfs values.

Tools for this job

What you need to build, measure or check the result.

As an Amazon Associate TorqueMath earns from qualifying purchases. Prices and availability are shown on Amazon.

Checked: 3 results compared with textbooks, standards and maker data by a separate review. See the checks →