In this paper, the homotopy perturbation method (HPM) is employed to obtain the exact solutions of KdV and Sawada-Kotera equations. To illustrate the simplicity and reliability of the method, several examples are provided. The results obtained using HPM are compared to the results of Adomian decomposition method (ADM) and then ability of each method are also discussed.