 Gas porosity can sometimes be difficult to distinguish from microshrinkage because microshrinkage cavities can contain gases as well.In general, microporosities will form if the casting is not properly risered or if a material with a wide solidification range is cast.If neither of these are the case then most likely the porosity is due to gas formation.