Email us

Sheet metal enclosure gasket design for IP64 and IP65

On a bent and welded sheet metal enclosure, hold IP64 or IP65 with a closed-cell foam or hollow rubber gasket, not a solid o-ring. Foam tolerates the flange runout that welding and bending leave behind. Size the gap, pick the compression, and test with a hose before you commit.

NEMA4 Enclosure engineering team · Published October 29, 2026 · 4 min read

On a bent and welded sheet metal enclosure, IP64 and IP65 are won or lost at the door gasket. A solid o-ring is the wrong first choice: it needs flat, accurate mating surfaces and heavy, even clamp load, and a fabricated flange offers neither. Use a resilient profile instead — closed-cell foam tape or a hollow rubber section — sized so it compresses evenly over the full flange runout. This article walks through the design steps.

Why o-rings fail on fabricated boxes

An o-ring works inside a machined groove with a defined gland depth and a lid stiff enough to hold constant preload. Bending and welding a sheet metal flange gives you neither. Flanges come out with wave and twist, corners pull in after welding, and the runout across a large lid can exceed the o-ring's entire compression window. Where the gap opens, the seal leaks; where it closes, the rubber takes all the clamp force.

The usual fixes — wider o-rings, more fasteners, machined lid lips — add cost and still leave a narrow tolerance band. A resilient profile does the same job with the tolerances you actually have. If your design uses a formed lip and recessed gasket instead of a flat flange, the geometry choices are covered in the article on raised lip versus flat face gaskets.

What you need before you start

  • The enclosure outline, flange width and material thickness, with the expected bend and weld tolerance (plan for ±1 mm / 0.04 in of flange runout on a hand-welded box).
  • The target rating: IP64 (splashing water and dust) or IP65 (low-pressure jet and dust). The tests differ; IP65 versus IP66 water jet tests shows what the jet actually applies.
  • Gasket material samples: closed-cell EPDM or neoprene foam, and a hollow rubber profile for comparison.
  • Fastener layout, because gasket pressure comes from screws, not from glue.

Steps to a gasket that holds the rating

  1. Set the IP target honestly. IP64 and IP65 both allow protection against dust with low-pressure water; neither promises a dry interior under a fire hose. If the spec says washdown, step up the whole design rather than the gasket alone.
  2. Measure the gap, not the drawing. Assemble a prototype lid without a gasket and feeler-gauge the gap at corners, mid-spans and beside each weld. Design to the worst gap, not the average.
  3. Choose the profile. Closed-cell foam tape (EPDM or neoprene, 3-6 mm / 0.12-0.24 in thick) suits a flat flange and one-piece lids opened rarely. A hollow rubber section (bulb or D profile) recovers after repeated opening and tolerates more runout, which is why most large IP65 boxes use one. The trade-offs are compared in the foam versus rubber door gasket article, and continuous welded frames with recessed gaskets are covered in the tongue and groove gasket design article.
  4. Size the compression. Target 25-50 percent squeeze of the free height; 30 percent is a common starting point. For a 6 mm (0.24 in) foam, design the closed gap at roughly 4 mm (0.16 in) over the worst measured runout.
  5. Place fasteners so the pressure stays even. Keep screw spacing near 100-150 mm (4-6 in) along the flange for foam, closer for soft profiles, and never more than about 50 mm (2 in) from a corner. Stiffen a large lid with a formed lip or ribs; an 8 x 20 x 40 in lid with screws every 300 mm will not seal anything.
  6. Vent the box. A sealed enclosure breathes with temperature, which pumps moisture and stresses the gasket. A membrane vent equalizes pressure while blocking liquid water — the mechanism is the same one behind gas accumulation in sealed enclosures, explained in that article.
  7. Test with water before tooling anything. Spray the assembled box with a garden hose and a wide fan nozzle for several minutes per face, then open and inspect. Track any wet path to its cause: a fastener starved of pressure, a foam seam, or a gap at a weld.

Checks when the prototype is done

  • Squeeze test: clay or plasticine shims at several points under the closed lid confirm the compression falls in your 25-50 percent band everywhere, including corners.
  • Reopen test: open and close the lid ten times, then re-run the spray. Adhesive foam often seals well once and degrades after; if the door opens regularly, use a hollow rubber profile.
  • Dust check on the interior after spray: water tracks in through any true leak path long before the electronics notice.

