In this paper, we present homotopy analysis method (HAM) for solving system of linear equations and use of different H(x) in this method. The numerical results indicate that this method performs better than the homotopy perturbation method (HPM) for solving linear systems.