This paper describes the posture stabilization control of a bipedal transformer robot being developed for military use. An inverted pendulum model with a rectangular that considers the robot’s inertia is proposed, and a posture stabilization moment that can maintain the body tilt angle is derived by applying disturbance observer and state feedback control. In addition, vertical force and posture stabilization moments that can maintain the body height and balance are derived through QP optimization to obtain the necessary torques and vertical force for each foot. The roll and pitch angles of the IMU sensor attached to the robot’s feet are reflected in the ankle joint to enable flexible adaptation to changes in ground inclination. Finally, the effectiveness of the proposed algorithm in posture stabilization is verified by comparing and analyzing the difference in body tilt angle due to disturbances and ground inclination changes with and without algorithm application, using Gazebo dynamic simulation and a down-scale test platform.