3D Printing Generator
DeutschEnglish

Print rack rails: a desktop rack for studio and homelab

A rack without a cabinet

A 19-inch rack doesn’t have to be a heavy cabinet. For an audio interface, a compressor, a power conditioner or a small switch on your desk, two vertical rack rails that the gear’s ears screw onto are all you need. This generator prints those rails for you: with an angled desk foot, with a sliding-nut channel instead of cage nuts and, when your rack grows taller, as stackable segments.

Start with the examples: the 3U rail pair, the 2U rails for audio gear, the 8U rack from segments or the rails for 10-32 screws. If a device has no ears, give it some with the rack mount, put it on a rack tray or close gaps with a rack panel.

How the generator works

The generator runs entirely in your browser. Nothing is uploaded, and your design lives in the link: “Share” sends exactly these rails to someone else. The preview shows them the way they print, standing side by side on a 180 mm bed.

The rail comes from “Customizable 19″ Rack Rails for Audio/IT Gear” by Schreibmaschine, an OpenSCAD model on Printables. We ported the script to TypeScript and compared it with OpenSCAD: in seven test cases, from the original’s defaults through right-hand rails and feet at both ends to segments with pins, the volume differs by 0.01 % at most and the outer dimensions match exactly. Every size that the original hard-codes is now a setting. The rail pair, the nut sizes, the automatic split into segments and the print orientation are new.

Getting your rails takes four steps:

  1. Choose the “Rack units” of the whole rail.
  2. Decide what sits at the top and bottom: a desk foot, a coupler or nothing.
  3. Pick the nut that matches your rack screws.
  4. Download the STL or 3MF and print it standing.

Rack units and spacing

One rack unit (U, “HE” in German) is 44.45 mm. A 1U device is just under 44 mm tall, a 2U device just under 89 mm. The rail is exactly as tall as its units: 3U is 133.35 mm, 4U is 177.8 mm. Small 45° notches on the front mark every unit boundary, so you find the right height at a glance. “Unit marks” turns them off.

The rack’s width isn’t built into the rails; it is the distance you stand them apart. A 19-inch device is 482.6 mm wide and its mounting holes are 465 mm apart, so place the rails with their slot centers exactly that far apart. The inner edges then sit about 448 mm apart, enough for the usual 445 mm wide device cases. For 10-inch gear, as used in mini racks, it’s 236.5 mm between the slots. The easiest way is to screw the feet to a board that holds the spacing.

“Rail” offers “Left”, “Right” and “Pair”. The two sides are mirror images: the slot is always on the inner side facing the device, the unit notches on the outside. A rack needs a pair; single sides are handy as spare parts, like the single right rail without marks.

Nuts instead of cage nuts

Store-bought rack rails have square holes for clip-in cage nuts. The printed rail has a continuous slot in the front instead, with a channel behind it in which nuts slide to any height. Slide the nuts in from the top or the bottom, hold the device in place and screw through its ear and the slot into the nut.

The original profile is 31.6 mm wide and 46.6 mm deep, with a 45° chamfer at the back. In front of the nut channel sits a 2.6 mm “Front wall” that the device ear rests on. The presets under “Nut”:

NutSlot widthChannel widthChannel heightNuts that fit
M6 (original)6.6 mm11.6 mm4.2 mmthin DIN 439, square DIN 562
M55.6 mm9.0 mm4.2 mmregular DIN 934, square DIN 562
10-325.4 mm10.2 mm3.6 mmimperial 10-32 nuts (3/8″)
M44.6 mm7.5 mm3.6 mmregular DIN 934, square DIN 562

A note on M6: regular hex nuts are 5 mm thick and don’t fit the 4.2 mm channel. Use thin nuts or square nuts; square nuts can’t turn in the channel and are the easiest to tighten. M6 × 10 or M6 × 12 screws are long enough, since behind the channel the screw tip has only 3.2 mm of “Slot depth” left.

“Custom” unlocks “Slot width”, “Channel width” and “Channel height”. “Wall unit” (4–10 mm, original 5 mm) sets the profile width, which is 5 × wall unit + slot width. With 4 mm and M4 the rail is only 24.6 mm wide, as in the slim rails for M4. To keep the profile in one piece, the generator always leaves at least 1.2 mm of wall beside the channel and lets the slot reach past the channel.

Desk foot

The original’s desk foot is a block behind the rail, 55 mm tall and 120 mm long, whose top drops to the back in a hollow curve. The curve is a slightly conical cut: at the back the foot stays 23 mm tall on the outer side and 3 mm on the inner side. Three 4 mm holes with wide conical counterbores take wood screws to fix the foot to a base board.

“Foot length” (60–160 mm) makes the foot shorter or longer; below 110 mm you get two screw holes, below 80 mm one. “Foot curve radius” (80–300 mm, original 144 mm) makes the curve flatter or steeper. Short feet like those of the rails for 10-inch gear are fine for light devices. On a rail of only 1U the foot is taller than the rail, so the generator cuts it to the rail’s height.

Stacking with couplers

For taller racks you stack rails. “Coupler + (pins)” carries two pins, 6 mm across and 8 mm long, plus a hole for an M4 bolt with a hex nut trap. “Coupler − (holes)” has the matching 6.1 mm holes and a recess for the bolt head. Both couplers sit behind the rail as angled gussets. Push the pins into the holes, run an M4 × 25 bolt through both gussets and tighten it with an M4 nut.

