A batch of aluminum gearbox housings passes every dimensional check, then some of them fail the leak test. This guide on die casting machining checks three likely causes: machining has opened porosity (small gas or shrinkage voids inside the casting), the sealing face isn't flat or clean enough, or the test fixture itself leaks.
This guide works through each one with numbers from the die casting industry's own standards. It then matches the housing to a machine and lists the first-piece checks that tell the three apart.
How much stock die casting machining should take
A die casting is densest at its surface. NADCA, the North American Die Casting Association, notes that thinner walls are largely free of porosity while thicker walls can be expected to contain some inside (NADCA Product Specification Standards, 2015). So the deeper the cut, the more likely it is to reach that porous core.
NADCA gives 0.25 mm as the normal minimum machining allowance, to avoid excessive tool wear and keep porosity exposure down. The trouble is that a cast face isn't flat to begin with. Its standard as-cast flatness tolerance is 0.20 mm for a face up to 76 mm across, plus 0.08 mm for each extra 25.4 mm, measured on the diagonal.
Take a sealing face of 200 × 150 mm. Its diagonal is 250 mm, so by linear interpolation of that tolerance it may be about 0.75 mm out of flat as cast.
Assume the casting sits so its high and low points line up with the cutting direction, and the cut is set to leave 0.25 mm at the low point, ignoring locating and setup errors. Then the cutter takes 0.25 mm at the low corner and about 1.0 mm at the high corner. That high corner is where a covered pore is most likely to open.

Keep die casting machining out of the porous core
Two things keep that cut even. Locate the casting from datum points (the reference points measurements start from) in the same die half as the face you machine, as NADCA recommends. And tell the caster which faces will be machined before the die is built, so the die can be designed to keep porosity out of those areas.

Seat the casting the same way every time
A gate remnant (the stub left where metal entered the die) or a fin of flash (thin metal squeezed out at the die joint) can lift a housing off a locator. It still clamps, so the machine cuts a face that is tilted relative to the casting. Keep locators away from gates, flash lines and ejector pin marks unless the drawing puts a datum there.
Seating can be checked before the first cut. In a pilot by fixture maker ROEMHELD on a cast aluminum rear axle frame, two hydraulic swing clamps fitted with sensors, plus a pressure sensor and two contact sensors, checked whether the part was seated correctly, whether clamping and contact forces were in range and whether the casting's contour was within tolerance. If any value was off, the machine refused to start.

Clamp where the casting is stiff. A clamp pressing on a flange with nothing under it pulls the flange down while you cut. The face comes out flat in the fixture, then the flange springs back when you release it, and the sealing face is no longer flat. Put each clamp directly over a support, or over a rib that has a support under it, and measure the face again after release.

Tell a porosity leak from a sealing-face leak
NADCA says pressure-tightness testing for castings is generally specified at 5 to 40 psi (about 0.3 to 2.8 bar). In leak-test maker Marposs's gearbox example, the typical maximum leak from inside to outside is around 1 cc/min (one cubic centimeter of air per minute); limits between internal circuits can be very different. A leak that small can come from any of the three paths, and the pressure gauge can't tell you which.

Rule out the fixture first. Run a known-good master part, and have the caster and the machine shop use duplicate test fixtures and the same method, as NADCA recommends.
Then locate the leak on the failing part, with a bubble test or the method in your test procedure. An opened pore only leaks if it connects through to the pressurized side.
A leak through a pore in a machined face points back to stock and porosity. A leak at the edge of the sealing land points to flatness, finish or a burr (the ragged edge a cut leaves), though too little clamping force or a worn seal can look the same.
If a housing leaks only through porosity, NADCA notes that impregnation (filling the pores with a liquid sealant that then cures) can make it pressure tight. Agree with your customer whether that is allowed, and retest as they require.
Which machine suits which die casting machining job
| Housing job | First machine to look at | What it has to prove on your part |
|---|---|---|
| Small housing, one sealing face, easy to flip | Vertical machining center | Flatness after release, and datum transfer between setups |
| Medium housing with holes and faces related across sides | Horizontal machining center | Positions across faces held in one clamping as the part indexes |
| Large structural casting, or several faces out of reach | Gantry machining center with an angle head | Clearance with the fixture installed, and side-face reach |
| The same drilling and tapping on every part | Multi-spindle drilling and tapping machine | Fixture locating from the machined datums |
If several faces of a housing have to line up, look at a horizontal machining center (HMC, the spindle lies horizontal and the table turns), because it can cut those faces without unclamping. When the job is mostly repeated drilling and tapping on the same casting, a multi-spindle machine with a rotary table loads one part while it machines another.

First-piece checks for die casting machining
| Check | When | Example from this guide |
|---|---|---|
| Stock on each machined face | Before cutting | 0.25 mm minimum; about 1.0 mm at the high corner in the 200 × 150 mm example |
| Seating and clamp force | Before cutting | Sensor clamps can stop the cycle if the part sits wrong |
| Sealing face flatness | Clamped, then released | A flange clamped over nothing springs back when released |
| Leak test | After machining, with a duplicate of the caster's fixture | Marposs gearbox example: around 1 cc/min inside to outside |
| Leak location | Only on parts that fail | Pore in a machined face, or the edge of the sealing land |
Measure flatness and hole positions with the part released, on a coordinate measuring machine (CMM) if the drawing calls for it.

Chansin CNC machines for die-cast housings
We have worked with customers machining automotive structural and integrated die castings. For sealed housings in the middle size range, our horizontal machining centers can be supplied with a hydraulic fixture interface.
For large castings, our gantry machining centers can take an angle head for side faces, a hydraulic fixture interface, minimum-quantity lubrication or dry cutting, and a chain conveyor with augers for the chips. For repeated drilling and tapping, we build multi-spindle machines around the casting.
For very large structural castings, see our megacasting machining guide. Send us the raw casting and finished drawings, with the sealing-face tolerances, the leak-test pressure and limit, and how many parts a year. We'll check the stock, datums and fixture against the machine, suggest a configuration, estimate the cycle time and prepare a quote.
FAQ
Why does the housing leak even though the surface roughness passes?
Roughness only describes the texture along the line you measured. The face can still leak through a burr, a flatness error or an opened pore, and the test fixture's own seal can cause the same pressure drop. Find the leak location before changing the process.
Should I check the sealing face clamped or released?
Both. The clamped reading shows what the machine cut. The released reading shows what the assembly will see. Accept the part in the condition the drawing specifies.
Can a housing that leaks through porosity be saved?
It may be, by impregnation, which NADCA describes as a way to make castings pressure tight. Check that your customer accepts it, and fix the stock or porosity cause for the next batch.
Sources
- NADCA Product Specification Standards for Die Castings, 2015: machining stock allowance, as-cast flatness and pressure tightness.
- ROEMHELD clamping concept for aluminum castings and Marposs air leak test on a gearbox.
