Short answer: give the machine 3 in [75 mm] of clear space at each side and at the back, 4 in [100 mm] at the front, and 6 in [150 mm] above full Z travel with the drag chain at its top. A router with a 27 x 33 x 19 in envelope then needs a box of 39 x 34 x 25 in inside [990 x 864 x 635 mm]. The tempting 30 x 36 x 24 in box leaves 1.5 in at each side and 1.5 in front and back, and it misses the width and depth minimums outright. Those gaps are not padding: they are the room you clean in, the reach to the homing switches, and the height that keeps the dust hose open at the end of travel.
The clearances that set the box
Size every gap from the machine at full travel, not from the frame. Jog each axis to both stops and measure the widest, longest and tallest points, with the drag chains and cables in place. A gantry's chains hang past the frame at the ends of travel, and that overhang is real width and depth the cut sheet never lists. Each gap below has a job. Together they are the difference between servicing the machine and pulling panels off to reach it.
| Gap | Plan for | Floor | What it buys you |
|---|---|---|---|
| Each side | 3 in [75 mm] | 2 in [50 mm] | A hand and a vacuum nozzle beside the rails, side service on the carriage |
| Back | 3 in [75 mm] | 3 in | Reach to the homing switches, room for the Y chain overhang |
| Front | 4 in [100 mm] | 3 in | Door closes past the gantry, reach-in to the dust shoe |
| Above full Z | 6 in [150 mm] | 5 in | Roof coupler and a flex hose that holds its bend |
Draw the plan column on the layout and keep the floor column for a forced move. Two-inch sides mean you service the machine from the front only, and a 5 in top works only with a 2 in hose and the coupler over the travel center. When the room forces a trim, cut width first and the top last. Wall thickness adds twice on the outer size: 3/4 in [19 mm] plywood turns a 39 in inner width into 40.5 in [1029 mm] outside.
What you need before you size the box
- The measured envelope: width, depth and height at both stops of every axis, chains and cables included.
- The dust shoe, its hose inside diameter (2.5 in [63 mm] in the worked example below) and the roof coupler flange.
- Panel stock: 3/4 in [19 mm] plywood or MDF for the box, 1/4 in [6 mm] clear polycarbonate for the windows.
- A door plan: full width across the front, hinges outside, and a decision on whether it opens mid-job, because an interlock follows from that choice.
- A chip-removal decision: a dry box with dust collection, or a drained floor for flood coolant. The mist, flood and air-blast comparison sorts the methods, and the dust-foot versus full-box comparison tells you when a shoe alone would do.
- A home for the electronics: drivers, power supply and E-stop live outside the dust, and moving a control cabinet outside the machine enclosure has its own checklist.
Sizing and building the box, step by step
-
Measure the envelope. Assemble the machine on its table first when the room allows. Jog every axis to both stops and write down the widest, longest and tallest points, chains in place. If the panels must exist before the machine lands, add 1 in [25 mm] per axis as a chain-overhang allowance, then re-measure before you cut.
-
Add the gaps. Take each gap from the table above, not from memory. Inner width takes a side gap at each wall, inner depth takes the back and front gaps, and inner height takes the top gap — one sum per axis.
-
Place the roof coupler. Put it over the middle of the dust shoe's travel, shifted toward the side where the hose support hangs. Centered over the Z motor, the hose bunches every time the shoe passes underneath; offset, the flex splits between the two ends of travel. Keep the planned height under the roof and hang the support on the hose side: configuring a dust collector hose support for travel is its own small project. For the floor of the box — slope, baffles, where the chips settle — the small CNC dust enclosure design guide picks up where sizing ends.
-
Plan the access. Full-width front door, removable back panel at chain height, windows where you watch the cut. If the door opens mid-job, plan the interlock at the same time; the CNC door interlock retrofit guide walks through the switch, the wiring and the spindle pause.
-
House the electronics outside. Drivers, power supply and E-stop belong in their own cabinet, sized by the electrical enclosure sizing guide rather than by the machine. Chips pack heatsinks and bridge terminals, and the CNC control box layout guide covers that cabinet's heat, E-stop and routing. When the cabinet is a buy instead of a build, the enclosure builder turns a module list into a 3D model and a quote.
-
Build the base stiff. A torsion-box top in 3/4 in [19 mm] ply, legs set inboard, mass low in a cabinet below. A gantry at rapid speed carries real momentum, and a light table turns it into wobble you will chase for months in the surface finish.
Working a 27 x 33 x 19 in router into its box
The example machine is a mid-size hobby gantry router with a 27 in x 33 in footprint and 19 in of height: the cut-sheet numbers, re-measured at full travel so the chains sit inside them. The gaps come from the table above. The rule is one sum per axis: width takes two side gaps, depth takes back plus front, height takes the top gap.
- Width: 33 + (2 x 3) = 39 in [990 mm]
- Depth: 27 + 3 + 4 = 34 in [864 mm]
- Height: 19 + 6 = 25 in [635 mm]
The box to build is 39 x 34 x 25 in inside. In 3/4 in plywood it measures 40.5 x 35.5 x 26.5 in outside [1029 x 902 x 673 mm].
Now test the 30 x 36 x 24 in idea against it, one axis at a time:
- Width: 36 - 33 = 3 in total, or 1.5 in per side, against a 3 in plan and a 37 in floor (33 + 2 + 2). It misses even the floor by 1 in.
- Depth: 30 - 27 = 3 in total against 7 in planned and a 33 in floor (27 + 3 + 3). It misses the floor by 3 in.
- Height: 24 - 19 = 5 in, exactly the floor and 1 in under the plan. It passes only with nothing left in hand.
Decision: reject the 30 x 36 x 24 in box. The floor set alone needs 37 x 33 x 24 in [940 x 838 x 610 mm] inside, and the proposal misses width and depth against it. Build 39 x 34 x 25 in inside at the plan values. Take 37 x 33 x 24 in inside only when the room forces the floor set and you accept front-only service. Behind those numbers sit two thresholds worth remembering. An inner width under machine width + 4 in has no service room beside the rails. An inner depth under machine depth + 6 in pins the door panel against the gantry at full travel.
Checks before the first cut
- Jog X to each stop and measure wall to machine: the plan gap holds at both walls, or the floor gap on a forced build.
- Park the gantry at the front stop and close the door: it latches with no rub. Park at the back stop: the chain clears the rear panel.
- Run full Z with the vacuum on at both ends of X and Y: the hose keeps a smooth curve from shoe to coupler and nothing flattens.
- Reach test: the nozzle reaches the back rail through the rear panel and every front corner through the door.
- Run a rapid pass with the panels on: walls, windows and coupler stay quiet, the table does not wobble, and the hold-downs stay tight after the first hour of cutting.
- Sweep after a session: chips reach the front of the floor and nothing piles behind the machine.
Mistakes that cost the clearance
- Sizing from the frame instead of the full-travel envelope: the chain overhang takes back a margin the cut sheet never showed.
- Splitting front and back evenly at 3.5 in each: the door plane and the reach-in live at the front, so the asymmetric split in the table beats an even one.
- Centering the roof coupler over the Z motor: the hose bunches on every pass instead of sharing the flex across the travel.
- Shaving the top gap below its 5 in floor: a 2.5 in hose flattens, suction at the shoe collapses and dust drops back onto the cut.
- Paneling before the machine is assembled: you size from paper and meet the chain where the wall should be. Assemble, jog, measure, then cut.
- Putting the drives and power supply in the dust box: chips pack their heatsinks and the dust holds heat against them.
Catalog dimensions to compare
Compare these catalog dimensions with your component layout. Open each enclosure for its rating, material and usable space, then check those specifications against your application.
| Enclosure | Material | Outside H x W x D / display | Rating |
|---|---|---|---|
| 10 × 8 × 6 in | 304 stainless | 10 x 8 x 6 in | Rated NEMA 4X / IP66 by the manufacturer; not UL listed |
| 12 × 10 × 6 in | 304 stainless | 12 x 10 x 6 in | Rated NEMA 4X / IP66 by the manufacturer; not UL listed |
| 16 × 12 × 8 in | 304 stainless | 16 x 12 x 8 in | Rated NEMA 4X / IP66 by the manufacturer; not UL listed |
Questions
Will a 30 x 36 x 24 in enclosure fit a 27 x 33 x 19 in router?
No — it leaves just 1.5 in per side and 1.5 in front and back, half the working room the rails and homing switches need. Even the floor set needs a 37 x 33 x 24 in inner box, so the proposal misses width by 1 in and depth by 3 in. The 39 x 34 x 25 in inner box at the plan values is the one to build.
How much headroom does the dust hose need above full Z travel?
Plan 6 in [150 mm] between the top of the drag chain at full Z and the roof. The shop rule for corrugated hose is a bend radius near twice the inside diameter: about 5 in for a 2.5 in hose, and that short hose flexes through the gantry's full travel. Six inches keeps the curve open at both ends; with a 2 in hose and the coupler over the travel center, 5 in is the floor.
Where should the dust collection coupler sit in the roof?
Not over the Z motor. Put it at mid-travel of the dust shoe, biased toward the side where the hose support hangs. Centered on the motor, the hose bunches each time the shoe passes under; at mid-travel the flex splits between the two ends and the support gets a straight drop. Front-center is the poorest spot of all, because the far end of Y travel stretches the hose the most.
Does the back of the enclosure need its own access?
Yes. Homing and limit switches sit at the rear of the frame and need a hand for adjustment and a nozzle for chip cleanup, and the Y chain overhangs the frame at full travel. Keep the back gap plus a removable rear panel at chain height. A box flat against a wall without that panel turns every cleanup into a machine move.





