Heavy distortion of elements in finite element simulation of metal forming requires many times of remeshing during the computation. These remeshings should be performed automatically for both saving computation time and convenience. In this study, a fully automatic remeshing algorithm for two dimensional (2D) quadrilateral elements has been well established. A 2D rigid-plastic FEM code facilitated with the remeshing and refinement algorithm has been developed and applied to a two stage forging process. The system exhibited good performance during the simulation.