A mathematical model is offered for conjugate heat exchange when gas flows in the section of a vertical well. The motion of the medium is described using a two-dimensional axisymmetric stationary formulation based on boundary-layer equations. The turbulent gas flowing due to the reservoir energy is considered. Natural gas is taken as a travelling medium. The numerical simulation results are presented in the form of the dependences of the flow temperature and gas density along the radius of the well on the external factors of the heat exchange changing along the well height. The results describe the thermobaric state of the well in the condition of the conjugate heat exchange of the produced natural gas flow and tubed well depending on the external thermal conditions.