Screw and nut tolerance test to print
Why printed holes rarely fit
You draw a hole 3 mm across, print it, and the M3 screw will not go in. That is not a fault of your printer, it is physics. The slicer builds the outer wall of a hole from a chain of short straight segments, and the nozzle drags the soft plastic slightly inward on curves. On top of that, every line gets a little wider than planned when it is pressed onto the layer below. The first layer is squashed the most, so a hole is often tighter at the bed than further up. Nut traps and countersinks suffer the same way: the nut jams, or the flat head sticks out or sinks too deep.
How large the error is depends on your printer, nozzle, material and settings. Typical values are 0.1 to 0.4 mm in diameter, but there is no fixed rule. So instead of guessing for every project, you print one small test plate once and read the right value straight off it. That is the plate this generator builds, for any screw size from M2 to M8.
Everything runs in your browser. The model is computed on your device, nothing is uploaded and you need no account. The design lives in the page link: “Share” copies it, and you can pick up exactly where you left off later. Ready-made plates are in the examples, for instance the complete M3 tolerance test.
What the plate tests
Each row of the plate checks one thing, in several steps from small to large. “Steps” sets how many variants sit side by side, from two to ten. For each row you set the clearance of the first and of the last step; the generator spreads the values in between evenly. The value of every test feature is engraved into the top surface right above it.
- Holes (Ø): plain through holes, nominal diameter plus clearance. For M3 with the default values that is 3.0 to 3.6 mm. You see from which diameter on the screw passes freely.
- Nut traps (hexagon symbol): hexagonal pockets from below with a through hole above. The clearance is added to the width across the flats of the nut. Instead of the regular hex nut you can test thin nuts or square nuts, as in the square nut test.
- Countersinks (V): cones for flat head screws to ISO 10642 with a 90° angle. The clearance widens the cone so the head ends up flush with the surface.
- Counterbores (U): round recesses for socket head cap screws to ISO 4762, as deep as the head is tall. Here, too, the diameter grows from step to step.
- Heat-set inserts (INS): blind holes for brass inserts. On this row the plate shows the absolute diameter, not the clearance.
- Side nuts (SIDE): slots you drop a nut into from above, plus a horizontal hole entering from the front edge.
You switch every row on and off on its own. If you only care about one thing, the plate stays small and prints quickly; the nut trap test takes just a few minutes.
Screw size and dimensions
Pick the screw size at the top. All other dimensions, such as width across flats and height of the nuts, head diameter, head height and countersink angle, come from tables based on ISO. Hex nuts follow ISO 4032, thin nuts ISO 4035, square nuts DIN 557, socket heads ISO 4762 and flat heads ISO 10642. ISO 10642 has no flat head screws in M2 and M2.5, so for those the generator uses the cross recess flat heads of ISO 7046.
The holes under nuts and heads and in the side row have a clearance of their own, the “shaft hole”. It defaults to 0.4 mm, which for M3 matches the medium clearance hole of ISO 273. That way these rows only test how the nut or the head sits, without the screw getting stuck in the shaft first.
The insert diameters and depth default to 0. That means the generator takes the usual value for short inserts of your size and tests from 0.2 mm below to 0.4 mm above it, for M3 from 3.8 to 4.4 mm. The depth matches the length of a typical short insert, 5.7 mm for M3. Makers recommend different holes. If you have a data sheet, enter its value as the middle and test around it, as in the M4 heat-set insert test.
Printing the plate
Print the plate the way you will print the real parts later: same material, same nozzle, same layer height, same number of walls. Only then do the results carry over. The plate lies flat on the bed and needs no supports. The nut traps open at the bottom; their ceiling is a short bridge that any reasonably tuned printer manages. The horizontal holes of the side row get a teardrop shape with a 45° roof, so they stay round without supports.
Set the plate thickness to suit the screw size. Leave at least a good millimeter of material under a nut trap and under a socket head. If the plate is too thin, the generator tells you the minimum thickness. The side row needs extra height, because the whole nut plus its hole must fit inside the plate; 8 mm is sensible for M3, as in the example with side nut traps.
The labels are 3 mm tall and engraved 0.6 mm deep. With a 0.4 mm nozzle and 0.2 mm layers they read well; below 2.5 mm text size it gets tight. If you have a multi-material setup, give the labels a color of their own. They then fill the engraving flush and stand out clearly, like on the test plate with colored labels.
How to read the result
Grab a real screw and a real nut, ideally from the box you will use later. Then go through the plate row by row.
- Holes: push the screw into the holes one after another. The smallest hole it slides through without force or twisting is your value for clearance holes. If the screw should cut its own thread instead, take a step where it just stops sliding in.
- Nut traps: press the nut into the pockets with your thumb. The smallest pocket it goes all the way into and then holds by itself is your value. If the nut drops out when you turn the plate over, the pocket is too large.
- Countersinks: tighten a flat head screw with a nut from below. At the right step the head ends flush and touches the cone all around.
- Counterbores: the head should go in without force and not wobble sideways.
- Heat-set inserts: set the inserts with a soldering iron, let them cool and check which one neither turns nor pulls out. Holes that are too small push a lot of plastic upward, holes that are too large hold poorly.
If you need finer steps, print a second plate with a narrower range around the value you found. The fine test in 0.05 mm steps shows what that looks like.
Using the values in other generators
The point of the test is to reuse the values afterwards. Many generators on this site have a field for clearance, play or tolerance, for example knobs, hinges, spacers, gears or printable bolts and nuts. Enter the clearance that fit best on your plate there. It helps to note the values together with the material, for example “PLA, 0.4 mm nozzle: hole +0.3, nut +0.2”. Or simply keep the printed plate; the engraved numbers will not forget.
Repeat the test when you switch to another filament or printer. PETG flows a bit more than PLA, ASA and ABS shrink more while cooling. A new nozzle or a different line width can also shift the values by one or two tenths.
Printing tips
- No supports: every test feature is shaped to print without supports. Switch supports off in the slicer, or it may fill the nut traps.
- First layer: the nut traps sit at the bed. If your first layer is squashed a lot, they get tighter. That is intended, since real parts behave the same way.
- Walls: three or more wall lines keep the hole edges sturdy.
- Size: with M8 and many steps the plate gets large. If it no longer fits the bed, the generator warns you; then use fewer steps or less spacing.
- Export: download the plate as STL or 3MF. With colored labels the 3MF holds two parts, and you assign a filament to each in the slicer.
Origin and license
The geometry of the holes, heads, countersinks and nut traps is a TypeScript port of catchnhole by Maciej Małecki (MIT license), a small OpenSCAD library for screw holes and nut traps. We did not take its dimension tables, because they are derived from an LGPL-licensed collection. The head and nut dimensions come from BOSL2 by Revar Desmera (BSD-2-Clause) instead. A comparison with OpenSCAD makes sure the shapes are the same as in the original. The labels use the Liberation Sans font under the SIL Open Font License. All details are on the licenses page.
Ready for your first test? Open the generator 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.
| Parameter | Default | Range | Meaning |
|---|---|---|---|
| Steps | |||
| Steps | 5 | 2 – 10 | How many variants each row has. |
| Hole: clearance from | 0 mm | 0 – 1 mm | First hole = nominal diameter plus this value. |
| Hole: clearance to | 0.6 mm | 0 – 1.5 mm | Last hole = nominal diameter plus this value. |
| Nut: clearance from | 0 mm | 0 – 1 mm | Added to the width across flats of the first nut trap. |
| Nut: clearance to | 0.4 mm | 0 – 1 mm | Added to the width across flats of the last nut trap. |
| Nut: extra depth | 0.2 mm | 0 – 1 mm | How much deeper than the nut is tall, for every pocket. |
| Head: clearance from | 0 mm | 0 – 1 mm | Added to the head diameter of the first recess. |
| Head: clearance to | 0.6 mm | 0 – 1.5 mm | Added to the head diameter of the last recess. |
| Insert: Ø from | 0 mm | 0 – 12 mm | Diameter of the first insert hole, 0 = typical value minus 0.2 mm. |
| Insert: Ø to | 0 mm | 0 – 12 mm | Diameter of the last insert hole, 0 = typical value plus 0.4 mm. |
| Insert: depth | 0 mm | 0 – 15 mm | Depth of the blind holes, 0 = length of a common short insert. |
| Shaft hole | 0.4 mm | 0 – 1 mm | Clearance of the shaft holes under nuts and heads and in the side row. |
| Plate | |||
| Plate thickness | 6 mm | 2 – 20 mm | Ideally as thick as the parts you need the values for. |
| Spacing | 4 mm | 2 – 15 mm | Border and gap between the test features. |
| Labels | |||
| Text size | 3 mm | 2 – 8 mm | Height of the digits. Below 2.5 mm a 0.4 mm nozzle struggles. |
| Engraving depth | 0.6 mm | 0.2 – 1.5 mm | How deep the labels are cut. |
Frequently asked questions
Why are printed holes too small?
The printer places round paths slightly inward and the first layer squishes a little, so holes usually need 0.2 to 0.4 mm extra.
How do I read the result?
Take the smallest hole the screw passes through without force and the smallest nut trap that holds the nut by itself.
Does the result apply to every filament?
Not quite. PETG and ASA shrink differently from PLA. Print the test with the material and settings of your project.
Which hole do heat-set inserts need?
That depends on the insert. For M3 typical values are 3.9 to 4.2 mm; the test shows what holds on your printer.
Where do I enter the values I found?
In the other generators under clearance or tolerance, e.g. knob, hinge, spacer or gear.
Origin & license
- catchnhole by Maciej Małecki · MIT · code ported – Screw holes, heads, countersinks and nut traps (bolt, nutcatch_parallel, nutcatch_sidecut) ported to TypeScript; the project’s BOLTS dimension tables were not used
- BOSL2 by Revar Desmera · BSD-2-Clause · helper code ported – Metric dimension tables for screw heads and nuts from screws.scad