Tolerances and fit: making printed parts that go together
A pocket modelled exactly the size of the part that goes in it will not accept the part. This is not a bug in your printer — it is a consequence of how extrusion works, and it is predictable enough to design around. The fix is a deliberate gap, and the whole skill is knowing how big.
Why parts come out too big
An FDM printer does not remove material to reach a dimension; it pushes out a soft bead and hopes it lands where intended. Several things conspire to make that bead sit slightly outside the design boundary:
- The bead is round-ish and gets squashed. Molten plastic leaves a 0.4 mm nozzle and is pressed down to the layer height, so it spreads sideways. Slicers model this, but the model is an approximation.
- Corners get extra material. When the toolhead slows to turn, pressure in the nozzle does not drop instantly. Without well-tuned pressure advance or linear advance you get a small bulge at every corner — visible on a cube as slightly convex faces.
- Plastic sags before it sets. The bead is soft for a moment after it is laid down, and gravity and the weight of subsequent layers push it outward slightly.
- Over-extrusion amplifies everything. If your flow rate is 5% high, every wall is 5% thicker, and the error lands on the outside.
The practical result is that an external dimension typically prints 0.05 to 0.15 mm over nominal on a reasonably tuned machine. Not much — until you try to put it inside a hole that has the opposite error.
Why holes come out too small
Holes are the classic case, and they err in the unhelpful direction: a hole prints smaller than designed while the peg prints larger. The two errors add.
The main cause is geometric. A circle in your model is a polygon in the mesh, and the toolhead traces straight segments between its vertices. Those segments are chords — they cut across the inside of the true circle. The finer the mesh the smaller the effect, but it never reaches zero, and it is always inward. On top of that, the extruded wall of a small hole cools with its inner surface unsupported and pulls in slightly.
For a 5 mm hole the combined error is commonly 0.1 to 0.3 mm. For a 3 mm hole it is proportionally worse, because the polygon approximation is coarser relative to the diameter. This is why an M3 screw will not go through a hole modelled at exactly 3 mm, and why the standard advice is to model clearance holes at 3.2 or 3.4 mm.
A keyring hole modelled at 3 mm often prints tight enough that the ring will not pass. Model it at 4 mm or more and the problem disappears, with the side benefit that a bigger hole leaves more material around it and is less likely to tear out.
Elephant foot: the first-layer bulge
The bottom one or two layers are squashed into the bed harder than the rest of the part, by design, so they stick. That squash pushes material sideways, and the base of your part ends up a few tenths of a millimetre wider than everything above it.
For a decorative print, nobody notices. For a fit, it is decisive: the part will slide into its pocket and then jam in the last half-millimetre, because the bottom edge is the widest part of it. The symptom is characteristic — the piece goes in almost all the way and stops.
Three fixes, in order of preference:
- Chamfer the bottom edge in the model, about 0.4 to 0.6 mm at 45 degrees. This is the robust answer: it works on any printer with any settings, and it also makes assembly easier by giving the part a lead-in.
- Use the slicer's elephant foot compensation. PrusaSlicer and OrcaSlicer call it "Elephant foot compensation", Cura calls it "Initial layer horizontal expansion" and wants a negative value. Set it to around -0.1 to -0.2 mm. Effective, but it travels with your profile rather than the model.
- Reduce first-layer squish. Raising the Z offset slightly cuts the bulge, at the cost of adhesion. Use this last, because a part that comes loose mid-print has worse problems than a tight fit.
Shrinkage, and why it only matters on big parts
Thermoplastics contract as they cool. Typical figures, measured as a percentage of length:
| Material | Approximate shrinkage | Error over 20 mm | Error over 150 mm |
|---|---|---|---|
| PLA | 0.2 – 0.3% | 0.05 mm | 0.4 mm |
| PETG | 0.3 – 0.5% | 0.08 mm | 0.6 mm |
| ASA / ABS | 0.7 – 0.9% | 0.16 mm | 1.2 mm |
The point of that table is the last two columns. On a 20 mm peg, PLA shrinkage is 0.05 mm — lost in the noise next to extrusion effects. On a 150 mm ruler it is 0.4 mm, which is visible against a steel rule. Shrinkage is a large-part problem; for the small fits most people care about, extrusion width and elephant foot dominate.
Because shrinkage scales with size and the extrusion errors do not, they need different corrections: shrinkage wants a percentage scale factor, extrusion wants a fixed offset. Mixing them up is why a compensation that fixed a big part makes a small one wrong.
Clearance numbers that work
These are total gaps between the two mating surfaces, for PLA on a reasonably tuned 0.4 mm nozzle. They are starting points, not constants.
| Fit | Clearance | Use it for |
|---|---|---|
| Press / interference | 0.0 – 0.1 mm | Parts meant to stay together permanently; needs force, may need a clamp |
| Snug / locating | 0.15 – 0.2 mm | Inserts, name plaques in pockets, parts held by friction alone |
| Easy assembly | 0.25 – 0.3 mm | Lids, covers, anything taken on and off by hand regularly |
| Free running | 0.35 – 0.5 mm | Hinges, rotating pins, sliding drawers |
| Threaded (printed threads) | 0.4 – 0.5 mm | Screw-top containers and lids |
Two adjustments to keep in mind. Bigger parts need more, because shrinkage adds up — a 100 mm sliding fit wants noticeably more room than a 10 mm one. And tall mating surfaces need more, because any slight lean in either part accumulates over the height and binds. A 20 mm deep pocket is much less forgiving than a 3 mm one.
For reference, the Monogram generator defaults to 0.26 mm, which sits in the easy-assembly band — chosen deliberately, because an insert you cannot get into its pocket is worse than one that is slightly loose, and a loose one can be glued.
Compensating in the slicer instead of the model
If your printer is consistently off by a known amount, you can correct it globally rather than editing every model. Two settings do most of the work:
XY size compensation (PrusaSlicer, OrcaSlicer) or Horizontal expansion (Cura) shifts every wall in or out by a fixed amount. A value of -0.05 mm shrinks external dimensions and enlarges holes by that much, which is exactly the correction most machines want. Be conservative: this affects text, thin walls and every small feature on the plate, and an aggressive value will erase fine detail.
Hole compensation is a newer, better-targeted setting in OrcaSlicer and Bambu Studio that enlarges holes only, leaving external dimensions alone. If you have it, prefer it — it fixes the specific problem without collateral damage.
Dimensional compensation applied on top of bad flow calibration just hides one error behind another, and the moment you change filament both are wrong again. Get the extrusion multiplier right first, then compensate for what remains. The dimensional accuracy guide covers the order to do this in.
The test print that replaces guessing
All of the numbers above are averages across many printers. Yours has its own offset, and finding it takes one print.
Model a small bar with a row of pockets — say five of them, all sized for the same peg, with clearances of 0.1, 0.15, 0.2, 0.3 and 0.4 mm. Print it along with the peg. Try each pocket and note which one feels right for the job you have in mind. That is your number, for that material, on that machine.
To turn a clearance into the hole and peg sizes for your model, use the tolerance and fit calculator. The Box and Gridfinity generators let you set the lid and fit clearance directly.
Two things make this more useful than it sounds. First, it is reusable — keep the bar and you never have to guess again. Second, it teaches you what the numbers feel like, so "snug" stops being an abstraction. Most people find their comfortable clearance is 0.05 mm away from where they assumed it was, and one 20-minute print tells them which direction.
Re-run it when you change material family, and when you change nozzle diameter. Between those, the number holds.
Frequently asked questions
How much clearance should I leave between two 3D printed parts?
For a snug fit that holds by friction, about 0.15 to 0.2 mm total. For parts that slide freely, 0.3 to 0.4 mm. For a press fit you want to force together, 0 to 0.1 mm. These are total gaps, so if you split the allowance across both parts, each gets half.
Why is my 5 mm hole actually 4.8 mm?
Two reasons. The nozzle traces a polygon around the circle rather than a true arc, so the printed wall cuts inside the intended curve, and the extruded plastic bulges slightly inward as it cools. Both effects shrink the hole. Most slicers have a hole compensation setting to correct it.
Does layer height affect fit?
In Z, yes — vertical dimensions are quantised to whole layers, so a 2.05 mm feature at 0.2 mm layers becomes 2.0 or 2.2 mm. In XY the effect is indirect: thinner layers give slightly crisper corners and marginally less bulge. Where a vertical dimension is critical, make it a multiple of your layer height.
Should I add clearance to both parts or just one?
Just one is simpler and easier to reason about — usually the female part, enlarged by the full clearance. Splitting it across both works equally well, but doubles the number of places you have to remember the allowance.
Do I need to redesign if I change filament?
Sometimes. PLA and PETG behave differently enough that a fit tuned on one can be tight on the other, and ABS shrinks substantially more than either. If a fit is critical, test it in the material you will actually use.