You print a carriage for a rail: the stop on a drilling jig, the base of a desk lamp, a saw guide. Either it jams halfway along or it rocks so much it is useless. Both failures come from three numbers: the clearance per flank, the length of the carriage and the point where you push it. Pick the profile by the direction the load pulls, remove the play with a gib rather than by printing tighter, and make the carriage as long as the push point demands.
Three profiles and the load each one takes
Here the rail is the fixed part and the carriage the one that moves. The flank angle, θ, is always measured from the separation direction, the same convention as in Printed dovetails and joinery: θ = 0 is a straight slot that retains nothing and θ = 90° is the flat ledge of a T. Machine-tool dovetail slides are quoted "from the base", usually 45–60°: here that is θ = 30–45°.
A rail leaves one translation free and blocks the other five degrees of freedom by surface contact. With real clearance, the carriage keeps some pitch, yaw and roll, less the longer the contact. The numbers are in the racking section.
Tongue and groove. A tongue on the carriage runs in an open groove in the rail. It guides sideways but holds nothing upwards. It works when gravity or a cover keeps the carriage down: drawer runners, a sliding lid. Close the groove over the tongue and you have a T or a dovetail.
T-rail. The ledges are flat (θ = 90°). An upward load F presses the carriage squarely against both ledges: N = F / 2 per ledge, no wedging. The side load goes into the vertical faces of the web. Because each direction loads different faces, you can give the ledges one clearance and the web another.
Dovetail. The sloping flanks take the upward and the side load at once. With an upward load F and no friction, the cautious case, each flank sees N = F / (2·sin θ). With a side load P, the loaded flank sees at least N = P / cos θ; its vertical component is taken by the other faces, so treat it as a lower bound. At 45°, 1/sin θ and 1/cos θ are both 1.41: an upward load puts 0.71·F on each flank and a side load at least 1.41·P on one; one geometry that holds in both directions and locates on two faces. Arca-Swiss-compatible plates and most printed rails laid flat are at 45° too (Arca-Swiss-compatible plates).
Friction under load. The force to drag the carriage is μ·ΣN. With an upward load F, a T-rail gives μ·F of friction; a dovetail, μ·F / sin θ. At 45° that is 1.41·μ·F; at 30°, 2·μ·F; at 20°, 2.9·μ·F. The steeper the flank (small θ, closer to a straight slot), the harder the wedge bites and the more it drags. With no load across the rail, the angle barely changes the sliding force.
Play. With the same clearance s per flank, the carriage can lift s / sin θ and shift s / cos θ to each side, the same formula as in Printed dovetails and joinery. At 45° with s = 0.20 mm that is 0.28 mm upwards and 0.28 mm to each side; at 20°, 0.58 mm upwards. Any θ > 0 retains: retention is geometric. What θ decides is the wedging (1 / sin θ) and the play (s / sin θ), and lowering one raises the other. Hence the gib in the next section.
| Profile | Holds | Friction under an upward load F | How to print it |
|---|---|---|---|
| Tongue and groove | sideways; nothing upwards | — (does not hold it) | flat, no overhangs |
| T-rail | upwards and sideways, separately | μ·F | web on the bed, or ledges chamfered at 45° |
| Dovetail at 45° | both; one part to adjust | 1.41·μ·F | on its side, 45° flanks without support |
| Dovetail at 20° | both, with more upward play | 2.9·μ·F | on its side only with support |
To choose: no upward load, a tongue; mostly upward load, or different clearances in each direction, a T; both loads, little space and one part to adjust, a dovetail at 40–45°.
Flank clearance and the gib
The clearance per flank is the sliding fit for your class of machine, measured square to each face, never across the overall width. Today (late 2026) that is 0.25–0.30 mm on a legacy bedslinger, 0.20 mm on a modern bedslinger and 0.15 mm on an enclosed CoreXY. Where those numbers come from and how to measure them is in Real printed clearances; when to use the sliding fit and when the locating fit, in Choosing the fit: clearance, transition, interference. A straight rail needs no more clearance for being long; if a test coupon cut from a long section binds, add 0.05 mm.
Friction does not add up along the contact. For a given load, μ·N depends little on area: that is Amontons' law, roughly. A long rail binds because it is not straight or not parallel along its whole length: it bows, warps or has a squashed first layer, and a single tight spot concentrates the whole preload. The fix is to straighten the rail, not to open the clearance everywhere.
The gib. To remove play without binding, machine tools use a gib: a loose strip along one flank, pushed by screws. That is workshop practice, not a standard.
The printed version:
- Print the carriage with a fit looser than the sliding fit, 0.25–0.30 mm per flank.
- Make one flank a separate gib, 3–4 mm thick.
- Push it with two M3 set screws threaded into heat-set inserts (Designing for heat-set inserts) or captive nuts, at 1/4 and 3/4 of the carriage length.
- Tighten until the play is gone, then back off until it slides.
The set screws push the gib, not the rail. A screw tip against the rail marks it and preloads only one point.
Spring flank, no screws. A flank can be a flexible beam that preloads the rail. Draw the beam in the profile sketch, separated from the carriage body by a slot that runs its full length, and extrude it along the axis; do not cut it out as a tongue running along the carriage. Print the carriage with the sliding axis vertical: the beam becomes a wall that flexes in XY, stance B in Layer orientation for mechanisms. A tongue cut along the carriage would have its length in Z, stance C, and would snap along a layer at the root. The strain at the beam's root is ε ≈ 1.5·t·y / ℓ², with t the beam's thickness, ℓ its length and y the deflection at the tip; for repeated use stay below 2 % in PETG and 1–1.5 % in PLA. When to preload and when to leave a dead band is explained in Clearances for moving parts.
Plastic preload relaxes by creep, in any printed plastic: a spring flank loses part of its force within days. For sustained load use PC, ASA or a fiber-filled grade; PLA and PETG are fine for a light load with no heat (Creep and fatigue). A screwed gib can be readjusted after 48 h; a spring flank cannot.
Locking is not adjusting. If the carriage has to stay put, a screw with a knob that clamps against a T-nut or a pad holds it still. The gib removes the play; the lock fixes the position.
Racking: carriage length and push point
You push with a force F parallel to the rail, but at a sideways distance a from its axis. The carriage, with a contact length L, turns slightly and bears on two diagonally opposite corners. The couple F·a is balanced by the normal reactions at those two corners, N ≈ F·a / L. The friction at the two corners adds up to 2·μ·N = 2·μ·F·a / L. The carriage jams when that friction reaches F:
a ≥ L / (2·μ)
F drops out of the condition: pushing harder never frees it.
With μ = 0.25 this gives a < 2·L, igus's 2:1 rule; its name and the version for a rod are in Rod and linear bushing. Dry, printed plastic on printed plastic gives μ = 0.3–0.5: a < 1.67·L at best and a < 1.0·L at worst. Greased, or with PTFE lubricant, it drops to 0.05–0.15, and then a < 3·L to 10·L. Lubrication is the cheapest cure for racking (Friction and wear).
In a dovetail, the corners that touch when the carriage turns sit on the sloping flanks. Each corner's normal is amplified, like a side load, by 1 / cos θ, and its vertical component presses the carriage onto the flat face of the rail, which adds its own friction. The effective friction lies between μ / cos θ and μ·(1 + sin θ) / cos θ: at 45°, between 1.41·μ and 2.41·μ. Design with the high value. With μ = 0.5 that gives μ' = 1.21 and a < 0.41·L. It is an estimate; check it on the real carriage.
Play turns into tilt. A play δ, counted stop to stop, over a contact length L tilts the carriage by ≈ δ / L, and a point at a distance R moves R·δ / L. For pitch, δ is the upward play, s / sin θ, because one end stays seated. For yaw, the one racking causes, the carriage turns until it touches at two opposite corners, and δ = 2·s / cos θ. At 45° with s = 0.20 mm and L = 40 mm, pitch is 0.28 / 40 = 7 mrad and yaw 0.57 / 40 = 14 mrad (0.8°): the tip of a pen at 100 mm moves 0.7 mm up and down and 1.4 mm side to side. Double L and you halve it. It is the same rule as for the pin in Clearances for moving parts, where the play is the diametral clearance c.
Three rules follow:
- Contact length L ≥ 1.5 × the rail width.
- Push on the rail axis. A lead screw or a belt attaches under the carriage, not to one side (Lead screws).
- A knob off to one side needs a longer carriage, the more so the drier the contact.

