How to Specify O-Ring Grooves, Keyways, and Dowel Pins in CNC Drawings

How to Specify O-Ring Grooves, Keyways, and Dowel Pins in CNC Drawings

Summary

Learn how to specify O-ring grooves, keyways, and dowel pin holes on CNC drawings — including ISO 3601 and ANSI B17.1 standards, tolerance tables, machining methods, and specification mistakes to avoid for precision machined parts.

How to Specify O-Ring Grooves, Keyways, and Dowel Pins in CNC Drawings

How to Specify O-Ring Grooves, Keyways, and Dowel Pins in CNC Drawings

Three small features decide whether a precision assembly lines up, seals, and stays together: O-ring grooves, keyways, and dowel pin holes. Each one looks simple on a sketch, yet each is governed by its own standards, tolerance logic, and machining constraints. Specify them correctly and parts drop into place on the first assembly. Get them wrong, and the consequences show up late — a leaking joint, a binding key, or two pins that fight each other. This guide explains exactly how to call out these features on CNC drawings, with the numbers that matter and the mistakes to avoid.

CNC machined precision parts with O-ring grooves keyways and dowel pin holes

Why Drawing Specifications Matter for O-Ring Grooves, Keyways, and Dowel Pins

The precision machining market is projected to reach USD 132.9 billion in 2026 and grow to USD 228.8 billion by 2033 at an 8.1% CAGR (Grand View Research), and a growing share of that capacity is spent on components that must fit, seal, and locate with other parts. O-ring grooves, keyways, and dowel pin holes are the features that make such assemblies repeatable. A drawing that leaves these features under-specified shifts the decision burden to the machine shop — and every shop will interpret an ambiguous callout differently.

Engineers often assume that a nominal dimension plus a general tolerance note is enough. In practice, each of these features needs its own dedicated callout: groove width and depth for seals, fit class and depth control for keyways, and fit plus positional tolerance for dowel pins. When specifications are clear, first-article inspection catches problems in the shop instead of on the assembly line.

Key insight: Around 70% of manufacturing cost is locked in at the design stage (aPriori). Investing 15 minutes to dimension a groove, keyway, or pin hole correctly typically saves hours of rework and multiple re-quote cycles.

What Are O-Ring Grooves, Keyways, and Dowel Pins?

Before diving into tolerances, it helps to define what each feature does and where it typically appears on machined parts.

  • O-ring groove (gland): a recessed channel that houses an elastomeric seal. It creates a controlled squeeze against the mating surface so the seal blocks fluid or gas at pressure. Found in hydraulic manifolds, valve bodies, pump housings, and pneumatic fittings.
  • Keyway (keyseat): a slot cut into a shaft or hub that carries a key, transmitting torque between the two components and preventing relative rotation. Common in motor shafts, gearboxes, pulleys, and couplings.
  • Dowel pin hole: a precision reamed hole that receives a hardened pin, used to locate and align mating parts so they can be disassembled and reassembled in exactly the same position. Standard in fixture plates, molds, and robot joints.

All three are defined in international standards — ISO 3601 for O-ring grooves, ANSI B17.1 / ISO 3912 / BS 4235 for keyways, and ISO 286-2 plus ASME B18.8.2 for dowel pins — and a well-made drawing references these standards directly instead of reinventing them.

O-Ring Groove Design: Squeeze, Gland Fill, and Stretch

The three physical principles that govern O-ring groove geometry are squeeze, gland fill, and stretch. Squeeze is the percentage of the ring's cross-section that is compressed when assembled. For static seals the recommended range is 15–30%; for dynamic seals it drops to 8–20% to limit friction and wear. Too little squeeze and the seal leaks at low pressure; too much and the elastomer is overstressed, shortens its life, and becomes hard to install.

Gland fill is the percentage of the groove volume occupied by the O-ring. It should stay between 70% and 85% — never more. The remaining void gives the elastomer room to expand under temperature swings or fluid swell. Stretch applies to male (piston) seals, where the ring is stretched over the part; keep stretch below 5% or the reduced cross-section compromises the seal.

O-ring groove machining on CNC machined flanges for hydraulic sealing applications

O-Ring Groove Dimensioning and Tolerances on CNC Drawings

When you dimension an O-ring groove on a CNC drawing, the critical controls are groove width, groove depth (or gland height), bottom and sidewall surface finish, edge break limits, corner radii, and datum references. Depth must be measured from the actual sealing face — not from an arbitrary shoulder — because depth directly sets assembled squeeze. Width provides the free volume for the seal; position matters around ports, where an offset groove can leave an uneven land or intersect a hole.

ParameterStatic sealDynamic sealNotes
Squeeze (compression)15–30%8–20%ISO 3601 basis
Gland fill70–85%70–85%Never exceed 85%
Surface finish (Ra)≤ 1.6 µm≤ 0.4–0.8 µmDynamic needs smoother finish
Groove width tolerance+0.1 / +0.25 mm typical+0.1 / +0.25 mmWidth provides free volume
Bottom radiusR 0.2–0.4 mmR 0.2–0.4 mmPrevents stress cracking
Extrusion gap≤ 0.15 mm≤ 0.10 mmBelow 100 bar with 70–90 Shore A

