kapy academy

Print-in-place clearances

12 min readUpdated Nov 2026

For a hinge, a captive pivot, a chain or a gearbox to come off the bed already articulated, with no assembly and no clean-up, the air gap between its facing surfaces has to stay open along its whole length: that gap is the bearing. The printer builds it in two ways. Between vertical faces, within the same layer, the limit is set by the bead and by heat; between horizontal faces, one above the other, by the layer grid and the bridge. Each case has its own number.

Clearance is counted per side, as in any fit (Real printed clearances), and gaps close for the same reasons a hole shrinks (Why holes print small). Everything below is FDM. In resin the problem is different: uncured resin trapped in the gap, which has to be washed out before curing (Designing for resin).

A ring printed round a post, in 3D and cut through the axis: a 0.3 mm gap per face keeps it off the post, two 45° cones trap it and a chamfer at the bed opens the gap at the bottom
A pivot printed in place: the ring is born trapped on the post, separated from it only by the 0.3 mm gap per face, which is its bearing. Fresh off the bed it is freed in short steps and then turns. The faces that trap it are 45° cones, so nothing prints as a bridge, and the two faces born on the bed carry a 0.5 × 45° chamfer so the elephant's foot cannot weld them.

Vertical faces: more clearance than a sliding fit

Between two parts printed separately, a sliding fit needs about 0.20 mm per side on a modern bedslinger and 0.15 on an enclosed CoreXY. A mechanism printed in place needs more: 0.3 mm per side on a modern machine (0.25 to 0.4), and 0.4 to 0.5 mm on a legacy bedslinger. There are three reasons for the difference.

The first is heat. Both faces are printed in the same layer, a few tenths of a millimeter apart, so they are hot at the same time. Whatever heat the fan does not carry away softens the opposite wall, and a single welded spot anywhere along the run is enough to lock the joint. A fit between loose parts only has to be right on average; a print-in-place gap has to be open at every point.

The other two are more mundane. On every travel move that crosses the gap, the nozzle can ooze or leave a string, and that plastic falls inside. And there is no second chance: you cannot ream, sand or trim a gap you cannot reach, or swap a part for a looser one.

The 0.3 mm is per side, not the sum of both. A pin inside a knuckle has 0.3 on each side, so the hole measures the pin diameter plus 0.6 mm. Nor does half a bead spill into the gap: every slicer already offsets the toolpath by half a line width into the material, away from the gap. What closes the gap is the bulge on tight curves, over-extrusion and heat. An enclosed CoreXY sits in the modern range; go down to 0.25 mm only if a coupon proves your machine leaves it open.

Gap per side for print-in-place parts (a starting point; confirm it with a coupon)
Case Gap per side Why
PLA, modern bedslinger or enclosed CoreXY 0.3 mm (0.25–0.4) the most forgiving case
PLA, legacy bedslinger 0.4–0.5 mm more XY error, less cooling
PETG 0.35–0.4 mm strings and welds to itself
ABS / ASA 0.35–0.4 mm little fan inside an enclosure: worse bridges, hotter gaps
TPU rarely works better printed separately; see Designing flexible parts
Sliding fit between loose parts (reference) 0.20 mm (0.15 on enclosed CoreXY) see Real printed clearances

Horizontal faces: the layer grid rules

A gap between a floor and the face above it can only measure a whole number of layers. Model 0.3 mm with 0.20 mm layers and the slicer gives you 0.2 or 0.4 depending on where the grid falls, and the grid starts at the first layer (Layer height and line width).

On top of that, the face above is printed over air: it is a bridge, and it sags. On the short spans of a joint, a few millimeters, the sag is around 0.1 mm; on a 6 to 10 mm ceiling, like the top of a horizontal hole, it reaches 0.3. A single layer of air is not enough, because the sag fills it.

Rule: the Z gap is at least one layer plus 0.2 mm of air, in multiples of the layer height. With 0.20 mm layers that is 0.4 mm, two layers. With 0.12 mm layers it comes to 0.12 + 0.2 = 0.32 mm, which you round up to the next multiple: 0.36 mm, three layers. If the ceiling is longer than a few millimeters, add another layer. Then scrub through the slicer preview and check that those air layers exist.

Better still, avoid flat, horizontal bearing faces altogether. Turn them into 45° cones or chamfers, which print as self-supporting overhangs rather than bridges (Designing out supports). A 0.3 mm gap measured normal to a 45° face is 0.3 × √2 ≈ 0.42 mm vertically, about two layers at 0.20, with no bridge at all. That is why print-in-place hinges use conical pins in conical sockets.

c = 0.3 mmlayervertical facesh + 0.2 mmsag 0.1–0.3horizontal facescc·√2 ≈ 0.4245° cone
The same gap in three cases: between vertical faces it is measured in XY, between flat faces it rounds to layers and the bridge sags, and on a 45° cone there is no bridge

Short bridges and no support inside

When you cannot avoid a flat ceiling over the gap, keep its span short and let the slicer bridge it: up to 20 mm comes out clean on a modern machine, up to 10 mm on a legacy one. A bridge prints slower than the walls, with the fan at 100 % for PLA and a bridge flow ratio close to 1.0. By late 2026, stock slicer profiles already ship this way; leave them alone unless the preview or the part shows sag (Overhang and bridge settings).

