When calculating your pipe thickness, you want to take a few parameters into consideration:
1.) What is your Operating Temperature?
2.) What will be the Maximum Pressure?
3.) What will you be transferring inside the pipe?
4.) Does your material have any corrosion factors?
5.) What is your expected Life Span of the pipe?