Skip to content
3dprints.tools
Calibrate

Tolerance and shrinkage calculator

Work out the model dimensions you need for parts that fit: compensate for material shrinkage and add the right clearance between holes and shafts for press, slip or running fits.

Parameters
Part
mm
%
Fit
mm
Model this dimension Live
20.08mm
Shrink compensation
0.40%
Hole for this shaft
20.20 mm
Scale factor in slicer
100.40%

Why printed parts do not fit first time

A printed part rarely matches the CAD model exactly. Plastic shrinks as it cools, extrusion lines bulge a little past the model outline, holes come out small, and the first layers spread wider than the rest. When two parts have to fit together, those small errors decide whether a pin slides in, jams, or rattles. This calculator handles the two numbers you can control in the model: shrink compensation and fit clearance.

How the calculation works

To correct for shrinkage, scale the dimension up so it shrinks to the size you want:

model dimension = target / (1 − shrink % / 100)

For a hole that receives a shaft or pin, add a clearance based on the fit you need:

hole diameter = shaft diameter + clearance

Apply shrink compensation to the result if your material shrinks noticeably.

Typical clearances and shrinkage

Fit typeClearance (diameter)Use
Press fit0.0–0.1 mmBearings, pins that should stay put
Snug / slip fit0.15–0.25 mmParts that slide together by hand and hold position
Loose / running fit0.3–0.5 mmHinges, rotating parts, print-in-place joints
MaterialTypical shrinkage
PLA0.2–0.5%
PETG0.3–0.6%
ABS / ASA0.5–0.8%
Nylon1–2%

These are starting points. Your printer, slicer, flow setting and part geometry move the real numbers, so test before committing to a batch.

Worked example

You need a PLA block 20 mm wide with a hole for an 8 mm steel shaft that should slide in by hand. You use 0.3% shrinkage and 0.2 mm clearance.

  1. Outer dimension: 20 / (1 − 0.003) = 20.06 mm
  2. Hole before shrink: 8 + 0.2 = 8.2 mm
  3. Hole after compensation: 8.2 / 0.997 = 8.22 mm

With PLA the compensation is small, often smaller than your printer's own variation. With nylon at 1.5%, the same 20 mm part would need 20.30 mm, which matters.

Things that change the result

Horizontal and vertical holes

Holes printed vertically (axis pointing up) are made from polygon segments and slightly squeezed by the extrusion lines pressing inward, so they usually come out 0.1 to 0.3 mm undersized. Holes printed horizontally (axis lying flat) sag at the top where the layers bridge over, so they are both undersized and slightly oval. For horizontal holes, add extra clearance, or model a teardrop or flat top so the bridge does not droop into the hole.

Elephant foot

The first few layers get squished against the bed and spread outward. That widens the bottom edge of a part and narrows holes near the bed. Use the slicer's elephant foot compensation, often 0.1 to 0.2 mm, or add a small chamfer to the bottom edges of the model.

Flow rate and line width

Over-extrusion makes every outer surface bigger and every hole smaller. Calibrate flow before tuning fits, otherwise your clearances only work for one spool.

Test with a tolerance gauge

The fastest way to find your real clearances is a test print: a plate with holes at 0.05 or 0.1 mm steps and a matching peg, or a set of pins in slots. Print it in the same material, orientation and settings as the real part. Note which gap gives a press, slip and running fit, and use those numbers for future designs.

Common mistakes

  • Using one clearance for every orientation. Horizontal holes need more.
  • Scaling the whole model for shrinkage and also adding clearance by guess. Do one controlled change at a time.
  • Forgetting the slicer's own compensation settings. XY hole compensation and elephant foot settings stack with your model changes.
  • Testing in a different material. PLA results do not transfer to PETG or nylon.

Practical tips

  • Design critical holes slightly small and drill or ream them to size for precise fits.
  • Add a 0.5 mm chamfer at hole entrances so shafts start straight.
  • For press-fit bearings, start at 0.05 mm and test, as printed walls vary.
  • Keep a notes file of the fits that worked for each printer and material.

Frequently asked questions

What clearance should I use for parts that slide together?

Start around 0.2 mm on the diameter for a snug slip fit, within a range of about 0.15 to 0.25 mm. Use 0.3 to 0.5 mm for loose or rotating parts and 0.0 to 0.1 mm for press fits. These depend on your printer, material and orientation, so print a small tolerance gauge to confirm the numbers on your own machine.

Why do my holes always print too small?

Vertical holes are built from straight segments, and extrusion lines bulge slightly inward, both of which shrink the opening. Horizontal holes also sag where the top bridges across. Over-extrusion and elephant foot near the bed make it worse. Calibrate flow, use the slicer's hole compensation, and add clearance or a teardrop shape for horizontal holes.

Do I need to compensate for shrinkage with PLA?

Usually only for larger parts or precise fits. PLA typically shrinks about 0.2 to 0.5%, which on a 20 mm part is well under a tenth of a millimeter. On a 200 mm part it becomes 0.4 to 1 mm. Materials such as ABS, ASA and especially nylon shrink more and benefit more from compensation.

What is elephant foot and how do I fix it?

Elephant foot is the bulge at the bottom of a print where the first layers are pressed against the hot bed and spread outward. It makes the base wider and holes near the bed tighter. Fix it by checking your first layer height, lowering bed temperature slightly, using elephant foot compensation in the slicer, or adding a small chamfer to the model's bottom edges.

How do I make a tolerance test print?

Model a small plate with a row of holes in steps of 0.05 or 0.1 mm clearance around a known pin size, and print a matching pin. Or download a tolerance gauge and print it. Use the same material, orientation and slicer settings as your real part, then record which clearance gives a press, slip and running fit.

Related calculators

Calibrate
E-steps calculator
Calibrate
Flow rate calculator
Cost
Print cost calculator