The logistics industry is converging with digital technology and growing into various logistics automation systems. However, inspection and loading/unloading, which are mainly performed in logistics work, depend on human resources, and the workforce is shrinking due to the decline in the productive population due to the low birth rate and aging. Although much research is being conducted on the development of automated logistics systems to solve these problems, there is a lack of research and development on load stacking stability, which has the potential to cause significant accidents. In this study, loading boxes with various sizes and positions of the center of gravity were set up, and a method for stacking that with high stability is presented. The size of the loading box is measured using a depth camera. The loading box's weight and center of gravity are measured and estimated by a developed device with four loadcells. The measurement error is measured through various repeated experiments and is corrected using the least squares method. The robot arm performs load stacking by determining the target position so that the centers of gravity of the loading boxes with unbalanced masses with a random sequence are transported in alignment. All processes were automated, and the results were verified by experimentally confirming load stacking stability.