It is a nonstoichiometric variant of FeS, the mineral known as troilite. Pyrrhotite is also called magnetic pyrite, 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.[4][page needed]