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.

Clearance hole to draw in CAD

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].

ScrewFineMediumCoarse
M22.22.42.6
M2.52.72.93.1
M33.23.43.6
M44.34.54.8
M55.35.55.8
M66.46.67
M88.4910
M1010.51112

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.

ScrewHead Ø dk maxHead height k maxCounterbore ØCounterbore depthHole (medium)
M23.824.4*2.12.4
M2.54.52.55.5*32.9
M35.536.5*3.43.4
M47484.44.5
M58.55105.45.5
M6106116.46.6
M8138158.69
M1016101810.611

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].

NutAcross flats sAcross corners e minHeight m maxCorners of a sharp hexagon s × 2/√3
M244.321.64.62
M2.555.4525.77
M35.56.012.46.35
M477.663.28.08
M588.794.79.24
M61011.055.211.55
M81314.386.815.01
M101617.778.418.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

Worked examples

Tips for printing screw holes

Sources

  1. Metric & Multistandard Components: Clearance hole information (Ref ISO 273-1979), PDF. Fine / medium / coarse holes, H12 / H13 / H14.
  2. Westfield Fasteners: Socket head cap screws (DIN 912 / ISO 4762), PDF. Head Ø dk max and height k max.
  3. neue-physik.de: Senkungen − Tabellen. DIN 974-1 counterbores for ISO 4762, M3–M36.
  4. born2fix.de: Zylindersenkungen DIN 974-1. Counterbore Ø and depth, M2–M36.
  5. Bühler Group works standard LHH-N 300.009, PDF. ISO 4762 heads with DIN 974-1 counterbores, M4–M20.
  6. fasteners.eu: ISO 4032 hexagon nuts. s, e min, m max.
  7. Fuller Fasteners: ISO 4032 specifications. Same values, M1.6–M64.
  8. DIV Group: ISO 4032 / DIN 934 catalogue page, PDF. Lists M10 nuts at 17 mm across flats.
  9. Bambu Lab Wiki: XY hole and contour compensation. Test-block calibration; hole diameter grows by twice the setting.
  10. OrcaSlicer Wiki: Precision settings. X-Y hole compensation and Polyholes.
  11. CNC Kitchen: Are Our Heat-Set Insert Datasheets Wrong? (28 Mar 2026). Printed holes about 0.25 mm undersized.
  12. Nophead (HydraRaptor): Polyholes (2011). Why printed holes shrink and the polyhole rule.
  13. Hubs: How to design parts for FDM 3D printing. Undersized vertical holes, drilling, bridging and the 45° overhang rule.
  14. 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.