Short answer: bend the box. For a dry indoor shop, a folded 17 gauge (0.056 in, 1.4 mm) steel enclosure with a 0.5 in [12 mm] return lip at the opening and a 0.25 in [6 mm] EPDM cord gasket compressed about 20 percent seals to roughly the IP54 level, and nothing in the code forbids building it. The code does care about the finished panel: the equipment has to be approved for its workplace and marked with an enclosure type number. The build below covers forming the box, sealing the lid, gland entries, screw spacing and the final checks, plus the point where washdown or outdoor duty makes a manufacturer-rated box the better buy.
Is it legal to build your own control enclosure?
Yes for the metalwork: nothing forbids bending your own box, but the installed equipment must be approved — OSHA 29 CFR 1910.303(a) requires approval of electrical equipment in US workplaces, and NEC 409.2 calls a panel with two or more power or control components an industrial control panel.
Approved, as OSHA 1910.399 defines it, means accepted, certified, listed, labeled or otherwise determined safe by a nationally recognized testing laboratory. A steel box you folded yourself is none of those on its own. In practice the story runs through listed components inside it, sound workmanship and the inspector's look at the finished assembly.
Building panels to sell to others raises the bar: UL 508A is the listing standard for industrial control panels, and a shop-built enclosure cannot carry that listing. How a listed box differs from a manufacturer-rated one is its own subject: UL 50E vs NEMA 250: listed or manufacturer-rated.
What do you need for a sealed sheet-metal box?
Start with 17 gauge (0.056 in, 1.4 mm) steel sheet for a box up to about 16 x 12 x 8 in [400 x 300 x 200 mm], a brake with 18 in [460 mm] of bending length, and a 0.25 in [6 mm] EPDM cord for the lid.
- 17 gauge (1.4 mm) cold-rolled steel, one blank of about 33 x 29 in [840 x 740 mm] for the worked example; the arithmetic is in the steps
- Pan brake or folder with 18 in [460 mm] of bending length, plus drill, step bits and a deburring tool
- 0.25 in [6 mm] solid EPDM cord: the lid rim runs 56 in [1.4 m], so buy 60 in [1.5 m] for a clean splice
- Ten No. 8 x 0.5 in [12 mm] pan-head self-tapping screws, plus a few spares
- A backplate of 16 gauge (1.5 mm) sheet or 0.08 in [2 mm] aluminum, cut 0.25 in [6 mm] smaller than the box inside, all round
- Standoffs 0.25 to 0.375 in [6-10 mm] long, eight to twelve of them
- One cable gland per cable: an M20 clamp gland grips about 6-12 mm [0.24-0.47 in] of cable OD
- Contact adhesive or EPDM-safe gasket tape, and soapy water for assembly
Seventeen gauge is the practical floor. Thinner sheet bows between screws and the gasket gap wanders; at 16 gauge (1.5 mm) or 14 gauge (1.9 mm), everything below just gets easier.
How do you form the box and stiffen the opening?
Fold the walls up from one blank, then roll a 0.5 in [12 mm] return lip around the opening of box and lid: the hem doubles the sheet thickness at the edge, and stiffness rises with the cube of thickness, so the rim is roughly eight times stiffer.
The worked example is a 16 x 12 x 8 in [400 x 300 x 200 mm] box, folded from one piece:
- Lay out a cross: a 16 x 12 in [400 x 300 mm] floor, four walls 8 in [200 mm] tall, and a 0.5 in [12 mm] return on every wall tip. Overall:
16 + (2 x 8) + (2 x 0.5) = 33 inby12 + (2 x 8) + (2 x 0.5) = 29 in[840 x 740 mm]. - Cut the four corner notches and deburr every edge; a burr under the gasket is a leak path later.
- Bend the four walls square to the floor. Measure both diagonals of the opening and keep them within 1/16 in [1.5 mm] of each other, so the lid gap stays even all round.
- Roll the 0.5 in return lip on the box opening, then on the lid. Sheet thickness at the rim doubles from 1.4 mm to 2.8 mm, and
(2.8 / 1.4)^3 = 8gives the stiffness jump that keeps the gasket gap parallel instead of bowed. - Close the corners. Rivets or screws serve on a dry bench; for anything damp, weld a bead down each corner, because riveted seams weep under a water jet.
- Form the shoe-box lid with sides dropping 0.75 in [20 mm] past the rim and a 0.25 in [6 mm] return inward to carry the gasket face.
- Mount the backplate on its standoffs and lay out rail and terminals with spare space; first control panel build: layout and wiring tips covers that layout in detail.
Which gasket seals a shop-built lid, and how much do you compress it?
Fit a 0.25 in [6 mm] solid EPDM cord in the shoe-box lid and design the closed gap for about 20 percent compression: the 6 mm cord closes to a 5 mm gap, mid-range of the 15-30 percent that seal handbooks allow for solid elastomer gaskets.
Twenty percent sits mid-range for a reason: below about 15 percent the cord floats over its own surface flaws, and above about 30 percent it takes a permanent set and stops rebounding. So build the lid-to-rim gap to close at 6 x 0.8 = 4.8 mm [0.19 in], and check it with a 5 mm [0.20 in] feeler stack: under the closed lid it should grip, not slide freely.
Choose EPDM for water service: it runs from about -50 to 150 C and is happiest with wash water and steam. Where coolant mist or oil lands on the lid, switch to nitrile, good from about -30 to 120 C and far happier in oils. Keep petroleum grease off either cord; oil swells EPDM, so assemble dry or with soapy water.
Glue the cord to the lid's return face, and splice the ends on a 45 degree scarf with a drop of adhesive. A hollow silicone tube under the same lid needs roughly 50 percent compression to seat its walls, per seal suppliers' cord data, so the gap closes to 3 mm; it works, but keeping it even is harder than solid cord. The groove-and-lip geometry options are drawn out in sheet metal enclosure gasket design for IP64 and IP65.
How do you bring cables in without wrecking the seal?
Drill each cable entry for a gland, not a bare hole: an M20 multi-range gland grips about 6-12 mm [0.24-0.47 in] of cable OD, and the weakest part sets the rating, so one open hole or loose grommet caps the whole box at that part's protection.
Put entries on the bottom face, where drips run past instead of in. An M20 gland passes through about a 20.5 mm [13/16 in] hole; fit the sealing washer inside the wall, run the locknut up tight and let the clamp close on the cable sheath. A gland only seals where its seal touches the sheath, and that failure mode is worth two minutes of reading: why a gland seal must contact the cable outer sheath.
Over a dry bench, sealed grommets over loom do the job, and a blanking plug closes each spare hole. The drilling-and-sealing discipline is the same one a rated box lives by: field-drilled conduit entries that keep a NEMA 4X rating walks it step by step.
How many lid screws does the seal need, and where?
Space lid screws at 6 in [150 mm] or less on 17 gauge (1.4 mm) sheet, one within 1 in [25 mm] of each corner: a 16 x 12 in lid takes 10, and wider gaps let the sheet bow and relax the gasket between fasteners.
The count comes from the rim: 2 x (16 + 12) = 56 in of perimeter, and 56 / 6 = 9.3, so 10 screws at a real pitch of 56 / 10 = 5.6 in [142 mm]. Corner screws first, then divide the runs evenly between them.
Tighten evenly, about 18 in-lb [2 Nm] on a No. 8 screw into steel, until the lid sits at a uniform gap all round. A corner that closes slack means the cord is thin or unglued there, so re-seat it before you call the seal done. Self-tapping screws relax a little in their first cycles, so re-snug the lid once after a week of daily use.
What rating can a shop-built box honestly carry?
Call it IP54-level at best: IEC 60529 digit 5 is dust-protected, not dust-tight, and digit 4 is splashing water, which is what a lip-and-cord box survives on a bench — it is untested and unrated, so keep it out of washdown, rain and hose spray.
The gap to the next ratings is physical, not paperwork. IP66 digit 6 sends a 12.5 mm nozzle throwing 100 L/min at every seam, and your riveted corners, screw bosses and cord splice each hand that jet a place to work. NEMA Type 4 means hose-directed water and washdown, built on welded seams and gasket geometry that has passed the test. Bought boxes carry ratings their manufacturers stand behind; ours are rated NEMA 4X / IP66 by the manufacturer, not UL listed.
| Where the box lives | What to build or buy |
|---|---|
| Dry indoor shop: dust, clutter, the odd splash | Fold your 17 gauge box as above; it serves at roughly IP54 level |
| Outdoor rain, no hose | Buy a manufacturer-rated Type 3R or 4X box; NEMA 3R vs NEMA 4: rain or hose? sorts the two |
| Washdown, brine or salt air | Buy welded 304 or 316L; the stainless steel enclosure guide covers gauge, finish and care |
| Any wet or corrosive duty | Order your exact size as custom stainless enclosures or set it up in the 3D enclosure builder |
What does the finished panel still owe the code?
Bond the box: NEC 250.96(A) requires metal parts serving as equipment grounding conductors to be bonded so they can carry fault current, and NEC 250.12 makes you remove paint from threads and contact surfaces at grounding connections — leave the two ground-lug spots bare metal under the paint.
Size the equipment grounding conductor from the rating of the overcurrent device ahead of it, using NEC Table 250.122. Hang the panel where NEC 110.26(A) leaves at least 3 ft [900 mm] of working depth for equipment likely to be serviced energized at 0-150 V to ground, and keep the highest breaker handle at or below 2.0 m [6 ft 7 in] under NEC 240.24(A). For the location itself, NEC 110.28 points to Table 110.28, and states plainly that an IP code does not replace an enclosure type rating in US installations. Stencil the type you are claiming beside the door, as NEC 409.110 requires on an industrial control panel.
One safety rule before the first power-up: lock out and verify absence of voltage before you set the new box over energized parts.
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 |
|---|---|---|---|
| 16 × 12 × 8 in | 304 stainless | 16 x 12 x 8 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 × 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 I use push-on tool-box edge trim instead of a cord gasket?
For a dry bench box, yes. Push-on trim bites the sheet with its own lips and keeps out dust and light splash, but it gives no controlled compression and no continuous seal line. The 0.25 in [6 mm] EPDM cord compressed 20 percent is the real seal; keep petroleum grease off it, because oil swells EPDM.
Can I hinge the lid instead of screwing it down?
You can, but the hinge side is the hardest place to seal: the gasket must compress over a moving edge, and the lid lifts there first. Keep the screwed lid with its 10 screws for the first build, and put anything you touch daily on the outside of the backplate or in a second small box.
When should I stop building and order a rated enclosure?
When the box will see hose-down washdown, outdoor rain or salt air. A folded box is unrated, however neatly the cord sits, and a hose test finds every riveted corner. A custom 304 or 316L stainless box in your exact size is delivered in 10 business days from your approval of the drawing, rated NEMA 4X / IP66 by the manufacturer; not UL listed.
How do I stop condensation inside a sealed DIY box?
Seal first, then dry the air inside. A 16 x 12 x 8 in box holds about 0.025 m³ (0.9 cu ft) of air, and a 50 g sachet of silica gel adsorbs roughly 30 percent of its own weight in water at 25 C, enough for months of day-night cycling. Swap or oven-dry the sachet twice a year.