The generator plans the segments itself. With “U per segment” at 0 it splits the rail so no part is taller than 180 mm: at most 3U with pins (143.35 mm), 4U without. Your foot stays at the bottom; at every joint the pins go on top of the lower segment and the holes at the bottom of the upper one. The list under “Printing” shows every segment with its height. An 8U rack becomes three segments per side of 3, 3 and 2U, a 12U homelab rack four of 3U each.

If not all parts fit one bed, the generator lays them out side by side on several beds and tells you how many. Use “Segment” to download one segment at a time (both sides for a pair) and print them one after another. Single segments that extend an existing rail are set up by hand, such as the middle segment or the top segment with a second foot.

Printing

  • Orientation: standing, as the generator places the parts. The rail’s cross-section sits on the bed; the slot and the nut channel grow straight up.
  • Upside down: a segment with pins at the bottom or a foot on top is turned over automatically, so the pins end up on top and the foot on the bed. The list under “Printing” marks such parts “upside down”.
  • Supports: not needed. The couplers slope at 45°, and the tops of the holes and the nut trap are short bridges of up to 8.2 mm. Only a segment with feet or pins at both ends can’t print without supports either way up; the generator warns you then.
  • Print time and filament: in PrusaSlicer (Prusa MINI, 0.20 mm SPEED, Prusament PLA, 15 % infill, two walls) the 3U pair takes 145 g and 5 h 28 min, a single rail of it 71 g and 3 h 17 min. With four walls and 30 % infill the pair needs 236 g and 8 h 18 min. The 8U rack fits all six segments on one bed: 335 g in 13 h 13 min.
  • Material: PLA is fine for light gear on a desk. For heavy or warm devices use PETG with four walls and 30 % infill.
  • Fit: the pins have 0.1 mm of play in diameter. If they are too tight, run a 6 mm drill through the holes.
  • Assembly: slide the nuts into the channel before you add the next segment, then screw the feet to a base board and mount the gear last.

Origin and license

Profile, nut channel, unit notches, desk foot and couplers are a port of “Customizable 19″ Rack Rails for Audio/IT Gear” by Schreibmaschine, published under CC BY 4.0. We translated the OpenSCAD script to TypeScript and extended it with adjustable profile sizes, nut sizes, the mirrored pair, automatic segments, print orientation and foot length. All licenses are listed on the licenses page.

Get started in the generator, browse the examples or build a matching case for a device without ears with the rack mount.

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
Rail
Rack units3 U1 – 42 UHeight of the whole rail in rack units (U) of 44.45 mm. A 1U device is 44.45 mm tall, 2U is 88.9 mm.
Wall unit5 mm4 – 10 mmBase size of the profile: the rail is 5 × wall unit + slot width wide (31.6 mm in the original with 5 mm).
Ends
Foot length120 mm60 – 160 mmHow far the foot reaches back. It starts 16 mm behind the front; the original uses 120 mm, short feet are fine for light gear.
Foot curve radius144 mm80 – 300 mmRadius of the hollow curve that makes the foot slope down to the back. Larger = a flatter curve and more material. Original: 144 mm (inner side) to 164 mm (outer side).
Screw & nut
Slot width6.6 mm3 – 9 mmWidth of the vertical slot in the front that the rack screw passes through. M6: 6.6 mm.
Slot depth10 mm5 – 20 mmHow far the slot reaches back from the front, leaving room for the screw tip behind the nut.
Channel width11.6 mm6 – 16 mmWidth of the nut channel. A little wider than the nut across flats so it slides; square nuts cannot turn in it.
Channel height4.2 mm2 – 8 mmRoom for the nut’s thickness (front to back). 4.2 mm takes thin M6 nuts (DIN 439) and square nuts (DIN 562).
Front wall2.6 mm1.6 – 5 mmThe wall in front of the nut channel that the device’s rack ear rests on. Thicker holds more but needs longer screws.
Printing
U per segment0 U0 – 10 U0 = automatic: taller rails are split into segments that stay below 180 mm print height with pins (3U with pins, 4U without). Otherwise this many U per segment.
Segment00 – 420 = every segment in the download. With 1, 2, … you get only that segment (both sides for a pair) and print one bed at a time.

Frequently asked questions

How far apart do the rails go?

Far enough for the gear’s ears to rest on them: 465 mm between the slot centers for 19-inch gear, 236.5 mm for 10-inch gear. A board or base plate that you screw the feet to keeps them in place.

Which nuts do I need?

With the defaults, thin M6 hex nuts (DIN 439, 3.2 mm) or square nuts (DIN 562). Regular M6 nuts are 5 mm thick and do not fit the 4.2 mm channel. Slide them in from the top or the bottom.

My printer is too small for 4U.

Leave “U per segment” at 0. The generator then splits taller rails into segments of at most 180 mm, joined by pins and one M4 bolt per joint.

How much weight do the rails hold?

Light audio and network gear such as interfaces, switches or patch panels easily. For heavy devices print in PETG with four walls and 30 % infill, screw the feet down and add a rear connection between the rails.

Does it work for 10-inch gear?

Yes. The rails do not depend on the rack width because the gear’s ears set the spacing. For 10-inch gear you simply stand them closer together.

Do I need supports?

No. Segments print standing, every slope is at most 45°, and the tops of the holes are short bridges. Parts with pins at the bottom or a foot on top are placed upside down automatically. Only feet at both ends need supports.

Origin & license