01Machining just brings it into the open
A die-cast housing is trimmed and looks fine, yet the machined sealing face is covered in pinholes. A threaded boss passes as-cast inspection, then leaks after drilling. A milled face reveals a cluster of holes never seen on the raw part.
These problems usually get blamed on CNC machining, but CNC has only cut away the material on top and exposed what was already inside the casting.
If the problem is misread as a cutting-parameter issue, the team keeps changing tools, feeds and fixtures while nobody looks at metal flow, solidification, venting, local wall thickness or where the machined faces are. Scrap keeps recurring, and the die caster and the machine shop blame each other.
This article covers why porosity only shows up after machining, and what the supplier should do before that point.
02Porosity is a condition inside the casting, not a cosmetic issue
Porosity means voids inside the casting, or holes connected to the surface. The two most common kinds are:
- Gas porosity: as the metal flows fast, turbulence, backflow or poorly vented dead zones trap air.
- Shrinkage porosity: a hot, thick region shrinks as it solidifies, and not enough liquid metal arrives to make up the volume.
NADCA’s guidance also says that eliminating every discontinuity is neither realistic nor economic; the acceptance level depends on what the part does. A condition that is acceptable inside a non-pressure area may not be acceptable at a sealing face, a threaded boss or a fatigue-critical section. The Gating Manual puts it more directly: shrinkage porosity is linked to the last areas to solidify, while gas porosity is strongly affected by flow, venting and vacuum. If the gating freezes too early or delivers metal to the wrong place, defects can stay inside the part even though the outer surface looks perfect.
03Why you can’t see it in the as-cast part
A die casting solidifies from the die wall inwards. The outer layer cools fast and forms a dense, fine-grained skin about 0.015–0.020 in (0.38–0.50 mm) thick. That skin acts like a lid over the defects inside: visually the surface is continuous, and the dimensional check may pass too, because the voids are below the surface and don’t change the shape. The part isn’t necessarily sound — it just hasn’t been cut open yet.
Once the tool removes the skin, what was inside becomes a surface defect: a single pore shows up as a pinhole; a cluster may look like a rough or pitted patch; and an interconnected network of shrinkage porosity can become a leak path once a hole is drilled or a sealing face is machined.
04From our experience: three kinds of void, plus sink marks and shrinkage porosity
When we troubleshoot defects, we sort voids into three kinds, because their causes and remedies are completely different.
| Type | How it forms | What it looks like | Where it occurs | Remedies (in priority order) |
|---|---|---|---|---|
| Gas porosity (entrapped air) | Air trapped by turbulent filling | Fairly round, smooth inner walls | Last-to-fill areas, where the metal stream impinges | ① Recalculate ingate area and fill time ② Increase venting |
| Gas precipitation porosity | Hydrogen dissolved in the melt comes out as it solidifies | Fine and widely scattered | Linked to melting and degassing | ① Refine and degas ② Control the proportion and cleanliness of returns ③ Control melt temperature and holding time |
| Shrinkage cavities / shrinkage porosity | Solidification shrinkage not fed | Irregular, with dendritic edges | Fixed inside hot spots | ① Squeeze pin ② Thicker ingate ③ More local cooling ④ Remove material from the design |
← Swipe sideways for all columns →
A key reminder: it is hard to diagnose from the surface appearance alone. Combine location, distribution and sectioning or X-ray results; if the first diagnosis is wrong, adjusting parameters afterwards won’t help.
Another important point: surface sink marks and internal shrinkage porosity are two expressions of the same solidification shrinkage problem. If the surface layer freezes first but isn’t strong enough to resist the pull of shrinkage, the surface is drawn in and forms a sink mark; if the surface layer is strong enough, the shrinkage stays inside as a void — shrinkage porosity. So the same hot spot can show up as a sink mark, as shrinkage porosity, or as both, depending on wall thickness and cooling. It also explains why a surface can look normal while an X-ray shows a patch of voids inside.
05Machining exposes porosity exactly where the function is tested
Machining is usually applied to the surfaces with the highest functional demands: gasket faces, O-ring grooves, bearing bores, tapped holes, locating datums and mating faces. That is why these defects appear late yet matter so much: the casting passes incoming inspection, trimming and coating, then fails in the final CNC operation that creates the real pressure boundary or assembly interface. The supplier has already spent the cost of casting, shipping, setup, tooling and machining, and the customer finds the defect only after the highest value-added step is done.
06Cutting more can make it worse
More machining stock does not necessarily give a better surface. According to NADCA, removing more than about 0.020 in (0.50 mm) of the dense skin increases the chance of exposing porosity in the centre of the wall. The usual minimum machining stock is about 0.010 in (0.25 mm), but the final figure has to account for casting variation, flatness, the parting-line effect and the specific operation.
A practical rule: remove enough material to reach the required geometry, but not so much that you regularly cut into the porous core. If casting variation is too large for that rule to work, the answer is better die and process control — not automatically adding machining stock.
07Gas porosity and shrinkage porosity carry different machining risks
Small, round gas pores that are scattered and not on a pressure boundary have little effect on the structure. But irregular, possibly interconnected shrinkage porosity, once cut open, can lead to leaks, insufficient thread strength, fatigue crack initiation and surfaces a coating can’t seal.
So a supplier can’t simply report “porosity” or “no porosity”. Location, type, size, spacing and relationship to the machined face all matter. A radiograph that is acceptable for a non-functional rib may not be acceptable for a drilled hydraulic passage.
08Visual inspection can’t prove a machined face will be sound
The failure is caused by removing material, so the inspection plan has to reproduce that condition: sectioning along the planned machined areas, simulated machining, X-ray, ultrasonic testing, penetrant testing for surface-breaking defects, and pressure testing after machining. Porosity limits should be agreed by critical zone and application, with reference radiographs or sectioned samples where needed. Pressure-tightness requirements must be defined before production, not added after the first leak.
09From our experience: why more intensification pressure often doesn’t cure shrinkage porosity
The most common fix on the shop floor is to “raise the intensification pressure and extend the hold time”, but against shrinkage porosity it often has limited effect. The reason is a physical chain:
Pressure has to travel from the shot plunger → biscuit → runner → ingate → before it reaches the hot spot.
The ingate is the narrowest section in that path, and the first to freeze — once it freezes, no amount of pressure at the plunger reaches the hot spot. More effective options are building intensification earlier, thickening the ingate to delay its freezing, or adding a squeeze pin at the hot spot for local secondary pressure.
Another rule of thumb: the first-priority remedies all point to the part design or the die, not the process parameters. A thick, solid boss is a hot spot however the parameters are set. Also, zinc alloys have a much narrower freezing range than aluminum and a very short feeding window, so zinc parts tend to have their problems in filling (cold shuts, flow lines, entrapped air) and part design carries more weight; aluminum has a wide freezing range, so shrinkage porosity is the bigger problem.
| Defect | Main cause | Effective remedies (in priority order) |
|---|---|---|
| Sink marks | Over-thick ribs or bosses, abrupt section changes | ① Redesign: thinner ribs, cored-out bosses ② More cooling in that area ③ Earlier intensification |
| Shrinkage porosity | Feeding path to the hot spot cut off when the ingate freezes | ① Squeeze pin for local feeding ② Thicker ingate ③ More local cooling to shorten solidification ④ Remove material from the design |
| Gas porosity (entrapped air) | Turbulent filling, insufficient venting | ① Recalculate ingate area and fill time ② Increase venting |
| Gas precipitation porosity | High gas content in the melt | ① Refine and degas ② Control the proportion and cleanliness of returns ③ Control melt temperature and holding time |
← Swipe sideways for all columns →
10Five common misconceptions
Misconception 1: checking only the as-cast outer surface. An intact skin can hide defects until the first drilling or milling operation opens them up.
Misconception 2: demanding “zero porosity”. One scattered pore in a non-functional interior area is not the same as connected shrinkage porosity under a sealing face. A blanket “zero porosity” adds cost without improving performance, and undefined acceptance rules leave the supplier with nothing to work to.
Misconception 3: covering unstable castings with more machining stock. Extra stock adds cycle time, tool wear, chips and the chance of cutting through the dense skin, and it increases clamping loads on thin walls. Control the casting variation first and find the real datums.
Misconception 4: placing gates or overflows without considering the machined areas. Gate position affects metal flow, local heat, trimming and internal quality. Without the final machined faces defined, the process may put a high-risk flow or solidification zone right under the tool.
Misconception 5: blaming recurring defects on the machine shop. An isolated tool mark may be a machining problem; clusters of pits recurring on the same boss, face or hole mean it’s time to look at the casting process. The order of investigation: check the die first (cavity, ejection balance, gates and venting), then the alloy (composition, returns, melting), and only then fine-tune the casting parameters.
11How we work
An experienced supplier treats porosity control as a design and process responsibility shared by the casting, machining and quality teams. Rather than waiting for machining to find internal defects, it first identifies where material will be removed, predicts where porosity is likely to form, and then verifies the finished condition with the customer’s actual functional tests. Our usual measures include:
- Mark the machined and pressure-critical zones before the die is released: sealing faces, holes, tapped bosses, drilled passages and datums, with the maximum depth and area of material removal specified.
- Review heavy sections, abrupt wall changes, deep bosses and flow splitting behind cores: where it reduces hot spots and shrinkage risk, we use coring-out, ribs, smooth transitions or relocated features — the aim is not a nicer-looking part but a part that still performs reliably after machining.
- Set the gating, overflow, venting and thermal strategy around the critical zones: control the flow direction, avoid unstable backflow, and give air and the last metal to solidify somewhere to go; run flow simulation where hidden defects would be costly.
- Set machining stock from real casting capability: enough to clean up the surface, small enough to protect the dense skin; machining datums and clamping points are aligned with the die design.
- Validate the whole process and control changes: as-cast sample inspection, simulated or actual machining of critical zones, leak, thread, surface and dimensional tests; reference sections or radiographs are kept for high-risk parts; any change to gates, die temperature, alloy source or machining depth triggers a review.
12Our case: an engine thermostat housing
The engine thermostat housing we make carries cooling-system pressure at its coolant outlet and is leak-tested at 0.25 MPa for 30 seconds, with no leakage allowed. The risk is exactly what this article describes: once internal porosity connects to the outside, coolant seeps in, accelerates corrosion and gradually opens a leak path.
What we do: 100% leak testing of finished parts, so pores connected to the outside are caught before shipment; spectrometer analysis of every alloy batch, with iron and other impurities controlled; and stress-relief ageing of the blanks before machining, so the sealing face doesn’t distort after thermal cycling.
Result: first-pass yield on the leak test is > 99%, and in-service leak complaints are < 0.1%.
1310 questions a buyer should ask
- Which machined faces are porosity-critical? Were they identified before the die was designed?
- What is the expected depth of the dense skin for the alloy and sections supplied?
- How much material will CNC remove from each critical face, hole or boss?
- What evidence shows the machining depth won’t regularly expose porosity in the core?
- Are the expected defects gas porosity, shrinkage porosity, or both?
- How do the gates, overflows, venting, vacuum and cooling layout protect the machined areas?
- Can you provide sectioned samples, simulated machining results, radiographs or pressure-test data?
- Are porosity limits defined by location, pore size, spacing and allowable number — rather than a vague “zero defects”?
- Is the leak test done before machining, after machining, or both? What exactly are the test conditions?
- Which process changes require revalidation, and how will the customer be notified?
The most convincing supplier answers tie each defect limit to a feature, a machining depth, a test method and a production control. Defined to that level, porosity becomes manageable.
SOURCES AND NOTE
- [1]North American Die Casting Association (NADCA). NADCA Product Specification Standards for Die Castings: Aluminum, Aluminum-MMC, Copper, Magnesium, Zinc and ZA Alloys, 12th edition, revised for 2024. Porosity Control and Secondary Machining Preplanning, pp. 2-13 to 2-15; Machining Stock Allowance S/P-4A-13-24, p. 4A-34; Quality Assurance, Porosity and Pressure-Tight Castings, pp. 7-12 to 7-16; Pressure Tightness G-6-1-24, p. 6-3.
- [2]North American Die Casting Association (NADCA). Product Design for Die Casting: In Recyclable Aluminum, Magnesium, Zinc and ZA Alloys, 7th edition, 2015. Skin Effect and Porosity, pp. 16-17; Machining and Porosity, pp. 63-65; Conventional Die Casting Process and Skin Effect, pp. 93-100.
- [3]North American Die Casting Association (NADCA). Gating Manual, Publication #512, 2006. Casting Quality Requirements and Porosity Considerations, pp. 12-13; Flow Pattern and Ingate/Outgate Location, pp. 22-25.
- [4]North American Die Casting Association. Basic Operator Training Program, 2015 revision. Shrinkage and internal void formation, pp. 47-49.
This is a technical introduction and design guide, drawing on the sources listed above and on Jinxiong's many years of production practice. It is for reference only and is not a commitment for any specific project. For a specific project, the technical agreement between both parties governs.
RELATED
No phone. No drawings. See your cost in 30 seconds.
Enter a few basic parameters and the tool breaks the piece cost down into material, casting machine time, CNC machining, surface finishing, and QC and packing, with estimated tiered prices for different production volumes. For a formal quotation, upload your drawing: we respond within 24 hours and send a complete quotation, including the tooling plan, within 1–3 working days.
Keep reading
- TOLERANCESDie Casting Tolerance vs CNC Machining Tolerance: How They Differ, How They Stack Up, and When Machining PaysHow do die casting and CNC tolerances differ? How do dimensional variations stack up, layer by layer? Which dimensions are worth paying to machine? This article answers those questions, with a real case of ours.
- MACHININGWhich Features of a Die-Cast Part Should Be CNC Machined? A Practical Design GuideWhich features of a part should come straight out of the die, and which should go to CNC? How should engineers and buyers trade off tolerance, tooling, porosity risk and total cost? This article sets out a practical way to decide.
- MACHININGWhy Die-Cast Parts Fail During CNC Machining: The Hidden Link Between Casting Quality and Machining PerformanceWhy do die-cast parts leak, chip, crack or go out of tolerance during CNC machining? How can buyers and engineers control casting problems at the source instead of finding the failures after machining?