Keyway Depth Calculator






Keyway Depth Calculator | Precise Shaft and Hub Keyway Math


Keyway Depth Calculator

Calculate precise shaft and hub keyway measurements for mechanical engineering and machining.


Enter the nominal diameter of the shaft.
Please enter a positive diameter.


Standard key width (e.g., 0.250 for a 1″ shaft).
Width cannot exceed diameter.


Total height of the square or rectangular key.
Please enter a valid height.


Calculated Keyway Depth in Shaft
0.141
Chordal Height (C)
0.016
Keyway Depth in Hub
0.109
Measurement Over Shaft (M)
0.859

Formula: Depth = (T/2) + [R – sqrt(R² – (W/2)²)]

Visual Depth Proportion

The chart above visualizes the relative depth of the shaft vs hub keyway based on chordal offset.


Typical Keyway Dimensions for Common Shafts
Shaft Diameter (Inches) Key Width (W) Key Height (T) Shaft Depth (Calculated)

What is a Keyway Depth Calculator?

A keyway depth calculator is a specialized engineering tool used to determine the exact dimensions required to machine a slot (the keyway) into a shaft or a hub. In mechanical power transmission, a “key” is a small piece of metal inserted between a shaft and a hub (like a gear or pulley) to prevent relative rotation and transmit torque.

Engineers, machinists, and designers use the keyway depth calculator to ensure that the key fits perfectly. If the keyway is too shallow, the key may shear or the hub won’t fit; if it is too deep, the shaft’s structural integrity may be compromised. Using a keyway depth calculator avoids manual errors when calculating the “chordal height,” which is the small arc of the shaft removed when cutting a flat-bottomed slot.

This keyway depth calculator accounts for the curvature of the shaft, providing the precise measurement from the top of the shaft (the chord) to the bottom of the keyway, as well as the hub’s internal depth requirements.

Keyway Depth Calculator Formula and Mathematical Explanation

The math behind a keyway depth calculator involves geometry and trigonometry. Because the shaft is circular, cutting a flat slot creates a “chordal height.”

Step 1: Calculate Chordal Height (C)
C = R – sqrt(R² – (W/2)²)
Where R is the shaft radius (D/2) and W is the key width.

Step 2: Calculate Shaft Keyway Depth (S)
For a standard square key, the depth in the shaft is usually half the key thickness plus the chordal height:
S = (T/2) + C

Step 3: Calculate Hub Keyway Depth (H)
The hub depth is the remaining half of the key thickness, minus the chordal height (since the hub starts at the apex of the shaft):
H = (T/2) – C

Variable Meaning Unit Typical Range
D Shaft Diameter Inches/mm 0.25 – 12.00
W Key Width Inches/mm 0.0625 – 3.00
T Key Height Inches/mm 0.0625 – 3.00
C Chordal Height Inches/mm 0.001 – 0.500

Practical Examples (Real-World Use Cases)

Example 1: 1-inch Drive Shaft
A technician uses the keyway depth calculator for a 1.000″ shaft requiring a 1/4″ square key.
Inputs: D=1.000, W=0.250, T=0.250.
The keyway depth calculator outputs a chordal height of 0.0159″. The shaft depth becomes 0.1409″. This ensures the key sits exactly halfway between the hub and shaft while accounting for the shaft’s radius.

Example 2: Heavy Duty Industrial Pump
For a 3.000″ shaft with a 3/4″ key, the keyway depth calculator is vital.
Inputs: D=3.000, W=0.750, T=0.750.
Result: The chordal height is 0.0476″. Total shaft depth required is 0.4226″. Without the keyway depth calculator, a machinist might just cut 0.375″ (half of 3/4), resulting in a loose key and potential mechanical failure.

How to Use This Keyway Depth Calculator

Using our keyway depth calculator is straightforward for both apprentices and master machinists:

  1. Enter Shaft Diameter: Input the actual measured diameter of your shafting material.
  2. Define Key Width: Enter the nominal width of the key you intend to use. This should follow ANSI or ISO standards.
  3. Enter Key Height: For square keys, width and height are the same. For rectangular keys, enter the vertical height.
  4. Review Results: The keyway depth calculator instantly displays the Shaft Depth, Hub Depth, and Chordal Height.
  5. Measurement Over Shaft: Use the ‘Measurement Over Shaft’ value to check your work with a micrometer or caliper from the bottom of the shaft to the bottom of the keyway.

Key Factors That Affect Keyway Depth Calculator Results

  • Shaft Diameter (D): The smaller the shaft, the more significant the chordal height becomes relative to the key size.
  • Key Geometry: Using a rectangular key instead of a square key significantly changes the depth ratios provided by the keyway depth calculator.
  • Material Fit: Fit classes (Class 1, 2, or 3) may require slight offsets in the keyway depth calculator outputs to accommodate interference or clearance fits.
  • Machining Tolerance: Always account for the +/- tolerance of your milling machine. The keyway depth calculator provides the theoretical nominal value.
  • Standardization: ANSI B17.1 is the common standard in the US, while ISO standards may differ slightly in how they define “depth.”
  • Tapered Keys: If you are using a tapered key, the keyway depth calculator must be used at the specific reference point along the taper to be accurate.

Frequently Asked Questions (FAQ)

Why isn’t the shaft depth just half the key height?

Because the shaft is round. If you cut a flat slot, the “top” of the shaft at the center of the slot is higher than the edges. The keyway depth calculator adds the chordal height to ensure the key is seated properly.

Can I use this for metric keyways?

Yes. As long as all inputs (diameter, width, height) are in millimeters, the keyway depth calculator will provide the result in millimeters.

What happens if I use a rectangular key?

The keyway depth calculator handles rectangular keys perfectly. Simply enter the actual height (T) of the rectangular key, and it will compute the 50/50 split adjusted for chordal height.

Is the depth measured from the side or the center?

Calculations in this keyway depth calculator are typically for depth measured from the chord (the flat line across the top of the slot) to the bottom.

How does a keyway affect shaft strength?

A keyway creates a stress riser. Engineers use a keyway depth calculator to ensure the depth isn’t excessive, which would lead to shaft cracking under high torque.

What is chordal height in a keyway?

It is the distance between the center of the arc of the shaft and the straight line (chord) connecting the two top corners of the keyway.

What are standard keyway sizes?

For a 1″ shaft, 1/4″ is standard. For a 2″ shaft, 1/2″ is standard. This keyway depth calculator helps confirm these standards.

What tools measure keyway depth?

Depth micrometers or specialized keyway calipers are most common. The keyway depth calculator provides the target value for these tools.

Related Tools and Internal Resources


Leave a Reply

Your email address will not be published. Required fields are marked *