You design a bracket in CAD with a 22.00 mm pocket for a standard 608 ball bearing and four 4.20 mm clearance holes for M4 bolts. The outer perimeter of the bracket measures right on spec with your calipers, yet the bearing refuses to enter the bore and every M4 bolt has to be threaded through the plastic like a self-tapping screw.
That mismatch is one of the most common dimensional headaches in FDM 3D printing. Even on a well-tuned CoreXY machine running clean PLA or PETG, internal circular bores almost always print 0.10 mm to 0.25 mm tighter than the CAD model—while outside walls can sit dead accurate or slightly oversized depending on flow ratio and wall overlap.
Many makers try to fix tight holes by scaling the whole model up to 101%, dropping flow rate until top surfaces show gaps, or hacking oversized dimensions into every CAD sketch. Those shortcuts break center-to-center bolt spacing and weaken parts. This guide walks through why FDM holes shrink differently from outer perimeters, the exact order to calibrate flow, thermal shrinkage, and slicer compensation, and how to combine X-Y Hole Compensation, X-Y Contour Compensation, Precise Wall, and Polyholes for clean, repeatable fits.
Table of Contents
- Why Do 3D Printed Holes Always Turn Out Smaller Than CAD?
- Calibration Order: Flow First, Shrinkage Second, X-Y Compensation Third
- X-Y Hole Compensation vs. Contour Compensation & Precision Settings
- How to Measure and Calculate Exact X-Y Offsets With Calipers
- Maker's Workshop Note: Dialing 608 Bearing & M4 Fits on a CoreXY
- Pairing Precise Wall, Outer/Inner Order, STEP Exports & Polyholes
- Material Differences: PLA, PETG, ABS, and Carbon-Fiber Composites
- Five Common Tolerance Mistakes That Ruin Interlocking Parts
- Frequently Asked Questions (FAQ)
- References & External Sources
Why Do 3D Printed Holes Always Turn Out Smaller Than CAD?
Vertical 3D printed holes come out smaller than designed because four separate physical and geometric errors stack inward toward the center of a circle: molten polymer drag around tight curves, inward-skewed STL polygon chords, inner-to-outer wall overlap, and bulk thermal shrinkage as the part cools.
When a 0.40 mm nozzle lays down a straight outer wall, the extruded plastic bead spreads symmetrically to the left and right of the nozzle path. Around a small internal circle—such as a 3.2 mm M3 clearance hole or an 8.0 mm rod bore—the geometry changes completely. The inside circumference of the bead is shorter than its outside circumference, yet the nozzle feeds plastic at a constant rate calculated for a straight line. Excess molten material has less room on the inner radius and gets squeezed inward into the open bore.
At the same time, molten thermoplastics behave slightly like a stretched rubber band before the part cooling fan freezes them solid. As the nozzle turns sharply around a small radius, surface tension and viscoelastic pull try to take the shortest straight path across the curve, dragging the still-soft plastic strand inward by another few hundredths of a millimeter.
Two software behaviors compound those physical effects:
- Polygonal STL chord faceting: Standard STL files cannot store true mathematical arcs; they approximate circles as flat straight line segments whose vertices touch the CAD circumference. Every flat chord cuts slightly inside the theoretical circle, shrinking the inscribed clear diameter before the printer even heats up.
- Traditional perimeter overlap: Many Slic3r-derived engines overlap adjacent wall loops slightly to increase inter-wall bonding. When you print inner walls first (the default Inner/Outer order), the inner loops occupy space that pushes the outer wall bead sideways—outward on exterior contours and inward into internal holes.
Calibration Order: Flow First, Shrinkage Second, X-Y Compensation Third
You should never touch X-Y Hole or Contour Compensation until your filament's extrusion flow ratio and thermal shrinkage percentage are already calibrated. Using X-Y offsets to hide over-extrusion or uncompensated ABS shrinkage causes small holes to fit while long brackets and wide bolt patterns still miss their marks.
Think of dimensional accuracy as three distinct layers of error: extrusion volume, proportional shrinkage, and constant boundary offset. Each layer behaves differently as part size changes, so fixing the wrong one creates weird side effects on your next print.
- Step 1 — Dial in Flow Ratio (Extrusion Multiplier): If your printer pushes 4% too much filament, every outer wall swells outward and every internal bore closes up—and top surfaces develop rough ridges around edges. Run a two-pass flow calibration test first (our Orca Slicer filament calibration guide covers the exact top-surface inspection method) so your filament lays flat, smooth top layers without bulging perimeters.
- Step 2 — Check Proportional Material Shrinkage (%): Bulk cooling shrinkage scales linearly with part length. If ABS shrinks by 0.6%, a 10 mm boss shrinks by only 0.06 mm, while two mounting holes spaced 150 mm apart pull 0.90 mm closer together. Fixed millimeter offsets like X-Y Contour Compensation cannot fix center-to-center distance error. Measure a long 100 mm or 150 mm calibration bar along X and Y, calculate
(measured / nominal) × 100, and enter that value into Orca Slicer's Shrinkage (XY) field inside the filament profile (typically 99.7%–99.9% for PLA/PETG, and 99.2%–99.5% for ABS/ASA). - Step 3 — Tune X-Y Hole and X-Y Contour Compensation (mm): Once a 100 mm span measures within 0.05 mm to 0.10 mm and top surfaces are smooth, any remaining tight-hole error is a constant boundary offset caused by nozzle drag, arc pull, and perimeter squish. Now you can safely apply millimeter-level hole and contour offsets that stay consistent across small and medium parts.
"If two mounting holes 120 mm apart don't line up with your aluminum frame, adjust filament Shrinkage (%)—never X-Y Hole Compensation. Hole compensation widens the bore around its existing center; only proportional shrinkage moves hole centers back to true CAD spacing."
X-Y Hole Compensation vs. Contour Compensation & Precision Settings
Modern slicers offer several precision controls that sound similar on the surface but modify toolpaths in completely different ways. The matrix below breaks down what each parameter actually changes in the G-code so you pick the right lever for each tolerance problem.
| Slicer Setting | Where to Find It | What Geometry It Moves | Positive (+) vs. Negative (-) | Typical Starting Range | Best Use Case |
|---|---|---|---|---|---|
| X-Y Hole Compensation | Orca Slicer / Bambu Studio: Quality → Precision | Closed internal holes on each XY slice only; outer walls untouched | + enlarges holes;- tightens holes |
+0.05 mm to +0.18 mm |
Bearing pockets, M3–M8 screw clearances, dowel pins, magnet holes |
| X-Y Contour Compensation | Orca Slicer / Bambu Studio: Quality → Precision | Outer model boundaries on each XY slice only; internal holes untouched | + expands outer shell;- shrinks outer shell |
-0.10 mm to +0.05 mm |
Sliding lids, dovetails, external shafts, enclosure mating lips |
| XY Size Compensation | PrusaSlicer: Print Settings → Advanced → Slicing | Shifts ALL perimeters together (outer walls AND internal holes) | + grows outside & shrinks holes;- shrinks outside & enlarges holes |
-0.05 mm to -0.12 mm (use cautiously) |
Global clearance adjustment on PrusaSlicer when per-part tweaks are needed |
| Shrinkage (XY %) | Orca Slicer: Filament Settings → Filament → Shrinkage | Uniformly scales entire model & hole center distances proportionally | Below 100% scales G-code up to offset polymer contraction |
PLA: 99.8%;ABS/ASA: 99.3%–99.5% |
Long brackets, multi-bolt flanges, Voron/CoreXY structural frames |
| Precise Wall | Orca Slicer: Quality → Precision → Precise wall | Sets overlap between outermost wall and adjacent inner wall to 0% | Toggle On / Off (no millimeter input) | Enabled for mechanical parts | Cleaner outer dimensions without over-squishing outer perimeters |
| Convert Holes to Polyholes | Orca Slicer: Quality → Precision → Convert holes to polyholes | Replaces small circular holes with mathematically sized N-sided polygons | Toggle On / Off | Enabled for small vertical bores (< 10 mm) | Consistent M2–M5 hardware holes without manual CAD resizing |
Printing Tight-Tolerance Functional Parts Consistently?
Dimensional accuracy starts with steady filament diameter tolerances, a rigid CoreXY frame, and clean spare nozzles that haven't worn oval. Browse our 3D Printing Deals & Coupons page for current workshop discounts on enclosed printers, consistent PLA+ spools, and calibration hardware:
How to Measure and Calculate Exact X-Y Offsets With Calipers
To calculate accurate X-Y Hole and Contour Compensation values, print a flat test coupon containing both known exterior blocks and internal vertical bores, measure them carefully with digital calipers—avoiding the bottom elephant's-foot layers—and divide your measured diameter error by two.
Dividing by two is the detail that trips up most people on their first pass. Both X-Y Hole Compensation and X-Y Contour Compensation offset the perimeter wall along its surface normal (radial offset), not the full diameter. Entering +0.20 mm into X-Y Hole Compensation shifts the left edge of a circular hole 0.20 mm to the left AND the right edge 0.20 mm to the right—enlarging the total hole diameter by 0.40 mm.
Step-by-Step Calibration Formula
- Print a compact XY tolerance coupon: Use a simple 60 mm × 30 mm × 6 mm tall rectangular block containing three vertical through-holes:
4.00 mm,8.00 mm, and22.00 mm(representing M4 bolts, 8 mm shafts, and 608 bearings). Slice it using your normal mechanical profile (e.g., 0.20 mm layer height, 3 wall loops, calibrated flow ratio, and Elephant Foot Compensation set around 0.15 mm). - Let the part cool to room temperature: Never measure a warm print right off a 60°C or 100°C bed. Wait at least 15 minutes so thermal contraction stabilizes, especially on PETG, ABS, or ASA.
- Measure the outer block width cleanly: Use the main flat exterior jaws of your calipers near the middle Z height of the 6 mm block (staying away from both the bottom first layer and any slight top-layer bulge). Suppose your 30.00 mm outer width measures
30.12 mm. Your total error is+0.12 mm, so your required X-Y Contour Compensation is-0.12 / 2 = -0.06 mm. - Measure internal bores with the inside jaws (or pin gauges): Insert the sharp inside-measuring jaws of your calipers squarely into the middle of the 8.00 mm and 22.00 mm holes and wiggle gently to find the true maximum chord without scraping soft plastic. Suppose the 8.00 mm hole reads
7.78 mm(-0.22 mmundersized) and the 22.00 mm bore reads21.80 mm(-0.20 mmundersized). Take the average error (0.21 mm) and divide by two: set X-Y Hole Compensation to+0.10 mm(or+0.11 mm). - Verify with a real hardware test fit: Re-slice and reprint the coupon with your calculated offsets. Check the 22.00 mm bore with an actual 608 bearing and test an M4 bolt or 8 mm linear rod. Fine-tune in
0.02 mmincrements until the bearing presses in with firm thumb pressure without cracking the walls.
Notice one important nuance about very small holes versus large bores: a 3 mm hole experiences proportionally stronger molten-plastic pull than a 40 mm cutout. In many cases, tuning X-Y Hole Compensation to match your most common 4 mm to 22 mm hardware range gets 90% of mechanical models within 0.05 mm, and you can apply per-object overrides in the slicer whenever a specialized press-fit print needs an extra ±0.03 mm.
Maker's Workshop Note: Dialing 608 Bearing & M4 Fits on a CoreXY
Maker's Workshop Note (Dinu Suciu)
In my workshop, when I tested a set of filament-spool rollers on my Creality K1C using Elegoo Rapid PLA+ (215°C hotend, 60°C textured PEI bed, 0.20 mm layer height, 4 wall loops), I found that the outside length of the 80.00 mm frame rails measured 80.06 mm—almost spot-on. Yet the 22.00 mm 608 bearing pockets measured 21.74 mm across, and pushing a bearing in split the outer wall along a layer line.
Rather than redrawing every hole in CAD, I verified flow ratio first (dropping it slightly from 0.98 to 0.965 until top infill felt smooth), enabled Precise Wall in Orca Slicer, switched wall order to Outer/Inner for the vertical bearing faces, and set X-Y Hole Compensation to +0.11 mm while leaving X-Y Contour Compensation at -0.02 mm. On the very next 35-minute reprint, the 22.00 mm pocket measured 21.97 mm—giving a clean, zero-wobble thumb press-fit for the 608 bearing—while the four 4.20 mm M4 clearance holes let bolts drop straight through without touching a drill bit. When I later printed the same bracket in PETG at 245°C on a 75°C bed, PETG's slightly higher die-swell needed just +0.13 mm hole compensation to replicate the exact same fit.
Pairing Precise Wall, Outer/Inner Order, STEP Exports & Polyholes
X-Y Hole and Contour Compensation work best when your slicer's perimeter math isn't fighting against you. Combining four built-in precision tools—Precise Wall, Outer/Inner wall order, STEP file exports, and Polyholes—shrinks raw dimensional scatter before compensation even kicks in.
1. Enable Precise Wall (Orca Slicer)
Standard Slic3r/PrusaSlicer math assumes every extruded line has rounded stadium-shaped sides, so it overlaps adjacent walls slightly to close micro-gaps. While that helps bond inner loops together, overlapping the second wall into the outer wall pushes the visible outer perimeter slightly outward on exterior edges and inward inside holes. Turning on Precise Wall sets the overlap between the outermost wall and its neighboring inner wall to zero—leaving inner loops tightly bonded while allowing the visible perimeter to sit right on its nominal CAD coordinate.
2. Use Outer/Inner Wall Order on Vertical Mechanical Parts
Printing inner walls first is safer for steep overhangs, because the outer wall has an inner ledge to grab onto. On vertical brackets, gear housings, and flat bearing blocks with minimal overhangs, switching wall order to Outer/Inner lets the nozzle deposit the dimensionally critical outer perimeter into completely open air with zero sideways pressure from neighboring lines. For a deeper look at how loop counts and wall order interact on overhangs versus vertical bores, check our guide on optimizing slicer wall loops and perimeter orders.
3. Export STEP Files Instead of Coarse STL Meshes
Whenever you design parts in Fusion, FreeCAD, Onshape, or SolidWorks, export .STEP files directly into Orca Slicer, Bambu Studio, or PrusaSlicer instead of low-resolution .STL meshes. STEP preserves true analytical curves so the slicer tessellates arcs at high resolution (and can even output native G2/G3 arc commands when Arc Fitting is enabled). Switching from a coarse 16-segment STL circle to STEP alone often recovers 0.05 mm to 0.08 mm of lost diameter on small 4 mm to 6 mm screw bores.
4. Use Polyholes for Small Vertical Fastener Holes
Pioneered by RepRap developer Nophead (Chris Palmer) and now built directly into Orca Slicer under Convert holes to polyholes, polyholes intentionally turn tiny circular holes into low-sided polygons whose vertices extend slightly past the nominal radius. Because the polygon's flat chords stay tangent to the target shaft diameter while the nozzle pulls inward slightly at each vertex, a 3.0 mm or 4.0 mm vertical screw hole comes out much closer to true size without needing extreme hole compensation values that might make larger 30 mm cutouts too loose.
Material Differences: PLA, PETG, ABS, and Carbon-Fiber Composites
You can't copy one universal X-Y compensation pair across every spool on your shelf because polymer shrinkage, die-swell, and cooling speed vary noticeably by material family. Keep your baseline mechanical profile clean and record small per-filament notes (or save material-specific process presets) using the realistic workshop ranges below:
- PLA and PLA+: Lowest bulk shrinkage (~0.2%–0.3%) and stiff rapid cooling. Typically needs
+0.06 mmto+0.12 mmX-Y Hole Compensation and-0.03 mmto0.00 mmContour Compensation once flow ratio is calibrated. - PETG and Rapid PETG-HF: Slightly stronger viscoelastic die-swell and slower solidification than PLA, which pulls small holes tighter if cooling fans run low. Often benefits from
+0.10 mmto+0.16 mmX-Y Hole Compensation and slightly slower inner-hole print speeds (around 50–80 mm/s) to reduce molten plastic stretch. - ABS and ASA: Higher thermal shrinkage (typically 0.5% to 0.8% depending on chamber heat). Always calibrate Shrinkage (XY) first on a 100 mm bar inside a preheated enclosure—otherwise a 150 mm housing will end up almost a full millimeter short even if small bolt holes look wide enough. After setting shrinkage around 99.3%–99.5%, expect modest hole compensation around
+0.08 mmto+0.14 mm. - Carbon-Fiber & Glass-Fiber Blends (PETG-CF, PA-CF, ABS-CF): Chopped fibers dramatically curb thermal contraction and viscoelastic pull. Many makers are surprised to find that PETG-CF or ABS-CF holes print closer to nominal CAD size than unfilled PETG, often needing half as much hole compensation (
+0.04 mmto+0.08 mm) and near-zero contour offset.
If you are designing interlocking screw assemblies or printed nuts and bolts rather than metal hardware clearances, pair your calibrated slicer offsets with proper flank clearance in CAD—our walkthrough on modeling strong 3D printed threads and bolts shows how much thread-pitch clearance prevents binding across PLA and PETG.
Five Common Tolerance Mistakes That Ruin Interlocking Parts
Even with the right slicer sliders, five subtle traps frequently undo careful caliper math during functional printing:
- Forgetting the factor of 2 on diameters: Measuring a 10.00 mm hole at 9.80 mm and typing
+0.20 mminto X-Y Hole Compensation enlarges the hole by 0.40 mm to 10.20 mm, turning a snug press-fit into a sloppy rattle. Always enter half the diameter error. - Confusing Elephant's Foot with global contour error: If the bottom 0.4 mm of a hole is tight only where the part touched the build plate, your nozzle Z-offset or bed heat is squishing layer one outward. Adjust Elephant Foot Compensation (usually
0.10 mmto0.20 mmfor 1–2 layers) instead of shrinking the entire model with negative X-Y Contour Compensation. - Ignoring Pressure Advance corner bulges: When a square keyway or hexagonal nut trap won't accept an M4 hex nut, the culprit is often rounded, over-extruded internal corners from uncalibrated Pressure Advance (K-value) rather than X-Y contour size.
- Applying large X-Y offsets to thin-walled prints or print-in-place gears: Excessive negative contour compensation or positive hole compensation can silently erase thin 0.8 mm webs or push print-in-place gear teeth too far apart so they skip under load. Always inspect the sliced G-code preview layer by layer after adding compensation above
±0.15 mm. - Forgetting to reset global offsets before slicing someone else's pre-toleranced model: Many MakerWorld and Printables mechanical models already bake 0.25 mm to 0.40 mm of generous hobby clearance into the STL. Adding another
+0.15 mmhole compensation on top can make snap-fit clips and bearing press-fits fall right out. Save your tuned numbers in a dedicated "0.20mm Precision CAD" process preset rather than overwriting your everyday general profile.
Frequently Asked Questions (FAQ)
1. Does X-Y Hole Compensation work on horizontal holes printed parallel to the build plate?
No. X-Y Hole Compensation only detects closed hollow loops lying flat inside each horizontal XY layer slice (vertical holes along the Z-axis). Horizontal holes running sideways along X or Y are limited by Z-axis layer stepping and top-arch overhang droop; use teardrop-shaped cutouts in CAD or tune bridge cooling instead.
2. Should I use positive or negative X-Y Hole Compensation to make tight screw holes bigger?
Use a positive value (such as +0.08 mm or +0.12 mm) in Orca Slicer and Bambu Studio to make internal holes larger. Remember that PrusaSlicer's unified XY Size Compensation works in the opposite direction for holes: a negative value shrinks outer walls and widens holes simultaneously.
3. Why didn't X-Y Hole Compensation fix the distance between two mounting holes?
Because X-Y Hole Compensation expands each hole radially around its existing center point without shifting the center coordinates. If two bolts spaced 100 mm apart measure 99.4 mm center-to-center, adjust your filament's Shrinkage (XY) percentage or verify frame skew and belt tension instead.
4. Can I use Precise Wall and X-Y Hole Compensation at the same time?
Yes—in fact, they complement each other well. Turn on Precise Wall first, print your calibration coupon, and measure the remaining bore error afterward. You will usually find you need a smaller, cleaner X-Y Hole Compensation value once outer-to-inner wall squish is removed.
5. What clearance should I still design into my own CAD assemblies if my slicer is calibrated?
Even with calibrated flow and X-Y compensation, desktop FDM printers carry ~±0.05 mm to ±0.08 mm of layer-to-layer surface roughness and seam variation. Design 0.00 mm to 0.05 mm nominal clearance for firm press-fits (like 608 bearings), 0.15 mm to 0.20 mm per side for smooth sliding fits, and 0.25 mm to 0.30 mm for free-spinning print-in-place hinges.
References & External Sources
- Bambu Lab Official Wiki: XY Hole and Contour Compensation Parameter Guide
- OrcaSlicer Official Wiki: Quality Precision Settings (Precise Wall, XY Compensation & Polyholes)
- Prusa Knowledge Base: Layers and Perimeters & External Perimeter Order
- Hydraraptor (Nophead): Polyholes — Engineering Analysis of Undersized FDM Circular Holes
About the Author: Dinu Suciu
I am Dinu Suciu, founder and prototyping specialist at 3D Print Book. Operating an active maker workshop equipped exclusively with desktop FDM 3D printers—including open-frame bed-slingers and enclosed CoreXY machines—I focus on dimensional accuracy, repeatable calibration workflows, and durable functional parts. Have a question about tight-fit tolerances, slicer calibration, or custom prototyping? Reach out directly through our Contact Page.