MechLab EN PL
Free beta until the end of 2026. Every file, STEP, DXF and the PDF report included, downloads for free right now. We are testing the layout and how the pages work, and collecting feedback on new tools. The calculations themselves are not experimental: every tool is checked against worked examples and independent calculations. See the calculation verification.

Parallel key: size, length and pressure

Enter the shaft diameter and torque. MechLab picks the key section, checks the surface pressure and shear on the effective length, and gives the shortest standard key that works.

Start from

Shaft and torque

Fill power and speed to compute T = 9549·P/n.

Key

Allowable stresses

Key
–
Effective length
–
Surface pressure
–
Shear in key
–
Shortest key that works
–

Connection

Key and keyways

Check

Export

Every file is free during the beta.

Free in beta PDF

Calculation report: inputs, formulas with your numbers, checks, sources.

If MechLab saved you time, you can buy me a coffee. It keeps the tools free.

Calculation sheet

Method, assumptions and limits

Force on the key

The torque is carried by the key flanks as a tangential force at the shaft surface:

nominal torque
overload (application) factor
shaft diameter

Effective length

Only the straight part of the key carries load:

  • form A (both ends rounded):
  • form C (one end rounded):
  • form B (square ends):

Surface pressure

contact height of the key flank
number of keys counted

The PN / PKM method takes and counts two keys fully (). The DIN 6892 style takes the hub side, , and counts the second key at 0.75 ().

Then check , a standard key length and not longer than the hub. If one of them fails, use two keys at 180°, then a spline.

Allowable stresses

factor for the connection (fixed, sliding, sliding under load) and working conditions
allowable tension of the weakest of hub, shaft and key
  • steel:
  • cast iron:

Take medium conditions for static or pulsating loads and heavy ones for reversing loads.

Shear in the key

key width
of the key material

With standard key sections shear rarely governs; the surface pressure does.

Limits

  • Fatigue of the shaft at the keyway (use the notch factor in the shaft calculator).
  • Fits and tolerances, tapered and Woodruff keys, splines.
  • Allowable pressures are typical design values for steady loads; lower them for shocks and reversing torque.
Sources
  • DIN 6885-1 and ISO/R 773: parallel key sections b × h and keyway depths t1, t2 by shaft diameter; standard key lengths.
  • DIN 6892: calculation of parallel key connections (effective length, load share of two keys).
  • Machine design (PKM) course notes on key and spline connections: pdop = z·kr, contact height h/2, l0/d ≤ 1.5.

More: Joints

How to size a parallel key

A parallel key carries the torque from the shaft to the hub of a gear, pulley or coupling. Its cross-section b × h comes from a table by shaft diameter, so the only thing you design is the length. The key fails either by crushing of the side faces (surface pressure) or, much less often, by shear across its width.

b h Ø d hub l₀ = L − b L form A key, seen from above
Section through shaft, key and hub, and a form A key from above. With rounded ends only the straight part, l₀ = L − b, carries load.

Step by step

  1. Design torque. To = K·T, where K is the service factor for shocks.
  2. Key section. Read b × h and the keyway depths t1, t2 for the shaft diameter.
  3. Force at the shaft surface. F = 2·To/d.
  4. Allowable pressure. pdop = z·kr for the weakest of shaft, key and hub, with kr = Re/xe and z depending on the joint (fixed or sliding) and working conditions.
  5. Effective length. l0 ≥ F/(k·pdop·i), with contact height k = h/2 and i keys. Then L = l0 + b for form A, round up to a standard length and check shear τ = F/(b·l0·i).
  6. Check proportions. If l0 is above about 1.5·d or the key is longer than the hub, use two keys at 180° or a spline.

Worked example: coupling on Ø60 shaft, T = 900 N·m

Service factor K = 2, hub from S275 (the weakest part, Re = 275 MPa, xe = 2), fixed joint in medium conditions (z = 0.6), key form A. Load it with the “Coupling Ø60, 900 N·m, K = 2” example at the top of the page.

StepFormulaResult
Key section for Ø60table, 58–65 mm18 × 11 mm
Allowable pressurepdop = 0.6·275/282.5 MPa
Force at the shaft surfaceF = 2·2·900·10³/6060000 N
Effective length, one keyl0 = 60000/(5.5·82.5)132.2 mm
Too long (above 1.5·d = 90 mm), so two keysl0 = 60000/(5.5·82.5·2)66.1 mm
Key length, form AL = 66.1 + 18 → standard84.1 → 90 mm
Check at L = 90 mmp = 75.8 MPa, τ = 23.1 MPaOK

Result: two keys 18 × 11 × 90 at 180°. One key would need 150 mm, far longer than the hub.

Frequently asked questions

Which part decides the allowable pressure?

The weakest material of the three: shaft, key and hub. With a steel shaft and key and a softer hub (cast iron, aluminium, plain structural steel), it is usually the hub.

Why is the contact height h/2?

The key sits about half in the shaft and half in the hub, so the side face that presses on the hub is roughly h/2 high. DIN 6892 uses the exact hub-side height h − t1; the calculator offers both.

When should I use two keys?

When the needed effective length is above about 1.5·d or longer than the hub. Two keys at 180° carry more torque, but in practice not twice as much, so some methods count the second key at 75%.

Do I need to check shear?

Yes, but it rarely governs. The key is much wider (b) than its contact height (h/2), so shear stress is usually several times lower than the surface pressure.

Something wrong or missing? Tell us and it gets checked and fixed. It takes a minute.