A computer simulation of mold filling has been performed in order to analyze the fluid flow pattern in a mold cavity since casting defects such as cold shut formation, entrapment of air or gas, and inclusions are closely related to the fluid flow phenomena. The flow of molten metal entering the mold cavity with free surface has been modeled by SMAC(Simplified Marker and Cell) method. Two dimensional analysis was carried out on plate shape castings with two types of gate system. The calculation results were compared with those of water modeling experiments and showed relatively good agreement.