One of the main objectives of wireless sensor network design is to improve the energy efficiency. How to efficiently utilize sensor nodes to prolong the lifespan of a wireless network has long been a research topic. This paper presents a location based LEACH clustering algorithm, which is an extension to the LEACH routing algorithm. Armed with distributed and local network based routing decision-making mechanism, this algorithm fully utilizes the location information of network nodes in routing to reduce the routing cost. Simulation results indicate that this algorithm can balance nodes’ energy consumption and prolong the network’s life span. It also has good stability and extensibility.