3D Printing Generator
DeutschEnglish

Tolerance and clearance test to print

Why you need a tolerance test

Sooner or later every 3D printing project hits the same wall. You model a peg with a diameter of exactly 5 mm and a hole of exactly 5 mm, print both, and the peg does not go in. Or you print a hinge in one piece and the two halves are welded together. Neither is a mistake in your model. A printed part is never exactly as large as the drawing. The slicer lays down lines of plastic that are wider than planned, the nozzle presses the first layer flat, round holes become polygons, and different materials shrink by different amounts. How large the error is depends on your printer, nozzle, layer height, material and even the ambient temperature.

This generator builds a small test plate that measures exactly that for your setup. Each plate carries a row of numbered steps. The value of every step is engraved or raised right next to it, so after printing you only look for the first step that does what you need and read the number. That number is your clearance, and you carry it over into your next projects. The plate does not claim any universal tolerance, because there is none. It gives you your own.

Everything runs in your browser. The model is computed on your device, nothing is uploaded and you need no account. The whole design lives in the page link: “Share” copies it, so you can pick up exactly where you left off. Ready-made plates are collected in the examples, for instance the standard gap test or the hole test for 5 mm pegs.

The four tests

The first control, “Test”, chooses what the plate measures. All tests use the same steps: you choose how many (“Steps”, 3 to 12), where the first one starts (“First clearance”, 0.05 to 1 mm, default 0.1 mm) and how much each step adds (“Increase per step”, 0.01 to 0.25 mm, default 0.05 mm). With the defaults you get eight steps from 0.10 to 0.45 mm.

Gap

In the “Gap” test every step is a pair of square blocks standing on a thin base plate. The gap between the two blocks is the value written under them. The blocks stand as high as “Height” says (default 8 mm), so the gap is a deep, narrow slot. Narrow gaps often fuse because the walls of both blocks grow a little into the gap. Look for the first pair that you can see through down to the plate, or into which you can slide a thin card or a feeler gauge. That gap is the smallest slot your printer keeps open. It is the number to use for parts that sit side by side, such as the lid of a box, drawers, or two halves of a snap-fit housing.

“Block size” (3 to 25 mm, default 6 mm) sets the edge length of the blocks. Smaller blocks save material and time, larger ones are easier to hold when you test with a blade.

Hole fit

The “Hole fit” test is a plate with a row of holes. The first hole has the “Nominal diameter” plus twice the first clearance, and every next hole is larger by twice the step. The label under each hole shows the real diameter of the hole in millimeters, for example 5.2, 5.3, 5.4 and so on, which is exactly the number you would type into your CAD program. Next to the plate lies a loose test peg with the nominal diameter, if “Test peg” is on. Try the peg in the holes: the first hole it enters with a gentle push is the press fit, the first one where it slides without any resistance is the sliding fit. You can also bring your own part, such as a screw, a dowel, a steel rod or a bearing, and try it in the holes instead. The bearing seat test uses a nominal diameter of 22 mm for 608 bearings.

The nominal diameter ranges from 1.5 to 40 mm. Because the holes only grow, the first hole should be close to a snug fit. If every hole is too loose, lower the first clearance, and if none fits, raise it.

Loose pin (print-in-place clearance)

In the “Loose pin” test, every hole contains the pin that belongs to it. Pin and plate are printed together, in one go, with a gap around the pin. The step value is the gap per side. When the gap is too small, pin and plate fuse in the first layers and you have to break the pin free; when it is large enough, the pin turns freely and you can push it out with a finger. The first pin that moves freely is your print-in-place clearance, and it is the value to use for hinges, gears, chains, rotating joints and everything else you want to print assembled. A pin stands 1 mm higher than the plate, so you can grip it and push it out. Try this test with a 6 mm pin or the 10 mm axle for larger rotating parts.

Thin pins