Cooling also decides whether the gap survives. On a small part each layer lasts seconds: the next one arrives before the previous one has cooled, and the gap never gets the chance to cool. Minimum layer time and the fan matter more here than on almost any other part (Speed and cooling). If you print several copies at once, each layer takes longer and each gap has more time to cool.

Support inside the gap fails either way: if it touches both parts, it welds them; if it does not, it leaves debris you cannot reach. Turn supports off, or restrict them to build-plate only and block the joint area with a support blocker. Then step through the preview layer by layer across the gap: no toolpath should appear inside it (Support settings).

What usually closes the gap, and how to avoid it

If the ceiling sags and welds to the part below at one spot, fix it in the design: a cone, a shorter span or one more layer of Z gap. Never with supports.

Against stringing and oozing on travel moves, turn on "Avoid crossing walls" in OrcaSlicer and Bambu Studio ("Avoid crossing perimeters" in PrusaSlicer), calibrate retraction and print with dry filament. Wet PETG strings far more.

The seam closes the joint too: the small blob where each perimeter starts and ends sticks out right into the gap and is one of the most common causes of a stiff joint. Move it off the rubbing faces by painting it or setting it to the back, or use a scarf seam; the criteria are in Where the seam goes. Turn fuzzy skin off on those faces too.

Slicer XY compensations count as well. If you have touched hole or contour XY compensation, that correction changes the gap you modeled. Leave it at zero, or print the coupon with the same value as the part.

One more option remains: two materials that do not bond. PLA and PETG do not stick to each other. If your printer is multi-material, printing the moving part in one and the fixed part in the other greatly reduces the risk of welding. It is a starting point, not a number: the coupon still decides.

The first layer welds what moves

Elephant's foot spreads the first layer, and sometimes the second, sideways. Two facing surfaces that both start on the bed lose almost all of their gap at the bottom, right where the joint begins. The slicer's elephant's foot compensation (0.075 to 0.2 mm by default, depending on the machine) helps, but it does not reliably open a 0.3 mm gap.

The fix is a 0.5 mm × 45° chamfer on the bed edge of both facing surfaces, with the slicer compensation left at its default: the two stack. The alternative is to design so that only one of the two bodies touches the bed and the moving part starts over a Z gap. The face on the bed explains how to draw that profile.

weldelephant's footcno chamferchamfer 0.5 × 45°bedcwith chamfer
The elephant's foot of both faces meets in the first layer and welds the joint; with a 0.5 × 45° chamfer on each face, the spread stays inside the chamfer and the gap stays open

Over-extrusion closes every gap in the part at once: before blaming the gap, calibrate flow and first-layer squish (What to calibrate, and in what order).

Before printing: check the gap in the file

The bodies have to reach the slicer as separate bodies. If they touch or overlap, the slicer merges them into one. On top of that, OrcaSlicer, Bambu Studio and PrusaSlicer close slits narrower than 0.1 mm when slicing: the gap closing radius defaults to 0.049 mm and fills anything under twice that. A 0.3 mm gap survives; one the model left at zero somewhere does not. Export all the bodies together in a single 3MF (STL, 3MF or STEP for the slicer).

Freeing the mechanism the first time

Almost every print-in-place part comes out stiff: a string across the gap, a spot welded in the first layer, a sagging bridge that rubs. That is normal, not yet a failure.

Let it cool completely, on the bed or off it. Warm PLA deforms and tears instead of breaking the weld. Then work it in short steps in both directions and widen the travel as you go: turn a pin a few degrees each way before you try a full turn. If the weld is local, run a thin blade or a feeler gauge through the gap.

Design for that moment. Give the moving part a grip to apply torque (a slot, a hex, a lever), so you are not twisting a fine detail. A pin printed upright snaps along a layer line, its weakest plane, if you force it in bending or torsion (Layer adhesion and anisotropy).

Once it is free, a dry PTFE or silicone lubricant smooths the first turns, but it will not free a welded joint.

If printing in place does not give you the stiffness or precision you need, print the parts separately with a pin or a metal shaft (Choosing the fit: clearance, transition, interference), or replace the pivot with a flexure (Living hinges and flexures).

When it fails

Symptom, cause and fix
Symptom Cause Fix
The joint comes out welded along its whole height Gap too tight for the machine or the material Open the gap 0.05 mm per side and confirm it with the coupon
Welded only at the bottom, in the first layer Elephant's foot on both faces 0.5 × 45° chamfer on both faces and default compensation
The ceiling rubs or welds at one spot Bridge sagging over a one-layer gap One more layer in Z, a shorter span or a 45° cone
A tight spot that comes back every turn Seam inside the joint Move the seam off the rubbing faces
Strings across the gap Ooze on travel moves or damp filament Avoid crossing walls, calibrated retraction, dry filament
The slicer merges the two bodies Bodies that touch somewhere Export separate bodies in one 3MF with the gap open all the way round

How to test it

Before the final part, print a small coupon: the same joint at 0.20 / 0.25 / 0.30 / 0.35 / 0.40 mm per side, in the orientation and material of the real part, with the Z gaps in multiples of the layer height. The smallest one that frees by hand is your number. Add 0.05 mm if the part has long gaps or many joints, because every centimeter of gap is another chance to weld. Test coupons explains how to design it, and Real printed clearances when to repeat it.

See also

Design it in KapyCAD

Draw the part with these clearances and walls, and change any dimension later without redrawing it.

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

Open the editor

Still have a question?