kapy academy

Dimensional calibration

19 min readUpdated Nov 2026

A 100 mm box comes out of PLA at 99.6 mm. You scale the model to 100.4 % and it fits, but in ABS it comes out short again, the 3 mm holes are still tight and the lid, which used to slide, now rubs: the 100.4 % scaled the clearance as well. Three errors, fixed with one setting, the wrong one. There are three corrections, each in its own place: scale in the filament profile or the firmware, squareness in the frame and offset in the process profile. Whatever depends on each fit stays in the design.

Before you measure

In the sequence from What to calibrate, and in what order, this calibration belongs to the part stage: it comes after the machine and the filament, and before the design coupons. Four things must already be right, because if any one of them is off, the measurement is skewed:

  • The flow ratio. Over-extrusion fattens the walls: that is pure offset, and it corrupts every step that follows (Flow ratio and max flow tests).
  • The first layer and the Z offset. A squashed first layer widens the base and makes the part short in Z (Bed probing and Z offset).
  • Belts tensioned and input shaping calibrated. A slack belt gives backlash, oval holes and a skew that changes from one print to the next (Rails, belts and motors).
  • Dry filament. Wet filament extrudes unevenly and fattens the walls.

Know your machine's error band: how far a printer of your class drifts and scatters is in Accuracy, precision and repeatability; use your measured figure if you have one. An error inside that band is noise, and chasing it writes the noise into your profile.

Start from zero. Set shrinkage to its neutral value (100 % in Orca, Bambu Studio and Cura; 0 % in PrusaSlicer) and contour and hole compensation to 0. Leave elephant's foot compensation at the slicer's default: 0.2 mm on the Prusa MK4S, 0.15 mm on the Bambu X1C, 0.075 mm on the Bambu A1. A compensation that is already active hides exactly what you are about to measure, and you end up stacking a second correction on top of the first.

Print the test with your usual process profile: same walls, same outer-wall speed and acceleration, same line width and the same precise-wall option ("Precise wall" in Orca and Bambu Studio), which changes the gap between the outer and inner walls, and with it the outside dimension. Place it in the center of the plate and use the material you are calibrating. If you print the test slowly and your parts fast, you are measuring a different machine.

A test print that separates the errors

A 20 mm cube is no use. Over 20 mm, 0.3 % shrinkage is 0.06 mm, the same as the seam bump or the repeatability of hobby callipers, and the one measurement it gives you mixes scale, offset and elephant's foot. You need two lengths per axis and one internal dimension.

short Xshort Youter faceslotholesdiagonal BDdiagonal ACABCDlong X(side AD)long Ylengths → scalediagonals → skewoutside − inside → offsetXY
One frame gives all three answers: the lengths give the scale, the diagonals give the skew, and the outer face against the slot gives the offset.

The print needs:

  • An open square frame, as large as your callipers allow. The diagonals must fit between the jaws: with the 150 mm callipers almost everyone owns, the side cannot exceed about 100–105 mm (a 141 mm diagonal). With 300 mm callipers it goes up to 150–200 mm (diagonals of 212 and 283 mm). The longer the side, the smaller the scale and skew you can detect.
  • Corners marked A, B, C and D, so you always measure the same diagonals.
  • A short run of about 20 mm in X and another in Y.
  • A slot or square hole of known width next to an outer face of the same nominal width.
  • Optional: a row of round holes at 3, 5, 8 and 10 mm for the round-hole test.

Walls 2–3 perimeters thick and 5–10 mm tall: it prints quickly and, in PLA and PETG, it does not warp. In ABS, ASA, PA or PP a long, thin-walled frame bows and lifts at the corners, which skews lengths and diagonals at once: print it enclosed, with gussets in the corners and a brim, and only measure it if it still sits flat on the table. MakerWorld and Printables have ready-made frames of this kind; any with long sides, diagonals and a matched pair of outside and inside dimensions will do.

Measure both runs on each axis from outer face to outer face: measure one from the inside and the offset changes sign, and the sum in step 1 breaks. Take the diagonals between the marks or between the sharp edges of the corners, never across a rounded corner or one with a seam. Measure the same way every time, with the same instrument, at the same point and at the same moment (Iterate and measure): cold, away from the seam, averaging three readings, and small holes with drill shanks, never with the inside jaws of the callipers. Write down two numbers per axis: the error on the short run and the error on the long one.