The “Thin pins” test has nothing to do with clearance. It prints free-standing pins of growing diameter on a base plate, from “Thinnest pin” (default 0.8 mm) in steps of “Pin growth” (default 0.2 mm). Very thin columns wobble while being printed, are hard to cool and snap off easily. After printing, bend each pin gently and look at the surface. The thinnest pin that stands straight, has smooth walls and does not break under light pressure is the smallest column you can use for pegs, pins and fine details. The thin pin test shows eight pins from 0.8 to 2.2 mm.

Your printer: layer height, nozzle and the recommendation

The group “Your printer” asks for the “Layer height” (0.05 to 0.4 mm, default 0.2 mm) and the “Nozzle” (0.2 to 1.2 mm, default 0.4 mm). Both are used in two ways.

First, all heights are rounded to whole layers. The plate thickness and the height of blocks and pins become multiples of the layer height, so the tops of all features end exactly on a layer boundary and nothing is cut by a half layer. The size you see in the editor is the rounded size.

Second, the generator shows the clearance that is usual for your combination. The rule of thumb is 0.15 mm plus half the layer height, plus a quarter of the difference of the nozzle to 0.4 mm, rounded to 0.05 mm. For 0.2 mm layers on a 0.4 mm nozzle that gives 0.25 mm per side, for 0.12 mm layers 0.20 mm, and for 0.3 mm layers on a 0.6 mm nozzle 0.35 mm. If the recommendation lies outside the steps of your plate, a warning tells you to move the first clearance. This is only a starting point: your measured value counts, not the formula.

For the “Thin pins” test, the nozzle sets a limit: a pin thinner than twice the nozzle diameter is flagged because it cannot be filled with at least two perimeters.

Labels

“Labels” switches the numbers on and off. “Label style” chooses between “Engraved” and “Raised”. Engraved text is cut into the plate and is easy to read in raking light, raised text stands out of the plate and can be read by touch. “Text size” sets the height of the digits (2 to 8 mm, default 3 mm). Below 2.5 mm a 0.4 mm nozzle struggles, and the generator warns you. “Label depth” (0.2 to 1 mm, default 0.6 mm) is the depth of the engraving or the height of the raised text. The engraving never goes deeper than the plate allows, at least 0.8 mm of material stays under it.

The labels belong to the plate and share its color. They are not a separate part, so the plate prints in one color without filament changes. If you want a color accent, pause the print at the layer where the labels begin, or just paint the engraving afterwards.

Layout

“Edge margin” is the border around all steps and “Spacing” is the distance between neighboring steps, both between 2 and 10 mm. If the plate would be wider than the bed, the steps wrap into several rows automatically. The generator warns you when the plate still does not fit onto a typical 180 mm bed, for instance with very large nominal diameters or many steps.

Printing the plate

Print the plate lying flat on the bed, exactly as it comes out of the generator. It needs no supports: blocks, pins and holes are vertical walls, and the small text sits in the top layers. We sliced the standard gap test for a Prusa MINI with PrusaSlicer, 0.20 mm SPEED profile and Prusament PLA, 15 % infill. The plate measures 126.6 × 17 × 10.4 mm, takes about 36 minutes and needs 9.4 g of filament. With automatic supports switched on, the slicer adds none. The hole test for 5 mm pegs needs 3.4 g and 15 minutes, the loose pin test 5.1 g and 21 minutes, and the thin pin test 3.0 g and 13 minutes.

Some tips for meaningful results:

  • Use the filament, nozzle, layer height and temperature of your later parts. A test in PLA says little about PETG.
  • Remove the plate carefully from the bed. In the loose pin test the pins stand free in their holes and can fall out.
  • Measure after the plate has cooled down. Plastic shrinks slightly while it cools.
  • Print a second plate if you change material, nozzle or layer height. The values are valid only for the settings of the test.

Reading the result

Pick the step that behaves the way you want your parts to behave, and write the number on the plate. For a gap, take the first one that stays open. For a hole, take the first one in which your part slides, or the first press fit if you want a tight fit. For a print-in-place joint, take the first pin that turns freely, and add 0.05 mm for safety if you print the real part in a different orientation.