Mistakes that cost you the rating

  • Butt-joined gasket ends. A foam strip with a square-cut joint leaks at the seam. Use corner-mitered joints, molded corners, or a continuous frame.
  • Gasket as adhesive. Relying on the tape's backing to hold the seal instead of fastener pressure. Compression makes the seal, not glue.
  • Over-compression. Crushing foam flat at the corners because the flange pulls tight there. Once crushed past about 50 percent, the cell walls collapse and will not recover.
  • Ignoring penetrations. The door gasket can be perfect and the box still leak through connector plates and gland plates. Sealing those is its own problem, covered in the article on sealing penetrations in a submersible electronics enclosure.

When to change the construction instead

If the box opens weekly, lives outdoors in sun, or faces hose-down rather than spray, a gasketed bent-sheet design fights the spec. A welded one-piece body with a machined or formed flange, or a cast housing, holds the tolerance an o-ring needs. For one-piece or low-volume builds, we make custom enclosures in stainless with the flange, gasket face and cutouts machined as one piece, rated by the manufacturer (for example NEMA 4X / IP66); they are not UL listed. You can configure one in the 3D enclosure builder, and the fundamentals of enclosure ratings are in the NEMA enclosure types guide. The rating on a drawing is only as good as the flange under it — design the gasket, then prove it with a hose.

Enclosures for this job

Catalog sizes that suit the job this article answers, picked from its subject; open one for its full specifications.

EnclosureMaterialOutside H x W x D / displayRating
12 × 10 × 6 in304 stainless12 x 10 x 6 inRated NEMA 4X / IP66 by the manufacturer; not UL listed
16 × 14 × 8 in304 stainless16 x 14 x 8 inRated NEMA 4X / IP66 by the manufacturer; not UL listed
20 × 16 × 8 in304 stainless20 x 16 x 8 inRated NEMA 4X / IP66 by the manufacturer; not UL listed

Questions

Why not use a solid o-ring on a welded sheet metal enclosure?

A solid o-ring seals by controlled compression in a machined groove, so it needs flat, accurate mating surfaces and steady clamp load. A welded sheet metal flange moves by more than the o-ring's squeeze window between corners, so some spots get no contact and others crush. Hollow or foam profiles absorb that runout instead.

How much compression should the gasket get?

Closed-cell foam and hollow rubber profiles typically seal well at 25 to 50 percent of their free height, with 30 percent a common target. Divide the free height by three and design the gap at about two thirds of that height, then verify with a squeeze test on a real lid, not just the drawing.

Does IP65 mean no water gets in at all?

No. IP65 is tested with a low-pressure water jet from a nozzle about 3 meters away for a fixed duration, and protection against dust ingress. It does not certify a dry interior, and it is not tested for immersion. For hose-down and washdown duty, specify a Type 4 or 4X design instead.

Is the IP64 or IP65 rating certified by a test lab?

For a custom build, the rating is a manufacturer rating for the specified design, not a UL listing. NEMA does not test or certify enclosures, and IEC 60529 defines the test method rather than approving products. If your inspector needs a listed box, ask early, because a custom welded enclosure generally will not carry one.

Checklist before you order

Specify it once, built to your drawing

  • Environment and NEMA type: Type 1, Type 3R, Type 4, Type 4X, Type 6P, Type 12, Type 13 (manufacturer ratings, not UL listed)
  • Material: 304 stainless steel, 316L stainless steel, Powder-coated carbon steel, Aluminum, Polycarbonate, Fiberglass (FRP)
  • Size: inside or outside height, width and depth, with the depth your deepest component needs
  • Cutouts, glands and windows, dimensioned from one datum on each face
  • Mounting and access: wall, pole or stand, hinge side, mounting panel
  • Quantity: from one piece

Delivered in 10 business days, anywhere in the world. Counted from your order; for custom work, from your approval of the drawing.

Build it from 12 × 10 × 6 inRequest a custom quote

NEMA 4X enclosures: sizes for this job

Keep reading

More on layout and installation

All articles

Buying guides

The guides behind this answer

All guides