Corrosion inside an outdoor stainless enclosure is a moisture problem, not a material problem alone. Specify 316L walls and a 316L subpanel, bring cables in through sealed glands, and fit an anti-condensation heater sized to hold the interior air above the dew point. Desiccant and vapor-phase corrosion inhibitors are worthwhile additions, but plan to replace them on a schedule; they are maintenance items, not permanent fixes.
What actually corrodes the inside
Stainless steel resists corrosion because its chromium forms a passive oxide film. Chlorides break that film down, and standing water plus heat accelerates the attack. A hot, humid site supplies both: 90% relative humidity at 95 F (35 C) means the air holds a lot of water, and any surface that dips below the dew point collects it.
The enclosure rating does not solve this. A manufacturer-rated NEMA 4X / IP66 enclosure keeps hose water and rain out; ours are not UL listed. But sealed boxes breathe. Daily heating and cooling pumps humid air in through the smallest gaps, and each cool-down cycle can condense water inside. The outdoor enclosure guide covers siting and sealing, and the NEMA 4 vs 4X vs IP66 guide explains what each rating does and does not test.
The corrosion usually starts where the water collects: the bottom of the box, the subpanel, terminal screws, relay frames and anything with a dissimilar-metal contact.
What you need
- A 316L stainless enclosure with a hinged gasketed door, sized for your components plus spare space
- A 316L or passivated stainless mounting panel, not bare carbon steel
- Cable glands matched to the cable diameter, with gaskets rated for the environment
- An anti-condensation heater with a thermostat or hygrostat
- Desiccant packs sized to the interior volume, or vapor-phase corrosion inhibitor (VpCI) emitters
- A hygrometer or data logger for the first few months, so you know the real humidity inside
Steps to build a corrosion-resistant package
-
Choose the grade for the site, not the catalog. In hot, humid air, especially near salt water, 316L outlasts 304 by a wide margin. The NEMA enclosure types guide explains what the 4X salt-spray requirement implies about the material; for a coastal site, specify 316L outright.
-
Size the box with room for the moisture hardware. A 24 x 24 x 8 in (600 x 600 x 200 mm) wall-mount 316L enclosure leaves space beside the components for a strip heater and desiccant; see the 24 x 24 x 8 in 316L wall-mount enclosure. For a panel with a touchscreen HMI, a PLC, a network switch and a few dozen relays plus a UPS, the 24 x 20 x 8 in 316L enclosure gives the extra width so air can circulate rather than stagnate. The size finder filters every size and grade.
-
Specify a stainless subpanel. The mounting panel is the largest metal surface inside. A carbon steel panel in a stainless box will rust first and stain everything below it. Order the panel in 316L, or at minimum a well-passivated 304 panel, and keep it isolated from the wall with its coated standoffs.
-
Seal the cable entry. Every gland is a leak path. Match each gland to the actual cable diameter, torque it to the maker's value, and cap unused openings with rated plugs. The cutouts, glands and HMI windows guide covers opening sizes and gland selection. When dozens of cables pass one wall, put them through a single gland plate and cut the holes in the factory drawing rather than in the field.
-
Fit the heater and set its control. The heater's job is to keep the interior air a few degrees above the ambient dew point, so relative humidity inside stays low and condensation forms outside, not in. As a basis: a 24 x 24 x 8 in box (about 26 ft³ / 0.75 m³) needs roughly 20 to 50 W of continuous heating to hold a 9 to 18 F (5 to 10 C) rise in a sheltered shed; larger boxes scale up from the volume. Use a hygrostat set around 60% RH, or a thermostat set just above the expected dew point, so the heater cycles rather than runs flat out.
-
Add desiccant or VpCI as the second layer. Desiccant bags absorb the moisture that gets past the heater; VpCI emitters release a vapor that protects bare metal surfaces. Use one or both. Mark every service date on the pack and put replacement on the maintenance schedule.
-
Log the interior for the first season. Place a cheap data logger inside next to the hygrometer target zone. If relative humidity stays under about 60% year-round, your interval for desiccant replacement is working. If it spikes above 80%, find the ingress path before corrosion finds it.
Checks when the install is done
- Close the door on a strip of paper at each gasket corner; it should pull out with firm, even resistance everywhere
- Confirm the heater cycles: it should draw current at your low setpoint and stop at the high one
- Hose-test the gland entry from below and above, then open and check for any drip tracks
- Photograph the interior as a baseline, so the next service visit can spot new staining early
Mistakes that undo the package
- A stainless box on a bare carbon steel panel: the panel corrodes first and spreads oxide staining
- Glands sized loosely "to fit several cable sizes": the gasket never seals the smallest cable
- A heater with no control, left on full: it bakes the gasket and wastes the desiccant's capacity on dry days
- Desiccant thrown in and forgotten: saturated desiccant holds water against the panel and makes things worse
- Drainage holes drilled in the field through the bottom without re-sealing: a vent or drain must be engineered to keep the rating, as the NEMA 3R vs NEMA 4 guide explains for drainage openings
What to order
For a 30-year install in hot, humid air, put these words in the order: 316L stainless throughout, including the mounting panel; manufacturer-rated NEMA 4X / IP66, not UL listed; cutouts per your drawing only, no field drilling; a heater and hygrostat pre-mounted; and a gasketed, latched door that seals without tools. You can set every dimension and cutout yourself in our 316L wall-mount enclosures or start from the custom enclosure builder. Delivered in 10 business days, counted from your order or, for custom work, from your approval of the drawing.
Enclosures in this article
| Enclosure | Material | Outside H x W x D / display | Rating |
|---|---|---|---|
| 24 × 24 × 8 in | 316L stainless | 24 x 24 x 8 in | Rated NEMA 4X / IP66 by the manufacturer; not UL listed |
| 24 × 20 × 8 in | 316L stainless | 24 x 20 x 8 in | Rated NEMA 4X / IP66 by the manufacturer; not UL listed |
Questions
Will a NEMA 4X rating stop corrosion inside the enclosure?
No. A Type 4X rating covers water and corrosion resistance of the enclosure itself, tested per NEMA 250 and rated by the manufacturer; ours are not UL listed. It does not dry the air inside. Humid air trapped at sealing time, plus daily temperature swings, still condenses water on the coolest surfaces. Corrosion prevention inside needs a heater or other moisture control on top of the rating.
How long does a desiccant pack last in a sealed enclosure?
It depends on how much humid air enters and how often the door is opened. In a properly sealed 316L enclosure in hot, humid air, expect to replace or regenerate desiccant every three to six months until you have field data. Weigh the packs at each service: a gain of more than about 10% of dry weight says the humidity load is higher than expected, and the seals or glands need checking.
Is 304 stainless good enough outdoors, or do I need 316L?
In a sheltered inland location, 304 usually performs well. In the hot, humid coastal or tropical conditions that drive this question, 304 is more likely to tea-stain and pit, especially around welds and cut edges. 316L, with its molybdenum content, resists chloride attack far better. For a 30-year design life, 316L for the walls and the subpanel is the safer specification.
Do I need a dehumidifier or just a heater?
For most enclosures, a heater is enough. It holds the interior air a few degrees above the dew point, so the relative humidity stays low without removing water. A powered dehumidifier only pays off when the enclosure is large, the heat load from components already runs high, or you cannot spare the few degrees of temperature rise.





