Stearic acid is the saturated fatty acid with an 18-carbon chain. It is a waxy solid, and its chemical formula is CH3(CH2)16CO2H. In general, applications of stearic acid exploit its bifunctional character, with a polar head group that can be attached to metal cations and a nonpolar chain that confers solubility in organic solvents. The combination leads to uses as a surfactant and softening agent. Stearic acid undergoes the typical reactions of saturated carboxylic acids, a notable one being reduction to stearyl alcohol, and esterification with a range of alcohols. Stearic acid is mainly used in the production of detergents, soaps, and cosmetics such as shampoos and shaving cream products. Soaps are not made directly from stearic acid, but indirectly by saponification of triglycerides consisting of stearic acid esters.