This paper improves the existing fifth order Stokes wave theory by using least square method.and gives the optimum result in the meaning of minimum error squares to satisfy the free surface boundary conditions, and the wave profile can be adjusted according to the measured data.This paper also gives a simplified method for deriving the parameters of the existing fifth order Stokes wave.