With the rapid development of wireless sensor network (WSN) technology and its localization method, localization is one of the basic services for data collection in WSN. The localization accuracy often depends on the accuracy of distance estimation. Because of the constraint in size, power, and cost of sensor nodes, the investigation of efficient location algorithms which satisfy the basic accuracy requirement for WSN meets new challenges. This paper proposes a novel intelligent node localization algorithm in WSN based on beacon nodes to improve the precision in location estimation. Firstly, system model of WSN node localization is constructed according to the WSN environment. Then traditional WSN node localization methods such as DV-HOP, GA, and PSO are studied. Localization algorithm of WSN is proposed by using dynamic mathematics modeling. And the result of simulation, which is compared to the traditional algorithm, indicated that this algorithm is better to improve the accuracy and coverage of WSN. The simulation results show that the performance of the proposed WSN location algorithm is better than the traditional localization algorithms.