Machining method matters as much as the numbers. Concentric grooves on rotational parts are most efficiently cut with CNC turning using grooving inserts; face and non-circular grooves are milled with end mills interpolated around the programmed path. Dovetail grooves need a straight roughing operation followed by an undercut tool. Internal grooves are harder than external ones — tool overhang reduces rigidity, chips are trapped, and coolant access is limited — so keep internal grooves shallow and avoid depth-to-width ratios beyond about 3:1.

Two machining constraints deserve a dedicated note on the drawing. First, the bottom of a machined groove can never be perfectly sharp: it will match the tool nose radius, so specify a realistic minimum radius. Second, grooves narrower than 1 mm require special tooling and cut slowly, which drives cost. When possible, match groove width to standard grooving insert sizes.

Engineering tip: if the groove passes near a port or cross-drilled hole, add a note defining the allowed land width and specify deburring. Burrs at groove edges act like micro cutting tools that slice the O-ring during installation.

Keyways: Standards, Fit Classes, and Drawing Callouts

Keyway sizing starts with shaft diameter. ANSI B17.1 provides the standard lookup table mapping shaft diameter to recommended key width and height — for example, a 1-inch shaft uses a 1/4 x 1/4 inch key. The drawing should call out key width, key height, shaft keyway depth, hub keyway depth, and the fit class. Typically the shaft keyway is deeper than the hub keyway; together they must accommodate the full key height plus a small top clearance.

Fit class is where drawings most often go wrong. Under ANSI B17.1, a Class 2 (normal) fit uses a keyway width tolerance of +0.002/-0.000 inches for the shaft slot and +0.003/-0.000 inches for the hub slot. Class 1 (tight) fits use +0.000/-0.000 to +0.001/-0.000 inches for interference. In metric drawings, the ISO system (BS 4235-1 / ISO 3912) specifies width tolerances such as H9 or N9 for the shaft slot and D10 or Js9 for the hub slot, with nominal depth values t1 and t2 defined per shaft diameter.

Machined steel shaft with keyway slot for torque transmission in power transmission systems

Beyond width and depth, specify parallelism to the shaft axis, angular location when the keyway indexes another feature, length of engagement, edge breaks, and the root radius. A slot that is too narrow prevents assembly or damages the key; a slot that is too wide allows impact loading on the key faces. Keep the controlled edge break small — an excessive chamfer reduces effective side-contact area.

Keyway Machining Methods: Milling, Broaching, and Wire EDM

Keyways are produced by several processes, and the right choice depends on geometry, material, quantity, and tolerance:

  • CNC end milling — the most versatile method. Slotting with an end mill handles both shaft and hub keyways, external and internal, and holds tight tolerances on width and position. Best for most materials and quantities.
  • Broaching — a guided broach or keyseater cuts a through keyway in one or a few strokes. Efficient for standard internal through keyways in higher volumes, and it offers excellent width consistency.
  • Wire EDM — ideal for hardened materials, blind keyways, and features with demanding positional tolerances where a conventional cutter cannot reach.

Quality control focuses on width, depth, squareness, and surface finish. Width is checked with keyway gauges, gauge blocks, pins, or a coordinate measuring machine; depth requires a depth micrometer or measurement over the opposite diameter matching the drawing method. In a production reference case machining a steel pump shaft, the keyway was held to H9 width tolerance with symmetry of 0.02 mm and verified with go/no-go gauges after milling. State the inspection method on the drawing so the shop and the buyer measure the same way.

Dowel Pin Holes: Fit Selection and Positional Control

Dowel pins are precision ground to tight tolerances — standard pins are typically m6 (per ASME B18.8.2) with diameters controlled to the micron level — and they must be paired with reamed holes that follow ISO 286-2 fit logic. The most common combinations:

Hole toleranceFit typeBehaviorTypical use
H7 / g6Clearance (locating)Removable, repeatable locationPrimary locating pins in fixtures
H7 / h6Close clearanceTight but still removablePrecision alignment
JS7 / h6TransitionMay require a light malletGeneral alignment
P7 / h7Interference (press)Requires a pressPermanent pinning

Hole depth rules are simple and frequently ignored: for interference and transition fits, specify at least 2–3x the pin diameter of engagement; for clearance fits, 1–2x is enough and reduces the risk of the pin sticking. Add 0.20–0.40 mm of allowance for the chamfer when specifying blind hole depth. Specify a 45-degree chamfer of 0.010–0.020 inches at the entrance so the pin starts straight, and keep press depth around 1.5–2x the diameter.

Positional control is just as important as size. Two dowel pins per assembly is the standard design: one pin locates with a tight fit in both parts, the second prevents rotation (the diamond pin concept — tight in one part, slip-fit in the other). Place the pins as far apart as practical; two pins 150 mm apart locate far better than two pins 25 mm apart. As a rule of thumb, pin diameter should be at least one-third of the thinner plate thickness to resist shear under side loads.

Engineering drawing blueprint specifying dowel pin holes and GD&T positional tolerances

Machining and Inspecting Dowel Pin Holes

