The invention relates to the technical field of transformer safety. The invention further discloses a gas relay for the transformer. The gas relay comprises a shell, an opening cup, a magnet, a lightgas dry reed contact, a gas plug, a gas vent, a pull rod device, a roller type travel switch, an electric wire, a one-way gas vent valve and a position sensor, the opening cup is movably installed atthe top of an inner cavity of the shell, the magnet is fixedly installed on the right side of the opening cup, and the light gas dry reed contact is movably installed in the shell and located at the position, with the distance of h, below the magnet. The pull rod device, the roller type travel switch, the electric wire and the one-way vent valve are arranged, the descending process of the openingcup is further distinguished; therefore, the gas can be automatically exhausted before the light gas signal is triggered, the oil level in the gas relay is recovered, the attendance frequency of an operator is reduced, the labor cost is reduced, the frequent triggering of the light gas signal is avoided, the accurate judgment of the operator on the condition of the transformer is increased, and the operation safety of the transformer is improved.