Making Soap: Saponification of a Triglyceride

Sstem notes·Aperturebiolabs·Edited 4 weeks ago·3 min read
ButyrateButyric AcidDibutyrinGlycerolHydroxideOctadecanoateTributyrinTristearinlipid-chemistryorganic-chemistryreaction-mechanismssaponificationsurfactant-science

People have made soap for more than 4,000 years by boiling animal fat or vegetable oil with alkali, originally potash from wood ash and later sodium hydroxide (lye). Chemically, fats and oils are triglycerides: triesters of glycerol (propane-1,2,3-triol) with three long-chain fatty acids. Hydroxide hydrolyses all three ester groups, releasing glycerol and three molecules of the sodium salt of a fatty acid. Those salts are soap, and the reaction gave saponification its name.

Saponification of tristearin (NaOH(aq), boil; glycerol + 3 stearate (soap))
CCCCCCCCCCCCCCCCCC(=O)OCC(COC(=O)CCCCCCCCCCCCCCCCC)OC(=O)CCCCCCCCCCCCCCCCC.3[OH-]>>OCC(O)CO.3CCCCCCCCCCCCCCCCCC(=O)[O-]

The Mechanism at One Ester Group

Each of the three ester groups reacts independently by the same three steps, so it is enough to follow one. To keep the drawings readable, the fatty acid chains are shortened here to butanoate groups (the triglyceride tributyrin, found in butter); real soaps have chains of 12 to 18 carbons, but the chemistry at the ester is identical.

Hydrolysis of one ester group: step 1

[Chemical structure]

Hydroxide attacks the carbonyl carbon of one ester group, and the C=O π bond moves onto oxygen, giving a tetrahedral intermediate.

Hydrolysis of one ester group: step 2

[Chemical structure]

The O⁻ re-forms the C=O bond and the bond to the glycerol oxygen breaks. Butanoic acid and the alkoxide of the remaining diglyceride are released.

Hydrolysis of one ester group: step 3

[Chemical structure]

The alkoxide takes the acidic proton of butanoic acid, giving a free OH on the glycerol backbone and the butanoate ion. This step is irreversible and pulls the reaction to completion.

Putting it all together: Hydrolysis of one ester group

[Chemical structure]

The same three steps then occur at the second and third ester groups, until all that remains of the triglyceride is glycerol. Because each final proton transfer converts a carboxylic acid into a carboxylate ion, which cannot react with alcohols, saponification goes to completion rather than reaching an equilibrium. Three equivalents of hydroxide are consumed per triglyceride.

Different fats give different soaps. Olive oil is rich in oleic acid, which has one cis double bond in its chain, and gives a mild, soft soap (Castile soap). Coconut oil is rich in shorter, saturated lauric acid and gives a hard soap that lathers well even in cold water. Soap makers blend oils to balance hardness, lather and gentleness, and they calculate the exact amount of lye needed from each oil's saponification value.

YouTube video

Making and Using Soap

  • Salting out: adding brine to the hot mixture makes the soap less soluble, so it separates as a curd that floats and can be skimmed off, leaving glycerol in the water.
  • Hard and soft soaps: sodium salts give hard bar soaps; potassium salts give softer, liquid soaps.
  • Micelles: in water, soap ions cluster with their hydrocarbon tails inside and charged heads outside. Grease dissolves in the oily centre and is rinsed away.
  • Hard water scum: calcium and magnesium ions precipitate soap as insoluble salts, which is why synthetic detergents with sulfonate heads were developed.

The glycerol by-product is valuable in its own right, used in cosmetics, foods and the manufacture of nitroglycerin. Handmade soaps often keep it in the bar, where it acts as a moisturizer.

Tips for remembering

  • Fat + lye → soap + glycerol: one triglyceride and three hydroxide ions give glycerol and three carboxylate salts.
  • Three esters, same mechanism three times: each ester group is attacked, collapses and is deprotonated independently.
  • Head loves water, tail loves grease: the charged carboxylate dissolves in water and the long hydrocarbon chain dissolves in oil, so soap carries grease away.