Step 1: scale

On an outside dimension of nominal length L, the error is s·L + 2δ, where s is the scale and δ the offset per side. With two lengths, s = (e_long − e_short) / (L_long − L_short), and the rest is offset. The full model is in Parts that print the wrong size.

An example in PLA with a 150 mm frame (its diagonals need 300 mm callipers): the 20 mm run measures 20.06 mm and the 150 mm run 149.60 mm. The scale is s = (−0.40 − 0.06) / 130 ≈ −0.35 %, within the normal range for PLA. At 20 mm that scale predicts −0.07 mm, but you measure +0.06: the offset is 2δ ≈ +0.13 mm, about 0.065 mm per side, which step 3 corrects. The value you enter is 99.65 % in Orca and Bambu Studio, 0.35 % in PrusaSlicer and 100.35 % in Cura.

Material or machine?

Before you work out the number, decide where it goes.

  • The same scale in X and Y, which changes when you print the frame in another material: that is shrinkage. It goes in the filament profile.
  • The same error in every material, and outside the normal range of at least one: that is the steps, or a pulley with a different tooth count. It goes in the firmware or the mechanics.
  • X and Y differing in PLA or PETG, by more than two copies differ: that is the pulley or the steps of that axis.

PLA and PETG giving the same scale proves nothing: their ranges overlap.

Fiber-filled materials are the exception: they shrink little along the bead (0.2–0.5 %) and more across it, so X and Y can genuinely differ depending on how the walls and infill are oriented. Calibrate them with the frame oriented like the real part (Carbon and glass fiber filaments).

Steps per millimeter are checked, not tuned

The formula is steps per revolution × microsteps / (belt pitch × pulley teeth). With a GT2 belt, a 20-tooth pulley, a 1.8° motor and 1/16 microstepping: 200 × 16 / (2 × 20) = 80 steps/mm. On a stock belt-driven machine they are almost never wrong; suspect them only if you have changed a pulley, a motor or the firmware, or if the machine is a kit. Never tune steps from a printed part: you would write PLA's shrinkage into the firmware, and every other material would come out wrong.

Shrinkage, in the filament profile

Each slicer asks for the figure in a different convention:

Where shrinkage goes in each slicer
Slicer Field What you enter PLA from the example
OrcaSlicer "Shrinkage (XY)", "Shrinkage (Z)" Measured size as a % of nominal 99.65 %
Bambu Studio "Shrinkage" (XY only) Measured size as a % of nominal 99.65 %
PrusaSlicer "Shrinkage compensation XY / Z" (Filament Settings → Advanced) The shrinkage 0.35 %
Cura "Scaling Factor Shrinkage Compensation" The scale factor 100.35 %

Enter 99.65 in Cura and you double the error. Read the field's help text in your version before you fill it in.

Compare the result with the usual range, roughly 0.2–0.5 % for PLA, 0.3–0.5 % for PETG, 0.4–0.7 % for ASA, 0.5–0.8 % for ABS and PC, 0.5–1 % for TPU, 1–2 % for unfilled nylon, 1.5–2.5 % for PP and 0.2–0.5 % along the bead for fiber composites. The exact figure varies with the brand and with the size of the part (Shrinkage and dimensional stability). A result far outside its range points to a measuring error or a steps or pulley problem, not an odd spool. With ABS and ASA, print and measure with the door or chamber set as it will be for the real parts, because shrinkage changes with chamber temperature. With PA, measure in the same moisture state the part will work in: it absorbs water after printing and grows for days.

Factory profiles are a starting point, not a measurement: a user on the Prusa forum found a PC Blend profile shipping with 0.18 % and measured nearly four times that on their spools. Measure with two spools before you trust the number, and save it in a profile with its own name.

In Z, unfilled materials shrink little. If it matters to you, add a tower to the frame, measure two heights in the same print, say 10 and 50 mm, and work from the difference, not from a single height: a squashed first layer shortens the whole part by a fixed amount (up to 0.1 mm) that is not shrinkage. Design those heights as multiples of the layer height (10.0 and 50.0 mm at 0.20), or the slicer's rounding gets mistaken for shrinkage. Correct only if the error is clearly larger than one layer height.

