Tolerances & fits
Why a 10 mm hole prints at 9.7 mm, how much clearance every kind of fit needs, and how to calibrate your printer so the parts you design actually go together on the first try.
Where dimensional errors come from, how to choose clearance for press, snug, slip, sliding and print-in-place fits, how to design and print a tolerance test coupon, how to set up CAD parameters so a one-number change adapts a design to a new printer or filament, and how to compute recommended hole sizes with the calculator on this page. All values assume a 0.4 mm nozzle and 0.2 mm layers; they are starting points that you must verify with your own printer.
🔰 Where dimensional errors come from
Tolerance is the permitted deviation from a nominal size. A machinist working with a lathe expects ±0.01 mm; a typical FDM printer delivers roughly ±0.1–0.3 mm on small features and about ±0.5 % on larger ones. The good news is that most of the error is systematic, meaning it is the same every time, so you can measure it once and design around it. Truly random error is much smaller.
🔰 Shrinkage and horizontal expansion
Two different effects change sizes in the XY plane, and they push in opposite directions on different features:
- Thermal shrinkage – plastic extruded at 200–280 °C contracts as it cools to room temperature. Every dimension scales by (1 − shrinkage). PLA shrinks only 0.2–0.5 %; nylon and ABS shrink more and also warp.
- Horizontal expansion (squish) – the bead is wider than its nominal line width and is pressed outward by the nozzle. The outer perimeter ends up slightly outside the CAD outline, and the inner perimeter of a hole slightly inside it, so outside dimensions grow and holes shrink.
Slicers approximate a circle with a polygon whose corners lie on the circle, so the polygon’s sides lie inside it. In addition, the inner perimeter bead is pressed inward by the plastic’s own flow and surface tension. Both effects reduce the hole and both scale weakly with diameter, so a 3 mm hole typically loses 0.15–0.25 mm while a 30 mm hole loses roughly 0.2–0.3 mm.
🔰 Clearance tables: from press fit to loose
A fit describes how two mating parts relate: a shaft (the male feature: pin, rod, boss) goes into a hole (the female feature). Clearance is hole minus shaft; a negative number is an interference (press fit). The numbers below are diametral CAD clearance: the hole diameter in the model minus the shaft diameter in the model, for a well-tuned 0.4 mm printer printing PLA or PETG with the axis vertical. Add more for large diameters, horizontal axes or high-shrink materials, and subtract for very well-calibrated machines.
| Fit class | CAD clearance (diametral) | Behavior | Typical use |
|---|---|---|---|
| Press fit | 0.00 to +0.10 mm | Needs a hammer or vise; permanent. | Dowel pins, bushings, magnets, bearings in a tight seat. |
| Snug / transition | +0.10 to +0.20 mm | Hand push, holds without glue. | Lid plugs, alignment pins, inserts with glue. |
| Slip fit | +0.20 to +0.30 mm | Slides by hand with slight resistance, no wobble. | Stack-up parts, slide-on caps, general assembly. |
| Sliding / running | +0.30 to +0.40 mm | Moves freely, small play. | Hinge pins, drawers, rotating knobs. |
| Loose | +0.40 to +0.60 mm | Obvious play, tolerant of warping. | Large parts, hot-chamber materials, lids that must always close. |
| Print-in-place | 0.30–0.50 mm per side | Parts print separated and move after printing. | Chains, hinges, captive balls, gear trains. |
Print-in-place clearances
When two moving parts print together in one job, the gap between them must be large enough that the neighboring surfaces do not fuse, yet small enough to avoid slop. Horizontal gaps (side faces) and vertical gaps (top and bottom faces) behave differently because vertical gaps are quantized by layer height: each gap should be a multiple of the layer height, and at least two layers.
A hot chamber (up to 65 °C) keeps the plastic warmer and can reduce the effective gap, so print-in-place parts in ABS, ASA or nylon need 0.1 mm more side clearance than the same design in PLA with the chamber cold. Fans on the X2D also cool bridges and overhangs better; see Engineering materials & chamber.
🔧 Hole undersize rules, teardrops and diamonds
Holes need two corrections: size (they print small) and shape (horizontal ones sag at the top, see Design principles). First the size.
The second contribution is physical: the inner perimeter of a hole is pushed inward by the bead. The practical result is the following rule table.
| Hole | Add to the CAD diameter | Comment |
|---|---|---|
| Vertical, 2–10 mm | +0.15 to +0.25 mm | Most reliable; start at +0.2 mm. |
| Vertical, 10–40 mm | +0.20 to +0.30 mm | Large holes shrink more in absolute terms. |
| Horizontal, any size | +0.25 to +0.40 mm | Plus teardrop or diamond shape to avoid a sagging roof. |
| Tiny holes < 2 mm | +0.20 to +0.30 mm | Often too tight; print undersize and drill. |
| Screw clearance, M3 | 3.4–3.5 mm (nominal 3.0) | Slip fit for the thread; more in the joint chapter. |
| Pin hole for 1.75 mm filament rod | 1.9–2.0 mm | Common cheap pin for hinges and alignment. |
Put the clearance on the hole, not on the shaft. A shaft that carries a load should keep its nominal size so it stays strong, while a hole is easy to enlarge by adding 0.2–0.3 mm. For round bar stock or commercial hardware (bolts, bearings, magnets) the shaft is a fixed purchased dimension, so the only variable is the printed hole.
Teardrop and diamond geometry
🔧 Test coupons and the tolerance gauge
A test coupon is a small, fast print that measures your actual tolerances so you never guess. A single coupon with a row of holes in 0.05 mm steps and a matching peg tells you at a glance which clearance feels “snug”, “slip” and “sliding” on your printer with this filament. Print it each time you change material, nozzle, or printer.
Parametric OpenSCAD tolerance gauge
Paste this into OpenSCAD, set the peg size you actually need, render (F6) and export STL. Print the plate flat and the peg standing on its end. The code needs no libraries.
// tolerance_gauge.scad - peg and plate clearance test
peg_d = 8; // nominal shaft diameter (mm)
c_first = 0.10; // smallest diametral clearance (mm)
c_step = 0.05; // clearance increment (mm)
n_holes = 8; // number of holes
plate_t = 3; // plate thickness (mm)
margin = 5; // border around holes (mm)
$fn = 96; // fine tessellation so holes stay round
pitch = peg_d + 2 * margin;
plate_w = pitch * n_holes;
module label(txt) {
// engraved 0.6 mm deep, readable at 3 mm height
translate([0, -peg_d / 2 - 1.5, plate_t - 0.6])
linear_extrude(1)
text(txt, size = 2.5, halign = "center", valign = "top");
}
module plate() {
difference() {
translate([0, -pitch / 2, 0])
cube([plate_w, pitch, plate_t]);
for (i = [0 : n_holes - 1]) {
c = c_first + i * c_step;
translate([pitch * (i + 0.5), 0, -1])
cylinder(d = peg_d + c, h = plate_t + 2);
translate([pitch * (i + 0.5), 0, 0])
label(str(c));
}
}
}
module peg() {
// 12 mm tall peg with a 0.4 mm chamfer at both ends
cylinder(d1 = peg_d - 0.8, d2 = peg_d, h = 0.4);
translate([0, 0, 0.4]) cylinder(d = peg_d, h = 11.2);
translate([0, 0, 11.6]) cylinder(d1 = peg_d, d2 = peg_d - 0.8, h = 0.4);
}
plate();
translate([plate_w / 2, pitch + 6, 0]) peg();
A ready-made version of this gauge and other calibration models are listed on the Downloadable test models page.
To test an external fit such as a lid over a box, print a row of small lids with 0.1–0.5 mm of gap and a fixed box rim. To test slot tolerances, add a plate with slots instead of holes. A good coupon takes 5–10 minutes and uses less than 10 g of filament.
🚀 Fit classes and how they compare with machined fits
Mechanical engineers describe fits with ISO symbols such as H7/g6 (a close running fit) or H7/p6 (a light press fit). Those fits typically sit in precision grades IT6–IT7, with tolerance zones of 0.01–0.02 mm for a 10 mm diameter. FDM at its best delivers roughly the IT13–IT15 range, which is 0.2–0.5 mm for the same diameter. You cannot print a true H7/g6 fit directly, but you can reproduce the behavior of each class by shifting the nominal size and then ream or drill when you need precision.
| Machined class | Behavior | FDM equivalent | Tip |
|---|---|---|---|
| H7/p6 interference | Hammered together | Press fit: 0.0–0.1 mm CAD clearance | Add a lead-in chamfer 0.5 mm; cut a slit to let it flex. |
| H7/k6 transition | Mallet or hand press | Snug: 0.1–0.2 mm | Use for alignment pins that must not wobble. |
| H7/h6 location | Slide by hand, no play | Slip: 0.2–0.3 mm | Do not expect it to be precisely coaxial. |
| H7/g6 close running | Smooth rotation | Sliding: 0.3–0.4 mm | Print the bearing seat vertically. |
| H9/d9 free running | Plenty of play | Loose: 0.4–0.6 mm | For large or warping parts. |
🚀 Tolerance stacking
When several parts are assembled in a chain, their individual errors add up. This is tolerance stack-up. A tolerance of ±0.1 mm on each of four stacked parts can accumulate to ±0.4 mm in the worst case, which is the difference between a perfect lid and a lid that will not close. Statistically the errors rarely all align, so the likely stack is the root sum of squares (RSS): √(4 × 0.1²) = ±0.2 mm.
- Fewer parts in the chain means fewer errors: the best tolerance strategy is part consolidation.
- Locate from one datum: measure and design every feature from the same face (usually the bed face) instead of daisy-chaining.
- Use compliance: a flexible clip, spring tab or rubber foot absorbs ±0.5 mm that a rigid joint cannot.
- Make one part adjustable: slotted screw holes, a shim, or a screw end-stop absorb stack-up.
🔧 Calibration offsets
The test coupon tells you how far your printer is from the model. Convert that into numbers you can use:
- Print a coupon with a 20 mm outside cube, a 10 mm hole (vertical) and a 10 mm hole (horizontal). Use your normal profile and material.
- Measure each dimension three times with calipers; let the part cool to room temperature first and average the readings.
- Outside offset: (20 − measured) ÷ 2 gives the per-side error. Example: measured 20.12 mm → −0.06 mm per side.
- Hole offset: 10 − measured hole diameter. Example: measured 9.78 mm → add +0.22 mm to the CAD hole diameter.
- Enter the values as parameters in your CAD file (next section) or use the slicer’s XY hole and contour compensation. Prefer one place, not both.
- Reprint the coupon with the corrections and confirm.
🔧 Designing tolerance parameters in CAD
Never type 8.2 into a sketch and move on. Instead, define the tolerances once as named parameters at the top of the model and use them everywhere. When you change printer, nozzle or filament, you edit three numbers and every hole, lid and pin follows. Fusion, Onshape and FreeCAD call them user parameters, variables or a spreadsheet; OpenSCAD and CadQuery use ordinary variables. A step-by-step workflow with a complete OpenSCAD example is on the Parametric CAD workflow page.
Name parameters by what the fit does (tol_snug), not by value (tol_015). The value will change when the printer changes; the intent will not.
🔧 Per-material shrinkage
Shrinkage matters when one of the mating parts is not printed (a steel pin, a bearing, a magnet) because then only the printed hole shrinks. It also decides how much a large part needs to be scaled. The table shows typical linear shrinkage after cooling; treat the ranges as indicative and measure your own with a 100 mm bar.
| Material | Linear shrinkage (typical) | Warp risk | Notes |
|---|---|---|---|
| PLA | 0.2–0.5 % | Low | The most dimensionally stable; good for tight fits. |
| PETG | 0.2–0.6 % | Low | Squishes more; holes often smaller than PLA. |
| ABS | 0.5–1.0 % | High | Needs a warm enclosure; large flat parts warp. |
| ASA | 0.4–0.9 % | Medium–high | Similar to ABS, slightly better. |
| PC | 0.5–0.8 % | High | Needs high bed and chamber temperature. |
| Nylon (PA6, PA12) | 1.0–2.0 % | High | Also absorbs moisture and swells 1–3 % in size when conditioned. |
| TPU | 0.4–1.2 % | Low | Soft: calipers squash it, so measure lightly. |
| CF/GF-filled grades | 0.1–0.5 % | Low–medium | Fillers reduce shrinkage and warping to roughly 1/3–1/2 of the unfilled polymer. |
A heated chamber (up to 65 °C) lets you print ABS, ASA, PC and nylon with less warping, and reduces the temperature step each layer experiences on cooling, but it does not remove shrinkage. For official guidance on materials and chamber temperatures, read Engineering materials & chamber and the Bambu Lab wiki.
🔧 Compensating in the slicer
Slicers can apply the correction for you. The two settings to know live under Quality → Precision in Bambu Studio and OrcaSlicer:
- X-Y contour compensation – grows (positive) or shrinks (negative) every outer contour. A typical value is −0.03 to −0.10 mm if outer dimensions print oversize.
- X-Y hole compensation – grows (positive) or shrinks (negative) every hole. A typical value is +0.05 to +0.15 mm, because holes print small.
The X2D offers automatic hole and contour compensation, but only with designated Bambu filaments and only for vertical circular holes. Check the printer and slicer notes in Bambu Studio settings & profiles before relying on it, and keep your measured offsets as a fallback.
🔧 Post-print machining: drilling and reaming
When a hole must be accurate (a bearing seat, a precision pin), print it undersize and finish it with a drill or reamer. A drill bit cuts a round, straight hole regardless of print errors. Reaming then brings it to size with a smooth surface.
| Target | Print hole | Finish with |
|---|---|---|
| 3.0 mm dowel (press) | 2.6–2.7 mm | 3.0 mm drill, hand ream |
| M3 clearance | 3.2–3.4 mm | 3.4 mm drill if tight |
| M3 tapped thread | 2.7–2.8 mm | M3 hand tap (2.5 mm tap-drill size, printed a little oversize) |
| 608 bearing seat (22 mm) | 21.6 mm | Reamer or boring, stop at 22.05 mm for a light press |
| 8 mm smooth rod | 7.6 mm | 8.1 mm drill for slip, 8.0 for snug |
🚀 Thread tolerance
Printed threads work if you respect the nozzle. A 0.4 mm nozzle cannot resolve fine metric pitches: use pitch ≥ 1.5 mm, preferably 2–4 mm, and a trapezoidal or square profile with a flank angle around 30°–45°. Between a bolt and nut leave a radial clearance of 0.2–0.35 mm (0.4–0.7 mm on the diameter).
🔧 Assembly with dowels
Dowels (short cylindrical pins) align two parts accurately regardless of how rough the printed surfaces are. They are the most reliable way to join split models, lids and large assemblies. The trick is to use a snug fit in one part and a slip fit in the other: the snug side holds the pin permanently, the slip side lets the second part come off.
🧮 Recommended hole diameter calculator
Enter the shaft you need to fit and your conditions. The tool applies the clearance classes above plus corrections for orientation, nozzle size and material shrinkage and returns the diameter to type into CAD. It is a starting point; always confirm with the test coupon.
Hole & clearance calculator
- Shaft diameter (CAD)
- 8.00 mm
- Total added to CAD hole
- +0.25 mm
- Shrink correction
- +0.00 mm
- Target printed hole
- ≈ 8.25 mm
- Intended clearance
- ≈ +0.25 mm
- Uncertainty
- ± 0.10 mm
Key takeaways
- Most error is systematic: measure with a coupon, then correct in CAD or in the slicer, not both.
- Start with these CAD clearances (diametral): press 0.0–0.1, snug 0.1–0.2, slip 0.2–0.3, sliding 0.3–0.4, loose 0.4–0.6, print-in-place 0.3–0.5 per side.
- Holes print 0.1–0.3 mm small: put the clearance on the hole, keep shafts nominal, and use teardrop shapes for horizontal holes.
- Shrinkage: PLA/PETG about 0.3–0.5 %, ABS/ASA 0.5–1 %, nylon 1–2 %, filled grades much lower.
- Stack-ups add: keep chains short, locate from one datum and design a gap larger than the sum of tolerances.
- For real precision, print undersize and drill or ream.
Next: Joints & fasteners uses these clearances for snap-fits, inserts and threads. Practice with Level 2 exercises.