STL generator / Parts by size

How to choose clearance for a snug fit on a 3D printed part

Clearance is the gap you add on purpose between a printed part and the thing it fits. This page shows how to find the right number for your own printer, using a small test bin from the free model. The STL is generated by software from the values below.

Why a perfect model still fits badly

A printer lays down a bead of molten plastic that spreads a little. Outside surfaces therefore come out slightly large and holes come out slightly small, usually by 0.05 to 0.2 mm per surface, and more on the first layers, where the plastic is squashed against the bed. A 20.0 mm hole for a 20.0 mm pipe will not go on. Clearance pays for that error in advance.

Measure your own printer

Print the test bin on this page: 40 by 30 mm outside, 12 mm high, with 1.2 mm walls. Let it cool, then measure it with a caliper halfway up the wall, away from the first layers and away from the corners. Three readings tell you most of what you need. If the 40 mm side reads 40.15, your printer adds 0.15 mm to outside sizes in that material. If the inside reads 37.45 where 37.6 was asked for, openings lose 0.15 mm. If a wall reads 1.3 instead of 1.2, your extrusion is a little high and a flow calibration is worth doing before you adjust anything else. Repeat the test when you change material.

Starting values

Adjusting from the first print

Change the clearance in steps of 0.05 or 0.1 mm, one step at a time, and reprint only a short test piece: a clip 5 mm wide or a three-pocket strip takes minutes. Too tight means the part needs force, whitens or cracks; add clearance. Too loose means it rattles or slides under its own weight; remove some. Small features need relatively more clearance than large ones, and holes printed lying sideways are tighter at the top, where the layers bridge. Print the test bin floor down at a 0.2 mm layer height; it needs no supports.

Outline drawing

Top view of the 40 by 30 mm test bin, and a pin in a hole showing the clearance gap, dimensions in millimetres inside 37.6 x 27.6 wall 1.2 outside 40 30 pin hole = pin + clearance gap, half the clearance per side

Left: the test bin, top view, to scale. Right: schematic of a pin in a printed hole, gap exaggerated.

Parameters the generator will use

SettingLink parameterValue
Modelmodeldrawer_bin
Outer width (X)width40
Outer depth (Y)depth30
Outer height (Z)height12
Wall thicknesswall1.2
Floor thicknessfloor1.2
Compartments across (X)cols1
Compartments deep (Y)rows1
Divider thicknessdivider1.2

All lengths are in millimetres. Outer size from these values: 40 x 30 x 12 mm.

Open the generator with these values

This model is free. One $7 licence key opens five more models. Get a licence key on Gumroad ($7)

The test bin uses the fitted drawer organiser bin, which is the free model: no licence key and no account are needed to download the STL. The models the starting values refer to (pipe and cable clip, hex bit holder, screwdriver rack, 42 mm grid bin and drill guide jig) need a licence key.