This paper studies the related theories of wireless sensor networks, and an improved DV-Hop algorithm is proposed, which used to estimate the distance error mainly based on the error of average per hop distance, unknown nodes and anchor nodes in traditional algorithm. Through the simulation analysis, it can be found that compared with the traditional Location algorithm of DV-Hop and other improved algorithm, the improved algorithm proposed in this paper can reduce the location error and improve the location accuracy when the proportion of the anchor nodes is moderate and the communication radius is small, and this algorithm is suitable for the low power and wide range wireless sensor network environment.