Do not scale the model on the plate to correct shrinkage. You scale the clearances you designed as well, and the correction is not saved with the material. Annealed parts are a different case: their dimensional change is much larger and anisotropic, shrinking in XY and growing in Z (Annealing and strengthening).

Step 2: squareness

If X and Y are not at 90°, the frame comes out as a rhombus with all four sides correct. Only the diagonals give it away, and since shrinkage scales both equally, the reading does not depend on having corrected the scale first. For small skews, the angle is θ ≈ (AC − BD) / (√2 · side). With a 100 mm square and diagonals of 141.6 and 141.2 mm, θ ≈ 0.0028 rad, about 0.16°: the far corner of a 100 mm part moves 0.28 mm.

To decide whether to correct it, work out that displacement for the largest precision part you print and compare it with your machine's band. If it is smaller, leave it. Measure on two prints: a skew that changes from one to the other is a slipping belt or a loose pulley set screw, not something to calibrate (Bed and motion upkeep).

Fix the mechanics first. Software only bends the toolpath to compensate for a skewed frame, and the frame stays skewed. On a bedslinger the usual cause is a gantry out of square with the frame or with the Y rail. On a CoreXY it is usually two belts at different tensions, or one that has jumped a tooth: even out the tension and measure again (Rails, belts and motors). After tensioning, repeat the input shaping calibration, because tension changes the resonances (Acceleration, resonance and input shaping).

If a large skew remains, correct it in the firmware, if yours allows it (Firmware: Marlin, Klipper and closed systems). In Klipper:

  1. Add [skew_correction] to printer.cfg.
  2. Print the frame with the correction cleared (SET_SKEW CLEAR=1) and measure AC, BD and AD.
  3. Enter the measurements with SET_SKEW XY=<AC>,<BD>,<AD> and save them with SKEW_PROFILE SAVE=<name> and SAVE_CONFIG.
  4. Load the profile in the start G-code, after homing and after any purge or wipe near the edge, and put SET_SKEW CLEAR=1 in the end G-code.
  5. Reprint and check with CALC_MEASURED_SKEW AC=<ac> BD=<bd> AD=<ad>: the result must come out smaller than GET_CURRENT_SKEW.

The correction shifts moves and can push them past the axis limits: do not place parts tight against the edge of the plate. The XZ and YZ planes are corrected the same way with a tall object, but that is rarely needed. In Marlin, compile with SKEW_CORRECTION and write the measurements into XY_DIAG_AC, XY_DIAG_BD and XY_SIDE_AD in Configuration.h; if you also compile SKEW_CORRECTION_GCODE, M852 I<factor> adjusts the factor without recompiling.

As of late 2026, current Bambu machines and Prusa machines on Buddy firmware (MK4S, CORE One) do not let the user correct XY skew. On those the fix is mechanical; on a Bambu, tension the belts as the manufacturer's wiki describes. There are post-processing scripts that warp the G-code, but the manufacturer does not support them.

Step 3: offset, contours and holes

This step comes last, with scale and flow already corrected. Offset is a fixed number of millimeters; set it before the scale and it stops adding up as soon as the scale changes.

Measure the outer face and the slot of the same nominal width. Outside is w + s·w + 2δ and inside is w + s·w − 2δ: the difference is 4δ and the scale cancels out. In the earlier example, with a 10 mm face measuring 10.10 and a 10 mm slot measuring 9.84, 4δ = 0.26 and δ ≈ 0.065 mm per side, the same value step 1 gave.

The compensation goes in the process profile:

  • OrcaSlicer and Bambu Studio: "X-Y contour compensation" and "X-Y hole compensation", under Quality → Precision. They work per side (per radius): halve the diameter error. A positive value enlarges the feature, so walls that grow 0.065 mm per side need −0.065 on contours and +0.065 on holes.
  • Cura: "Horizontal Expansion" shifts every contour, so a value of −δ narrows the outside and at the same time opens the holes by δ. "Hole Horizontal Expansion" adds on top: use it only for whatever the holes still need.
  • PrusaSlicer: it only has "XY Size Compensation", in mm, which moves contours and holes in opposite directions. A negative value corrects a pure offset exactly.

