All DFM guides
Threads and fasteners9 min read

Captive and embedded nuts in 3D printed parts

How to design hex pockets for captive nuts, choose between side-loading and bottom-loading, retain the nut during assembly and decide when a through bolt is the right answer.

A captive nut is simply a standard hex nut held inside a printed pocket, so that a bolt passing through the assembly threads into real steel or brass rather than into plastic. It is the most robust of all the fastening options covered in this cluster because no part of the load path runs through a plastic thread at all, only through the nut, the bolt and the pocket walls that keep the nut from spinning.

The trade-off is assembly complexity: someone has to place the nut into the part, either during a manual assembly step or, less commonly, mid-print. This guide covers how to design the pocket so that step is fast and foolproof, and when to skip captive nuts entirely in favour of a simple through bolt and nut.

Hex pockets for nuts

The pocket is a hex-shaped recess cut to the across-flats dimension of the standard nut, plus a small clearance so the nut drops in without force but does not rattle once loaded. For a standard M4 nut with an across-flats dimension of 7 mm, we typically cut the pocket to 7.2 to 7.3 mm across flats, giving enough clearance to absorb the ±0.2 mm tolerance on most engineering filaments without the pocket becoming loose enough for the nut to rotate under torque.

The pocket depth should match the nut thickness plus roughly 0.2 mm, enough that the nut sits flush or very slightly recessed, so the bolt seats cleanly against the plastic surface or a printed boss face rather than against a proud nut edge.

Side-loading versus bottom-loading pockets

A side-loading pocket is open on one face of the part so the nut slides in horizontally, perpendicular to the bolt axis, and is then trapped once an adjacent wall or the mating part closes over it. A bottom-loading pocket is open in the same direction as the bolt travels, so the nut drops straight in from below or above before the bolt is inserted.

  • Side-loading: the nut is fully enclosed once assembly closes, best for two-part housings that are joined during final assembly.
  • Bottom-loading: faster to assemble in a single part, but the nut can fall out before the bolt is started unless it is retained some other way.
  • Side-loading pockets print without support if oriented so the open face is vertical or upward.
  • Bottom-loading pockets that open downward on the build plate need either a support-free redesign or a small bridge feature to avoid support material inside the pocket.

Pockets that need no support

The cleanest design orients the hex pocket so its opening faces sideways or upward relative to the build plate, letting the top surface of the pocket bridge over the hex cavity in short spans rather than requiring support material inside a downward-facing cavity, which is difficult to remove and leaves a rough surface the nut then sits against unevenly.

If a downward-facing pocket cannot be avoided given the part's function, keep the hex span narrow enough to bridge without support, generally under about 8 mm for standard M4 to M6 nuts, and confirm with us during review whether your specific nut size and orientation will print clean.

Retaining the nut during assembly

A pocket alone does not stop the nut falling out before the bolt engages, especially in a bottom-loading design or one that is handled before final assembly. Common retention methods include a slight interference fit on the pocket so the nut has to be pressed in, a small printed lip that partially overlaps the nut's top face, or a drop of adhesive for low-volume assembly where a lip is not practical.

For series assembly, we favour the interference fit or lip approach over adhesive, since adhesive adds a curing step and a consistency risk that a purely geometric retention feature avoids.

Tolerance for the pocket

Nut sizeStandard across-flatsRecommended pocket across-flats
M35.5 mm5.7 to 5.8 mm
M47.0 mm7.2 to 7.3 mm
M58.0 mm8.2 to 8.3 mm
M610.0 mm10.2 to 10.4 mm
Pocket clearance by nut size

These clearances assume our typical ±0.2 mm dimensional tolerance on PLA, PETG and carbon-filled materials. On ABS, ASA or PC, which run closer to ±0.3 mm, widen the pocket by an extra 0.1 mm to keep the nut from binding.

Embedding a nut mid-print

It is technically possible to pause an FDM print, drop a nut into an open pocket, and resume printing so the part closes over it permanently. This is common in hobbyist projects but we generally avoid it in series production for a straightforward reason: it turns a fully automated print job into a manually supervised one, since someone has to be present at exactly the right layer to pause the machine, place the nut and resume, and a missed pause ruins the part.

For low-volume, one-off parts where the design genuinely benefits from a permanently embedded nut, mid-print insertion can make sense. For anything beyond a handful of units, a post-print assembly pocket with a retention feature gives the same mechanical result without tying up a machine operator for a single pause per part.

When a through bolt and nut is the right answer

Sometimes the simplest solution is best: drill a plain clearance hole through both parts and use a standard bolt with a loose nut on the far side, tightened by hand or with a second tool during assembly. This is the correct answer whenever the far side of the joint is accessible during assembly, the joint needs to be fully removable rather than staying captive in one part, and the extra assembly step of holding a loose nut is acceptable.

It avoids all the pocket design work covered above, and it is the most robust joint of all since neither side relies on any plastic feature to hold the nut in place. The downside is purely practical: someone needs two hands or two tools to make the joint, which does not always suit tight enclosures or single-operator assembly lines.

Frequently asked questions

How much clearance should a hex pocket have around a standard nut?
Around 0.2 to 0.3 mm added to the across-flats dimension is typical for PLA, PETG and carbon-filled materials, increasing slightly for ABS, ASA and PC given their wider dimensional tolerance.
Can a captive nut pocket print without support material?
Yes, if you orient the pocket opening sideways or upward, or keep a downward-facing hex span narrow enough to bridge, generally under about 8 mm for common nut sizes.
Why do you avoid embedding nuts mid-print for series orders?
It requires a manual pause and manual placement at exactly the right layer of every single print, which turns an automated process into a supervised one and introduces a risk of a missed pause ruining the part. A post-print pocket with a retention feature achieves the same result without that risk.
How do I stop the nut from falling out before I insert the bolt?
Design a slight interference fit into the pocket so the nut must be pressed in, or add a small printed lip that partially covers the nut's top face. Both are more consistent in production than relying on adhesive.
Is a through bolt and nut stronger than a captive nut pocket?
Mechanically they are similar since both put the load through metal threads, but the through bolt design avoids any dependence on a plastic pocket wall holding the nut in place, making it marginally more robust for high-vibration or high-load joints.

Have your part reviewed before production

Send us your CAD file together with the application, load and operating conditions. We review geometry, orientation, material and tolerances and come back with concrete change proposals and a quote.

Read next

Instant Quote

Upload Your File for Instant Pricing

Receive fast pricing and manufacturing feedback in minutes. STEP, STL, 3MF and OBJ supported.