The error function can be calculated based on the Simpson method through a subroutine program. An integration program by FORTRAN language was made for diffusion equations of extended source with infinite extent and limited extent. The results on some alloying elements such as C, Co, Cr, Mn, Mo, Ni and V's diffusion in iron, showed the diffusion distance for Ni and Mo can only be and more distance for Co at common sintering temperature of . To refine the particle size of the added elements down to a scale of micrometers is an effective way to get homogeneous distribution.