An inverse problem of determining unknown source parameter in a parabolic equation is considered. The variational iteration method (VIM) is presented to solve inverse problems. The solution gives good approximations by VIM. A numerical example shows that the VIM works effectively for an inverse problem.