How to Do Hole Shaft Fit for CNC Machining
A hole shaft fit for CNC machining lives or dies on three numbers: the hole limit, the shaft limit, and the clearance between them. This guide walks engineers through the six decisions that set those numbers, from application intent to final measurement, with the machining parameters that actually hold them.

In this article
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
Key takeaways
Define the fit from the application, not the catalog
Before anyone opens a tolerance table, write down what the joint has to do. Does it rotate, slide, locate, or transmit torque? A shaft that spins at 3,000 rpm in a bearing housing needs running clearance. A dowel pin that positions a fixture plate needs a light press so the plate cannot creep. Same Ø20 mm, completely different limits.
Sort the joint into one of three families. Clearance fits always leave a gap: the shaft is smaller than the hole at every permitted size. Transition fits can end up with a small gap or a small interference depending on where the parts land inside their tolerance bands. Interference fits are always tight and are meant to hold without a key or a fastener.
The function also sets how much misalignment the assembly can absorb. Long shafts supported at both ends are sensitive to angular error, so the fit has to tolerate a little more play or the housing bores must be line-bored in one setup. Short, stiff joints can run tighter.
Write the intent in one sentence on the drawing: "locating pin, hand assembly, no relative motion under 200 N axial load." A machinist or inspector who reads that sentence will catch a wrong fit code faster than any tolerance table will.
- 1Rotating, lubricatedClearance fit with enough gap for an oil film.
- 2Locating, hand assemblyTransition fit, light tap with a soft mallet.
- 3Load-bearing, no fastenerInterference fit sized for the torque the joint must carry.
- 4Sliding under loadClearance fit with a wear-resistant finish on both surfaces.
Pick a tolerance standard and read the limits correctly
ISO 286 is the default for most European and Asian drawings. A hole is written with a capital letter and a number, such as H7 or H8. A shaft uses a lowercase letter, such as h6, g6, or p6. The letter sets the position of the tolerance band; the number sets its width. H7 on a Ø20 mm hole means +0.021 / 0 mm. An h6 shaft at the same diameter means 0 / −0.013 mm.
The fit is the arithmetic between the two bands, and you have to check both the worst-case tight and worst-case loose conditions. For Ø20 H7/h6, the loosest assembly is a 20.000 mm hole with a 19.987 mm shaft, giving 0.013 mm clearance. The tightest is a 20.021 mm hole with a 20.000 mm shaft, giving 0.021 mm clearance. Both ends are clearance, so this is a clearance fit even though the numbers look tight.
ANSI B4.2 works the same way with different naming, and it is common on North American aerospace and defense drawings. If a customer sends a print with both, pick one and note the conversion on the drawing rather than leaving two systems side by side.
Watch the unit convention. Some prints give limits in inches with four decimal places, others in millimeters with three. A Ø0.7874 in callout and a Ø20.000 mm callout describe the same size, but 0.0002 in of tolerance is 0.005 mm, not 0.002 mm. Convert once, write the converted value on the drawing, and inspect to it.
Design the joint so the machine can hold it
A fit that is easy to specify can be hard to cut. Deep holes are the usual problem. A Ø10 mm bore that is 80 mm deep needs a boring bar with an 8:1 length-to-diameter ratio, and the bar will deflect. If the drawing allows, open the entry with a counterbore or shorten the precision length to 25 mm and leave the rest at a looser tolerance.
Interrupted bores, cross holes, and keyways break the cutting edge every revolution. They also make measurement harder because a two-point bore gauge cannot sit on a continuous surface. Where the design permits, move cross holes to a secondary operation after the main bore is finished, or specify the fit on the continuous section only.
Thin walls are the second trap. A 2 mm wall around a Ø40 mm bore will move when the part is unclamped, and a bore that measured 39.98 mm in the fixture can read 40.02 mm on the bench. For thin-wall parts, machine with light finishing passes and let the part relax before the final spring pass.
Finally, think about datums. If the bore and the mating shoulder are called out from different datums, the inspector has to stack two setups of error. Call both from the same datum and, where possible, machine them in one setup. A 5-axis machine with a Ø400 mm rotary table can often reach five faces of a housing without a re-clamp, which removes the biggest single source of fit error.
- 1Keep L/D under 5:1Beyond that, use a boring head with a larger bar or a line-boring setup.
- 2One datum for bore and faceStacking datums adds error the tolerance band cannot absorb.
- 3Finish after the part relaxesRough, unclamp, cool, then take the finishing cut.
- 4Avoid interrupted finish cutsCross holes and keyways belong in a later operation.
Match the process to the fit class
For a clearance fit in the H7 range, drilling plus reaming holds Ø tolerance well on holes up to about Ø20 mm and 5:1 depth ratio. Reamers cut to size, so the hole often lands near the low end of the band, around +0.005 to +0.010 mm on a +0.021 mm band. That is fine for clearance but wrong for a press fit where you need the hole near the high limit.
For transition and interference fits, boring is the better route because you can adjust the tool offset and hit a target within the band. A boring head with a 0.002 mm adjustment screw lets the operator dial in the size after a test cut. On a Ø20 mm H7 bore, aim for +0.012 mm to +0.016 mm, roughly the middle of the band, to leave room for the reamer or the final spring pass to drift either way.
Shafts follow the same logic from the other side. Turning with a carbide insert can hold ±0.005 mm on a rigid setup, but the insert wears and the last 50 parts of a run will trend larger or smaller depending on the wear mode. For diameters under Ø12 mm, use a collet instead of a three-jaw chuck and take a spring pass at 0.05 mm depth to remove deflection.
Grinding is the fallback when the tolerance goes below the turning range or the surface finish callout is tighter than Ra 0.8 μm. Cylindrical grinding can hold ±0.002 mm and Ra 0.2–0.4 μm, which is why bearing seats are often ground even when the rest of the shaft is turned. It adds a setup and a cost step, so reserve it for the surfaces that need it.
Control the process and measure what matters
A single good part proves nothing about a run. The number that matters is whether the process stays inside the band across the whole order. Track the actual measured size on a simple chart and watch the trend. A boring tool that starts at +0.012 mm and drifts to +0.019 mm over 40 parts is still in tolerance on an H7 band, but the next 20 parts will not be. Adjust the offset at the midpoint of the drift, not at the limit.
Temperature is the quiet error. Steel expands about 11 μm per meter per degree Celsius. A Ø50 mm steel shaft measured at 30 °C reads roughly 0.006 mm larger than it would at 20 °C. On a tight transition fit with a 0.015 mm band, that is a third of the allowance gone to the thermometer. Let parts sit on a granite plate for 20–30 minutes before final measurement.
For holes, a two-point bore gauge reads diameter but not roundness or taper. Add an air gauge or a dial bore gauge with a three-point head for high-volume work, and check roundness at three depths. A bore that is Ø20.010 mm at the top and Ø20.002 mm at the bottom will pass a single-point check and still bind a shaft on assembly.
For shafts, measure with a micrometer at three positions along the length and two orientations 90° apart. A shaft that is round at the ends can be lobed in the middle after a centerless grind. If the fit is interference, also check the press force on the first assembly: a sudden force spike usually means the bore tapered or the shaft is out of round, not that the fit code was wrong.
- 1Chart the trend, not the pass/failOffset adjustments happen before the limit, not after.
- 2Settle at 20 °C20–30 minutes on a granite plate before final measurement.
- 3Check roundness and taperThree depths in the bore, two orientations on the shaft.
- 4Verify with one real assemblyFeel or press force is the final check the print cannot give.
Six steps from drawing to verified fit
Run these in order. Skipping step 1 or step 5 is where most fit failures start.
- 11. Write the fit intent on the drawingState function, assembly method, and load in one or two lines. Example: "Ø25 H7/p6, press fit, 500 N axial, no key." This single line prevents a machinist from guessing.
- 22. Select the fit code and calculate both extremesUse ISO 286 or ANSI B4.2, never both on one print. Compute the worst-case tight and worst-case loose clearance. If the tight case becomes interference and you wanted clearance, change the code now, not after the first part.
- 33. Convert to a machining target inside the bandDo not aim at the nominal. For a Ø20 H7 bore, target +0.012 to +0.016 mm. For an h6 shaft, target −0.004 to −0.008 mm. Leave room for tool wear in the direction it actually trends.
- 44. Choose the process and hold the setup rigidReam for small clearance holes up to Ø20 mm. Bore for transition and interference. Turn shafts in a collet under Ø12 mm. Keep the boring bar L/D under 5:1 and use a spring pass at 0.05 mm.
- 55. Control the process, not just the partMeasure the first part, then every fifth part, then every twentieth once the trend is flat. Record the actual size, not just pass/fail. If the trend moves more than 0.005 mm across 20 parts, stop and adjust the offset.
- 66. Measure at temperature and verify the jointLet parts stabilize at 20 °C before final inspection. Use a bore gauge or air gauge for the hole and a micrometer for the shaft. Then assemble one pair and check the actual feel or press force.
Common ISO 286 fits and where they belong
Limits shown for a Ø20 mm nominal diameter. Always confirm against the current standard.
| Fit code | Type | Typical use | Assembly |
|---|---|---|---|
| H7/g6 | Clearance | Sliding spigots, locating sleeves | Hand push |
| H7/h6 | Clearance | Close location, easy disassembly | Hand push or light tap |
| H7/k6 | Transition | Gear hubs, pulleys on shafts | Soft mallet |
| H7/n6 | Transition | Tighter location, rare removal | Press, light |
| H7/p6 | Interference | Bushes, bearing outer races | Press |
| H7/s6 | Interference | Permanent joints, no key | Press or shrink |
| H8/f7 | Clearance | Lubricated bearings, warm running | Hand push |
Which fit class fits which situation
| Situation | Best choice | Why |
|---|---|---|
| Shaft rotates in a lubricated bearing | Clearance, H7/g6 or H8/f7 | Leaves room for an oil film and thermal growth |
| Pin locates a plate, hand assembly | Transition, H7/k6 | No creep, still removable with a mallet |
| Bush pressed into a housing | Interference, H7/p6 | Holds without a fastener or adhesive |
| High-volume reamed hole under Ø20 mm | Clearance, H7 with reaming | Reamer size is stable across thousands of holes |
| Tight roundness on a large bore | Interference or transition with boring | Boring corrects the roundness a drill leaves behind |
| Thin-wall housing, 2 mm wall | Slightly looser fit | Clamping and relaxation move the bore after machining |
| Prototype, single part | Transition, H7/h6 | Forgiving on both sides while the design is still moving |
Get the fit right before the first chip
A hole shaft fit for CNC machining is a design decision first and a machining decision second. Write the intent, pick one standard, target the middle of the band, and measure on a trend. Do that and assembly stops being a surprise.
Frequently asked questions
What is the most common hole shaft fit used in CNC machining?
For general location and easy assembly, H7/h6 is the workhorse. It gives a small clearance at every permitted size, so parts go together by hand or with a light tap.
When the joint must not creep, H7/k6 or H7/n6 is common. The choice depends on how often the joint is taken apart and how much axial load it carries.
How do you measure the accuracy of a hole shaft fit?
Measure the hole and the shaft separately at 20 °C, then compare the actual values against the calculated limits. A two-point bore gauge or air gauge for the hole, a micrometer at two orientations for the shaft.
Add roundness and taper checks at three depths. A diameter reading alone can pass a tapered bore that will still bind on assembly.
Can GreatLight handle custom hole shaft fits for medical devices?
Yes. We machine to ISO 286 and ANSI B4.2 fits in stainless 316L, 17-4PH, titanium TC4, and engineering plastics such as PEEK and POM, with ISO 13485:2016 in place for medical work.
We hold ±0.005 mm on qualified features and inspect 100% before shipment, with reports available on request.
What is the typical lead time for a hole shaft fit project?
Quotation and a free DFM analysis come back within 12 hours. Production can start within 24 hours of approval, and parts ship in 3–5 days.
Complex fits that need grinding or a dedicated fixture may add a setup step. The DFM review flags that before the order starts.
How does material selection affect hole shaft fit performance?
Thermal expansion and wear resistance drive the choice. Aluminium 6061 expands about twice as much as steel per degree, so an aluminium housing around a steel shaft changes clearance faster as the assembly warms.
For interference fits, a softer material like aluminium 6061 can yield during pressing. A steel or stainless shaft into an aluminium housing often needs a lighter interference code than the same joint in steel.
What if the fit does not meet spec after machining?
A bore that comes out undersized can sometimes be reamed or bored to the next size up if the design allows an oversized mating shaft. A shaft that is oversized can be turned or ground smaller within the band.
If neither is possible, the part is reworked or remade. In-process measurement exists to catch the drift before the whole run is finished.
Send us the drawing and the fit code
We will review the tolerances, flag anything the machine cannot hold, and quote within 12 hours. From one prototype to 10,000+ parts, with 100% inspection before shipment.
12-hour quoteFree DFM analysis±0.005 mm100% inspection