Seal the lid with a gasket, not a gap: a 2 mm [0.079 in] silicone cord held at 15-30% compression in a captive groove passes the IP6X dust test on tolerances any shop can hold. The two penetrations are bought parts. An IP67 panel-mount USB-C bulkhead drops into a 16 mm [0.63 in] round hole, and a sealed 16 mm pushbutton drops into a 16.2 mm [0.64 in] hole, each sealing on its own O-ring. The splash half of IP64 is the easy half. IEC 60529 proves the first digit 6 by holding your enclosure in a cloud of talc for up to 8 hours with the inside pulled 2 kPa below atmospheric. Dust travels where water never goes: uphill, through capillary gaps, along a dry seam. A tight, ungasketed tongue and groove sheds splashing and still streams talc.
What IP64 actually demands
First digit 6 is dust-tight: after the chamber test the standard finds no talc inside at all. Digit 5 would have allowed harmless dust in, which is a far cheaper joint to make. You asked for IP64, so the lid joint is where the design effort goes.
Second digit 4 is water splashing against the box from any direction, proved with an oscillating spray for at least 10 minutes. Mechanically that is a low bar: IPX5 adds a 6.3 mm [0.25 in] nozzle at 12.5 L/min, and IPX6 a 12.5 mm [0.49 in] nozzle at 100 L/min. Your box only has to shed spray, so put the seam where water runs off it, with a small hood or drip edge instead of a flat collecting shelf. The IP rating chart maps every digit pair if the spec is still moving.
One code note for a US install: NEC 110.28 says an IP rating does not replace an enclosure type rating, so a spec written around NEMA types needs the type marked on the box. IP64 answers an IEC-written spec cleanly.
The parts that carry the seal
Buy both ports above the box's rating and let the shell be the easy part. An assembly carries the IP of its weakest component, so IP67 parts on an IP64 housing leave the rating whole. What a panel keeps after you cut it and mount devices runs the same rule across the common mounted parts.
| Part | What to order | The number that decides |
|---|---|---|
| Body and lid | 304 stainless indoors, 316L where washdown chemicals reach the box | 1.5 mm [0.06 in] wall for a rigid flange |
| Lid gasket | Silicone cord, -60 to 200 C [-76 to 392 F]; EPDM, -50 to 150 C, for hot-water washdown | 2 mm [0.079 in] cord, 15-30% compression |
| Lid screws | M4 stainless into weld or rivet nuts | 60-80 mm [2.4-3.1 in] pitch, 1.5-2 N·m [13-18 lbf·in] |
| USB-C port | Round-bodied panel-mount bulkhead, front side IP67, with gasket, nut and dust cap | 16 mm [0.63 in] round hole on that type |
| Button | Sealed 16 mm stainless operator, front side IP67, O-ring under the flange | 16.2 mm [0.64 in] hole, nut near 3 N·m [27 lbf·in] |
Those gasket temperature windows are typical elastomer handbook values; a named material's datasheet tops them. If your button lives on the circuit board instead of the wall, actuating a PCB push button through a sealed wall is the other route to a sealed press.
The lid joint: a captive groove beats a tight gap
Cut the groove into the body flange so it captures the cord. Groove depth sets the compression, and O-ring practice for a static face seal works in the 15-30% band. Groove width about 1.5 times the cord diameter gives the rubber somewhere to spread; keep total groove fill under 85%. Depth is a machined dimension, so the seal stops depending on screw torque and lid stiffness. Enclosure cover flatness and gasket compression shows what a flat gasket costs you when the lid bows.
A machined labyrinth can also pass IP6X: under 0.1 mm [0.004 in] of gap through a 3 mm [0.118 in] winding path holds talc back. Holding that gap around a whole lid takes ground surfaces, and one knocked corner spends the entire budget. The cord costs a few millimetres of flange width and passes on shop tolerance. For the full geometry, tongue and groove gasket design and gasket design for IP64 and IP65 panels carry depths, widths and corner treatments. A clamshell with a flat gasket between the halves is still a face seal and works the same way.
Design, order and assemble the housing
- Lay out the openings first. Keep every cutout at least 10 mm [0.4 in] from the gasket groove and at least 20 mm [0.8 in] from the next hole, so the nuts get wrench clearance. Put the USB-C port low on a vertical face, below any seam, so splash runs away from it.
- Size the groove to the cord. For a 2 mm [0.079 in] cord cut the groove 1.4-1.7 mm [0.055-0.067 in] deep, which is the 15-30% band, and 3.0 mm [0.118 in] wide. Break the groove corners 0.5 mm [0.02 in] so the cord is not cut.
- Place the screws. M4 at 60-80 mm [2.4-3.1 in] maximum pitch, one within 20 mm [0.8 in] of every corner, into weld or rivet nuts so the torque lands on metal.
- Order the housing with the cutouts machined at the factory. A 16.0 mm [0.63 in] hole for the bulkhead, a 16.2 mm [0.64 in] hole for the button, both round within 0.1 mm [0.004 in], plus the anti-rotation flat where the connector drawing shows one. Choosing factory cutouts for repeat work covers tolerance and finish, because a hand hole saw through thin stainless domes the face and the O-ring land with it.
- Fit the gasket. For one-off boxes, butt-splice the cord at a corner with a drop of cyanoacrylate and press it home dry; repeat production earns a molded frame. Spliced vs molded gaskets draws the line at the rating you chase, and a clean splice is comfortable at IP64.
- Mount the two ports. Seat each O-ring in its groove, run the nut up even to about 3 N·m [27 lbf·in] on a 16 mm bushing, and let the anti-rotation flat carry the reaction so the solder joints take no torque. The same pattern carries any port, as an RJ12 panel-mount bulkhead for a programming port mounts the same way, gasket and nut. Fit the dust cap after testing; keeping USB and ethernet ports waterproof covers cap and gasket care in service.
- Close the lid and read the flange. Torque the M4 screws to 1.5-2 N·m [13-18 lbf·in] in a cross pattern. The flange faces should meet all round; a visible gap means the groove depth is wrong, and tightening harder only bends the lid.
A worked example: 8 x 6 x 2 in housing
Say the electronics fit an 8 x 6 x 2 in [203 x 152 x 51 mm] 304 box with a bolted lid and a 6 x 3.5 in [152 x 89 mm] opening.
Gasket math first. A 2 mm [0.079 in] cord in a groove 1.6 mm [0.063 in] deep compresses (2.0 - 1.6) / 2.0 = 20%, mid-band. The cord's 3.14 mm2 cross-section flattens to about 1.96 mm [0.077 in] wide at 1.6 mm high, so a 3.0 mm [0.118 in] groove sits 65% full, under the 85% ceiling. One 0.5 m [19.7 in] length splices once, because the groove perimeter is 2 x (152 + 89) = 482 mm [19 in].
Screws next: one within 20 mm [0.8 in] of each corner of the gasket line and one midway along each side gives eight M4 screws at 25-56 mm [1.0-2.2 in] pitch, inside the 80 mm [3.1 in] ceiling. The 16.0 mm [0.63 in] bulkhead hole centred 25 mm [1 in] above the bottom edge leaves 17 mm [0.67 in] of flat to the groove, and the button 50 mm [2 in] alongside leaves 34 mm [1.3 in] between hole edges.
Heat, since the box is sealed: at 3.7 W/m2K for a stainless wall and 0.098 m2 [1.06 ft2] of surface, a 5 W board warms the inside about 5 / (3.7 x 0.098) = 14 C [25 F]. That is 54 C inside at 40 C ambient, inside the 60 C envelope most electronics carry. Ten watts doubles it to 28 C [50 F] and puts a 40 C ambient at 68 C inside; give that build a finned rear wall rather than a vent.
Checks when the box is closed
- Pressure and soap: plug every hole but one, feed 5 kPa [0.7 psi] of air, and brush the seam, both nuts and the lid corners with soap solution. Bubbles mark every leak path, and 5 kPa of overpressure is a harsher leak check than the 2 kPa the dust test pulls, so a clean result covers the joint for the talc chamber.
- Splash: hold the empty, closed box under a kitchen sprayer or shower head from all directions for 10 minutes, matching the IPX4 test duration, then open it in dry air. Dry gasket faces and a dry floor mean a pass at X4 conditions.
- Function: click the button with final lid torque, mate a plug into the bulkhead, refit the dust cap. A stiff button usually means a slightly domed hole rather than a bad switch.
- Paperwork: when the customer wants the rating documented rather than designed in, a test house runs the IEC 60529 chamber and spray for you.
Four ways the dust digit drops
- An open vent or drain hole in the lid. The dust digit follows the lowest-rated opening, and a 6 mm [0.24 in] drain is a wide road for talc. Where condensation is the worry, fit a membrane breather rated IP66 or better: it passes water vapour and stops dust.
- Screw pitch stretched to save fasteners. At 150 mm [5.9 in] between screws, a 1.5 mm [0.06 in] lid bows at mid-span and opens a gap against the compressed cord. Keep 80 mm [3.1 in] as the ceiling and the groove stays in control of the seal.
- A gasket sitting loose on the flat face instead of captive. It walks during closing and strands a corner, and the pressure test finds it late. The groove is what makes the seal repeatable across builds.
- Field-cut holes. A hole saw pulled through thin stainless raises a 0.3-0.5 mm [0.012-0.020 in] crown around the cut, the O-ring lands on the crown, and the seal stands open at one edge. Machine the openings before the box is assembled.
Built with the cutouts already in
We make exactly this housing: custom stainless enclosures in 304 or 316L, with the groove, the weld nuts and both round holes on the drawing, delivered in 10 business days from your approval of the drawing. The enclosure builder walks the size, material, mounting and quick cutouts, then returns a drawing for approval before anything is cut. Ratings on this site are manufacturer ratings: our boxes are rated NEMA 4X / IP66 by the manufacturer and are not UL listed, which clears an IP64 spec with margin and covers an IP66 build off the same drawing.
Enclosures for this job
Catalog sizes that suit the job this article answers, picked from its subject; open one for its full specifications.
| Enclosure | Material | Outside H x W x D / display | Rating |
|---|---|---|---|
| 12 × 10 × 6 in | 304 stainless | 12 x 10 x 6 in | Rated NEMA 4X / IP66 by the manufacturer; not UL listed |
| 16 × 14 × 8 in | 304 stainless | 16 x 14 x 8 in | Rated NEMA 4X / IP66 by the manufacturer; not UL listed |
| 20 × 16 × 8 in | 304 stainless | 20 x 16 x 8 in | Rated NEMA 4X / IP66 by the manufacturer; not UL listed |
Questions
Can a tight ungasketed tongue and groove pass IP64?
It can pass the splash test and still fail the dust test. IEC 60529 proves digit 6 with talc held in the air for up to 8 hours at 2 kPa below atmospheric, and talc climbs where water drains. A machined fit under 0.1 mm [0.004 in] of gap with a 3 mm [0.118 in] path can hold, but the stack rarely survives a whole lid. A 2 mm [0.079 in] cord at 20% compression passes on tolerance you can hold; if you machine the labyrinth anyway, lap the faces and pressure-test every unit.
Is IP64 enough for an outdoor enclosure?
Only in sheltered spots. IPX4 stops at splashing from any direction for at least 10 minutes; it covers rain blown past a porch, not driven storm spray or any hose. IPX5 already means a 6.3 mm [0.25 in] jet at 12.5 L/min, and IPX6 a 12.5 mm [0.49 in] jet at 100 L/min. For exposed sites order IP66 and pick a UV-stable gasket: EPDM holds -50 to 150 C [-58 to 302 F] outdoors.
Do the USB-C bulkhead and button need extra sealing at the cutout?
They seal themselves when mounted right. Both come with their own O-ring, front side typically IP67, and the O-ring land makes the seal while the nut only clamps the part against it. Cut 16.0 mm [0.63 in] for a round-bodied USB-C bulkhead and 16.2 mm [0.64 in] for a 16 mm button, round within 0.1 mm [0.004 in]. A 0.5 mm [0.02 in] lead-in chamfer protects the O-ring as the part goes in, then run the nut up even to about 3 N·m [27 lbf·in].
Should I pot the electronics instead of sealing the enclosure?
Potting seals the board, not the box. If the housing never opens again, a potted assembly shrugs off splash and condensation, but you still cut the port and button holes, and you give up servicing the connector or the switch. Potting earns its cost on sealed-for-life sensors; on an enclosure with a USB-C port, the gasket, the IP67 bulkhead and the sealed operator are cheaper to own.





