Guide

Sealing and waterproofing an enclosure: gaskets, O-rings and IP ratings

How the common ways of sealing a product housing work, what makes a seal reliable, how to deal with cables, buttons and vents, what an IP rating does and does not tell you, and how to keep a sealed product repairable.

Quick answer

A reliable seal is a compressed seal: a gasket or O-ring squeezed by a controlled, even amount between stiff, smooth faces, with every opening in the housing sealed as carefully as the main joint.

Decide the sealing method while the housing is being designed, because it sets the wall flanges, fastener positions, grooves and how the parts fit together. Gaskets and O-rings can be opened and resealed; welding, adhesives and potting seal permanently. An IP rating describes how a finished product performed in standard tests, usually at a test lab, so plan to test prototypes early rather than assume a rating from the seal you chose.

Contents

  1. Why sealing is a design-stage decision
  2. Compressed gaskets
  3. O-rings: face seals and radial seals
  4. Labyrinths, drip edges, potting and coating
  5. Cables, connectors and vents
  6. What makes a seal work
  7. Buttons, displays and other openings
  8. IP ratings in plain terms
  9. Sealed or serviceable?
  10. Worked example: a handheld outdoor device
  11. Common mistakes
  12. Decision rules

Why sealing is a design-stage decision

Sealing is often treated as something to add once the housing works. In practice the seal shapes the housing. A gasket needs a continuous flat flange, a groove to locate it and enough fasteners to squeeze it evenly. An O-ring needs a precisely sized groove and a tighter fit than an ordinary enclosure. Every button, screen, cable and connector is another opening that needs its own seal.

These features drive part count, assembly and mould design, so they are expensive to add after tooling. Write the environment into your product requirements early: rain, splashes, hosing down, immersion, dust, sweat, cleaning chemicals, and whether the product will be opened later for service.

Compressed gaskets

A gasket is a soft rubber or foam squeezed between two parts so it fills the small gaps between them. The squeeze, called compression, is what makes it seal, and the design must control it.

  • Die-cut gaskets are cut from sheet rubber or closed-cell foam. They need little tooling, suit flat flanges and low volumes, and are easy to replace, but need locating features so they do not shift during assembly.
  • Form-in-place gaskets are a bead of liquid dispensed onto the flange by machine, which cures into a soft seal on one part. They follow complex shapes but need dispensing equipment and a groove or stop to set the compression.
  • Overmoulded or two-shot seals mould a soft thermoplastic elastomer directly onto the rigid housing part, as described in choosing plastic materials. The seal cannot be lost or fitted wrongly, but tooling is more complex and the seal cannot be replaced on its own.

Specify closed-cell foam, which keeps water out where open-cell foam soaks it up, and check the material suits the temperatures, chemicals and sunlight it will see.

O-rings: face seals and radial seals

An O-ring is a moulded rubber ring sitting in a groove. It is one of the most dependable seals because the groove controls how much it is squeezed, and standard sizes are widely available. Size the groove from the O-ring maker's design guidance rather than guessing.

  • In a face seal the ring sits in a groove in a flat face and is squeezed as the two faces are pulled together, usually by screws. It depends on the faces closing fully and evenly.
  • In a radial seal the ring sits around a plug or spigot and is squeezed against the wall of a bore as one part slides into the other. The fit sets the squeeze, so it depends less on fastener force, which suits round lids and end caps. It needs close tolerances on both diameters and a lead-in chamfer so the ring is not cut.
Face seal and radial seal compared in cross-section Two simplified cross-sections. On the left, a face seal: a flat lid sits on the flange of a base, and an O-ring in a groove in the flange is squeezed vertically between the two faces as the lid is pulled down. On the right, a radial seal: a plug sits inside the bore of a housing, with an O-ring in a groove on each side of the plug squeezed sideways against the bore wall. Not to scale. Face seal Lid O-ring in groove Base Squeezed between faces by the closing force Radial seal Plug Housing bore Squeezed against the bore by the fit between parts
Simplified cross-sections, not to scale. In a face seal the closing force sets the squeeze; in a radial seal the fit between the parts does.

Labyrinths, drip edges, potting and coating

Not every product needs a full seal. A labyrinth, overlapping walls that force water to take a winding path, and a drip edge that sheds water away from a joint, can keep out splashes and rain from above with no seal at all. They cost little and do not wear out, but will not stop water under pressure or immersion.

For electronics, an alternative is to protect the board itself. Conformal coating is a thin film over the assembled board that resists moisture and condensation; potting fills the space around the electronics with resin that sets solid. Potting protects well against water and vibration but adds weight and makes the board unrepairable. The electronics guide covers how these choices fit with board layout and heat.

Cables, connectors and vents

  • Cable glands clamp a seal around a cable where it passes through the wall. They suit round cables of a known diameter and need a flat, smooth area around the hole; flat cables are a common leak path.
  • Sealed connectors carry their own seals, both to the housing and between the mating halves. Many need a cap to stay sealed when unplugged.
  • Membrane vents are small patches of a microporous membrane that let air through but block liquid water. A sealed housing heats and cools, so the trapped air expands and contracts. Without a vent, that pressure difference strains the seal and can draw moist air or water in past it. A vent equalises the pressure.

What makes a seal work

  • Even, controlled compression. Too little squeeze and the seal leaks; too much and it takes a permanent set or pushes the parts apart. A groove, a hard stop or compression limiters fix the squeeze so it does not depend on how tightly the screws are driven.
  • Stiff flanges. A thin plastic flange bows between fasteners, squeezing the seal hard at each screw and barely in between. Ribs or a deeper flange keep the faces flat.
  • Enough fasteners or clips around the seal. Space them closely enough that the flange cannot bow open. The joining methods guide compares screws, inserts and snap fits for holding a lid closed.
  • A smooth, continuous sealing face. Texture, sink, ejector and gate marks and a parting line across the seal path all create leak channels. Keep the sealing face smooth and specify it on the drawing.
  • Tolerances that hold the squeeze. The squeeze depends on the tolerances of both parts, so check it at the extremes, not just at nominal, as explained in the tolerances and engineering drawings guide; flatness of the sealing faces often matters as much as their size.