If the first step already works, your printer is more accurate than the plate expects. Create a new plate that starts lower, for example at 0.05 mm. If no step works, raise the first clearance. Because steps are cheap, a second plate with a finer step is often worth the 15 minutes.

Credits and licenses

The generator is our own design. The idea of a labeled plate with graded gaps comes from the Printables model Tolerance test by Jack, and the idea of a clearance test with small-diameter pins from Clearance test pip small diameter by Jack. Both are published under CC0 1.0. We took the ideas only; geometry, dimensions and code are our own, and the labels use the built-in Liberation Sans font. See licenses for details.

When you know your values, put them to use in other generators, for example the screw hole test for screws and nuts. Open the tolerance test generator and print your first plate, or browse the examples.

All parameters

The numeric settings of the generator with their default values and allowed ranges. Text, fonts, patterns and colors are set directly in the generator.

ParameterDefaultRangeMeaning
Steps
Steps83 – 12How many variants the plate has.
First clearance0.1 mm0.05 – 1 mmGap or clearance per side of the first step.
Increase per step0.05 mm0.01 – 0.25 mmHow much the clearance grows from one step to the next.
Shape
Nominal diameter5 mm1.5 – 40 mmDiameter of the part that has to fit: peg, axle, rod or bearing seat.
Block size6 mm3 – 25 mmEdge length of the square blocks on both sides of each gap.
Height8 mm2 – 30 mmHeight of the blocks or pins above the base plate.
Thinnest pin0.8 mm0.4 – 5 mmDiameter of the first pin.
Pin growth0.2 mm0.1 – 1 mmHow much thicker each next pin is.
Plate thickness2.4 mm1.6 – 8 mmRounded to whole layers. Ideally as thick as the parts you need the values for.
Your printer
Layer height0.2 mm0.05 – 0.4 mmYour slicer setting. Heights are rounded to whole layers and the recommendation scales with it.
Nozzle0.4 mm0.2 – 1.2 mmNozzle diameter. Thin pins below twice this value print poorly.
Layout
Edge margin3 mm2 – 10 mmPlain border around the steps.
Spacing3 mm2 – 10 mmDistance between neighboring steps.
Labels
Text size3 mm2 – 8 mmHeight of the digits. Below 2.5 mm a 0.4 mm nozzle struggles.
Label depth0.6 mm0.2 – 1 mmHow deep the engraving is cut, or how high the raised text stands.

Frequently asked questions

How much clearance does a print-in-place part need?

On a 0.4 mm nozzle with 0.2 mm layers most printers need 0.2 to 0.3 mm per side for parts that must move. Finer layers allow less, thicker layers and larger nozzles need more. The loose pin test shows your exact value.

Why is the gap between my blocks closed although I designed 0.2 mm?

The slicer widens every line a little and the nozzle cannot place plastic exactly. Walls on both sides of a narrow gap grow into each other. The smallest gap that stays open is your minimum gap.

What is the difference between the hole test and the loose pin test?

The hole test tells you which hole diameter a separate part, such as a peg, screw or rod, fits into. The loose pin test prints pin and hole together and checks which gap lets the pin turn freely without being separated first.

Do I print the plate with my normal settings?

Yes. Use the material, nozzle, layer height, speed and cooling of the parts you want to build later. A test with other settings gives values that do not carry over.

Which clearance do I enter in other generators?

Take the smallest step that works as you need it, add a small safety margin of 0.05 mm, and enter that into the clearance or tolerance field of the other generator.

Why does the plate print without supports?

Every feature stands straight up from the plate: blocks, pins and holes are plain vertical walls, and only the label text is cut into or raised from the top surface. There are no overhangs.

Origin & license

  • Tolerance test by Jack · CC0 1.0 · idea – Idea of a plate with labeled gap steps; the geometry and dimensions are our own design, nothing was copied
  • Clearance test pip small diameter by Jack · CC0 1.0 · idea – Idea of a print-in-place clearance test with small-diameter pins; the geometry and dimensions are our own design, nothing was copied