Porosity is one of the most common defects affecting the quality, airtightness, and structural reliability of aluminum die-cast components.
For manufacturers producing electronic control housings, heat sink enclosures, automotive parts, motor housings, and other precision castings, porosity can lead to sample rejection, machining defects, leakage failures, and costly production rework.
From a die-casting engineering perspective, sample acceptance should never depend on visual appearance alone.
A reliable inspection process needs to combine visual inspection, dimensional measurement, airtightness testing, and internal defect examination.
At the same time, porosity prevention must begin with mold venting, injection parameters, molten aluminum quality, release-agent control, and casting design.
1. How to Determine Whether a Die-Cast Sample Is Qualified
When customers receive their first die-cast samples, one of the most common questions is: Does this part actually meet the requirements, or does it simply look good?
In production, visual appearance is only the first checkpoint. A qualified sample must satisfy the drawing requirements, functional requirements, and internal quality standards.
For housings with sealing cavities or pressure-bearing structures, internal porosity and airtightness are particularly important.
A practical sample acceptance process consists of four inspection stages.

Visual Inspection: Check Surface Quality and Casting Appearance
Visual inspection is the first step in evaluating a die-cast sample. It helps identify surface defects and obvious problems with mold filling, metal flow, and die separation.
Key inspection points include:
- Cold shuts: Incomplete fusion between two metal flow fronts, appearing as thin lines or cracks on the casting surface.
- Flow marks: Visible patterns caused by uneven metal flow, temperature differences, or unstable filling.
- Incomplete filling: Missing material around thin walls, ribs, corners, or other difficult-to-fill features.
- Flash and burrs: Excess aluminum along the parting line, ejector-pin locations, or slide interfaces.
- Surface porosity: Small holes or pinholes visible on the as-cast surface.
- Surface finish: Check whether roughness, appearance, and coating preparation meet the drawing or customer specifications.
Visual inspection should also consider the locations of defects. A small surface imperfection on a non-functional exterior may be acceptable under an agreed cosmetic standard, while the same defect on a sealing face or precision interface may cause immediate rejection.
Dimensional Inspection: Verify Critical Dimensions and Geometric Tolerances
A casting can have an acceptable appearance but still fail during assembly because of dimensional deviations.
For precision die-cast housings, coordinate measuring machines (CMMs) are commonly used to inspect critical dimensions and geometric tolerances. Important features include:
- Overall length, width, and height.
- Mounting-hole positions and diameters.
- Threaded-hole locations and depths.
- Flatness and parallelism of sealing surfaces.
- Position tolerances between mounting points.
- Critical wall thicknesses and machined interfaces.
Inspection results should be compared directly with the approved engineering drawing.
For aluminum die castings, GB/T 15114 can serve as a relevant reference for technical requirements and dimensional tolerances.
However, the applicable tolerance class and acceptance criteria must be confirmed against the drawing, customer specification, and relevant product standard.
Not every dimension should automatically be evaluated using the same tolerance band.
For parts requiring CNC machining, it is also important to verify machining allowances.
Insufficient allowance may leave casting defects on the finished surface, while excessive allowance can expose deeper subsurface porosity.
Airtightness Testing: Verify Functional Sealing Performance
For die-cast housings containing internal cavities, oil passages, cooling channels, or sealed compartments, airtightness testing is often a decisive acceptance requirement.
Depending on the application, manufacturers may use:
- Air pressure testing: Compressed air is introduced into the test cavity, and pressure decay or leakage flow is measured.
- Water pressure testing: The component is pressurized with water to check for leakage under specified pressure conditions.
- Differential pressure testing: The pressure difference between the test component and a reference chamber is monitored to identify leakage.
- Helium leak testing: Used when very low leakage rates must be detected.
The test pressure, stabilization time, test duration, and allowable leakage rate must be defined in the inspection specification.
These values should reflect the actual operating conditions and customer requirements rather than being selected arbitrarily.
For example, an electronic control housing may need to prevent moisture ingress to support the performance of the completed enclosure.
If internal casting porosity connects the cavity to the exterior, the component may fail its airtightness test even when the external surface appears flawless.
One important distinction is that airtightness testing of a casting does not directly establish the final IP rating of the assembled product.
IP67, for example, applies to the completed enclosure under the relevant test conditions.
X-Ray and Industrial CT: Inspect Internal Casting Quality
X-ray inspection is essential when internal porosity could affect structural integrity, sealing performance, or machining quality.
It can reveal defects that are invisible during visual inspection, including:
- Gas porosity distributed throughout the casting.
- Shrinkage cavities in thick sections.
- Shrinkage microporosity around rib intersections.
- Internal inclusions and other discontinuities.
- Large voids near mounting bosses and threaded holes.
Industrial CT provides additional three-dimensional information about pore location, volume, and distribution.
It is particularly useful when engineers need to understand the relationship between internal defects and complex housing geometry.
Not every sample requires full CT inspection. A practical approach is to use X-ray for routine internal quality verification and CT for critical samples, complex defect investigations, or process validation.
Engineering recommendation: For thin-walled, load-bearing, and airtight die-cast components, internal quality inspection should be included in the sample approval plan.
A sample that passes visual and dimensional inspection may still be unsuitable for production if it contains unacceptable subsurface porosity.
2. Why Does Porosity Keep Occurring in Die-Cast Parts?
Porosity is an inherent risk in high-pressure die casting because molten aluminum enters the cavity at high speed and must displace the air and gases already present in the mold.
If gas evacuation, metal flow, or solidification is not properly controlled, internal voids can develop.
However, not all pores have the same formation mechanism. Engineers must distinguish between gas porosity and shrinkage porosity before selecting corrective measures.
Poor Mold Venting: Cavity Gas Cannot Escape
Insufficient venting is one of the most common causes of gas porosity.
During high-speed filling, molten aluminum rapidly occupies the mold cavity.
If the air inside cannot escape through the parting-line vents, overflow channels, vent inserts, or ejector-pin clearances, it becomes compressed and trapped in the metal.
These trapped gas pockets may form rounded pores, often concentrated near the last-filled regions or beneath the casting surface.
Common contributing factors include:
- Insufficient vent cross-sectional area.
- Poorly positioned overflow and venting systems.
- Blocked vent channels caused by aluminum buildup.
- Inadequate venting around deep cavities and complex cores.
- Improper vacuum valve operation or poor vacuum sealing.
Increasing injection pressure does not necessarily solve this problem. If the air has no effective escape route, higher filling speed may simply increase turbulence and gas entrapment.
Excessive Injection Speed: Turbulent Filling and Air Entrapment
High-pressure die casting requires a controlled transition from slow-shot to fast-shot filling.
If the fast-shot speed is too high or the transition point is incorrectly set, molten aluminum may enter the cavity in an unstable flow pattern.
The metal front can fold over itself, collide with other flow fronts, and trap air inside the casting.
An ingate velocity exceeding approximately 30 m/s can increase the risk of gas entrapment in some die-casting applications.
However, this should not be treated as a universal defect threshold. The acceptable velocity depends on alloy, gate geometry, cavity layout, wall thickness, and the required filling time.
The engineering objective is not to reduce speed indiscriminately, but to establish a stable filling profile that minimizes turbulence while ensuring complete cavity filling.
High Hydrogen Content in Molten Aluminum
Molten aluminum can absorb hydrogen from moisture in the atmosphere, contaminated charge materials, and other sources during melting and holding.
As the metal cools and solidifies, hydrogen solubility decreases. Dissolved hydrogen may then precipitate and form gas pores within the casting.
Factors that increase the risk include:
- Excessive use of contaminated or poorly controlled recycled aluminum.
- Moisture in charge materials and tools.
- Insufficient degassing and refining.
- Excessive melt holding time under unfavorable conditions.
- Poor control of furnace atmosphere and melt handling.
Hydrogen-related porosity is different from air entrainment during filling. Even with a well-designed venting system, excessive hydrogen in the molten metal can still produce internal gas defects.
Excessive Release-Agent Application
Release agents help prevent aluminum soldering and facilitate casting ejection. However, excessive application can become a source of gas generation.
When release agents are sprayed onto a hot die surface, their volatile components evaporate or decompose.
If the spray volume is excessive or the subsequent air-blowing stage is insufficient, residual moisture and organic materials may remain in the cavity.
During the next shot, these residues generate gas that can become trapped beneath the casting surface.
The problem is especially noticeable in deep cavities, around complex core structures, and in areas where spray coverage is difficult to control.
Uneven Wall Thickness: Shrinkage Porosity Mistaken for Gas Porosity
Not all internal holes are caused by trapped gas.
Thick sections, mounting bosses, rib intersections, and abrupt wall-thickness transitions can form localized hot spots.
These areas solidify later than the surrounding metal and may not receive sufficient liquid aluminum to compensate for solidification shrinkage.
The resulting shrinkage defects often have irregular or sponge-like shapes, unlike the more rounded appearance commonly associated with gas pores.
This distinction matters because the corrective measures are different:
- Gas porosity requires better gas evacuation, vacuum assistance, melt quality, and filling control.
- Shrinkage porosity requires improved feeding, cooling balance, geometry optimization, and sometimes local squeeze technology.
In actual production, gas and shrinkage mechanisms may overlap, producing mixed porosity that requires more detailed investigation.
3. Five Practical Ways to Prevent Porosity Before Die Casting
Porosity prevention is more effective when it begins before the first production shot.
Based on common die-casting process experience, the most reliable approach is to control the mold venting system, injection profile, molten aluminum quality, release-agent application, and component geometry.
Improve Mold Venting and Introduce Vacuum Assistance
The mold should provide sufficient exhaust capacity to remove air and process gases during filling.
Key improvements include:
- Optimize parting-line vent locations and cross-sectional areas.
- Add overflow wells to collect the initial metal flow and help direct gas toward the exhaust system.
- Install vent inserts in deep cavities and difficult-to-fill regions.
- Maintain ejector-pin and core-pin venting clearances.
- Inspect and clean vent channels regularly.
For complex housings and components with strict airtightness requirements, vacuum-assisted die casting can provide additional control.
Before filling, the vacuum system evacuates part of the air from the cavity, reducing back pressure and the amount of gas available for entrapment.
In the original production example, adding a vacuum valve and an annular venting arrangement significantly improved the internal quality of an aluminum heat-sink housing.
The reported gas porosity rate decreased from approximately 8% to below 1% after vacuum and venting improvements.
This is a case-specific result, not a guaranteed reduction for every die-casting process.
Optimize the Injection Profile Instead of Blindly Increasing Speed
Injection speed must be matched to the runner design, ingate position, cavity geometry, and alloy characteristics.
A typical process-control approach includes:
- Slow-shot stage: Move the molten aluminum steadily through the shot sleeve to reduce premature air entrainment.
- Fast-shot stage: Accelerate at the appropriate position to fill the cavity before the metal loses excessive temperature.
- Intensification stage: Apply sufficient pressure while the feeding path remains open to compensate for solidification shrinkage.
The fast-shot changeover point should be established through short-shot trials, filling analysis, and machine data.
In one production trial, reducing the injection speed by approximately 15% was associated with a roughly 30% reduction in gas porosity.
The result illustrates the value of optimizing the injection profile rather than maximizing speed.
It should not be interpreted as a universal relationship between speed reduction and porosity improvement.
Control Hydrogen Content and Molten Aluminum Quality
Molten aluminum quality must be controlled before it enters the shot sleeve. Poor melt treatment can produce internal porosity even when the die and injection parameters are well optimized.
Recommended controls include:
- Establish a controlled ratio of recycled aluminum and primary alloy.
- Remove oil, moisture, and surface contamination from charge materials.
- Apply rotary degassing or other suitable melt-treatment methods.
- Use a hydrogen measurement instrument to verify melt quality.
- Control holding temperature and time to avoid unnecessary gas absorption.
The supplied production reference recommends keeping recycled material below 30% and hydrogen content below 0.12 ml/100 g of aluminum.
These values should be treated as process-specific targets, not universal limits. Recycled-material suitability depends on alloy chemistry, contamination level, and charge preparation.
Hydrogen acceptance limits should be established according to the alloy, casting requirements, and the measurement method used.
A stable melt-treatment process is more reliable than attempting to compensate for poor molten-metal quality through mold or machine adjustments.
Apply Release Agent Evenly and Control Residual Moisture
Release-agent application should be treated as a controlled process variable.
Excessive spraying can leave residual water and organic material in the cavity, increasing gas generation during the next shot.
Insufficient spraying, on the other hand, may cause soldering, difficult ejection, and die damage.
Recommended practices include:
- Use automatic spray systems with controlled dosage.
- Apply a uniform coating rather than concentrating spray in isolated areas.
- Adjust spray duration and air-blowing time according to die geometry.
- Ensure deep cavities are adequately dried before mold closing.
- Inspect spray nozzles and maintain consistent spray patterns.
The objective is to maintain sufficient release performance while minimizing the amount of volatile residue remaining in the cavity.
Optimize Casting Geometry and Machining Allowances
Porosity prevention also depends on component design.
Large wall-thickness differences create uneven solidification and increase the likelihood of shrinkage defects.
Where possible, maintain relatively uniform wall thickness and use gradual transitions between thin and thick sections.
For mounting bosses and reinforced areas:
- Avoid excessive material accumulation.
- Use appropriate transition radii.
- Optimize rib thickness and intersection geometry.
- Consider local cooling or squeeze-pin structures for unavoidable hot spots.
Machining allowances must also be considered during design. If the final sealing face or precision interface is expected to remove the as-cast surface, sufficient allowance should be provided.
However, simply increasing machining allowance is not a reliable solution if porosity extends deep into the casting.
For critical sealing surfaces, the casting process should be designed to keep the underlying material sound rather than relying on CNC machining to remove defects.
4. Case Study: Reducing Porosity in an Aluminum Heat-Sink Housing
A practical example demonstrates how several process improvements can work together to solve persistent porosity problems.
A customer approached the foundry with a new-energy heat-sink housing for sampling.
The samples produced by the previous supplier showed extensive porosity during X-ray inspection, while the airtightness test recorded a leakage rate of approximately 12%. The entire batch was rejected.

