Square tubes, as a common building and industrial material, play a vital role in daily life and various projects. From building decoration, machinery manufacturing to steel structure engineering, square tubes are used almost everywhere, even in daily life, such as anti-theft windows and guardrails. Square tubes have high strength, durability and aesthetics due to their unique shape and structure, but the selection of square tube specifications and sizes is crucial during use. Improper selection may bring safety hazards, especially in some high-risk environments, such as accidents caused by broken guardrails in the construction industry. Therefore, it is particularly important to choose the right square tube specifications and sizes.