An improved LEACH algorithm is proposed in this paper to keep wireless sensor network maintaining small router information and to reduce the energy consumption of nodes as much as possible. The multihops way method is used in this algorithm . The energy which is consumed in the communication between cluster heads and the base station is optimized.In order to avoid the node with low energy is used as the cluster head, the residual energy of node has become as an important indicator in each round of cluster head alection process.Then the improved algorithm was emulated in MATLAB. The result of emulation proves that the improved algorithm LEACH can effectively balance the energy of the network and the lifetime of wireless sensor network could be improved greatly via proposed method in this paper than the traditional LEACH.