Magnesium stearate is a metal-organic compound, a salt of magnesium and stearic acid with the idealized chemical formula (C17H35CO2)2Mg. It is classified as a metallic soap, i.e. a metal derivative of a fatty acid. Magnesium stearate is a white, water-insoluble powder. Its applications exploit its softness, insolubility in many solvents, and low toxicity. It is used as a release agent and as a component or lubricant in the production of pharmaceuticals and cosmetics.