BuildCAD AI

3D print hole sizes for screws, heat-set inserts and nuts

Updated 

For an M3 screw that passes through a printed part, model a 3.6 mm hole: the ISO normal clearance is 3.4 mm, and printed holes come out about 0.2 mm small. For an M3 heat-set insert, CNC Kitchen and ruthex give a 4.0 mm hole: model 4.2 mm when the hole is printed. A machine screw threaded straight into the plastic needs about 2.6 mm, and an M3 nut trap is a 5.8 mm hexagon, 2.7 mm deep.

The calculator gives the same answer for M2 to M8 and for your printer, with a test block to print that brackets the size. The tables below are the ones the BuildCAD AI designer uses when it places a screw.

Hole size calculator

Screw size
What the hole is for
Insert brand
Insert
Your printer (how much smaller holes print)

M3 heat-set insert: model the hole at

4.2 mm

at least 6.7 mm deep

4.0 mm CNC Kitchen M3x5.7 hole + 0.2 mm your hole shrink

  • Hole at least 6.7 mm deep (insert length 5.7 mm + 1 mm), wall around the insert at least 1.6 mm.
  • The insert is 4.6 mm across the knurls: the hot insert melts the plastic, which flows into the knurls and locks it.

Test it before the real part

A block with 7 labelled holes from 3.9 mm to 4.5 mm, 7.0 mm deep. Print it in the filament you will use and keep the size that fits.

