Pyrrhotite is an iron sulfide with the formula Fe(1-x)S (x = 0 to 0.2). It is a nonstoichiometric variant of FeS, the mineral known as troilite, because the color is similar to pyrite and it is weakly magnetic. The magnetism decreases as the iron content increases, and troilite is non-magnetic.[page needed