JINXIONGMANUFACTURING
DEFECTSUpdated 2026-10-1210 min read

Porosity in Die Casting: What Causes It, Why It Shows Up After Machining, and How Suppliers Control It

Why does porosity in a die casting only appear after CNC machining? How does it lead to leaks and returns? How do surface sink marks differ from internal shrinkage porosity? This article works through the causes, the machining and the controls one by one.

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.

TypeHow it formsWhat it looks likeWhere it occursRemedies (in priority order)
Gas porosity (entrapped air)Air trapped by turbulent fillingFairly round, smooth inner wallsLast-to-fill areas, where the metal stream impinges① Recalculate ingate area and fill time ② Increase venting
Gas precipitation porosityHydrogen dissolved in the melt comes out as it solidifiesFine and widely scatteredLinked to melting and degassing① Refine and degas ② Control the proportion and cleanliness of returns ③ Control melt temperature and holding time
Shrinkage cavities / shrinkage porositySolidification shrinkage not fedIrregular, with dendritic edgesFixed 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.

Three kinds of void — and three different fixesEntrapped-air pore
Round, smooth-walled; last-to-fill or impact zones
Precipitated gas pore
Fine and dispersed; tracks melt hydrogen content
Shrinkage porosity
Irregular with dendritic edges; inside hot spots
The three kinds of void look different — and that is why their remedies are completely different.

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.

Intensification pressure has to reach the hot spot — and the narrow ingate is the choke pointShot plungerBiscuitRunnerIngateHot spotNarrowest section,freezes first×Squeeze pin: localpressure at the hot spotOnce the ingate freezes, plunger pressure no longer gets through: intensify earlier, thicken the ingate, or press locally at the hot spot.
Intensification pressure has to pass through the ingate to reach the hot spot; the ingate is the narrowest point and freezes first, and once it does, the pressure no longer gets through.

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.

From our troubleshooting experience: defects, main causes and remedies (in priority order)
DefectMain causeEffective remedies (in priority order)
Sink marksOver-thick ribs or bosses, abrupt section changes① Redesign: thinner ribs, cored-out bosses ② More cooling in that area ③ Earlier intensification
Shrinkage porosityFeeding 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 porosityHigh 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:

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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

  1. Which machined faces are porosity-critical? Were they identified before the die was designed?
  2. What is the expected depth of the dense skin for the alloy and sections supplied?
  3. How much material will CNC remove from each critical face, hole or boss?
  4. What evidence shows the machining depth won’t regularly expose porosity in the core?
  5. Are the expected defects gas porosity, shrinkage porosity, or both?
  6. How do the gates, overflows, venting, vacuum and cooling layout protect the machined areas?
  7. Can you provide sectioned samples, simulated machining results, radiographs or pressure-test data?
  8. Are porosity limits defined by location, pore size, spacing and allowable number — rather than a vague “zero defects”?
  9. Is the leak test done before machining, after machining, or both? What exactly are the test conditions?
  10. 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.