The variable-section welding machine is suitable for equal section, variable section and arc-type H-beam. Two flat-angle seams are welded at the same time at horizontal position. The machine is provided with auto-tracking device for welding seams and flux automatic recovery system, which is easy in operation with high efficiency.