Fits and tolerances calculator
This fits and tolerances calculator applies the ISO 286 system of limits and fits. Enter a nominal size and a hole and shaft tolerance class, such as H7/g6, and it gives the upper and lower limits of both parts, the maximum and minimum clearance or interference, and whether the fit is a clearance, transition or interference fit.
Fits and tolerances calculator: hole and shaft fit
Limits of one tolerance class and part check
How to use the fits and tolerances calculator
In the first panel, enter the nominal size, the basic diameter that the hole and the shaft share, in millimeters or inches. Pick one of the preferred fits from the list, or switch to “Any hole and shaft class” and choose the two tolerance classes yourself. The fits and tolerances calculator returns the limits of the hole and of the shaft, the largest and the smallest clearance, the fit tolerance and the type of fit, and draws the two tolerance zones against the zero line. “Show the working” lists the size range, the standard tolerance grades and the fundamental deviations it used, so you can check the table lookup by hand.
The second panel of the fits and tolerances calculator handles one part. It gives the maximum and minimum size for a single class such as k6 or H7, and if you type a measured size, it tells you whether the part passes and by how much it misses.
How ISO 286 limits and fits work in the fits and tolerances calculator
A tolerance class has two parts. The letter sets the position of the tolerance zone relative to the nominal size: capital letters for holes, lowercase for shafts. H holes start exactly at the nominal size and grow upward; h shafts end exactly at the nominal size and shrink downward. Letters early in the alphabet (c, d, e, f, g) give shafts smaller than nominal, and letters late in the alphabet (k, m, n, p, r, s, u) give shafts larger than nominal. The number is the standard tolerance grade IT, which sets the width of the zone; the width grows with the size range. The deviation closest to zero is the fundamental deviation.
Lower limit = nominal size + lower deviation (EI for holes, ei for shafts)
Tolerance = upper deviation − lower deviation = IT value
Minimum clearance = EI − es
Fit tolerance = hole tolerance + shaft tolerance
The fits and tolerances calculator names the fit from the two clearances. When the minimum clearance is zero or positive, the shaft always slides into the hole: a clearance fit. When the maximum clearance is zero or negative, the shaft is always larger than the hole: an interference fit, and the negative clearances are the minimum and maximum interference. Anything in between is a transition fit, where a given pair of parts may end up with a small clearance or a small interference.
For holes with letters K to U, ISO 286-1 adds a correction Δ = ITn − ITn−1 in the finer grades so that, for example, an N7 hole on an h6 shaft gives the same fit as an H7 hole on an n6 shaft. The fits and tolerances calculator applies this rule, including the special value ES = −9 µm for M6 between 250 and 315 mm. The full rules are in ISO 286-1:2010, and the tables of limit deviations in ISO 286-2:2010.
Worked example: a 25 mm H7/g6 fit in the fits and tolerances calculator
The default in the fits and tolerances calculator is a 25 mm shaft in an H7 hole with a g6 shaft, a common choice for a sliding gear or a locating pin that must move freely without play. The size 25 mm lies in the 18 to 30 mm range, where IT7 = 21 µm and IT6 = 13 µm.
- Hole H7: EI = 0, ES = 0 + 21 = +21 µm, so the hole is 25.000 to 25.021 mm.
- Shaft g6: es = −7 µm (the fundamental deviation of g), ei = −7 − 13 = −20 µm, so the shaft is 24.980 to 24.993 mm.
- Maximum clearance = ES − ei = 21 − (−20) = 41 µm; minimum clearance = EI − es = 0 − (−7) = +7 µm.
- Both clearances are positive, so H7/g6 is a clearance fit with 0.007 to 0.041 mm of play, and the fit tolerance is 21 + 13 = 34 µm.
These are the same numbers as in the ANSI B4.2 preferred-fit tables, for example the ANSI B4.2 hole-basis and shaft-basis fit tables in a King Saud University course handout. In the second panel, the default 40 mm k6 shaft has limits 40.002 to 40.018 mm, so a part measured at 40.010 mm passes.
Preferred fits and standard tolerances
ISO 286-1 and ANSI B4.2 recommend a short list of fits. Using them keeps the number of reamers and gauges in a shop small. Values below are for a 25 mm nominal size, as the fits and tolerances calculator gives them, and match the published tables.
| Fit (hole basis) | Type | Clearance at 25 mm, µm (minus = interference) | Typical use |
|---|---|---|---|
| H11/c11 | Clearance | +110 to +370 | Loose running, wide tolerances, dirty or hot parts |
| H9/d9 | Clearance | +65 to +169 | Free running, large temperature changes, plain bearings at high speed |
| H8/f7 | Clearance | +20 to +74 | Close running, accurate shafts in oiled bearings |
| H7/g6 | Clearance | +7 to +41 | Sliding, locating parts that must move freely |
| H7/h6 | Clearance | 0 to +34 | Locational clearance, parts assembled by hand |
| H7/k6 | Transition | −15 to +19 | Accurate location, small clearance or interference |
| H7/n6 | Transition | −28 to +6 | More accurate location where more interference is allowed |
| H7/p6 | Interference | −35 to −1 | Locational interference, rigid alignment, parts can be separated |
| H7/s6 | Interference | −48 to −14 | Medium drive, steel hubs, shrink fits on light sections |
| H7/u6 | Interference | −61 to −27 | Force fit, permanent assembly of high-stress parts |
| Size range (mm) | IT5 | IT6 | IT7 | IT8 | IT9 | IT10 | IT11 |
|---|---|---|---|---|---|---|---|
| up to 3 | 4 | 6 | 10 | 14 | 25 | 40 | 60 |
| 3 to 6 | 5 | 8 | 12 | 18 | 30 | 48 | 75 |
| 6 to 10 | 6 | 9 | 15 | 22 | 36 | 58 | 90 |
| 10 to 18 | 8 | 11 | 18 | 27 | 43 | 70 | 110 |
| 18 to 30 | 9 | 13 | 21 | 33 | 52 | 84 | 130 |
| 30 to 50 | 11 | 16 | 25 | 39 | 62 | 100 | 160 |
| 50 to 80 | 13 | 19 | 30 | 46 | 74 | 120 | 190 |
| 80 to 120 | 15 | 22 | 35 | 54 | 87 | 140 | 220 |
| 120 to 180 | 18 | 25 | 40 | 63 | 100 | 160 | 250 |
| 180 to 250 | 20 | 29 | 46 | 72 | 115 | 185 | 290 |
| 250 to 315 | 23 | 32 | 52 | 81 | 130 | 210 | 320 |
| 315 to 400 | 25 | 36 | 57 | 89 | 140 | 230 | 360 |
| 400 to 500 | 27 | 40 | 63 | 97 | 155 | 250 | 400 |
The second table gives the ISO 286-1 standard tolerances in micrometers (µm). Each range runs from just above the first size up to and including the second. Fundamental deviations for r, s and u, and for c, change in finer steps (for example 50 to 65 and 65 to 80 mm); the fits and tolerances calculator uses those intermediate ranges.
Choosing a fit before you use the fits and tolerances calculator
Hole basis or shaft basis. Most machine shops use the hole-basis system (H holes) because holes are made with fixed-size reamers and checked with plug gauges, while shafts are easy to turn or grind to any size. Shaft-basis fits (h shafts) make sense when one drawn or ground bar carries several parts with different fits, such as pins and keys. Bearings. Rolling bearings have their own bore and outside-diameter tolerances; use the shaft and housing classes the bearing maker recommends (often k5, k6, m6 or j6 for rotating inner rings and H7 or J7 for housings). Temperature. Steel grows about 12 µm per meter per kelvin, so a 100 mm aluminum hub on a steel shaft can lose or gain tens of microns of interference over a normal temperature range; check it with the Thermal Expansion Calculator. Surface finish. Rough surfaces flatten during a press fit and reduce the effective interference, which the fits and tolerances calculator cannot see.
For forces in a press fit or the pressure behind a hydraulic press, see the Hydraulic Cylinder Calculator; for the stress in the hub material, the Stress and Strain Calculator gives the basic σ = Eε relation. All mechanical tools are listed on the mechanical engineering calculators page, and the Unit Converter converts between millimeters, inches and thousandths.
Common mistakes with a fits and tolerances calculator
Mixing up the case of the letter. H7 is a hole and h7 is a shaft; the fits and tolerances calculator puts the zones on opposite sides of the zero line. Putting a boundary size in the wrong range. A 30 mm shaft belongs to the 18 to 30 mm range, not 30 to 50 mm. Adding tolerances in the wrong direction. Maximum clearance always pairs the largest hole with the smallest shaft. Treating a transition fit as a press fit. H7/k6 can assemble with clearance, so it does not transmit torque on its own; add a key or a clamp. Converting each limit to inches and rounding. Rounding 0.007 mm to four inch decimals loses most of a tight tolerance; keep five decimals, as the fits and tolerances calculator does, or work in millimeters. Forgetting form and temperature. ISO 286 sizes are two-point sizes at 20 °C; out-of-roundness and a hot part can push a good part out of tolerance.
Related calculators
Related mechanical tools: the Thermal Expansion Calculator for shrink fits, the Stress and Strain Calculator for hub stresses and the Bolt Torque Calculator for clamped joints.
- Thermal Expansion Calculator
- Stress and Strain Calculator
- Hydraulic Cylinder Calculator
- Bolt Torque Calculator
- Moment of Inertia Calculator
- All mechanical engineering calculators
Frequently asked questions
What does H7/g6 mean?
H7 is the hole tolerance class: fundamental deviation H (lower limit at the nominal size) and grade IT7. g6 is the shaft class: fundamental deviation g (just below the nominal size) and grade IT6. At 25 mm the hole is 25.000 to 25.021 mm and the shaft 24.980 to 24.993 mm, a sliding clearance fit of 7 to 41 µm, as the fits and tolerances calculator shows by default.
What is the difference between a clearance, transition and interference fit?
In a clearance fit the smallest hole is still larger than the largest shaft. In an interference fit the largest hole is still smaller than the smallest shaft, so the parts must be pressed or shrunk together. A transition fit overlaps: some pairs have clearance and some interference.
What is the H7 tolerance for a 20 mm hole?
For 20 mm (range 18 to 30 mm), IT7 is 21 µm, so an H7 hole measures 20.000 to 20.021 mm. The fits and tolerances calculator gives the same result in the second panel with the hole option.
Are ANSI metric fits the same as ISO 286?
Yes. ANSI B4.2 uses the ISO 286 tolerance grades and fundamental deviations, so a 25 mm H7/k6 has the same limits in both, and the fits and tolerances calculator serves either. The older inch fits of ANSI B4.1 (RC, LC, LT, LN, FN classes) are a different system that this fits and tolerances calculator does not cover.
Why is the tolerance larger for bigger diameters?
Making and measuring a large diameter to the same number of microns is harder, so ISO 286 scales the standard tolerance roughly with the cube root of the size. IT7 is 10 µm up to 3 mm but 63 µm between 400 and 500 mm.
Is this fits and tolerances calculator free?
Yes. It runs in your browser, needs no sign-up and does not store the sizes you enter.