Standard sizes (ISO 273 clearance holes, the insert maker's hole) are what the finished hole should measure, so the calculator adds your printer's hole shrink. The FDM rules of thumb (pilot, nut trap, countersink, counterbore) already assume a typical printer and move only by the difference. Using hole compensation in your slicer? Pick “I measured it” and enter 0.

M2 to M8 hole size chart

What to model in CAD for each screw size, for a typical printer (0.4 mm nozzle, vertical holes printing 0.2 mm small).

Sizes to model, in mm. Tuned Bambu Lab or Prusa printers: about 0.05 mm smaller; older printers: about 0.1 mm larger. Heat-set insert: CNC Kitchen standard length. Countersunk ISO 10642 screws start at M3.
ScrewPasses throughThreads into plasticHeat-set insertNut trap (flats x depth)CountersinkCounterbore (dia x depth)
M22.61.73.44.3 x 1.9n/a4.6 x 2.3
M2.53.12.24.25.3 x 2.3n/a5.3 x 2.8
M33.62.64.25.8 x 2.76.36.3 x 3.3
M44.73.55.97.4 x 3.58.47.9 x 4.3
M55.74.46.78.4 x 5.010.49.4 x 5.3
M66.85.38.310.4 x 5.512.410.9 x 6.3
M89.27.19.913.4 x 7.116.413.9 x 8.3

Clearance holes: the screw passes through

ISO 273 gives three clearance hole sizes per screw. They are the sizes of the finished hole, as drilled in metal. A printed vertical hole comes out smaller than drawn, so add your printer's shrink to get the size to model.

Model = ISO 273 normal + 0.2 mm hole shrink.
ScrewThread diaClose (ISO 273)Normal (ISO 273)Loose (ISO 273)Model for a normal fit
M22.0 mm2.2 mm2.4 mm2.6 mm2.6 mm
M2.52.5 mm2.7 mm2.9 mm3.1 mm3.1 mm
M33.0 mm3.2 mm3.4 mm3.6 mm3.6 mm
M44.0 mm4.3 mm4.5 mm4.8 mm4.7 mm
M55.0 mm5.3 mm5.5 mm5.8 mm5.7 mm
M66.0 mm6.4 mm6.6 mm7.0 mm6.8 mm
M88.0 mm8.4 mm9.0 mm10.0 mm9.2 mm
  • Close: the screw locates the part with little play (alignment, hinges on a screw). Normal: the default. Loose: room to line up several holes or a part that has to be adjusted.
  • Modelled at the ISO normal size as is (3.4 mm for M3), the hole prints near the close size: it still takes the screw on most printers. That is the designer's default when it only has to pass.
  • Horizontal holes sag at the top: draw them as a teardrop with a 45 degree point, or add 0.1 to 0.2 mm in Z. The 3D print tolerance guide covers horizontal holes and fits between printed parts.

Screws threaded into the plastic

A metric machine screw cuts its own thread in PLA or PETG when the hole is about 0.85 times its diameter. It is the quickest joint, and it holds well for parts you assemble once. The thread wears each time you take the screw out, so for lids and covers you open often, use a heat-set insert.

Pilot hole: a rule of thumb, not a standard. M2.5, M3 and M4 are the designer's defaults; the other sizes follow the same 0.85 x diameter ratio.
ScrewPitchPilot hole to model (FDM)Tap drill in metal (for reference)
M20.4 mm1.7 mm1.6 mm
M2.50.45 mm2.2 mm2.05 mm
M30.5 mm2.6 mm2.5 mm
M40.7 mm3.5 mm3.3 mm
M50.8 mm4.4 mm4.2 mm
M61.0 mm5.3 mm5.0 mm
M81.25 mm7.1 mm6.8 mm

Go 0.1 mm smaller for more grip, or 0.1 mm larger if the screw is too hard to drive or the part splits. Screws made for plastic (wide-thread “PT” style) come with their own pilot tables from the maker: use those.

Heat-set insert hole sizes

A heat-set insert is a knurled brass sleeve you press into a slightly smaller hole with a soldering iron: the plastic melts around the knurls and you get a metal thread that survives many assemblies. The hole size comes from the insert maker. The two tables below are CNC Kitchen's and ruthex's, two widely used brands; generic inserts sold on marketplaces vary in diameter, so measure the knurls and check the seller's hole size.

CNC Kitchen inserts

CNC Kitchen 'Dimensions & Design Guidelines' table (product page). Model when printed = hole + 0.2 mm.
InsertLengthInsert diameterHole (finished)Model when printedMin. depthMin. wall
M2x33.0 mm3.6 mm3.2 mm3.4 mm4.0 mm1.3 mm
M2.5x44.0 mm4.6 mm4.0 mm4.2 mm5.0 mm1.6 mm
M3x5.75.7 mm4.6 mm4.0 mm4.2 mm6.7 mm1.6 mm
M3x33.0 mm4.6 mm4.0 mm4.2 mm4.0 mm1.6 mm
M3x5x4 (Voron)4.0 mm5.0 mm4.4 mm4.6 mm5.0 mm1.6 mm
M4x8.18.1 mm6.3 mm5.7 mm5.9 mm9.1 mm2.1 mm
M4x44.0 mm6.3 mm5.7 mm5.9 mm5.0 mm2.1 mm
M5x9.59.5 mm7.1 mm6.5 mm6.7 mm10.5 mm2.6 mm
M5x5.85.8 mm7.1 mm6.5 mm6.7 mm6.8 mm2.6 mm
M6x12.712.7 mm8.7 mm8.1 mm8.3 mm13.7 mm3.3 mm
M8x12.712.7 mm10.2 mm9.7 mm9.9 mm13.7 mm4.5 mm

ruthex inserts

ruthex dimensions (3DJake product table for M2 to M5, bd_warehouse insert data for all). Model when printed = hole + 0.2 mm.
InsertLengthInsert diameterHole (finished)Model when printedMin. depthMin. wall
M2x44.0 mm3.6 mm3.2 mm3.4 mm5.0 mm1.3 mm
M2.5x5.75.7 mm4.6 mm3.9 mm4.1 mm6.7 mm1.6 mm
M3x5.75.7 mm4.6 mm4.0 mm4.2 mm6.7 mm1.6 mm
M3x44.0 mm4.6 mm4.0 mm4.2 mm5.0 mm1.6 mm
M3x5x4 (Voron)4.0 mm5.0 mm4.4 mm4.6 mm5.0 mm1.3 mm
M4x8.18.1 mm6.3 mm5.6 mm5.8 mm9.1 mm2.1 mm
M4x44.0 mm6.3 mm5.6 mm5.8 mm5.0 mm2.1 mm
M5x9.59.5 mm7.1 mm6.4 mm6.6 mm10.5 mm2.6 mm
M5x5.85.8 mm7.1 mm6.4 mm6.6 mm6.8 mm2.6 mm
M6x12.712.7 mm8.7 mm8.0 mm8.2 mm13.7 mm3.3 mm
M6x6.86.8 mm8.7 mm8.0 mm8.2 mm7.8 mm3.3 mm
M8x12.712.7 mm10.1 mm9.6 mm9.8 mm13.7 mm4.5 mm

Why model the hole 0.2 mm bigger

The maker's hole is the size the finished hole should have. In a March 2026 test, CNC Kitchen found that its printed holes came out about 0.25 mm smaller than the CAD size, that a 4.0 mm M3 hole (drilled) is a very good fit, and that pull-out strength drops sharply between 4.1 and 4.2 mm. For as-printed M3 holes it recommends modelling 4.2 mm, which still keeps about 90% of the maximum pull-out strength, and it typically adds 0.2 to 0.3 mm for the smaller inserts. The heat-set insert test block settles it for your printer and filament.

  • Depth: at least the insert length plus 1 mm, so the displaced plastic has room. A through hole also works.
  • Wall: keep at least the minimum wall in the table around the hole, more for parts under load.
  • A small chamfer at the top of the hole helps the insert start straight.

Hex nut traps

A nut trap is a hexagonal pocket that holds a nut so you can tighten the screw from the other side. Model the hexagon by its distance across flats, a little bigger than the nut, and a little deeper than the nut is thick.

ISO 4032 hex nuts. Pocket = across flats + 0.3 mm (M2 to M3) or + 0.4 mm (M4 and up), depth = thickness + 0.3 mm, for a typical printer.
NutAcross flatsAcross cornersThicknessPocket across flatsPocket depth
M24.0 mm4.62 mm1.6 mm4.3 mm1.9 mm
M2.55.0 mm5.77 mm2.0 mm5.3 mm2.3 mm
M35.5 mm6.35 mm2.4 mm5.8 mm2.7 mm
M47.0 mm8.08 mm3.2 mm7.4 mm3.5 mm
M58.0 mm9.24 mm4.7 mm8.4 mm5.0 mm
M610.0 mm11.55 mm5.2 mm10.4 mm5.5 mm
M813.0 mm15.01 mm6.8 mm13.4 mm7.1 mm
  • Pockets that open on a side (a slot the nut slides into) use the same across-flats width.
  • A pocket on the underside of a part leaves the screw hole above it in mid-air: print a one-layer cover over the pocket and push the screw through it afterwards, or turn the part over.
  • Cheap nuts vary by a few tenths of a millimetre: measure the ones you have.

Countersinks and counterbores

Countersunk screws sit flush in a 90 degree cone; socket head cap screws sit flush in a counterbore. Both pockets go over the screw's clearance hole.

Heads: ISO 10642 countersunk (nominal), ISO 4762 socket head cap, ISO 7380-1 button head. Countersink = head + 0.3 to 0.4 mm at 90 degrees; counterbore = head max + 0.6 mm rounded up to 0.1 mm, depth = head height + 0.3 mm.
ScrewCountersunk headCountersink to modelSocket head (max)Counterbore to modelCounterbore depthButton head
M2n/an/a3.98 mm4.6 mm2.3 mmn/a
M2.5n/an/a4.68 mm5.3 mm2.8 mmn/a
M36.0 mm6.3 mm5.68 mm6.3 mm3.3 mm5.7 x 1.65 mm
M48.0 mm8.4 mm7.22 mm7.9 mm4.3 mm7.6 x 2.2 mm
M510.0 mm10.4 mm8.72 mm9.4 mm5.3 mm9.5 x 2.75 mm
M612.0 mm12.4 mm10.22 mm10.9 mm6.3 mm10.5 x 3.3 mm
M816.0 mm16.4 mm13.27 mm13.9 mm8.3 mm14.0 x 4.4 mm

A countersink on the top face prints cleanly. On the bottom face it is a 45 degree overhang, which most printers handle without supports. Button heads sit on top of the part: they only need the clearance hole.

Measure your printer once

The “hole shrink” the calculator asks for is how much smaller your vertical holes print than you draw them. You can find it in one short print:

  1. Download the test block (7 labelled holes, 3.8 to 4.4 mm by default; the calculator sets it around your size) and print it in the filament you use, with your usual walls.
  2. Measure the holes with the shank of a drill bit or a gauge pin of known size: the largest shank that slides in is the hole size. Caliper jaws are hard to read in small holes.
  3. Shrink = modelled size minus measured size. Enter it under “I measured it”. For inserts, simply keep the hole where the insert starts by hand and goes in straight with the iron.

Fits between two printed parts (pins, lids, hinges) are a different measurement: the tolerance test on the 3D print tolerances page measures them, and saves the result as your fit profile for the AI designer. With a fit profile, the calculator offers its clearance as a starting estimate for the shrink.

Sources

FAQ

Hole size questions

What size hole for an M3 screw in a 3D print?

Model 3.6 mm for a screw that passes through freely: the ISO 273 normal clearance hole is 3.4 mm, and vertical printed holes come out about 0.2 mm smaller than drawn. Modelled at 3.4 mm, the hole prints near 3.2 mm, the ISO close size, which still lets an M3 screw through on most printers but with little play.

What hole size for an M3 heat-set insert?

CNC Kitchen and ruthex both specify a 4.0 mm hole for their M3 x 5.7 inserts. That size is for a hole that comes out exactly 4.0 mm; printed holes come out smaller, so CNC Kitchen recommends modelling about 4.2 mm for an as-printed hole. Its tests show pull-out strength drops sharply once the finished hole is over 4.1 to 4.2 mm, so do not go bigger than you need.

What hole size for M4 and M5 heat-set inserts?

M4 x 8.1: CNC Kitchen 5.7 mm, ruthex 5.6 mm. M5 x 9.5: CNC Kitchen 6.5 mm, ruthex 6.4 mm. Add about 0.2 mm to model a printed hole. The full table for M2 to M8 is on this page.

How deep should a heat-set insert hole be?

At least the insert length plus 1 mm, so the plastic the insert pushes ahead of it has somewhere to go: 6.7 mm for an M3 x 5.7 insert. A through hole works too. Keep a wall of at least 1.6 mm around M3 inserts (1.3 mm for M2, 2.1 mm for M4, 2.6 mm for M5).

What size hole to screw an M3 machine screw straight into PLA?

About 2.6 mm: the screw cuts its own thread in PLA or PETG. It is a rule of thumb, not a standard: go 0.1 mm smaller for more grip, larger if the part splits. The plastic thread wears a little each time the screw comes out, so use a heat-set insert for parts you open often.

How big should an M3 nut trap be?

An M3 nut (ISO 4032) is 5.5 mm across flats and 2.4 mm thick. Model a hexagonal pocket 5.8 mm across flats and 2.7 mm deep, flats oriented the way the nut drops in. Cheap nuts vary by a few tenths, so measure yours.

Why do 3D printed holes come out smaller than designed?

The slicer lays the outer wall inside the outline, the extruded line is rounded, and small circles are made of straight segments that cut the corners. Vertical holes typically come out 0.1 to 0.25 mm small on the diameter; horizontal holes also sag at the top. CNC Kitchen measured 0.25 mm on a Prusa CORE One L with PLA.

Should I make holes bigger in CAD or in the slicer?

Either, but not both. Bambu Studio and OrcaSlicer can enlarge holes with an X-Y hole compensation setting (0 by default). If you use it, model holes at their nominal size and set the shrink to 0 in the calculator. Otherwise model the hole bigger, as on this page.

Let the designer place the holes

Describe the part and the hardware (“a Raspberry Pi 5 case with M2.5 inserts in the base and M3 countersunk screws in the lid”). The AI designer builds it as CAD with the hole sizes from these tables, measures the holes it made, and gives you sliders and STL, 3MF and STEP files.

Start designing for free