Hydrogen sulfide is a chemical compound with the formula H₂S. It is a colorless chalcogen-hydride gas, and is toxic, corrosive, and flammable, with trace amounts in ambient atmosphere having a characteristic foul odor of rotten eggs.