Die Casting ResourceTechnical guides for die casting buyers, spec writers, and plant managers.
Porosity & Quality

Gas Porosity Explained: How Melt Chemistry Drives Casting Defects

Published 8 min read

molten aluminum flowing into a die casting mold cavity
Quick answer

Gas porosity forms when dissolved gases escape the melt as bubbles trapped in the die. Melt chemistry, temperature, and flow control determine which defects appear. This guide connects metallurgical behavior to raw material selection and casting quality.

Key takeaways
  • Gas porosity forms when dissolved hydrogen or nitrogen bubbles escape the melt and become trapped in the die.
  • Melt chemistry, temperature, and flow control determine which defects appear.
  • Raw material quality and remelt practices directly influence gas content.
  • X-ray inspection and visual checks help detect porosity after casting.
  • Controlling melt chemistry reduces porosity and improves part strength.

What Gas Porosity Actually Is

Gas porosity forms when dissolved gases escape the liquid metal and become trapped in the die. The bubbles usually appear as hollow cavities inside the casting. They can cluster near the gate or hide deep in thick sections. The cavities often have a rounded shape, unlike the irregular shapes of shrinkage porosity. A rounded cavity suggests the gas expanded inside the solidifying metal rather than collapsing during cooling.

The gas is usually hydrogen, nitrogen, or a mix of both. Hydrogen comes from moisture in the air or water in the melt. Nitrogen can form when the melt gets too hot or when nitrogen-rich air is drawn into the furnace. The gas stays dissolved while the metal is liquid. As the casting solidifies, the metal loses the ability to hold that gas. The gas leaves as a bubble.

If the bubble escapes through the open part of the mold, the casting stays clean. If the bubble gets trapped, it becomes a defect. The size, shape, and location of that defect depend on how the melt behaved in the final seconds before solidification. A small bubble that escapes leaves no mark. A large bubble that gets sealed in by the solidifying skin creates a void. That void reduces the cross-sectional area of the part and creates a stress concentrator.

How Melt Chemistry Controls Gas Behavior

Melt chemistry refers to the composition of the liquid aluminum, zinc, or magnesium alloy. It controls how much gas the melt can hold and how easily that gas escapes.

Pure metal holds less gas than alloyed metal. But alloying elements change the situation. They can act as nucleation sites. A nucleation site is a tiny particle or inclusion where a bubble can start to form. When the melt has many nucleation sites, gas bubbles form early and often. They are easier to escape before the part is sealed. Think of it like a soda bottle. If you drop a clean, smooth pebble into the bottle, bubbles form slowly. If you drop a rough, porous pebble, bubbles form instantly. The alloying elements and impurities in the melt work like that pebble.

When the melt is clean and has few nucleation sites, gas bubbles stay small and stay dissolved. They can remain hidden until the casting is nearly solid. Then they burst and trap cavities. This is why refining processes are critical. Refiners remove impurities and add flux to break down oxide films. A refined melt behaves more predictably than an unrefined one.

This is why a small change in chemistry can flip a casting from clean to defective. The same alloy, poured at different temperatures, can show very different porosity levels. Adding a trace amount of a specific element can increase gas retention. Removing that element can clean up the casting. The chemistry of the melt is the foundation of porosity control.

Temperature and Gas Content

Temperature is the main variable that changes gas content. As the melt gets hotter, it dissolves more gas. When the melt cools, it releases that gas. This relationship is direct. Higher temperature means higher gas saturation.

A hot melt holds more hydrogen and nitrogen. If the gas leaves slowly, the bubbles are small and numerous. If the gas leaves quickly, the bubbles are large and few. Large bubbles are harder to escape. They trap more easily. A small bubble can slip through a narrow channel in the die. A large bubble gets stuck.

In practice, pouring temperature matters. If the melt is too hot, gas content rises. The metal flows very easily, but it carries too much gas. If the melt is too cold, the metal does not flow well. Poor flow leaves the die open longer. That gives more time for gas to escape, but it also creates cold shuts and incomplete fill. Cold shuts are solidified metal islands that form when a stream of metal hits a cooler section of the die. They act as barriers to gas escape.

The best approach is to hold the melt at a stable temperature. Too hot creates gas. Too cold creates flow problems. The goal is a balance. Foundries often use thermocouples to monitor melt temperature in real time. They adjust the furnace power to keep the temperature within a tight window. This stability ensures that the gas content remains predictable from pour to pour.

How Flow and Die Pressure Trap Bubbles

Gas porosity is not just a chemistry problem. It is a flow problem. The way the melt moves through the die determines whether bubbles can escape.

When the melt enters the die, it moves at high speed. The pressure from that flow pushes gas out of the liquid. The gas rises to the top and escapes through the gate. This is normal. The kinetic energy of the flow helps break up large bubbles into smaller ones, making them easier to expel.

