Screw Clearance Hole Calculator for 3D Printing
An M3 screw needs a 3.4 mm clearance hole (ISO 273 medium; 3.2 mm fine, 3.6 mm coarse). M4 needs 4.5 mm and M5 5.5 mm. Those are finished sizes, though: printed holes usually come out a little small, so draw about 3.65 mm in CAD for an M3, or measure a test hole and use your own number. Pick a screw below for the CAD hole, the counterbore for a socket head and an optional nut trap.
Hole sizes from ISO 273 [1], head sizes from ISO 4762 [2], counterbores from DIN 974-1 [3][4][5][14], nut sizes from ISO 4032 [6][7], checked 12 Nov 2026. The 0.25 mm compensation and the nut trap allowance are starting points, not standards: print a test piece before a batch of parts.
Metric clearance hole sizes (ISO 273)
ISO 273 gives three clearance holes for each screw. Medium is the everyday choice. Fine is for parts that must line up closely, and coarse leaves room to adjust parts that do not line up well. The standard lists tolerance classes H12, H13 and H14 for the three series, for information [1].
- M2: 2.2 / 2.4 / 2.6 mm
- M2.5: 2.7 / 2.9 / 3.1 mm
- M3: 3.2 / 3.4 / 3.6 mm
- M4: 4.3 / 4.5 / 4.8 mm
- M5: 5.3 / 5.5 / 5.8 mm
- M6: 6.4 / 6.6 / 7 mm
- M8: 8.4 / 9 / 10 mm
- M10: 10.5 / 11 / 12 mm
| Screw | Fine | Medium | Coarse |
|---|---|---|---|
| M2 | 2.2 | 2.4 | 2.6 |
| M2.5 | 2.7 | 2.9 | 3.1 |
| M3 | 3.2 | 3.4 | 3.6 |
| M4 | 4.3 | 4.5 | 4.8 |
| M5 | 5.3 | 5.5 | 5.8 |
| M6 | 6.4 | 6.6 | 7 |
| M8 | 8.4 | 9 | 10 |
| M10 | 10.5 | 11 | 12 |
All mm: ISO 273 clearance hole dh, as printed by Metric & Multistandard Components [1]. These are finished hole sizes.
Counterbores for socket head cap screws
To sink a socket head cap screw below the surface, cut a counterbore wider and deeper than the head. ISO 4762 sets the largest head size; DIN 974-1 gives the counterbore that goes with it (row 1, no washer). From M3 to M10 its depths are 0.4 to 0.6 mm more than the head height, so the head sits just below the surface.
| Screw | Head Ø dk max | Head height k max | Counterbore Ø | Counterbore depth | Hole (medium) |
|---|---|---|---|---|---|
| M2 | 3.8 | 2 | 4.4* | 2.1 | 2.4 |
| M2.5 | 4.5 | 2.5 | 5.5* | 3 | 2.9 |
| M3 | 5.5 | 3 | 6.5* | 3.4 | 3.4 |
| M4 | 7 | 4 | 8 | 4.4 | 4.5 |
| M5 | 8.5 | 5 | 10 | 5.4 | 5.5 |
| M6 | 10 | 6 | 11 | 6.4 | 6.6 |
| M8 | 13 | 8 | 15 | 8.6 | 9 |
| M10 | 16 | 10 | 18 | 10.6 | 11 |
All mm. Head sizes: ISO 4762 via Westfield Fasteners [2]. Counterbores: DIN 974-1 via neue-physik.de [3] (M3–M10), born2fix.de [4] (M2–M10) and Bühler’s works standard [5] (M4–M10); all three agree from M4 to M10. *For M2, M2.5 and M3 the tables we read differ: 4.3, 5.0 and 6.0 mm [4] against 4.4, 5.5 and 6.5 mm, which calibr.pro gives for the 2008 edition [14] (neue-physik.de also has 6.5 mm for M3 [3]). We show the larger, which suits printed parts better. The M2 and M2.5 depths (2.1 and 3.0 mm) are from [4] only.
Hex nut trap sizes (ISO 4032 nuts)
A nut trap is a hexagonal pocket that holds a nut so you can tighten the screw without a spanner. Size it from the nut: s is the width across the flats, e the width across the corners and m the height [6][7].
| Nut | Across flats s | Across corners e min | Height m max | Corners of a sharp hexagon s × 2/√3 |
|---|---|---|---|---|
| M2 | 4 | 4.32 | 1.6 | 4.62 |
| M2.5 | 5 | 5.45 | 2 | 5.77 |
| M3 | 5.5 | 6.01 | 2.4 | 6.35 |
| M4 | 7 | 7.66 | 3.2 | 8.08 |
| M5 | 8 | 8.79 | 4.7 | 9.24 |
| M6 | 10 | 11.05 | 5.2 | 11.55 |
| M8 | 13 | 14.38 | 6.8 | 15.01 |
| M10 | 16 | 17.77 | 8.4 | 18.48 |
All mm, ISO 4032 via fasteners.eu [6] and Fuller Fasteners [7]. A real nut has slightly rounded corners, so e min is less than a sharp hexagon. M10: ISO 4032 says 16 mm across flats, but older DIN 934 M10 nuts are 17 mm and are still sold, some even under the ISO 4032 name [8]. Measure your nuts.
The formulas
- CAD hole = ISO 273 hole + your compensation. Use 0 if you drill or ream the hole to size.
- Your compensation = hole drawn in CAD − hole measured on the print. A drill bit makes a good gauge: the biggest one that slides in is the hole size.
- Slicer alternative: keep the CAD hole at the ISO size and set X-Y hole compensation in Bambu Studio or OrcaSlicer to half your compensation, because the setting grows the hole diameter by twice its value [9][10].
- Counterbore = DIN 974-1 diameter + your compensation, at the DIN 974-1 depth. Depth is not compensated: layer heights are accurate in Z.
- Nut trap (our estimate): across flats = s + allowance (0.3 mm by default) + your compensation; across corners = flats × 2/√3; depth = m + 0.2 mm. No standard covers printed nut traps, so these are our starting points.
Worked examples
- M3, medium, printed, typical 0.25 mm: 3.4 + 0.25 = 3.65 mm in CAD (or 3.4 mm with X-Y hole compensation at 0.125 mm). Counterbore 6.5 + 0.25 = 6.75 mm across, 3.4 mm deep, for a 5.5 × 3 mm head.
- M5, coarse, drilled: drill 5.8 mm. Counterbore 10 mm across and 5.4 mm deep.
- M4 with a nut trap, from a test hole: a 4.5 mm test hole measures 4.3 mm, so the compensation is 0.2 mm. Draw the hole at 4.5 + 0.2 = 4.7 mm and the nut trap at 7 + 0.3 + 0.2 = 7.5 mm across flats (8.66 mm across corners), 3.2 + 0.2 = 3.4 mm deep.
Tips for printing screw holes
- Why printed holes come out small. Upright holes shrink because the nozzle squashes each line wider as it prints it [13], and because round holes are saved as polygons and plastic pulls inwards on tight curves [12]. In CNC Kitchen’s tests, printed holes came out about 0.25 mm smaller than drawn [11].
- Measure, then compensate. The shrink depends on printer, slicer, material and hole size [13]. Bambu’s guide calibrates by printing a test block and checking which hole an M3 to M6 screw fits [9].
- Drill critical holes. If a hole has to be exact, print it slightly small and drill it to size [13].
- Sideways holes. A hole whose axis lies flat has a roof the printer must bridge, which sags [13]. Overhangs up to about 45° print without support [13], so many designers end the top of a sideways hole in a 45° point (a “teardrop”). That is a design habit built on the 45° rule, not part of any standard; the screw sits in the round lower half.
- Polyholes. Nophead found holes printed as polygons with about twice as many sides as the diameter in mm, enlarged to fit the circle, came out to size [12]. OrcaSlicer has a built-in Polyholes option [10].
Sources
- Metric & Multistandard Components: Clearance hole information (Ref ISO 273-1979), PDF. Fine / medium / coarse holes, H12 / H13 / H14.
- Westfield Fasteners: Socket head cap screws (DIN 912 / ISO 4762), PDF. Head Ø dk max and height k max.
- neue-physik.de: Senkungen − Tabellen. DIN 974-1 counterbores for ISO 4762, M3–M36.
- born2fix.de: Zylindersenkungen DIN 974-1. Counterbore Ø and depth, M2–M36.
- Bühler Group works standard LHH-N 300.009, PDF. ISO 4762 heads with DIN 974-1 counterbores, M4–M20.
- fasteners.eu: ISO 4032 hexagon nuts. s, e min, m max.
- Fuller Fasteners: ISO 4032 specifications. Same values, M1.6–M64.
- DIV Group: ISO 4032 / DIN 934 catalogue page, PDF. Lists M10 nuts at 17 mm across flats.
- Bambu Lab Wiki: XY hole and contour compensation. Test-block calibration; hole diameter grows by twice the setting.
- OrcaSlicer Wiki: Precision settings. X-Y hole compensation and Polyholes.
- CNC Kitchen: Are Our Heat-Set Insert Datasheets Wrong? (28 Mar 2026). Printed holes about 0.25 mm undersized.
- Nophead (HydraRaptor): Polyholes (2011). Why printed holes shrink and the polyhole rule.
- Hubs: How to design parts for FDM 3D printing. Undersized vertical holes, drilling, bridging and the 45° overhang rule.
- calibr.pro: Counterbore size chart. DIN 974-1:2008 row 1 counterbores with ISO 4762 heads, M2–M36.
All sources checked 12 Nov 2026.
Related: wall thickness around holes (walls × line width) · 3D printing tolerance / fit clearance (press, slip, sliding) · heat-set insert hole size (threads into plastic) · shrinkage compensation (scale a whole part) · bed leveling screw turns · line width & wall thickness · 3D print scale
FAQ
What size clearance hole for an M3 screw?
3.4 mm for a normal (ISO 273 medium) fit, 3.2 mm for a close fit and 3.6 mm for a loose fit. If you print the hole, draw it a little bigger, about 3.65 mm, because printed holes come out small.
What size clearance hole for M4 and M5 screws?
M4: 4.3 mm fine, 4.5 mm medium, 4.8 mm coarse. M5: 5.3 mm fine, 5.5 mm medium, 5.8 mm coarse (ISO 273). Add your printer’s compensation in CAD if the hole is printed.
How much bigger should I draw holes for 3D printing?
Start with about 0.25 mm on the diameter, which is how much CNC Kitchen’s printed holes came out small, then check it with a test hole: compensation = hole drawn − hole measured. Or keep the CAD hole as is and set X-Y hole compensation in Bambu Studio or OrcaSlicer to half that, since the setting grows the diameter by twice its value.
What counterbore size for an M3 socket head cap screw?
DIN 974-1 gives 6.5 mm across and 3.4 mm deep (some tables print 6.0 mm). The ISO 4762 M3 head is at most 5.5 mm across and 3 mm high. For M4 use 8 × 4.4 mm and for M5 10 × 5.4 mm.
What size nut trap for an M3 nut?
An ISO 4032 M3 nut is 5.5 mm across the flats, at least 6.01 mm across the corners and up to 2.4 mm high. As a starting point we draw the trap 0.3 mm wider across the flats plus your hole compensation, and 2.6 mm deep, then test.
Should I use fine, medium or coarse clearance holes?
Medium suits most parts. Fine holds parts in closer alignment but leaves little room for position errors, which printed parts often have. Coarse is for parts that need room to adjust.
Why do 3D printed holes come out smaller than designed?
The nozzle squashes each line wider as it prints, curved paths pull inwards, and round holes are saved as polygons whose flat sides sit inside the circle. How much depends on printer, slicer, material and hole size, so measure a test print.