After reviewing the casting geometry, X-ray results, and process conditions, the engineering team identified two primary problems:
- The original mold had insufficient venting capacity, particularly around the difficult-to-fill cavity regions.
- Excessive release-agent application introduced additional gas into the mold cavity.
The corrective actions focused on improving gas evacuation and stabilizing the filling process.
Mold and Venting System Improvements
The mold was redesigned with an additional annular venting channel and a vacuum valve to improve cavity evacuation.
The new arrangement provided a more effective exhaust route for trapped air and process gases, especially in the remote regions of the housing.
Injection and Material Control
The injection speed was reduced and recalibrated to achieve a more stable filling pattern.
At the same time, the proportion of recycled aluminum was reduced to approximately 20%, while melt treatment and hydrogen control were strengthened.
Release-agent application was also adjusted to reduce excessive spraying and residual moisture.
Inspection Results
After the process changes, the first samples showed a substantial improvement in internal quality.
| Quality Indicator | Previous Process | Improved Process |
| X-ray porosity area ratio | Approximately 6% | Approximately 0.4% |
| Airtightness test | Approximately 12% leakage rate | Zero leakage in 500 tested parts |
| Recycled aluminum proportion | Higher and less controlled | Approximately 20% |
| Mold exhaust system | Conventional venting | Annular venting + vacuum valve |
Note: These are results from the specific production case described, not general performance guarantees.
The exact inspection method and definition of porosity area ratio should be confirmed when comparing different production processes.
The improved process reduced porosity-related rejection and lowered the reported overall cost by approximately 7 RMB per part compared with the previous process.
The customer subsequently incorporated the validated process parameters into its Production Part Approval Process (PPAP) documentation.
According to the case record, the housing completed one year of mass production without further porosity-related rework.
The key lesson is that porosity problems rarely disappear through a single parameter adjustment.
In this case, the improvement came from combining mold venting, vacuum assistance, injection optimization, melt-quality control, and release-agent management.
5. Can a Die-Cast Part with Porosity Still Be Repaired?
When X-ray inspection reveals porosity in a die-cast sample, immediate rejection is not always necessary.
However, repair feasibility depends on the defect’s location, size, distribution, depth, and effect on the component’s function.
A small isolated pore in a non-critical exterior area is very different from interconnected porosity in a pressure-bearing wall or dynamic sealing surface.
Three common repair methods are used in suitable applications.
Vacuum Impregnation: Seal Small Internal Pores
Vacuum impregnation is commonly used to seal fine, interconnected porosity in aluminum castings.
The component is placed in an impregnation chamber, where air is evacuated from accessible pores.
A suitable sealing resin is then introduced, allowing it to penetrate the connected pore network.
After impregnation, the resin is cured according to the material supplier’s process requirements.
Common impregnation systems include anaerobic resins and silicate-based sealing materials.
Advantages:
- Suitable for fine, interconnected porosity.
- Can improve airtightness without changing the external geometry.
- Often more economical than replacing the casting.
- Can be applied to certain machined or assembled components, depending on the process.
Limitations:
- Does not restore the original metal structure.
- Cannot reliably seal every large or isolated cavity.
- Resin compatibility with operating temperature, oil, coolant, and other service media must be verified.
- May be unacceptable for certain high-load or safety-critical applications.
Vacuum impregnation is therefore most appropriate for approved, non-structural or moderately stressed applications where the defect is suitable for sealing and the customer permits the process.
TIG Welding: Repair Suitable Localized Surface Defects
For shallow surface porosity exposed during machining, localized TIG welding may be considered.
The affected area is cleaned, prepared, and filled with compatible filler material. After welding, the surface is ground or machined to restore the required geometry.
However, welding aluminum die castings requires particular care.
The material may contain internal gas, oxide films, and other discontinuities that cause weld porosity or cracking during repair. Heat input can also produce distortion and affect the local microstructure.
Before approving TIG repair, engineers should evaluate:
- Defect depth and distribution.
- Casting alloy and weldability.
- Required mechanical properties.
- Proximity to sealing surfaces and highly stressed regions.
- Post-weld machining and inspection requirements.
TIG welding should not be treated as a universal repair method for pressure-bearing die castings. Any repair must be qualified through suitable inspection and functional testing.
CNC Machining: Remove Defects Within the Machining Allowance
If porosity is limited to the outer surface and does not extend beyond the available machining allowance, CNC machining may remove the defective layer.
This approach is suitable only when the remaining material is sound and the finished component still meets its dimensional and wall-thickness requirements.
For example, a shallow pore on a non-critical machined surface may disappear after an additional machining pass.
However, if the pore extends deeper into the casting or forms an interconnected path, further machining may expose more defects rather than eliminate the problem.
Machining should therefore be guided by defect depth and inspection results, not by simply removing more material.
When Should a Porous Casting Be Rejected?
Reject when structural or sealing integrity cannot be assured
Repair is not appropriate for every defect. Castings should generally be rejected or remade when porosity:
- Extends through a primary pressure-bearing wall.
- Appears on critical dynamic sealing surfaces.
- Significantly reduces load-bearing capacity.
- Forms extensive interconnected cavities.
- Cannot be reliably repaired and verified under the approved quality specification.
For critical load-bearing or pressure-containing components, impregnation or welding must never be used to conceal an unacceptable structural defect.
The repair process must be explicitly approved and validated against the component’s service requirements.
6. Establish a Reliable Die-Cast Sample Inspection and Porosity Control Plan
A good sample inspection process should do more than identify defective parts. It should provide feedback that helps engineers stabilize the die-casting process before mass production.
For each new housing or precision casting, the inspection plan should connect drawing requirements, internal quality, functional performance, and process parameters.
| Inspection Stage | Main Inspection Items | Purpose |
| Visual inspection | Cold shuts, flow marks, flash, surface pores | Identify visible casting defects |
| Dimensional inspection | CMM measurements, hole positions, flatness, tolerances | Verify drawing compliance |
| Airtightness testing | Leakage rate, pressure decay, sealing performance | Confirm functional integrity |
| X-ray / CT inspection | Gas pores, shrinkage, inclusions | Evaluate internal casting quality |
| Process verification | Injection profile, vacuum, melt quality, spray parameters | Confirm process stability |
For production monitoring, manufacturers should establish clear inspection frequencies and acceptance criteria.
First-article inspection, periodic X-ray sampling, and regular airtightness testing can help detect process drift before it affects an entire batch.
When porosity is found, the inspection result should be linked to the corresponding production parameters.
This makes it possible to identify whether the defect is associated with venting, injection speed, hydrogen content, release-agent application, or local solidification.
The most effective quality system is one in which inspection results are fed back into mold design and process optimization rather than treated as a final pass-or-fail decision.
7. Why Choose DEZE Tech for Die-Casting and CNC Machining?
Selecting a die-casting manufacturer involves more than comparing sample appearance or unit price.
A reliable supplier must understand how mold design, filling behavior, molten aluminum quality, and solidification affect the final component.
DEZE Tech combines more than ten years of die-casting and CNC machining experience, providing integrated manufacturing support from casting development and sample inspection to precision machining and finished-part verification.
Our engineering approach focuses on:
- Casting process optimization: Review gating, venting, injection parameters, and mold thermal balance to reduce gas and shrinkage porosity.
- Internal quality inspection: Use appropriate X-ray inspection and other verification methods to evaluate internal casting defects.
- Airtightness control: Assess sealing requirements and verify component performance through suitable leakage tests.
- Integrated CNC machining: Control machining allowances and precision interfaces to reduce the risk of exposing subsurface defects.
- Production quality management: Establish inspection standards and process controls to support consistent mass production.
Whether you need an electronic control housing, aluminum heat-sink enclosure, motor housing, or other precision die-cast component, DEZE can help evaluate your drawings, identify potential porosity risks, and develop a suitable manufacturing solution.
Contact DEZE to discuss your die-casting project, sample inspection requirements, and porosity-control challenges.
Conclusion
A qualified die-cast sample must meet more than visual requirements.
Dimensional accuracy, airtightness, and internal casting quality are equally important, particularly for electronic housings and other components with demanding sealing or structural requirements.
Porosity prevention starts with effective mold venting, stable injection parameters, controlled molten aluminum quality, proper release-agent application, and rational casting geometry.
When defects are already present, vacuum impregnation, localized TIG welding, or CNC machining may be suitable in specific cases—but only when the defect location and functional requirements permit repair.
The most important engineering principle is to identify the actual defect mechanism before choosing a solution.
By combining systematic sample inspection with process optimization and verified corrective actions, manufacturers can reduce porosity-related rejection, improve first-pass yield, and establish a more reliable path from prototype sampling to mass production.



