A casting defect is an undesired irregularity in a metal casting process. Some defects can be tolerated while others can be repaired, otherwise they must be eliminated. They are broken down into five main categories: gas porosity, shrinkage defects, mould material defects, pouring metal defects, and metallurgical defects. Terminology
The terms "defect" and "discontinuity" refer to two specific and separate things in castings. Defects are defined as conditions in a casting that must be corrected or removed, or the casting must be rejected. Discontinuities, also known as "imperfections", are defined as "interruptions in the physical continuity of the casting". Therefore, if the casting is less than perfect, but still useful and in tolerance, the imperfections should be deemed "discontinuities". Types
There are many types of defects which result from many different causes. Some of the solutions to certain defects can be the cause for another type of defect.The following defects can occur in sand castings. Most of these also occur in other casting processes. Shrinkage defects
Shrinkage defects 
can occur when standard feed metal is not available to compensate for shrinkage as the thick metal solidifies. Shrinkage defects will have jagged or linear appearance. Shrinkage defects usually occur in either the cope or drag portion of the casting. Shrinkage defects can be split into two different types: open shrinkage defects and closed shrinkage defects. Open shrinkage defects are open to the atmosphere, therefore as the shrinkage cavity forms, air compensates. There are two types of open air defects: pipes and caved surfaces.
In larger casting, they can be up to a millimetre (0.040 in) in diameter.To prevent gas porosity the material may be melted in a vacuum, in an environment of low-solubility gases, such as argon or carbon dioxide, or under a flux that prevents contact with the air. To minimize gas solubility the superheat temperatures can be kept low. Turbulence from pouring the liquid metal into the mould can introduce gases, so the moulds are often streamlined to minimize such turbulence. Other methods include vacuum degassing, gas flushing, or precipitation. Precipitation involves reacting the gas with another element to form a compound that will form a dross that floats to the top. For instance, oxygen can be removed from copper by adding phosphorus; aluminium or silicon can be added to steel to remove oxygen. A third source consists of reactions of the molten metal with grease or other residues in the mould. Hydrogen is produced by the reaction of the metal with humidity or residual moisture in the mould. Drying the mould can eliminate this source of hydrogen formation.Gas porosity can sometimes be difficult to distinguish from micro shrinkage 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. Tiny gas bubbles are called porosities, but larger gas bubbles are called blowholes or blisters.