Buttons, displays and other openings

Openings are where many sealed products leak. Common approaches:

  • Buttons are often a moulded rubber keypad that both seals the opening and acts as the button, or a flexible membrane over a switch. Separate plastic buttons need an O-ring or boot behind each.
  • Displays and windows are usually bonded in with adhesive tape or a gasket around a flat, clean frame.
  • Speakers, microphones and sensors can sit behind an acoustic membrane that passes sound but blocks water.
  • Battery doors and charging ports need their own gaskets or caps, or can be avoided with wireless charging.

IP ratings in plain terms

An IP (ingress protection) rating such as IP54 or IP67 summarises how well an enclosure keeps out solids and water. The first digit describes protection against solid objects and dust; the second digit describes protection against water. Higher numbers mean more demanding conditions. An X in place of a digit, as in IPX4, means that aspect was not tested, not that it failed.

The ratings are defined by standard tests on finished products, usually done by a test lab. A rating describes how a specific product performed in those tests, not a property of the seal you chose. Choose the rating from how the product will really be used, check the standard's definitions, and plan the testing with the Test Plan Builder. The testing and validation plans guide explains how to stage tests through development, and product certification basics covers how environmental testing fits with safety and other compliance work.

Sealed or serviceable?

The most robust seal is often a permanent one, such as a welded or glued housing or potted electronics. It is also the least repairable: a failed battery or button inside a welded housing turns a repair into a replacement, and seals themselves harden over time.

If the product will be opened, use an O-ring or replaceable gasket held by screws into durable threads, and make the replacement seal available. The design for repair and disassembly guide explains how to make wear parts reachable without giving up the protection the product needs.

Worked example: a handheld outdoor device

Illustrative example. A start-up is designing a handheld outdoor device with a moulded two-part housing, a small display, two buttons, a charging port and a replaceable battery. It must survive rain and being dropped in a puddle. The team compares three ways to seal the main joint.

Option Sealing reliability Serviceability Design and tooling impact
Die-cut or form-in-place gasket Good if the flange is stiff and fasteners are closely spaced Good: reopens, but the gasket may need replacing Wide flat flange and many screws add size and assembly time
O-ring in a groove Very good: the groove fixes the squeeze Good: reopens and reseals with a standard ring Groove and tighter tolerances; a radial seal needs a suitable shape
Ultrasonic weld Very good once the joint is right None: the battery cannot be replaced Welder, horn, fixture and joint features in the mould

The weld is ruled out because the battery must be replaceable, and a gasket would need a wide flange on a small handheld. The team chooses a face-sealing O-ring in a continuous groove, with screws into threaded inserts at each corner and along the sides, and ribs to stiffen the flange.

The openings are handled separately: a rubber keypad, the display bonded with gasket tape, a capped charging connector and a membrane vent. Early prototypes in near-production materials are leak-tested before tooling, rather than waiting for a formal IP test at the end.

Common mistakes

Relying on a sealant bead without compression control. Its squeeze varies with how tightly the screws are driven. Use a groove or hard stop.
Too few fasteners. A thin flange held only at the corners bows open along the sides.
A sealing face on a parting line or textured surface. Both create leak paths. Keep the seal path smooth and continuous.
Forgetting pressure equalisation. A sealed housing that heats and cools strains its own seal. Consider a membrane vent.
Not testing early prototypes. A simple leak check on early prototypes is far cheaper than a failed lab test after tooling.

Decision rules

  • Define the environment first, and whether the product will be opened.
  • Use labyrinths and drip edges for splashes and rain from above; use compressed seals for water under pressure or immersion.
  • Prefer an O-ring or replaceable gasket where the product must be opened; reserve welding, adhesives and potting for products that never will be.
  • Design the compression with grooves or stops, stiff flanges and enough fasteners.
  • Count every opening and give each its own seal, plus a vent if the housing is fully sealed.
  • Test prototypes early, then confirm the IP rating with formal testing on production-representative parts.

Next steps

  1. List the environments your product will see and every opening in the housing.
  2. Plan leak checks and formal tests in the Test Plan Builder.
  3. Check the tolerances that set the seal's squeeze with the Tolerance Stack-up Calculator.
  4. See where this sits in the wider picture in the manufacturing and cost hub.

FAQ

Should I use a gasket or an O-ring?

An O-ring in a well-designed groove is usually the more dependable seal, because the groove fixes how much it is squeezed. A gasket suits large, flat or irregular flanges and lower volumes, but needs a stiff flange and closely spaced fasteners to compress it evenly.

What does the X in IPX4 mean?

It means the product was not tested for that aspect, here protection against solids and dust. It does not mean the product failed; it simply makes no claim either way.

Can I claim an IP rating without testing?

An IP rating describes how a product performed in the standard's defined tests, so a claim should be backed by testing to that standard, usually at a test lab. Using a seal or connector with its own rating does not by itself give the whole product that rating.

Why does a waterproof product need a vent?

A sealed housing heats and cools, so the air inside expands and contracts. A membrane vent lets air through but blocks liquid water, so the pressure difference does not strain the seal or draw moisture in past it.

Can a waterproof product still be repairable?

Yes, if it is sealed with O-rings or replaceable gaskets held by screws into durable threads, rather than welded, glued or potted. Make the seal easy to inspect and replace, and make replacement seals available.