Energy pile is developed rapidly because of its high heat transfer efficiency, stable structure and no additional drill. In the long-term running, energy pile has to bear both the overlying load and the thermal load caused by the change of temperature field. It is one of the key problems in the design and application of energy pile to accurately evaluate the temperature field of energy pile and surrounding soil. But, the present analytical model is too simplified to accurately characterize the temperature field characteristics of the spiral pipe casted in energy pile. In this paper, based on the existing heat transfer model, the spiral pipe is regarded as a three-dimensional spiral heat source, and a high-precision three-dimensional spiral pipe heat transfer model was established considering the real heat transfer process. For the temperature field of instantaneous linear heat source, the analytical solution of temperature field was obtained by integrating green's function and the first curve function. In addition, a 3d model of spiral pipe casted in energy pile was built in the numerical simulation software, the ground was set as the Dirichlet boundary and other boundaries were the Neumann boundary, and the numerical solution of temperature field was obtained. The contrastive results show that the built three-dimensional spiral heat source model has high analytical accuracy. Finally, based on the analytical model, the spatial distribution and time effect of spiral pipe casted in energy pile are discussed.