Desk cable grommet: print one that fits your hole
A tidy hole for your cables in a few clicks
Almost every desk, kitchen table or workbench in the world has the same wish sooner or later: a hole in the top so that the monitor, lamp and charger cables disappear instead of dangling over the edge. Drilling the hole is the easy part. What the bare chipboard edge does to your cables and to your fingers is the problem, and standard grommets from the hardware store come in a handful of sizes that rarely match the hole you actually cut. This generator makes a cable grommet to measure: you enter the hole and the thickness of your desk, and it prints a sleeve that fits exactly, with an optional lid on top.
The standard set is the 60 mm grommet with a slotted lid: a sleeve for a 25 mm thick top with an 8 mm rim, a 56 mm cable opening and a lid that you can lift out. On a Prusa MINI with standard PLA settings, the two parts print together in 55 minutes and use about 24 g of filament.
How the generator works
The desk grommet generator runs completely in your browser. Nothing is uploaded and you need no account. The preview updates while you type, the facts panel shows the size of the cable opening, and when the design looks right you download the parts as STL or 3MF. Your settings are part of the link, so “Share” gives you an address you can bookmark or send to someone with the same desk.
There are three groups of settings:
- Hole in the desk: the shape (round or oval), the diameter or width and length of the hole, the thickness of the top and the play in the hole.
- Grommet: the style (flange or thread with nut), the width and thickness of the rim and the wall of the sleeve. For the threaded style also the pitch, the nut height and the thread play.
- Lid: none, with a cable hole, with a slot or a half lid, plus the size of the cable hole and the thickness of the lid.
Measuring the hole and the desk
Everything starts with two measurements, and both are worth doing with calipers instead of a ruler. Measure the hole at two or three places and use the smallest value: hole saws and Forstner bits leave round holes, but a jigsaw cut or a router slot is usually a bit irregular. Then measure the thickness of the desk at the hole. Many desks have a rim or a lip on the underside, so measure where the sleeve will actually sit.
“Desk thickness” sets the length of the sleeve. In the flanged style the sleeve ends 0.4 mm before the underside so that it never sticks out; in the threaded style the thread is as long as the desk plus the nut plus 1.5 mm. Rim and sleeve are one piece, so you do not have to glue anything together.
“Play in the hole” is the total play between the sleeve and the hole. 0.3 mm suits most printers. If your parts come out a little large, lower it to 0.2 mm; if the first test sticks, raise it to 0.4 mm. For a really tight fit, go down to 0.1 mm and tap the sleeve in with a rubber mallet.
Flange or thread
The flanged style is a sleeve with a rim. It sits in the hole, the rim covers the edge of the cut and the cables run through the middle. It is the simplest and fastest option and the best choice if the hole is round or oval and you can press or glue the part in. A few dots of glue or a strip of double-sided tape under the rim keeps it in place for good.
The threaded style is a two-part grommet: a rim with an external thread and a hex nut that you tighten from below. It holds without glue, sits tight even if the hole is a little too large and comes out again when you move. The thread is coarse on purpose, 5 mm pitch by default, with 45° flanks and a flat crest, so it prints without supports, screws in quickly and tolerates the 0.3 mm play between the bolt and the nut. The screw-in grommet for 60 mm takes 1 hour 37 minutes and 40 g with the lid, the nut and the sleeve.
Threads need a round hole, so “Hole shape” is only available for the flanged style. If you pick a threaded grommet and an oval shape together, the generator uses the width as the diameter and tells you so.
Round and oval holes
Round holes are the common case, and the generator accepts anything from 20 to 100 mm. For the slots that a router cuts, switch the shape to “Oval” and enter the width and the length. The outline is a stadium shape, a rectangle with two half circles at the ends, which is what a router makes with a straight bit. The sleeve, the rim and the lid are all offsets of the same shape, so the wall is even everywhere. The oval 40 × 80 mm grommet shows a typical slot, and the 50 × 120 mm slot with a half lid is big enough for a whole bundle of monitor cables.
Wall, rim and cable opening
“Wall” sets the thickness of the sleeve; what is left inside is the cable opening. At the 60 mm default, a 2 mm wall leaves 55.7 mm. The facts panel and the info line under the style settings show the opening, so you can check it against the plug you have to pass through. A thicker wall makes the sleeve stiffer, a thinner one gives you more room: 1.6 mm is a good minimum with a 0.4 mm nozzle (four lines), and the 35 mm grommet for thin desks uses exactly that.
“Flange width” is how far the rim reaches over the hole. 6 to 10 mm covers a rough edge and leaves room for a lid seat; very wide rims look more like a bowl. “Flange thickness” defaults to 5 mm because the lid seat needs depth. Without a lid you can go down to 3 mm, as in the plain 50 mm sleeve, which takes only 30 minutes. If you add a lid and the rim is too thin for the seat, the generator thickens it and shows a notice.
The lid: ring, slot or half
A lid keeps dust, crumbs and coffee out of the hole and hides the cables. There are three versions:
- Cable hole: a ring with one round opening in the middle. Best for cables that stay in place, like the large 80 mm grommet for a power strip.
- Slot: the same ring with an open slot to the edge. You can drop a cable and its plug in from the side, so you don’t have to thread plugs through the hole. This is the default.
- Half lid: a half disc that covers one half of the opening. The other half stays open for big plugs. The half lid on a kitchen table grommet comes off with one hand.
The size of the cable hole is limited to what the lid can hold: it always keeps a 1.2 mm rim, and the generator tells you if it had to make the hole smaller. The slot is 60 % as wide as the cable hole, and at least 4 mm.
The lid sits in a 45° cone seat in the rim. This is more than a design detail: a step in the rim would have to be printed as a horizontal overhang, but a 45° cone is a slope every printer handles. The lid is the matching frustum, printed with its wide face on the bed. It drops into the seat on its own, ends almost flush with the rim (0.25 mm play to the seat) and can be lifted out with a fingernail.
Colors and multi-material
The grommet and the lid have a color each. Leave the lid color empty and both parts are printed in the same filament. Pick a second color and the 3MF contains two parts for a multi-material printer: the dark sleeve with a white or orange lid, as in the two-color lid example or the orange lid on a threaded grommet. The lid is a separate part next to the sleeve and does not sit inside another colored part, so there are no hidden color changes in the middle of a layer. For a single-material printer, the STL contains everything in one file.
Plate layout
The sleeve, the nut and the lid are all placed on the plate side by side. If they fit in rows on the 18 × 18 cm plate of a Prusa MINI, they are placed in rows. Wide parts that would not fit that way are packed along the diagonal, which is how the 80 mm workbench grommet fits with its lid on one plate. If the parts are too big for one plate (for example a 100 mm hole with the widest rim), the generator tells you to print them one after the other. Every single part is at most 180 mm wide.
Printing tips
The grommet is printed upside down, so the visible face of the rim is the one on the bed and gets the smooth first layer. A few settings make a difference:
- Material: PLA is fine indoors. Use PETG if the desk gets warm from lamps and monitors or if you want a little elasticity in the sleeve.
- Layer height: 0.2 mm is what we sliced with. The 45° seat is built in 0.2 mm steps and fits that height best; at 0.15 mm it prints just as well.
- Perimeters: the sleeve is thin, so make sure the slicer prints it with at least three perimeters and does not fill the gaps with infill only.
- Brim: the flat rim has a large contact area, so no brim is needed. On a very smooth bed a brim on the lid avoids warping.
- Test the fit: for the first print, set the desk thickness to its minimum of 8 mm in the generator and print that short sleeve. You will see whether the play is right in a few minutes.
Credits and licenses
The geometry and the code of this generator are our own work. The idea of a parametric desk grommet goes back to Parametric Desk Grommet by thibmaek (CC-BY), and the two-part grommet with a threaded ring was inspired by Threaded Grommet Parametric OpenSCAD by Vivien Petersen (CC-BY). No code or mesh was taken from either model. The thread helper used by the generator is based on threads-scad by Ryan A. Colyer (CC0). All license texts are on the licenses page.
Open the desk grommet generator, enter your hole and print the part you could not find in a store. If you also need to hold the cables underneath, the cable clip and the cable comb pair well with it.
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.
| Parameter | Default | Range | Meaning |
|---|---|---|---|
| Hole Ø | 60 | – | Diameter of the hole in the desk; for an oval hole its width. Measure it with calipers, not by eye. |
| Hole length | 80 | – | Length of the oval hole from end to end. It cannot be shorter than the width. |
| Desk thickness | 25 | – | Thickness of the desk top at the hole. The sleeve (flanged) or the thread (threaded, plus the nut) is made to match. |
| Play in the hole | 0.3 | – | Total play between the sleeve and the hole. For a tight press fit use 0.1 to 0.2 mm, for an easy fit 0.4 mm. For the thread this is the play of its crests. |
| Flange width | 8 | – | How far the rim reaches beyond the hole. It covers the edge and carries the lid. |
| Flange thickness | 5 | – | Thickness of the rim. With a lid it is raised as far as the lid seat needs. |
| Wall | 2 | – | Wall of the sleeve. What remains inside is the cable opening. |
| Thread pitch | 5 | – | Distance between thread turns. Coarse threads print well and screw in quickly. |
| Nut height | 9 | – | Height of the hex nut. The thread is as long as the desk and the nut together plus 1.5 mm. |
| Thread play | 0.3 | – | Radial play between bolt and nut thread. If the nut sticks, raise it; if it wobbles, lower it. |
| Cable hole Ø | 20 | – | Diameter of the opening in the lid. The slot is 60 % of it wide. It is limited to what the lid can hold. |
| Lid thickness | 2.4 | – | Thickness of the lid. It sits in a 45° seat in the rim and ends flush with it. |
Frequently asked questions
Does the desk grommet need supports?
No. It is printed upside down, with the rim lying flat on the bed and the sleeve standing on its back. The lid seat is a 45° cone, the lid is the matching frustum with its wide face on the bed, and the thread flanks are steeper than 45°. We re-sliced the default example with automatic supports switched on and the slicer still added none.
How do I measure the hole?
Measure the diameter of the hole in the desk with calipers at two or three places and take the smallest value, because saw cuts are rarely perfectly round. For an oval hole measure the width and the length. Enter the values under “Hole in the desk” and keep the default play of 0.3 mm for a first print.
How does the flanged grommet stay in the hole?
By friction and by its rim. With a play of 0.1 to 0.2 mm you press it in, with 0.3 to 0.4 mm it slides in and a few dots of glue or a strip of double-sided tape under the rim hold it. If you want to be able to remove it, use the threaded style, which is clamped with a nut.
Can I use it for an oval hole?
Yes, in the flanged style. Choose “Oval”, enter the width and the length of the slot and the sleeve, flange and lid all follow the stadium shape of a router cut. The threaded style is always round.
Which lid is right for me?
A lid with a cable hole looks the tidiest when the cables stay permanently. The slotted lid lets you drop in a cable together with its plug from the side. The half lid covers one half of the opening and leaves the other open for bulky plugs such as HDMI or power bricks.
Is anything uploaded?
No. Everything is calculated in your browser, and your design is stored only in the link (“Share”).
Origin & license
- Parametric Desk Grommet by thibmaek · CC BY 4.0 · idea – Idea of a parametric desk grommet driven by hole size and desk thickness; geometry and code are our own work
- Threaded Grommet Parametric OpenSCAD by Vivien Petersen · CC BY 4.0 · idea – Idea of a two-part grommet made of a threaded ring and a nut; thread and dimensions are our own work