Ordinary drilling is rarely good enough for locating holes — it leaves size variation, poor roundness, and positional drift. Critical H7 dowel holes are finished by precision boring, reaming, or high-accuracy helical milling after rough machining. When possible, finish the locating holes and related threaded holes in the same stable setup, and make the machining datum match the real assembly datum. For multi-face parts, 4-axis or 5-axis machining or a dedicated fixture reduces datum transfer error.

The classic failure modes to design against: pin feels tight (position error, hole spacing error, or entry burr), assembly feels loose (oversized hole, tool wear, or coating removal), two pins bind (holes machined from different datums), and fit changes after anodizing (coating allowance was not planned). For anodized or plated parts, add a post-finish plug gauge or bore check to confirm the coating did not close the fit.

On the inspection side, a report that only states hole diameter "pass" is not enough. Ask the shop to record actual maximum and minimum diameter, roundness, hole spacing, position tolerance from the assembly datum, perpendicularity for thick parts, and post-finish dimensions. A CMM report tied to the same datum system used at assembly is the difference between paper compliance and parts that actually go together.

Drawing checklist: for every dowel pin hole, call out the fit (e.g. H7), positional tolerance to datum A/B/C, depth or through status, entrance chamfer, edge break limit, and the finishing process (ream/bore/helical mill). Add "verify after surface treatment" whenever plating or anodizing is specified.

Common Specification Mistakes and How to Avoid Them

MistakeConsequenceFix on the drawing
O-ring groove depth from the wrong datumWrong squeeze, leaks at pressureDimension depth from the sealing face
Gland fill over 85%O-ring over-pressurized, premature failureSize width for 70–85% fill
Keyway width tolerance too tight or looseAssembly impossible or impact loadingReference ANSI B17.1 Class 1/2 or ISO H9/N9
Missing keyway parallelism / angular locationMisalignment in gearboxes and couplingsAdd parallel ≤ 0.02 mm and angular location notes
Dowel hole made with ordinary drillingSize drift, poor roundness, fit failuresRequire reaming, boring, or helical milling
Dowel holes from different datumsTwo pins bind; assembly distortsFinish both holes in one setup; same datum
No coating allowance for anodizingFit closes up after surface treatmentPlan coating allowance; post-finish gauge check

How SOMI Custom Parts Can Help

SOMI Custom Parts is a precision CNC machining parts manufacturer with experience across O-ring groove, keyway, and dowel pin features for hydraulic systems, power transmission, and automation equipment. Our engineering team reviews every drawing before quoting — checking groove fill, fit classes, datum schemes, and machining access — and returns free DFM feedback so your callouts are manufacturable the first time.

We hold tight tolerances on sealing and locating features, offer turning, milling, broaching, and wire EDM for keyways, and inspect critical dimensions with calibrated gauges and CMM. Every batch ships with the documentation you need to verify fit at your own assembly line. Browse our product catalog to see the range of parts we produce, read more CNC machining guides on our blog, or send us an inquiry with your drawing for a DFM review and quote.

Frequently Asked Questions

What is the standard tolerance for an O-ring groove?

For most static applications, groove depth should be held to roughly ±0.05 mm and width to +0.1/+0.25 mm, with surface finish Ra ≤ 1.6 µm on the sealing face. The governing geometry is squeeze per ISO 3601: 15–30% for static seals, 8–20% for dynamic seals.

Should keyway tolerances be specified in inches or metric on international drawings?

Specify in the unit system the rest of the drawing uses. For metric drawings reference ISO 3912 / BS 4235-1 width tolerances (H9 or N9 for the shaft slot); for inch drawings reference ANSI B17.1 fit classes. Stating the standard removes ambiguity about what the numbers mean.

What fit should I use for a dowel pin hole that is assembled and disassembled often?

Use an H7 hole with a g6 or h6 pin for a locating (clearance) fit — repeatable, removable, and kind to the bore. Reserve P7/h7 interference fits for permanent pinning where the pin never needs to come out.

Why does my keyway pass inspection but the gear still wobbles?

Likely causes are excessive keyway width tolerance (backlash on the key faces), missing angular location, or a chamfer too large that reduces contact area. Verify width, symmetry, and parallelism against the drawing rather than only checking that the key drops in.

Do anodized aluminum parts need special handling for O-ring grooves and pin holes?

Yes. Anodizing and plating add a coating layer that reduces groove depth and closes pin hole diameters. Specify the coating thickness and machining allowance in advance, and verify critical fits with a plug gauge after finishing.

Conclusion

O-ring grooves, keyways, and dowel pin holes may be small features, but they carry the sealing, torque, and alignment duties of entire assemblies. Specifying them properly means referencing the right standards (ISO 3601, ANSI B17.1, ISO 286-2), controlling the dimensions that actually drive function — squeeze and fill for seals, width and fit class for keys, size and position for pins — and stating machining and inspection methods so the shop measures what you intended.

Take the extra 15 minutes on the drawing now, and you will save days of rework later. When you need a machining partner that reads these callouts correctly, SOMI Custom Parts is ready to review your drawings and deliver parts that fit on the first try — contact us or submit your inquiry today.