The work shows general aspects concerning nodal analysis and its application to naturally flowing wells. Also in this paper we investigate fluid flow through porous media and two-phase flow rising through tubing. For this purpose, we construct curves of inflow performance versus reservoir pressure and curves of tubing performance versus wellhead pressure. Based on these curves, the relationship of operating points at differential wellhead and reservoir pressures is established. Finally, conclusions on the gradient curves and curves of dependence of tubing performance on wellhead pressure and gas-oil ratio are given. In addition, the dynamics of change in the parameters of the production well depending on the dynamics of reservoir parameters and at cessation of production by natural inflow is established.