Gasket Grooves and Sealing on Enclosures
An enclosure seals at the gasket, and the gasket works in its groove. Groove sizing, squeeze and bolt spacing — the machining side of a seal.

An outdoor enclosure does not fail at the wall. It fails at the lid — at the gasket line, where a groove, a cord and a row of screws decide whether rain stays out for ten years or finds its way in during the first storm. The electronics team usually owns the IP rating, but the seal itself is made of machined features, and those features have rules. This article covers the machining side: how a gasket groove is sized, how much squeeze a gasket wants, what finish the sealing faces need, and how bolt spacing keeps compression even. Send us the enclosure drawing with the gasket you have chosen — or ask, and we will machine the groove to suit a standard cord size.
How a face seal works
A static face seal is simple in principle: an elastomer cord or molded gasket sits in a groove machined into one flange face. When the lid closes, the gasket is squeezed between the groove bottom and the mating face. The squeeze is what seals — the elastomer, compressed, pushes back against both faces and fills the microscopic gaps between them.
Two numbers define the design:
- Squeeze. For static face seals, the gasket is typically compressed by about 15–30% of its cord diameter. Too little and it will not fill the surface irregularities; too much and the elastomer is over-stressed, takes a permanent set sooner, and the lid may not close flat.
- Groove fill. The groove must have room for the displaced elastomer to go. A groove whose volume is nearly all cord when compressed leaves the rubber nowhere to expand — the joint then behaves like a solid stack and the screws, not the gasket, take the load. Grooves are normally sized so the compressed gasket fills roughly 70–85% of the groove volume.
Both numbers come from the gasket or cord supplier's data for the specific material — silicone, EPDM and fluorocarbon cords differ — and the groove on the drawing should be dimensioned to them, not copied from another product.
Groove machining details
- Width and depth. Depth sets the squeeze (cord diameter minus groove depth, against a flat mating face). Width sets the fill. Both are simple dimensions to machine — and both are worth tolerancing individually rather than leaving to a general tolerance, because a 0.2 mm error in groove depth is a large error in squeeze percentage.
- Corners. A machined groove has corner radii from the cutter; a molded gasket with square corners will not sit perfectly in them. Either the gasket is a cut-and-joined cord that follows the groove path, or the groove corners are drawn with radii the gasket can follow. Decide which gasket form you are using before the groove is cut.
- Surface finish. The groove bottom and the mating face are sealing surfaces. They should be smooth — we hold sealing faces to Ra 0.8 µm (32 µin) unless the drawing says otherwise — and free of radial scratches and tool marks crossing the seal line, because a scratch across the gasket path is a leak path. Machining marks that run along the groove are far less harmful than marks that cross it.
- Flatness of the flange. A wavy flange face makes squeeze vary around the perimeter — tight at the high spots, loose in the hollows. On machined housings the face is milled flat in the same setup as the groove wherever possible.
Bolt spacing and compression
Even a perfect groove fails if the lid only presses hard near the screws. Between fasteners, a thin lid or flange flexes away and squeeze drops. The practical rules: keep fastener spacing close enough that the flange stays stiff between bolts (closer on thin flanges and soft gaskets), place screws symmetrically around the perimeter, and on long sides expect screws in the middle, not just at the corners. This is also where a machined housing earns its keep over a thin folded one — a rigid flange holds even compression with fewer screws. Our EV charging enclosure article shows how these details come together on outdoor equipment.
Groove or flat gasket?
A flat sheet gasket clamped between two faces works, and for large covers it is often the economical choice. A groove is worth the extra machining when the enclosure is opened and closed in service (the gasket stays located instead of shifting or sticking), when the seal line is narrow, or when compression must be controlled precisely — the groove depth limits squeeze mechanically, so an over-tightened lid cannot crush the gasket to death. Liquid-cooled cold plates face the same groove-versus-face-seal choice on their covers, with the added pressure test on top.
One boundary worth stating: an IP rating belongs to the assembled, tested product. We machine the groove, the faces and the flange to your drawing and hold the dimensions the seal depends on — the rating itself is proven by testing the finished enclosure, which sits with the product's certification, not with the machining.
FAQ
How deep should the groove be for a 3 mm cord? As a starting point, a groove depth around 2.2–2.5 mm gives roughly 17–27% squeeze against a flat face — then confirm against your gasket supplier's data for the material, and dimension the groove to that.
Can you machine the groove for a gasket we supply? Yes. Send the gasket or its section dimensions with the drawing, and we machine the groove to suit it — including corner radii the gasket can follow.
Does the mating face need a groove too? Normally no — one groove and one flat face is the standard arrangement. The flat face still needs the sealing finish and flatness; it is half the seal.
Our current enclosure leaks at the corners. Why? Corners are where everything stacks up: groove corner radii, gasket joints (a joined cord's splice is often placed at a corner — it should not be), and the widest bolt spacing. It is the first place we look when checking a drawing.
Silicone or EPDM for an outdoor enclosure? EPDM is the usual outdoor choice for weather and ozone resistance; silicone covers a wider temperature range. The groove dimensions follow the cord you choose — pick the material for the environment, then size the groove from its data sheet.



