As Hamed remarked the difference between the pouring and mold temperatures are prime factor. But constrain exerted by walls of the mold on the casting parts during the pouring and cooling stages are equally important factors on the shrinkage. The rigid walls (die casting) give maximum amount of shrinkage compared to flexible or free boundaries.