Print-in-place hinges that actually move: clearance, orientation, test print
How much gap a print-in-place hinge needs, why Z gaps differ from XY gaps, which way to lay the pin, how to free a stiff hinge, and a short clearance test.
- Start at 0.3 mm gap per side between pin and knuckle. Sources and tests land between 0.2 and 0.5 mm depending on printer and material.
- Gaps in XY can be any size. Gaps in Z come in whole layers, so at 0.2 mm layers a gap is 0.2 or 0.4 mm, never 0.3.
- The first layer is where hinges fuse. Chamfer the bottom edges of the moving parts and keep brim away from them.
- Print a small coupon with four gaps first, in the same material, layer height and orientation as the real part.
A print-in-place hinge comes off the bed already assembled: the pin is inside the knuckle, separated by a thin gap the printer never fills. If the gap survives, the hinge swings. If plastic bridges it anywhere, you get a solid block. This lesson covers how wide that gap should be, where it tends to close, and how to find the right value for your printer in one short test print.
Numbers assume FDM with a 0.4 mm nozzle and 0.2 mm layers. The fit basics are in Print to the right size.
How much gap: what the sources say
There is no single number, and the sources say so:
| Source | Gap per side | Notes |
|---|---|---|
| Prusa Knowledge Base | at least 0.3 mm | “initial good measurement” for movable parts |
| MIT class test, PLA on a Prusa MK4 | 0.1 fails, 0.2 barely moves, 0.3 works | the student used 0.4 mm to be safe |
| A printer maker’s print-in-place guide, PLA | 0.2–0.3 mm standard, 0.3–0.4 mm loose | PETG about 0.05–0.1 mm more |
So: start at 0.3 mm per side, expect the right value somewhere between 0.2 and 0.5 mm, and measure it on your machine. A well-tuned printer with dry filament can go tighter; a printer that over-extrudes slightly needs more.
Over-extrusion is the number one hinge killer. If your flow is a few percent high, every gap shrinks by the same amount. Tune flow before tuning gaps.
Gaps in XY and gaps in Z are different
The nozzle draws XY outlines at any position, so a 0.3 mm gap in the XY plane prints as about 0.3 mm (minus the usual hole shrinkage).
In Z, the printer can only stop and start at layer boundaries. With 0.2 mm layers, a modelled gap of 0.3 mm becomes 0.2 or 0.4 mm, depending on how the slicer rounds it. Worse, the surface above a Z gap prints in mid-air, so it sags into the gap like a short bridge.
- Make Z gaps two full layers (0.4 mm at 0.2 mm layers) as a starting point.
- Prefer designs where the gaps that matter lie in XY.
- Avoid flat horizontal surfaces facing each other across a gap. Slope them at 45° (a cone or a chamfer) so each layer sits partly on the one below.
Which way to lay the pin
Axis lying flat (parallel to the bed). This is the usual box-lid hinge. The knuckles stand side by side along X, so the gaps between knuckles are XY gaps and print accurately. The round gap around the pin, though, is a horizontal hole: its top is an overhang that droops onto the pin. Fix: give the knuckle bore a teardrop or 45° pointed top and the pin a matching shape, so nothing overhangs more than 45°.
Axis standing up (along Z). Circles in XY print round, so the pin and bore are accurate; one maker’s guide prefers vertical pins for that reason. The catch: the knuckles are now stacked, so the gaps between them are Z gaps. Use 45° cone ends on the pin and knuckles instead of flat faces, and give each axial gap two layers.
For a box with a lid, the flat axis is usually simpler because the whole box prints open-side up. Holes and overhangs without supports are covered in Design for no supports.
The first layer: where hinges fuse
The first layer is squashed onto the bed and spreads out (elephant foot). If a pin and knuckle both touch the bed, that spread can join them.
- Chamfer the bottom edges of the moving parts by 0.5–1.0 mm at 45° so the first layer of each piece is well apart.
- Set elephant foot compensation in the slicer (about 0.1–0.2 mm is a typical start).
- Keep brim and skirt away from the moving parts, and do not let them run into the gap.
Worked example: a 30 mm lid hinge
A lid hinge, axis lying flat, total length 30 mm, 5 knuckles (3 on the box, 2 on the lid), PLA.
- Pin diameter: 5 mm. Hubs warns that printed pins under about 5 mm tend to be weak, and this one is printed lying down.
- Bore: pin + 2 × 0.3 mm gap = 5 + 0.6 = 5.6 mm, with a 45° pointed top.
- Knuckle wall: three perimeters, about 1.35 mm with a 0.4 mm nozzle (Prusa’s table). Knuckle outside diameter = 5.6 + 2 × 1.35 = 8.3 mm, round to 8.5 mm.
- Gaps between knuckles: these run along X, so they are XY gaps. Use 0.3 mm. Four gaps = 1.2 mm.
- Knuckle width: (30 − 1.2) ÷ 5 = 5.76 mm each.
If the coupon (below) says your printer needs 0.4 mm, change one parameter and every number above updates, provided you modelled the gap as a variable.
The clearance coupon
Before the real part, print four small copies of the same hinge with gaps of 0.2, 0.3, 0.4 and 0.5 mm, each with the gap value embossed next to it.
- Use the same material, layer height and orientation as the real part. A coupon printed upright tells you nothing about a hinge printed flat.
- After printing, let it cool fully, then try each by hand.
- Use the smallest gap that frees with gentle hand pressure and swings without catching.
- Save that value as the gap parameter in your CAD file so every future hinge inherits it.
Four small hinges print in a fraction of the time of a full box that might fuse.
Write the winning gap on the spool profile notes. A new spool or a new material may shift it.
Breaking it free
- Let the part cool to room temperature. A warm hinge is still soft and may just bend.
- Flex the moving part a few degrees each way, then a little more, rather than one big swing.
- If it does not start moving, stop. A pin that snaps cannot be repaired. Reprint with 0.05–0.1 mm more gap.
Common mistakes
- Tuning gaps on an over-extruding printer. Fix flow first (tune a new filament).
- A 0.3 mm gap in Z. It becomes 0.2 or 0.4 depending on the slicer. Model Z gaps as whole layers.
- Round bore on a horizontal pin. The top sags and grabs the pin.
- Brim touching the hinge. It glues both parts together at the base.
- A broken mesh. One MIT test hinge failed because the slicer filled a hole in a non-manifold model. Check the slicer preview layer by layer at the gap.
- Forcing a fused hinge. It breaks at the pin, not at the fused spot.
Sources
FAQ
My hinge came off the bed fused solid. Is it scrap?
Let it cool fully, then flex it gently back and forth in small steps. If it does not start to move, stop; forcing it usually snaps the pin. Reprint with 0.05–0.1 mm more gap, or check for over-extrusion first.
Do PETG hinges need more gap than PLA?
Usually a little. One printer maker's guide suggests adding about 0.05–0.1 mm per side for PETG compared with PLA. Your coupon will tell you for sure.
Can I use the gap from my fit tests?
As a starting point, yes. A print-in-place gap is printed with both parts at once, so it usually needs to be at the loose end of your fit results, about 0.3 mm or more.
Circuits and code were tested on sample boards. Boards differ in pin layout, so check your board's pinout before you power anything.