Keyway Depth Calculator
Precision Engineering Tool for Shaft and Hub Keyway Dimensions
Shaft Depth (T1 – Chordal)
0.141
Height from the chord to the arc top
Depth measurement from hub bore to keyway bottom
Total height including key
Visual Cross-Section Representation
Graphic updates dynamically based on Key Width/Shaft ratio.
What is a Keyway Depth Calculator?
A keyway depth calculator is an essential engineering tool used to determine the precise dimensions required to mill or cut a keyway into a shaft and its corresponding hub. In mechanical power transmission, a key is a small piece of metal inserted between a shaft and a rotating element (like a gear or pulley) to prevent relative rotation and facilitate torque transfer. However, because a shaft is circular, measuring the depth of a square or rectangular cut is not as simple as measuring a flat surface.
Engineers and machinists use the keyway depth calculator to account for the “chordal height”—the small segment of the circle’s arc that is removed when a flat cut is made. Without an accurate keyway depth calculator, a keyway might be cut too shallow, leading to assembly interference, or too deep, which weakens the shaft integrity. This keyway depth calculator provides standard ANSI/ASME and Metric style calculations for professional shop use.
Keyway Depth Calculator Formula and Mathematical Explanation
The mathematical foundation of a keyway depth calculator relies on the geometry of a circle. When you cut a keyway into a shaft, you aren’t starting from a flat line; you are starting from a curve.
The core variables involved are:
- D: Shaft Diameter
- W: Key Width
- H: Key Height
- Y: Chordal Height (the distance between the top of the shaft and the chord formed by the key width)
| Variable | Meaning | Unit | Typical Range |
|---|---|---|---|
| D | Shaft Diameter | Inches / mm | 0.25″ – 12″ |
| W | Key Width | Inches / mm | 0.0625″ – 3″ |
| H | Key Height | Inches / mm | 0.0625″ – 3″ |
| T1 | Shaft Keyway Depth | Inches / mm | (H/2) + Y |
The Formulas Used
1. Chordal Height (Y):
Y = (D – √(D² – W²)) / 2
2. Shaft Keyway Depth (T1):
T1 = (H / 2) + Y (This is the depth measured from the side of the shaft to the bottom of the slot).
3. Hub Keyway Depth (T2):
T2 = (H / 2) – Y (This is the depth measured from the bore to the top of the slot).
Practical Examples (Real-World Use Cases)
Example 1: Standard 1-Inch Shaft
A mechanical designer is using a 1.000″ diameter shaft with a standard 1/4″ square key.
Inputs for the keyway depth calculator:
– Shaft Diameter: 1.000″
– Key Width: 0.250″
– Key Height: 0.250″
Using the keyway depth calculator, we find the chordal height is 0.016″. The depth in the shaft should be 0.141″, and the depth in the hub should be 0.109″. This ensures exactly half of the key is in the shaft and half is in the hub.
Example 2: Heavy Duty 3-Inch Shaft
A technician is repairing a pump with a 3.000″ shaft using a 3/4″ square key.
Inputs: D=3.0, W=0.75, H=0.75.
Result from the keyway depth calculator:
The chordal height is 0.047″. The shaft depth (T1) is 0.422″, ensuring the key fits snugly without vibrating loose under high torque loads.
How to Use This Keyway Depth Calculator
- Enter Shaft Diameter: Measure the actual diameter of your shaft using a micrometer or caliper.
- Define Key Dimensions: Select the key width (W) and height (H) based on your design standards (ANSI B17.1 or ISO).
- Review the Primary Result: The “Shaft Depth (T1)” is the value you need to set your milling machine depth to, measured from the top arc.
- Check Intermediate Values: Ensure the Hub Depth (T2) matches your bore specifications.
- Verify with SVG: Use the visual chart to confirm the proportions look correct for your application.
Key Factors That Affect Keyway Depth Calculator Results
When using a keyway depth calculator, several physical and environmental factors must be considered to ensure a high-quality mechanical fit:
- Fit Class: Whether you need a clearance fit, transition fit, or interference fit affects the final machining tolerances.
- Tapered Keys: If using a gib-head or tapered key, the keyway depth calculator must be adjusted for the slope of the key.
- Material Hardness: Harder shaft materials may require slightly different radii at the corners of the keyway to prevent stress risers.
- Standardization: Always check if your project follows ANSI (Imperial) or DIN/ISO (Metric) standards as key sizes vary.
- Thermal Expansion: In high-temperature environments, the key and shaft may expand at different rates, necessitating slightly more clearance.
- Torque Requirements: Higher torque may require deeper keyways or multiple keys, though this decreases the effective cross-sectional area of the shaft.
Frequently Asked Questions (FAQ)
Why do I need a keyway depth calculator instead of just using half the key height?
Because shafts are round, measuring from the center of the arc (the highest point) includes the chordal height. Using only half the height would result in a keyway that is too shallow.
Is this calculator compatible with metric units?
Yes, the keyway depth calculator is unit-agnostic. As long as you use the same unit (mm or inches) for all inputs, the results will be correct in that unit.
What is chordal height in a keyway?
Chordal height is the distance from the top of the shaft arc to a straight line (chord) drawn across the width of the keyway. It must be added to the shaft depth calculation.
Does this calculator handle woodruff keys?
No, woodruff keys have semi-circular profiles and require a different keyway depth calculator approach based on the radius of the cutter.
What are the common tolerances for keyways?
Typically, keyway widths have a tolerance of +0.002/-0.000 inches, while depth tolerances are usually +0.010/-0.000 inches.
Can a keyway be too deep?
Yes. If the keyway depth calculator shows a depth that exceeds 10-15% of the shaft diameter, you may significantly reduce the shaft’s torque capacity.
What is T1 and T2?
T1 refers to the depth in the shaft, while T2 refers to the depth in the mating hub or bore.
How do I measure the depth of an existing keyway?
Use a depth micrometer from the top of the shaft arc to the bottom of the keyway. This value should match the T1 result from our keyway depth calculator.
Related Tools and Internal Resources
- Mechanical Tolerances Guide – Learn about fit classes for shafts and hubs.
- Gear Design Calculator – Calculate pitch and module for mating gears.
- Shaft Torque Calculator – Determine if your shaft can handle the load with a keyway cut.
- Press Fit Calculator – For assemblies that don’t use keys.
- Coupling Size Tool – Find the right coupling for your shaft diameter.
- Spline Shaft Dimensions – An alternative to keyways for high-torque applications.