Axial stress is due to an axial load applied to the pipe and is equal to S = p/A. p is load and A is the cross-sectional area of the pipe wall. It will be either tension, or compression, corresponding to the direction of the applied load.
Stress in the Axial Direction can also be caused by internal pressure and is nominally equal to the circumferencial stress, S = P*D/2/t, * Poisson_Ratio. P = pressure, D = diameter, t = wall thickness. Poisson_Ratio for steel pipe is usually taken as 0.3
If the pipe is unrestrained, the pipe will shorten without generating stress. If the pipe is held rigidly fixed at both ends, S will result as an axial tension stress.
If the pipe has closed ends, another axial stress can be generated from internal pressure, as the pressure will act on each closed end surface to generate an end force F = pi*D^2/4 * P
If the pipe is not axially restrained, the pipe will elongate with the resulting axial stresss = F/A in tension. If the pipe is held rigidly fixed at both ends by an anchor, or is well embedded in soil, the anchor or soil will take that load and an opposite compressive axial stress, F/A, will be introduced into the pipe.
If there are changes in temperature, thermal axial stress can be generated. If the temperature is increased, a compressive axial stress can be introduced into the pipe, or if temperature is decreased, a tension stress can be introduced. Thermal stresses are only generated if the pipe is held fixed at both ends, otherwise the pipe will expand or contract, respectively, without generating any additional stress.
Bending can introduce another axial stress Sb = M * c/I , tension on one side and compression on the other. M is bending moment, c is the pipe radius, I is the moment of intertia.
Total Axial stresses is the algebraic summation of all of the above.