3D Printing Generator
DeutschEnglish

Dovetail mount: print a sliding rail and socket

A dovetail mount you can print and adjust

A dovetail mount is two plates: one carries a trapezoid tongue, the rail, and the other has a matching groove, the socket. You slide the rail in from the side and the sloped flanks lock the parts together, with no clips, springs or tools. That is why a dovetail slide is so popular for 3D printing: a spool holder on a printer frame, a sensor, a tool holder on the wall or an accessory under the desk comes off and goes back on in seconds.

This generator builds both parts from your measurements. You set the plate size, the number and width of the tongues, height and flank angle, the clearance and the screw holes. Browse the examples, for instance the wall mount with end stop, the self-locking taper mount or the low-profile twin dovetail.

How the generator works

Everything runs in your browser. Nothing is uploaded, and your design lives entirely in the link you get from “Share”. You choose the parts, set size and fit, and download STL or 3MF.

The controls come in four groups:

  • Plates: “Parts”, “Width”, “Length”, “Plate thickness” and “Corner radius”.
  • Dovetail: “Tongues”, “Tongue width”, “Dovetail height” and “Flank angle”.
  • Fit: “Clearance”, “Taper” and “End stop”.
  • Screw holes: “Screw holes”, “Holes per row”, “Hole diameter” and “Head diameter”.

If a combination does not work, the generator corrects it and tells you what it changed. When the plate is too narrow for the dovetail it grows by itself, and a tongue never gets thinner than 1.5 mm at its base.

The plates

“Width” (16–85 mm) runs across the slide direction, “Length” (15–170 mm) along it. Both plates have the same size so they end flush. “Plate thickness” (2.4–10 mm, default 4 mm) is the thickness under the dovetail. The countersunk screw heads sit in it too, so a thick screw needs a thicker plate. “Corner radius” (0–10 mm) rounds the corners seen from above.

Tongue, height and flank angle

The tongue is widest at its top edge, and “Tongue width” (6–40 mm, default 16 mm) is exactly that width. The neck at the base is narrower, about 12 mm with the defaults. “Dovetail height” (1.5–12 mm, default 4 mm) is the height of the tongue and the depth of the groove.

“Tongues” places up to four dovetails side by side. Several narrow tongues stay flatter than one wide one, as in the triple dovetail for wide devices. Use that when your housing has little room in height.

The “Flank angle” (55–80°, default 65°) is the angle of the flanks against the plate. A lower angle holds tighter because the flank undercuts more. A higher angle prints cleaner and slides more easily but holds less. At 90° it would be a straight slot with no holding power. The steep 75° slide shows the easy-sliding side.

Fit: clearance, taper and end stop

The fit decides whether the mount works in daily use.

Clearance

“Clearance” (0–0.6 mm, default 0.2 mm) is the gap between rail and socket on every side. Printed parts are never accurate to 0.05 mm, and without a gap they would fuse. As a rule of thumb:

Material and printerClearance
PLA, well calibrated printer0.15–0.2 mm
PLA, typical printer0.2–0.25 mm
PETG0.3–0.35 mm
taper of 1–2°the flanks have no gap and wedge

A short test piece tells you fastest. The PETG example with 0.35 mm clearance shows the loose variant.

Taper

“Taper” (0–5°) narrows the flanks along the slide. The rail becomes a wedge and locks as soon as both plates are flush. At 1–2° it holds firmly, at 3–4° it lets go easily, and at 0 the slide is straight. With a taper the flanks get no gap, otherwise the wedge would not grip. The 2° locking taper sits tight, while the 4° easy-release taper suits tools you remove often. A taper does not need the “End stop”, because it stops by itself.

End stop

“End stop” closes the groove at the far end. The rail then stops flush with the socket and cannot slip out when the mount hangs on a wall. Switch it off and the groove runs through, so you can slide the rail in from either side.

Screw holes

“Screw holes” offers “Sides” (default), “Center” and “None”.

  • Sides: countersunk holes in the margins of both plates, next to the dovetail. This is the sturdiest choice for wall plates.
  • Center: holes on the axis. In the rail a pocket runs through the tongue so the screw head sits flush. It saves width, as in the mini slide for sensors.
  • None: for parts you glue on, like the socket without holes.

“Holes per row” (1–4) sets the screws along the slide. “Hole diameter” (2–7 mm, default 4.5 mm) is the clearance hole for the shank; 4.5 mm fits 4 mm wood screws or M4. “Head diameter” (4–14 mm, default 8.5 mm) sets the 90° countersink. If the plate is too thin for the head, the generator makes the countersink smaller and warns you. If there is no room for holes it leaves them out and tells you.

Colors

There are two color slots, “Rail” and “Socket”. By default you print both in one color. Give the socket a color of its own and the generator exports the two parts separately. On the bed that makes rail and socket easy to tell apart, and it looks good when one half stays on the wall and the other on the device. The downloads include “Multi-color 3MF (PrusaSlicer)”, “3MF (Bambu Studio / OrcaSlicer)” and “STL per color (ZIP)”. The two parts do not touch, so no color change happens inside a part. Without a multi-material setup, just print both parts one after the other in one color.