Printing the rail straight and the flanks clean
The carriage, short, prints with the sliding axis vertical and the profile in XY. Each flank is a wall, accurate and with no overhang, and a spring flank ends up in stance B. It is the best of the three stances drawn in Printed dovetails and joinery. It has a cost: the layer steps run across the sliding direction, a washboard that drags more and wears sooner. Print the carriage with fine layers (0.12 mm), then run it in or lubricate it.
The rail, long, lies flat on the bed.
- On its side (separation horizontal): the lower flank is an overhang at θ from horizontal and prints without support at θ ≥ 45°: design overhangs at 45° measured from the vertical; whatever your machine bridges beyond that is for your own parts (Orientation and overhangs). That is the other reason rails laid flat end up at 45°. Printed this way, a T-rail leaves the underside of the ledge as a flat ceiling, which sags: chamfer the ledge at 45° (and it becomes a dovetail) or print the T with the web on the bed. The rail's mounting holes end up horizontal: make them teardrops (Designing out supports).
- Standing up (separation in Z): the flanks come out well, but an upward load pulls the neck across the layers, stance C. Use it only with a light upward load and design with 50 % of the XY strength (Layer adhesion and anisotropy).
Corners. The nozzle cannot print a sharp concave corner in XY: it leaves a radius of roughly its own. The inside corners of the female touch the sharp edges of the male before the flanks seat. Add reliefs in the concave corners of the female, or chamfer the convex edges of the male by 0.3–0.5 mm. The relief goes in the corner, where the flank meets the floor, not in the middle of the floor.
The bed face. Elephant's foot widens the first layers: it fattens the edge of the rail that touches the bed and narrows the carriage mouth exactly where the rail enters. Chamfer the bed edges of rail and carriage at 0.5 × 45° (The face on the bed) and put a 1–2 mm lead-in chamfer on both ends of the rail. Do not compensate by opening the clearance.
Straightness. A long rail warps or bows on the bed (Warping and lifting corners, Shrinkage and dimensional stability). Lengthwise shrinkage does not matter: PLA's ≈ 0.3 % leaves a 200 mm rail about 0.6 mm shorter, but the section barely changes (20 mm × 0.3 % = 0.06 mm) and the carriage shrinks by the same. The problem is the bow. Check it with a steel rule, screw the rail to something straight every 40–60 mm and, if it does not fit the bed, split it into sections aligned with dowels (Splitting large parts). That "something straight" is usually an aluminum extrusion.
Using aluminum extrusion
Extrusion is straight, stiff and its anodizing is hard: let it be the rail and print only the carriage. There are two ways, and a hybrid.
The carriage wraps the extrusion. For a 2020, start with an opening of 20 + 2 × (0.20 + 0.05) = 20.5 mm on a modern machine: sliding fit plus hole compensation, per side. The reasoning is in 2020 aluminum extrusion. Do not bear on whole faces but on narrow pads, 3–5 mm, near the edges of each face. A few well-defined contacts tolerate print error and the radii on the extrusion's corners, and a pad can double as a gib. If the carriage wraps only two or three faces, add a tongue in a slot so it cannot roll: 5.6 mm in a 6 mm B-type slot with the sliding fit.
Locking. A screw through the carriage into a T-nut in the slot fixes it when tightened and releases it when loosened. With a knob, it locks one-handed. If the frame is already closed, use drop-in T-nuts, which go in through the slot opening.
Printed rail on an extrusion. Screw a printed dovetail strip to the extrusion, with T-nuts every 40–60 mm. The extrusion keeps it straight and the strip gives you the dovetail. Use it when you want a proper dovetail or do not want to wear the extrusion.
Friction against anodized aluminum. There is no reliable published value for printed plastic on anodized aluminum. Start with plastic on steel, 0.2–0.35 for printed PLA and PETG and 0.1–0.25 for PA and POM, and measure it. A dry PTFE lubricant helps; in a workshop, avoid grease: it traps chips and sawdust.
On a V-slot extrusion, the 45° chamfers of the slot take printed V pads, a sliding version of the wheeled carriage. The wheels, eccentric spacers and MGN rails are in MGN rails and V-wheels.
Worked example: a sliding stop for a drilling jig
The brief. A stop that travels 150 mm along a printed rail, is moved by hand with a knob 30 mm off the rail axis, and locks. It takes a side push from the workpiece of up to 20 N and an upward pull of up to 10 N when the workpiece comes out. PETG, modern 256 mm bedslinger. Rail 200 mm long and 20 mm wide.
Profile. There is upward and side load: a dovetail at θ = 45°, which also prints on its side without support. The rail fits flat on the bed; the carriage prints with its axis vertical.
Clearance. With the 0.20 mm sliding fit per flank, the play is 0.20 / sin 45° = 0.28 mm upwards and to each side. For a stop, 0.28 mm of play at the stop face is too much. Decision: print the carriage at 0.30 mm per flank and add a gib with two M3 set screws in heat-set inserts that takes the play to zero. The knob does the locking, with a screw that clamps a pad against the rail.
Length. PETG on PETG, dry, μ = 0.4 (within 0.3–0.5). With the dovetail's high value, μ' = 2.41 × 0.4 ≈ 0.97, and you need L > 2·μ'·a = 2 × 0.97 × 30 ≈ 58 mm. At worst, μ = 0.5, μ' = 1.21 and L > 72 mm. The width rule asks for L ≥ 1.5 × 20 = 30 mm. Choose L = 75 mm. Greased (μ = 0.1, μ' = 0.24), 15 mm would do, but design for dry: grease goes and dust arrives. If 75 mm will not fit, bring the knob closer to the axis: with a = 15 mm, 37 mm is enough.
Friction. While you position it, unloaded, only the gib preload drags, and you set that by hand. Under the 20 N side push, friction is at least μ·P / cos θ = 0.4 × 20 × 1.41 ≈ 11 N. Do not rely on it to hold the stop: friction does not fix a position, and vibration and grease take it away. Lock it. Under the 10 N upward pull, 0.4 × 10 × 1.41 ≈ 6 N.
Tilt. With the gib at zero, tilt is limited by the gib's stiffness, not the clearance. Without a gib, at 0.30 mm per flank the carriage has 0.42 mm of play upwards and to each side. Yaw is 2 × 0.42 / 75 ≈ 11 mrad: 1.1 mm side to side on a stop face 100 mm out. With the gib, what is left in practice is the flatness error of the print. That is why you choose the gib rather than printing tighter.
Printing.
- Rail on its side, with the 45° flanks as overhangs, the bed edges chamfered at 0.5 × 45°, 1.5 mm lead-in chamfers on both ends and teardrop mounting holes.
- Carriage with the axis vertical, 75 mm tall, 0.12 mm layers and reliefs in its concave corners.
- Gib printed separately, also with the axis vertical.
- Rail screwed to the jig base every 50 mm to keep it straight.
When it fails
| Symptom | Cause | Fix |
|---|---|---|
| Slides when pushed on the axis, jams when pushed by the knob | racking: a ≥ L / (2·μ') | longer carriage, push on the axis, lubricant |
| Tight at one end of the rail and loose at the other | the rail has bowed or warped | screw it to a straight base or an extrusion and check it with a rule; do not open the clearance |
| Binds only in the first few millimeters | elephant's foot on the bed face | 0.5 × 45° chamfer and a lead-in chamfer |
| The flanks do not seat; the carriage bears on the corners | the nozzle rounds the concave corners | corner reliefs or chamfered edges |
| The carriage pitches or lifts | play s / sin θ and a short carriage | gib, longer carriage, θ nearer 45° than 20° |
| Hard to move under load | steep flanks (small θ): μ·F / sin θ | open θ to 45° or use a T for upward loads; lubricate |
| The rail's lower flank comes out rough and the carriage scrapes | rail on its side with θ below 45° | 45° flanks, support with a good interface, or the rail standing up if the load is light |
| Drags in jerks and sheds dust | carriage layer steps across the sliding direction | 0.12 mm layers on the carriage, running-in, lubricant |
| The play comes back after a few days | creep of the gib or spring-flank preload | readjust the gib after 48 h; when warm, PETG over PLA; for sustained load, PC or ASA; metal set screws pushing a gib |
| The play grows after weeks of use | wear | lubricant; low-friction filament on the carriage only (Friction and wear, Which plastic for which mechanism) |
| The tongue lifts out of the groove | an open groove does not hold upwards | a T or a dovetail, or a cover on top |
| The carriage on a 2020 rolls round the extrusion | it wraps too few faces | add a tongue in a slot |
How to test it
First, a 20 mm slice of rail and carriage with clearances of 0.15, 0.20, 0.25 and 0.30 mm per flank to choose from. Then the whole carriage. Measure the force to slide it with a luggage scale, pulling on the knob and pulling on the axis: the difference is what racking costs you. Measure the play at the stop face with a dial indicator or feeler gauges. Run 1000 strokes and measure again. Readjust the gib after 48 h, once the preload has relaxed. How to set up these tests is in Testing a mechanism before you trust it and Test coupons.
See also
- Printed dovetails and joinery: the dovetail as a fixed joint and the three print stances.
- Choosing a linear guide: when a sliding rail and when another guide.
- MGN rails and V-wheels: bought rolling guides, for when plastic is no longer enough.
- Lead screws: when a screw drives the carriage.