Among its handy models (right-click → Add Handy Model) OrcaSlicer includes the Orca Tolerance Test: six hexagonal holes with clearances from 0 to 0.4 mm that you try with a 6 mm Allen key or its printed hexagon. It is a good check on the result of this step. If you get a large offset, more than about 0.1 mm per side, go back to flow: the compensation only corrects what is left over.

Round holes

Print the 3, 5, 8 and 10 mm holes and measure them with shanks or gauge pins. On a calibrated machine, small round holes come out 0.1 to 0.3 mm undersize in diameter for three reasons: the exported file approximates the circle with a polygon, on a tight curve the bead squashes toward the center, and the ring shrinks as it cools. The bead does not eat half a line width into the hole: the slicer already offsets the toolpath half a line width into the material, so the edge of the bead lands on the modeled edge.

Use hole compensation for what is common to every size. If the error grows as the diameter shrinks, no single value fixes it: that part is design (exporting at higher resolution or as STEP, polygonal holes or polyholes, modeling the hole larger). Why holes print small explains it.

Elephant's foot

Leave elephant's foot compensation at its default and put a 0.5 mm × 45° chamfer on the edges that touch the plate: the two remedies stack. If the first layer really is squashed, that is Z offset, not compensation (The first layer and bed adhesion). Do not push the compensation far above its default: it shrinks the footprint on the plate.

Slicer or design

Anything systematic for this machine and this material, and equally true of every part, goes in the firmware or the profiles: you correct it once and it applies to everything you slice. Anything that depends on a feature's size or shape, its orientation or the fit you want goes in the design: it travels with the part and comes out the same whoever slices it.

diagram
The calibration order, and the question that decides at each step where the correction goes.
Where each error is corrected
Error Where Why there
Scale from wrong steps per mm Firmware A hardware constant, the same for every material
Shrinkage Filament profile, one per brand and material Changes with the material
XY skew Mechanics; then firmware It is the geometry of the frame
Offset Flow first; the remainder, contour compensation in the process profile Depends on flow and line width
Holes small by the same amount at every size Hole compensation in the process profile or a design constant, never both Systematic, but compensated in one place only
Loss that grows as the hole shrinks, horizontal holes, base edges Design: polyholes, teardrop, chamfer Depends on the feature's shape
Sliding, press or friction fit Design: clearance A decision for each fit

Compensate holes in one place, the model or the slicer, never both. Do not chase every fit in the slicer. One profile serves many fits, and a press fit and a sliding fit on the same part need different clearances: that is decided in the design (Choosing the fit: clearance, transition, interference, Real printed clearances).

Check, save and repeat

Check each change by reprinting the same frame, in the same orientation and the same material. Change one thing at a time, in this order: scale, squareness, offset. Print two copies: if they differ from each other by more than the correction you are about to apply, what you are seeing is repeatability, not calibration (Accuracy, precision and repeatability). Stop when everything falls within your machine's band.

Save shrinkage in the filament profile (one per brand and material), compensations in the process profile, and steps and skew in the printer or the firmware. Name them. If a value is stored in two places, the last one to reach the machine wins (Printer, filament and process profiles).

Repeat when what you measured changes:

  • A new brand or material: shrinkage.
  • Belts retensioned, printer moved or rebuilt, pulley or motor replaced: squareness and the steps sum.
  • A different nozzle diameter or line width: offset and hole compensation.
  • Parts that used to fit start to rub: flow and drying first, then the frame (When your numbers drift).

When it fails

Symptom, cause and fix
Symptom Cause Fix
The correction doubles the error Wrong convention for that slicer field Read the field's help: measured size, shrinkage or factor
In PLA, the X and Y scales differ by more than two copies do Steps or pulley, not shrinkage Count the pulley teeth and verify the steps with the sum
The skew changes on every print Slipping belt or loose pulley Mechanics before firmware
One hole size fits and the others do not Size-dependent loss Design, not compensation
Hole compensation on, and KapyCAD holes still tight or now loose Compensation applied twice One place: constant or slicer

See also

Design it in KapyCAD

Design parts sized for your printer and your nozzle.

Free plan, no card. Runs in your browser, nothing to install.

Open the editor

Still have a question?