But if the flow slows down, the pressure drops. The gas stops moving. It becomes trapped. This happens when the die is too large, when the melt is too cold, or when the part is too thick. A large die volume requires a larger amount of metal to fill it. If the pump or gravity feed cannot supply the metal fast enough, the flow velocity drops.

Thick sections last longer. They stay liquid after the thin sections have solidified. The gas in the thick section has no path to the gate. It becomes a cavity. Consider a plate with a central boss. The plate edges solidify first. The boss stays molten. The gas in the boss has nowhere to go. It expands as the surrounding metal solidifies and shrinks. The result is a large void in the center of the part.

This is why porosity often appears in the last regions of the part. The metal there is the last to solidify. It has the most time to release gas. The flow path is the most critical variable in determining whether that gas escapes or stays.

How Raw Material Quality Affects the Melt

The starting material sets the baseline for gas content. A new ingot has a known chemistry. A remelted scrap has unknown chemistry. The more scrap in the charge, the more variables you have to manage.

Moisture is the biggest issue. Water in the mold, in the air, or in the scrap releases hydrogen when it hits the hot melt. Even a small amount of moisture can add gas. The gas then forms bubbles. Water molecules break apart in the high heat, and the hydrogen atoms dissolve into the metal.

Scrap that has been stored in a damp environment holds more moisture. Scrap that has been painted or coated can release gas when it melts. Paints and coatings contain organic materials that burn off and create gas. Scrap that has been contaminated with other metals can change the chemistry. For example, iron contamination in aluminum scrap can alter the solidification behavior and trap gas differently.

When you buy raw material, you are buying a risk profile. A supplier with tight chemistry controls gives you a predictable melt. They test each batch. They reject out-of-spec material. A supplier with loose controls gives you a variable melt. The variable melt is harder to control in the die. You may need to adjust the pouring temperature or add more gas extraction time to compensate. Consistent raw material quality reduces the need for on-the-fly adjustments and leads to more stable production.

Practical Example: A Bracket with Hidden Cavities

Imagine a bracket for a machine housing. The bracket has a thin flange and a thick boss. The boss is where the gas hides. The bracket is made from an aluminum alloy that requires high strength for a specific application.

The melt is poured at the correct temperature. The flow is good. The thin flange fills first and solidifies. The thick boss stays liquid longer. The gas in the boss has no path to the gate. It forms a cavity. The cavity is roughly spherical and sits in the center of the boss.

The part looks good on the outside. The flange is smooth. The boss is solid. A visual inspection might not find anything wrong. But inside the boss, there is a gas pocket. The pocket reduces the strength of the part. Under load, the part may fail. The stress concentrates around the cavity. If the part is subjected to cyclic loading, such as vibration from a motor, the cavity can grow into a crack. The part breaks.

The fix is not always more pressure. Sometimes the fix is a better melt. If the melt has less gas, the cavity may not form. If the flow is faster, the gas may escape. If the part is designed with a thinner boss, the gas has less time to trap. Design for manufacturability is key. Avoiding thick, isolated sections reduces the risk of internal porosity.

How to Control Gas Porosity in Practice

Control starts before the pour. Clean the die. Remove moisture from the mold. Use dry nitrogen over the melt. Keep the melt at a stable temperature.

During the pour, watch the flow. If the flow is slow, the melt may be too cold. If the flow is too fast, the gas may escape too quickly and cause surface defects. Surface porosity, or “gas blistering,” occurs when bubbles escape through the skin of the casting before it solidifies. This leaves small pits on the surface. It is a sign that the gas is trying to get out but is being released at the wrong time.

After the pour, inspect the part. Visual inspection finds surface porosity. X-ray inspection finds internal porosity. Both are useful. X-ray is non-destructive and allows you to see the entire internal structure of the part. It is critical for safety-critical applications where a hidden cavity could be a failure point.

If porosity appears, trace it back to the melt. Check the chemistry. Check the temperature. Check the scrap. Check the die. The cause is usually a combination of factors, not one single mistake. It might be a slightly higher moisture content in the scrap combined with a slightly higher pouring temperature. Addressing both issues yields a better result than fixing just one.

Frequently asked questions

What causes gas porosity in die casting?

Gas porosity forms when dissolved gases escape the melt as bubbles and get trapped in the die. The gas is usually hydrogen or nitrogen.

How does melt chemistry affect gas porosity?

Melt chemistry controls how much gas the metal holds and how easily it escapes. Alloying elements and impurities change gas behavior.

Can gas porosity be prevented?

Gas porosity can be reduced by controlling melt temperature, flow, and chemistry. It is difficult to eliminate completely, but it can be managed.

How do you detect gas porosity?

You detect gas porosity with visual inspection and X-ray inspection. Visual checks find surface defects. X-ray finds internal cavities.

Does scrap affect gas porosity?

Yes. Scrap can introduce moisture and unknown chemistry. It increases gas content and makes the melt harder to control.