Keyway Depth Calculator

Calculate shaft keyway depth (t1), hub keyway depth (t2), key engagement split, and root diameter from your key dimensions. Includes a quick standards-based key size suggestion and an in-depth engineering guide below.

Shaft + Hub Depth Metric mm Inputs Tolerance-Aware

Calculate Keyway Depth

Tip: Suggested key sizes use a common metric parallel key range approximation based on shaft diameter.

Results
Shaft Keyway Depth (t1)
-
Hub Keyway Depth (t2)
-
Root Diameter at Keyway
-
Shaft Engagement
-
Hub Engagement
-
Key Size (b × h)
-
Enter values and click Calculate.

Keyway Depth Calculator Guide: Formulas, Standards, and Practical Design Checks

A keyway depth calculator helps engineers, machinists, designers, and maintenance teams quickly estimate the depth of the keyseat in both the shaft and the hub. In real-world power transmission systems, this dimension matters because it affects torque transfer, fit quality, assembly ease, and component life. If keyway depth is too shallow, the key may not seat correctly and can fail under load. If it is too deep, you remove excessive material from the shaft or hub and reduce strength where stress is already concentrated.

This page gives you a practical calculation tool at the top and a deeper technical reference below. You can use it for early sizing, manufacturing preparation, and engineering checks before final verification against your applicable standards and tolerances.

What Is Keyway Depth?

Keyway depth is the radial depth of the machined slot that receives the key. For a standard parallel key joint, the key sits partly in the shaft keyway and partly in the hub keyway. The two common depth terms are:

The key dimensions are usually given as width b and height h, for example 12 × 8 mm. In many preliminary calculations, total key height is split between shaft and hub with a small top clearance allowance to avoid unwanted interference at assembly.

Core Calculation Logic Used in the Calculator

For quick design and workshop-level estimation, this calculator uses the following practical approximations:

Balanced model: t1 = h/2,   t2 = h/2 − c
Equal split model: t1 = h/2,   t2 = h/2
Custom split model: t1 = h × (P/100),   t2 = h − t1 − c

Where:

The calculator also reports root diameter after shaft keyway cutting:

droot = d − 2t1

This is useful for a quick sanity check of remaining section at the keyway location.

Why Keyway Depth Accuracy Matters

Correct depth helps maintain contact conditions between the key and mating parts. In service, keys typically transmit torque through bearing pressure at key side faces, but poor depth still causes assembly issues, uneven load transfer, fretting, and localized stress peaks. Keyway geometry also affects fatigue performance of rotating shafts. Overcut keyseats and rough transitions can become crack initiation points under cyclic bending and torsion.

Depth control therefore impacts:

Typical Metric Parallel Key Size Suggestion by Shaft Diameter

The calculator includes a convenience button to suggest key size (b × h) from shaft diameter using a common metric range approximation. This is not a final compliance table for every industry, but a useful starting point in conceptual design and rapid quoting.

Shaft Diameter d (mm) Suggested Key Size b × h (mm)
6 – 82 × 2
8 – 103 × 3
10 – 124 × 4
12 – 175 × 5
17 – 226 × 6
22 – 308 × 7
30 – 3810 × 8
38 – 4412 × 8
44 – 5014 × 9
50 – 5816 × 10
58 – 6518 × 11
65 – 7520 × 12
75 – 8522 × 14
85 – 9525 × 14
95 – 11028 × 16
110 – 13032 × 18
130 – 15036 × 20

Step-by-Step Example

Suppose you have a shaft diameter of 40 mm and selected key size 12 × 8 mm with 0.05 mm top clearance.

Using balanced with clearance:

This gives a quick manufacturing target for both components while preserving a small assembly clearance in the hub side model.

Design Considerations Beyond Basic Depth

Depth calculation is only one part of key joint design. For reliable operation, review these factors:

Tolerance and Manufacturing Notes

Real keyways are produced by milling, broaching, shaping, slotting, EDM, or specialized processes depending on geometry and production volume. Each method has achievable tolerance ranges and surface finish limits. During production planning, it is good practice to lock down:

For critical applications, always verify with the exact standard revision and your drawing callouts.

Common Failure Modes Linked to Incorrect Keyway Depth

Improper depth can contribute directly or indirectly to multiple field failures:

Best Practices for Engineers and Machinists

Use this checklist for more robust keyway outcomes:

When to Use a More Detailed Engineering Analysis

A simple keyway depth calculator is excellent for estimation and fast decision support, but move to deeper analysis when you have high transmitted torque, severe duty cycles, rotating bending, thermal cycling, corrosion, or strict safety/regulatory requirements. In such cases, finite element analysis, fatigue assessment, and detailed tolerance stack studies can prevent expensive redesign and downtime.

Frequently Asked Questions

Is this calculator suitable for final certified design?

It is intended for preliminary engineering and practical workshop estimation. Final design should be validated against your governing standards, exact fits, and full mechanical load calculations.

What units does the calculator use?

Inputs and outputs are in millimeters. Keep all values in the same unit system for consistent results.

Why include top clearance in the model?

A small top clearance can help avoid unintended top-face interference and ease assembly, depending on your fit strategy and standards requirements.

Can I use custom shaft engagement percentages?

Yes. Select the custom mode and set the shaft engagement percentage. The calculator will allocate the remainder to the hub side after accounting for selected clearance.

Bottom line: If you need fast, practical keyway depth numbers, this calculator provides an immediate answer. Use it to accelerate concept design, machining preparation, and early checks, then finalize with the exact standard data and engineering verification required for your application.