AdderCAD Launching soon

Free tools

Snap fit joint generator for 3D printing

A snap fit is a joint where a flexible hook bends as two parts are pushed together, then springs back and holds them. Pick a joint below, set its sizes and your printer's clearance, and download both halves as STL or STEP; it all runs in your browser, so nothing is uploaded.

Last updated 22 November 2026.

How to make a joint with the generator

Press Generate above. The first time, your browser downloads the CAD engine (about 23 MB before compression), then builds the joint on your device. After that:

  1. Pick a joint type: cantilever snap fit, dovetail slide, press-fit peg, print-in-place hinge or the clearance test print.
  2. Set the clearance per side. Leave it at 0.2 mm until you've printed the clearance test, or use 0.3 mm for the hinge.
  3. Change the sizes. The joint rebuilds as you type, and the boxes under the form say if a value won't work and why.
  4. Check the view. Half A is blue and half B is orange, each laid flat the way it should be printed. Drag to turn the view, and pinch or scroll to zoom.
  5. Choose STL for your slicer or STEP for a CAD program, then download both halves together or one at a time.

Each time it builds, the generator checks that both halves are closed solids, measures the gap between them when assembled, and confirms that gap equals your clearance.

3D print tolerance: find your printer's clearance first

No printer makes a part exactly the size of the file, so parts that fit together need a gap between them. Clearance is that gap, measured on each side. A peg 6 mm across in a hole 6.4 mm across has 0.2 mm per side. Printers differ, so the number that works on one printer can be too tight or loose on another.

Pick Clearance test print and print the hole plate and the five pegs. The holes have gaps of 0.1, 0.2, 0.3, 0.4 and 0.5 mm per side, each with its gap engraved next to it. Push a peg into each hole from the top. The tightest hole a peg slides through without forcing is your sliding fit. Use that number as the clearance for dovetails and the press-fit bore. For hinges and other parts that turn, go looser: RapidDirect's loose-fit figure is about 0.2 mm per side more than its sliding fit.

Published starting points, all per side for FDM printing:

Fit Gap per side Source
Press fit 0.05 to 0.10 mm RapidDirect, PLA
Sliding fit (lids, drawers) 0.20 to 0.30 mm RapidDirect, PLA
Loose fit (hinges, hooks) 0.40 to 0.50 mm RapidDirect, PLA
Parts that turn or print in place 0.3 mm BuildCAD, 0.4 mm nozzle
Snap-fit clearance 0.5 mm Protolabs Network

The sources measure differently. RapidDirect's loose fit is for parts that drop together freely, while BuildCAD's 0.3 mm is the gap it suggests for a print-in-place joint on a typical printer. Some guides also quote the gap on the diameter, which is twice the gap per side, so check which one a number means before you use it.

The test holes print upright. If your part has a hole lying on its side, the fit can differ, so test that orientation too.

What a snap fit is, and the three types

A snap fit holds two parts with a feature that bends out of the way during assembly and springs back once the parts are home. Wikipedia's snap-fit article names three types, each after the kind of strain it uses:

  • Cantilever. A beam with a hook on the end bends sideways and catches behind a ledge or through a slot. It's the most common type, and a battery cover is the usual example. It can be permanent, or releasable if you can reach the hook to push it back.
  • Annular. A ring stretches over a lip, like a pen cap or some bottle caps. It works by hoop strain, can be opened many times, and Protolabs Network notes it can seal watertight.
  • Torsional. A bar twists instead of bending to let the mating part slide in, then holds it with torque when released.

For printed parts, choose a cantilever unless you need a round, sealed joint (annular). The cantilever's beam can lie flat on the bed, which suits how printed plastic bends. This generator makes cantilever snap fits; annular and torsional ones aren't in it yet.

How far a cantilever snap fit can bend: the strain formula

The beam has to bend by the hook's depth to get past the catch. How hard that is on the plastic is the strain at the beam's root, and for a straight beam of even thickness it is:

strain = 1.5 × thickness × deflection ÷ length²

Thickness is measured in the direction the beam bends, deflection is the hook depth, and length runs from the root to the hook. This is the classic cantilever relation from the Bayer and BASF snap-fit guides, as given by Xometry and Fictiv. The generator's default hook is 2 mm thick, bends 1.2 mm and is 15 mm long: 1.5 × 2 × 1.2 ÷ 15² = 0.016, or 1.6 %.

How much strain plastic takes depends on the material and how it was printed. Prusament's PLA data sheet gives 2.9 % elongation at yield for printed test bars. The generator warns above 2 %, leaving room for layer lines and repeated snaps, and won't build a hook that strains PLA past 2.9 %. Fictiv advises halving the allowed strain for beams printed upright, because the bond between layers is weaker than the plastic along a layer.

