how to calculate weight of rectangular tube?

Square Rectangular tubes are widely used in our daily life, in the manufacture of building structure grids, highway bridges and other fields. They not only reduce the weight of the bracket and save building materials, but also make the construction easier and easier.
There are two ways to calculate the weight of a rectangular tube: theoretical weight calculation and actual weighing
The weight per meter of rectangular pipe (kg)=[(outer diameter inner diameter) x inner diameter] x 0.02466, where 0.02466 is a fixed coefficient. During operation, it is necessary to accurately measure the outer and inner diameters of the pipe, which are the basis for calculation. For example, the weight per meter of a rectangular tube with an outer diameter of 50mm and an inner diameter of 30mm is [(50-30) × 30] × 0.02466=14.796kg. In addition, the wall thickness of the pipe is also a key factor affecting weight and cannot be ignored. Professional tools must be used during measurement to ensure accurate and error free data. Finally, the obtained result is the weight per meter. If the total weight is required, it needs to be multiplied by the length of the pipe material.
Actual weighing is to calculate the weight of the rectangular tube based on the actual weight value.