An efficient method has been put forward to determine the prediction criteria of shrinkage eavity and porosity based on the simulated results of 3- D tem- perature field of casting and a FEM program has been developed.The program has been applied to steel casting practice and the prediction results of shrinkage cavity in casting well agree with the experimen tal ones.