If the strain is too high, lengthen the beam first: strain falls with the square of the length, so a beam 1.4 times longer has half the strain. A thinner beam or a shallower hook also helps. PETG and nylon bend further than PLA, and Protolabs Network lists ABS, PETG and nylon as better snap-fit materials than PLA.

Design rules for snap fits on an FDM printer

  • Print the beam so it bends parallel to the bed. Each layer then runs the full length of the beam, and bending stretches the plastic along its layers instead of pulling them apart. Protolabs Network and Fictiv both advise against cantilevers built upright. That's why the generator lays the hook part on its side.
  • Round the root. A fillet of at least half the beam's thickness where it meets the part spreads the stress (Protolabs Network). The generator adds it.
  • Make the beam at least 5 mm wide (Protolabs Network).
  • Let it relax once closed. The beam should only flex while the parts go together, not while they're held (Protolabs Network).
  • Hold the part sideways too. A single hook through a slot can slide sideways off its catch without bending. The generator makes two beams with hooks facing outward, like an arrowhead, so each beam sits against one side of the window and the part can only shift by the clearance. Two shoulders stop it at the plate.

The other joints

Dovetail slide

A tail with sloped sides slides into a matching groove and can only come out the end. Use it for sliding lids, rails and parts that must not pull apart. The tail prints standing up from its base and the socket prints groove up, so both lean at the flare angle (15° by default) and need no supports. The generator keeps the flare at 30° or less so the overhang doesn't sag.

Press-fit peg and hole

A press fit holds by squeezing, with no clips or glue. Getting the hole size exact is hard on a printer, so the generator makes the hole a little loose (your clearance) and adds three thin crush ribs inside it. The ribs reach a set distance into the peg (0.15 mm by default) and squash as you push it in. Set the rib press to 0 for a plain hole that slides or locates. Pegs print upright on a plate, which makes them round but weaker across their layers, so print a separate pin lying down if it carries a load.

Print-in-place hinge

The two leaves print already joined, flat on the bed. Each knuckle of one leaf has a 45° cone on its sides that sits in a matching hollow in the next knuckle, so the pins print without supports. Use 0.3 mm per side or more (BuildCAD's figure for parts that print in place); the generator refuses less than 0.2 mm because the knuckles would fuse. Neighbouring knuckles are only one clearance apart, so a squashed first layer could join them. The generator lifts each half off the bed for the first 0.4 mm where it reaches toward the other half, which keeps the halves about 1 mm apart on the first layer. After printing, bend the leaves back and forth to break them free.

What the checks mean, and what they don't

The checks are measurements of the model on screen. "Both halves are valid solids" means OpenCascade, the CAD kernel the generator runs on, found each half closed with no broken faces, so a slicer can read it. The measured gap is the shortest distance between the two halves when assembled, and the generator compares it with your clearance. None of this guarantees a fit: your printer, material and settings decide that, which is why the clearance test comes first.

Need the joint on your own part? AdderCAD designs it from a description.

Questions

What is a snap fit joint?

A snap fit joint holds two parts together with a feature that bends during assembly and springs back once the parts are in place. The three types are cantilever (a hooked beam), annular (a ring over a lip, like a pen cap) and torsional (a twisting bar). Cantilever snap fits are the most common and the easiest to 3D print.

How much clearance do 3D printed parts need?

Published FDM figures per side are about 0.05 to 0.10 mm for a press fit, 0.20 to 0.30 mm for a sliding fit and 0.40 to 0.50 mm for a loose fit, according to RapidDirect. Protolabs Network gives snap fits 0.5 mm. Your printer may differ, so print a clearance test with several gaps and use what works.

How do you calculate snap fit strain?

For a straight cantilever beam, strain equals 1.5 times the beam thickness times the deflection, divided by the beam length squared. A 2 mm thick beam, 15 mm long, bending 1.2 mm gives 1.6 %. Keep PLA under about 2 %; Prusament's data sheet gives 2.9 % elongation at yield for printed PLA.

How do you print a print-in-place hinge?

Print it flat with the leaves on the bed and the knuckle axis parallel to the bed, with 0.3 mm per side or more between moving faces. Cone-shaped pins at 45° print without supports. After printing, bend the hinge back and forth to break any thin strands between the knuckles, then it should turn freely.

What is a tolerance test print?

A tolerance test print is a small part with holes or slots at a range of gaps, such as 0.1 to 0.5 mm per side. You print it with your usual settings and try a peg in each hole. The gap that slides smoothly tells you what clearance to design into parts for that printer and material.

Is anything uploaded when I use the generator?

No. The joint is built by the CAD engine running in your browser, and the STL and STEP files are made on your device. Your sizes and files are never sent anywhere. Like the rest of the site, the page uses cookieless analytics, which records the joint type you generated but not its sizes.

Be first to describe a part.

AdderCAD is launching soon. Join the waitlist and we'll email you once, when it opens.