Printing

  • Orientation: both parts lie flat with the dovetail pointing up. The layer lines then run across the pull along the rail, and the flanks come out smooth.
  • Supports: not needed. The flank overhang is 90° minus the flank angle, 35° at 55°. All 13 examples sliced in PrusaSlicer without automatic supports.
  • Layer height: 0.2 mm is enough. At 0.12 mm the flanks get smoother.
  • Material: PLA is stiff and fits precisely. PETG is tougher and more forgiving but needs more clearance. For parts under constant load, PETG is the better choice.
  • Walls: three or four perimeters and 20–30 % infill make sturdy tongues. Long rails under load deserve more.
  • Check: print a short test piece, 15–20 mm long, and check the fit before you print the big plate.

Times and weights (PrusaSlicer, Prusa MINI, 0.20 mm SPEED, Prusament PLA):

ExampleFilamentTime
Wall mount 40 × 50 mm15.6 g40 min
Taper mount 2°18.6 g46 min
Mini slide 22 × 25 mm4.2 g13 min
Long rail 120 mm33.2 g1 h 18 min
Heavy shelf mount57.8 g1 h 54 min

Use cases

  • Spool holder: a socket on the frame, the rail on the holder. The detachable spool holder uses a 6 mm plate and 6 mm height for the weight.
  • Wall and shelf: the wall plate carries hooks, boxes or tools. For loads use wide tongues and many screws.
  • Under the desk: a long rail holds a power supply or a power strip.
  • Sensors and electronics: small slides hold sensors, boards or cameras and swap in seconds.
  • A second device: a spare rail lets another part fit the same socket.

For cables on the wall try the cable storage, and for the toolbox the hex key handle.

Origin and license

The idea, the dimensions and the concept come from two models by Jack (Ulrich Bär) on Printables: Dovetail Mount and Dovetail taper Mount, both CC0-1.0. They provided the flank angle of about 65–70°, several narrow tongues, clearance on the profile and the locking taper along the slide. The geometry is newly programmed in this generator, and no OpenSCAD code was taken.

Sliding Mount using Dove Tail by MegaHertz67 (CC-BY-4.0 on the model page) inspired countersunk holes in both parts, an end stop and adjustable plate sizes. Neither code nor geometry was taken; the source is inspiration only. All licenses are listed on the licenses page. The models you generate are yours.

Continue in the generator or the examples.

All parameters

The numeric settings of the generator with their default values and allowed ranges. Text, fonts, patterns and colors are set directly in the generator.

ParameterDefaultRangeMeaning
Plates
Width40 mm16 – 85 mmWidth of both plates across the slide.
Length50 mm15 – 170 mmLength of both plates along the slide direction.
Plate thickness4 mm2.4 – 10 mmThickness of the plates under the dovetail; the countersunk screw heads sit in it.
Corner radius2 mm0 – 10 mmRounding of the plate corners seen from above, 0 = square.
Dovetail
Tongues11 – 4Number of dovetails side by side: several narrow ones stay flatter than one wide one.
Tongue width16 mm6 – 40 mmWidth of each tongue at its wide top edge.
Dovetail height4 mm1.5 – 12 mmHeight of the tongue and depth of the groove (without clearance).
Flank angle65 °55 – 80 °Angle of the flanks against the plate: lower holds tighter, 90° would be a straight slot. 55° or more prints without supports.
Fit
Clearance0.2 mm0 – 0.6 mmGap between rail and socket on every side: 0.2 mm slides well with PLA, more for PETG or a loose fit.
Taper0 °0 – 5 °Narrows the flanks along the slide so the rail wedges tight when the plates are flush: 1–2° holds firmly, 3–4° lets go easily. 0 = straight slide. With a taper the flanks have no gap.
Screw holes
Holes per row21 – 4Number of screws along the slide in each row.
Hole diameter4.5 mm2 – 7 mmClearance hole for the screw shank, e.g. 4.5 mm for 4 mm wood screws or M4.
Head diameter8.5 mm4 – 14 mmDiameter of the countersunk screw head (90° countersink).

Frequently asked questions

Do I need supports?

No. Both parts lie flat on the bed with the dovetail pointing up. The flanks overhang by 90° minus the flank angle, at most 35° at 55°. A PrusaSlicer check of all 13 examples needed no automatic supports.

Which clearance fits my printer?

The default 0.2 mm slides well with PLA. For PETG or a printer that prints slightly oversize, use 0.3–0.35 mm. If the parts rattle, go down to 0.1–0.15 mm or add a taper.

How does the rail stay in place?

With the end stop, the rail stops flush at the closed end. A taper of 1–2° also wedges it tight, 3–4° lets go easily. Without a taper it is held by friction and gravity only.

Can I print just one half?

Yes. “Parts” offers “Rail” or “Socket”. Use it for a second rail for another device or a glue-on socket, without reprinting the other half.

Can I print rail and socket in two colors?

Yes. Give the socket a color of its own and the two parts are exported separately. The 3MF assigns them to the extruders, or you download a ZIP with one STL per color.

Origin & license

  • Dovetail Mount by Jack (Ulrich Bär) · CC0 1.0 · dimensions and shape adopted – dovetail with about 70° flanks, several narrow tongues, clearance on the profile, closed end and lead-in adopted; newly programmed, no OpenSCAD code taken
  • Dovetail taper Mount by Jack (Ulrich Bär) · CC0 1.0 · dimensions and shape adopted – taper along the slide that wedges the rail tight (1.5° firm, 4° easy to open) and 65° flanks adopted
  • Sliding Mount using Dove Tail by MegaHertz67 · CC BY 4.0 · idea – inspiration for countersunk holes in both parts, an end stop and adjustable plate sizes; no code or geometry taken