TExcelTAD
Home › Organic & Applied Chemistry › Fats, Oils and Soap

Fats, Oils and Soap

A question to start

Butter and lard are solid in the kitchen, while soybean and olive oil are liquid, yet chemically they belong to the same family. Thousands of years ago people found that boiling animal fat with wood ash made a slippery substance that washes away grease: soap. How can a fat become the very thing that removes fat?

The idea

Fats and oils (chất béo) are triglycerides (triglixerit): esters of glycerol (propane-1,2,3-triol, CX3HX5(OH)X3\ce{C3H5(OH)3}) with three long-chain carboxylic acids called fatty acids (axit béo).

C C C H H H H H O C O R1 O C O R2 O C O R3 from glycerol from 3 fatty acids ester links
Fatty acid Formula C=C bonds Melting point Typical source
palmitic acid (hexadecanoic) CX15HX31COOH\ce{C15H31COOH} 0 63 ∘C63\,^\circ\text{C} palm oil, lard
stearic acid (octadecanoic) CX17HX35COOH\ce{C17H35COOH} 0 69 ∘C69\,^\circ\text{C} beef fat, cocoa butter
oleic acid CX17HX33COOH\ce{C17H33COOH} 1 13 ∘C13\,^\circ\text{C} olive oil
linoleic acid CX17HX31COOH\ce{C17H31COOH} 2 −5 ∘C-5\,^\circ\text{C} soybean and sunflower oil
  • Saturated fatty acids have only C-C single bonds. Their chains are straight and pack closely, so the forces between molecules are strong: fats rich in them (butter, lard) are solid at room temperature.
  • Unsaturated fatty acids have one or more C=C bonds, usually cis, which put a kink in the chain. Kinked chains cannot pack closely, so oils rich in them are liquid.

A triglyceride made only from stearic acid is tristearin, (CX17HX35COO)X3CX3HX5\ce{(C17H35COO)3C3H5} (Mr=890M_r = 890); from oleic acid, triolein, (CX17HX33COO)X3CX3HX5\ce{(C17H33COO)3C3H5} (Mr=884M_r = 884).

Hydrogenation. Hydrogen adds to the C=C bonds of an oil over a nickel catalyst at about 150150 to 200 ∘C200\,^\circ\text{C}, turning a liquid oil into a solid fat (the old way to make margarine):

(CX17HX33COO)X3CX3HX5+3 HX2→Ni,tX∘(CX17HX35COO)X3CX3HX5\ce{(C17H33COO)3C3H5 + 3H2 ->[Ni, t^\circ] (C17H35COO)3C3H5}

Partial hydrogenation can also turn some cis C=C into trans C=C. Trans fats raise the "bad" LDL cholesterol in blood, so many countries now limit them; modern margarine is made in other ways.

Rancidity. The C=C bonds of oils slowly react with oxygen from the air, and bacteria hydrolyse the ester links, releasing smelly acids such as butanoic acid. Keeping oil cool, dark and closed, and adding antioxidants such as vitamin E, slows this down.

Saponification: making soap

Like other esters, fats are hydrolysed by hot aqueous alkali, and the reaction goes to completion. The products are glycerol and the sodium salts of the fatty acids: soap (xà phòng). This is saponification (phản ứng xà phòng hóa):

(CX17HX35COO)X3CX3HX5+3 NaOH→tX∘3 CX17HX35COONa+CX3HX5(OH)X3\ce{(C17H35COO)3C3H5 + 3NaOH ->[t^\circ] 3C17H35COONa + C3H5(OH)3}
fat (triglyceride) + 3NaOH boil (teacher demo) glycerol + 3 soap (sodium salts)

Adding salt to the hot mixture makes the soap separate as a solid layer ("salting out"); glycerol stays in the water and is collected for cosmetics and medicines. Potassium hydroxide gives softer, liquid soaps.

Soap making is never a home activity. Sodium hydroxide (lye, caustic soda) is strongly corrosive: it burns skin and can blind in seconds, and dissolving it in water gets very hot. It is done only in a school lab, by or under a teacher, with goggles and gloves.

How soap cleans

A soap ion, such as the stearate ion CX17HX35COOX−\ce{C17H35COO-}, has two very different ends:

O O - hydrocarbon tail: hydrophobic, dissolves in grease ionic head: hydrophilic
  • a long hydrocarbon tail that is hydrophobic ("water-hating") and dissolves in grease and oil;
  • an ionic head, −COO−\ce{-COO-}, that is hydrophilic ("water-loving") and dissolves in water.

In water the tails bury themselves in a grease droplet, and the heads stay outside in the water. The droplet becomes a micelle, coated with negative charges, so micelles repel each other instead of joining up again. The grease is now carried by the water and rinsed away; it has been emulsified.

- - - - - - - - - - - - - - - - + + + + + grease water blue heads (COO-) face the water tails dissolve in the grease white: Na+ ions negative heads repel: droplets stay apart

Hard water. Water that contains CaX2+\ce{Ca^2+} and MgX2+\ce{Mg^2+} ions is hard. Soap ions form insoluble calcium and magnesium salts with them: a grey scum that wastes soap and sticks to baths and clothes:

2 CX17HX35COOX−+CaX2+→(CX17HX35COO)X2Ca↓\ce{2C17H35COO- + Ca^2+ -> (C17H35COO)2Ca v}

Synthetic detergents (such as sodium alkylbenzenesulfonates) have a sulfonate head, −SOX3−\ce{-SO3-}, whose calcium salts are soluble, so they lather well even in hard water. Soap, however, is made from renewable fats and is fully biodegradable (more in Detergents and Household Chemicals).

Worked examples

Example 1: masses in saponification. 89.0 g89.0\ \text{g} of tristearin is completely saponified with sodium hydroxide. Find the mass of NaOH needed, and the masses of soap (sodium stearate) and glycerol formed.

  • Given: M(tristearin)=57×12+110+6×16=890 g/molM(\text{tristearin}) = 57 \times 12 + 110 + 6 \times 16 = 890\ \text{g/mol}; M(NaOH)=40M(\ce{NaOH}) = 40; M(CX17HX35COONa)=18×12+35+32+23=306M(\ce{C17H35COONa}) = 18 \times 12 + 35 + 32 + 23 = 306; M(CX3HX5(OH)X3)=92 g/molM(\ce{C3H5(OH)3}) = 92\ \text{g/mol}; ratio 1:3:3:11 : 3 : 3 : 1.
  • Find: m(NaOH)m(\ce{NaOH}), m(soap)m(\text{soap}), m(glycerol)m(\text{glycerol}).
  • Formula: n=m/Mn = m/M, then the mole ratio.
  • Solve: n(fat)=89.0/890=0.100 moln(\text{fat}) = 89.0/890 = 0.100\ \text{mol}. n(NaOH)=0.300 moln(\ce{NaOH}) = 0.300\ \text{mol}, m=12.0 gm = 12.0\ \text{g}. n(soap)=0.300 moln(\text{soap}) = 0.300\ \text{mol}, m=0.300×306=91.8 gm = 0.300 \times 306 = 91.8\ \text{g}. n(glycerol)=0.100 moln(\text{glycerol}) = 0.100\ \text{mol}, m=9.20 gm = 9.20\ \text{g}.
  • Answer: 12.0 g12.0\ \text{g} NaOH; 91.8 g91.8\ \text{g} soap; 9.20 g9.20\ \text{g} glycerol.
  • Check: mass is conserved: 89.0+12.0=101.0 g=91.8+9.20 g89.0 + 12.0 = 101.0\ \text{g} = 91.8 + 9.20\ \text{g}.

Example 2: hydrogen for hardening an oil. What volume of hydrogen at 25 ∘C25\,^\circ\text{C} and 1 bar (24.79 L/mol24.79\ \text{L/mol}) is needed to turn 88.4 g88.4\ \text{g} of triolein completely into tristearin?

  • Given: M(triolein)=57×12+104+96=884 g/molM(\text{triolein}) = 57 \times 12 + 104 + 96 = 884\ \text{g/mol}; each oleic chain has one C=C, so 3 mol HX2\ce{H2} per mol of triolein.
  • Find: V(HX2)V(\ce{H2}).
  • Solve: n(triolein)=88.4/884=0.100 moln(\text{triolein}) = 88.4/884 = 0.100\ \text{mol}; n(HX2)=0.300 moln(\ce{H2}) = 0.300\ \text{mol}; V=0.300×24.79=7.44 LV = 0.300 \times 24.79 = 7.44\ \text{L}.
  • Answer: 7.44 L7.44\ \text{L} of hydrogen.
  • Check: the mass grows by 0.300×2=0.60 g0.300 \times 2 = 0.60\ \text{g} to 89.0 g89.0\ \text{g}, which is exactly 0.100 mol0.100\ \text{mol} of tristearin (890890).

Example 3: soap from a real batch. A teacher saponifies 1.00 kg1.00\ \text{kg} of tristearin; 95.0%95.0\% of the theoretical soap is recovered. What mass of soap is that?

  • Solve: n(fat)=1000/890=1.124 moln(\text{fat}) = 1000/890 = 1.124\ \text{mol}; theoretical soap =3×1.124×306=1031 g= 3 \times 1.124 \times 306 = 1031\ \text{g}; actual =0.950×1031=980 g= 0.950 \times 1031 = 980\ \text{g}.
  • Answer: about 0.980 kg0.980\ \text{kg} of sodium stearate.
  • Check: per mole of fat, 890+3×40−92=918 g=3×306890 + 3 \times 40 - 92 = 918\ \text{g} = 3 \times 306 of soap, so the soap outweighs the fat by the factor 918/890918/890; 1000×918/890×0.950=980 g1000 \times 918/890 \times 0.950 = 980\ \text{g}.

Try it (safe): oil, water and washing-up liquid

You need: a clean jar with a lid, water, cooking oil, a few drops of food colouring, and a little washing-up liquid. Use washing-up liquid on its own; never mix it with bleach or any other cleaning product.

  1. Fill the jar one third with water, add a drop of food colouring, then add two tablespoons of oil.
  2. Close the lid tightly and shake for 20 seconds. Watch for one minute.
  3. Add three drops of washing-up liquid, shake again and watch.

What you should see: after step 2 the oil and water separate again within a minute, oil on top. After step 3 the mixture stays cloudy for much longer: an emulsion. Why: the detergent molecules sit at the surface of each oil droplet with their tails in the oil and their charged heads in the water, just like the micelle picture, so the droplets cannot join up. Wash your hands afterwards and pour the mixture down the sink with plenty of water.

Common mistakes

  • "Fats are acids." Fats are esters (of glycerol). Fatty acids are released only when fats are hydrolysed.
  • "Oils are liquid because they have smaller molecules." Oils and fats have similar sizes; oils are liquid because their cis C=C bonds kink the chains so they pack poorly.
  • Using a 1:11 : 1 ratio for saponification. One triglyceride has three ester links: it needs three NaOH and gives three soap ions.
  • Mixing up hydrogenation and hydrolysis. Hydrogenation adds HX2\ce{H2} to C=C bonds (oil to fat); hydrolysis breaks ester links with water or alkali (fat to glycerol + acids or soap).

Practice

  1. Write the equation for the saponification of tripalmitin, (CX15HX31COO)X3CX3HX5\ce{(C15H31COO)3C3H5}, with NaOH.
Answer

(CX15HX31COO)X3CX3HX5+3 NaOH→3 CX15HX31COONa+CX3HX5(OH)X3\ce{(C15H31COO)3C3H5 + 3NaOH -> 3C15H31COONa + C3H5(OH)3} (sodium palmitate and glycerol).

  1. Find the MrM_r of tripalmitin and the mass of KOH needed to saponify 8.06 g8.06\ \text{g} of it.
Answer

CX51HX98OX6\ce{C51H98O6}: Mr=612+98+96=806M_r = 612 + 98 + 96 = 806. n=0.0100 moln = 0.0100\ \text{mol}, KOH 0.0300 mol×56=1.68 g0.0300\ \text{mol} \times 56 = 1.68\ \text{g}.

  1. Explain, using the structure of the soap ion, why soap removes an oily stain.
Answer

The hydrocarbon tails dissolve in the oil, the ionic heads stay in the water, so the oil is broken into small micelles coated with negative charge; they repel each other, stay dispersed and are rinsed away.

  1. Why does soap form scum in hard water but a sulfonate detergent does not?
Answer

Calcium and magnesium carboxylates are insoluble and precipitate ((CX17HX35COO)X2Ca\ce{(C17H35COO)2Ca}); calcium and magnesium sulfonates are soluble, so the detergent stays in solution and keeps working.

Test yourself

Fats and oils are esters of glycerol with ...

  1. ethanol
  2. fatty acids
  3. amino acids
  4. glucose

How many moles of NaOH are needed to saponify 0.10 mol of a triglyceride?

  1. 0.10 mol
  2. 0.20 mol
  3. 0.30 mol
  4. 0.033 mol

Why is olive oil liquid but butter solid at room temperature?

  1. Olive oil has no ester links
  2. Olive oil has more unsaturated (kinked) chains that pack poorly
  3. Butter contains water
  4. Butter has smaller molecules

In a micelle, the hydrocarbon tails of the soap ions point ...

  1. out into the water
  2. into the grease droplet
  3. towards the sodium ions
  4. in random directions

Which safety rule applies to making soap with sodium hydroxide?

  1. It is a fun kitchen activity
  2. Only in a school lab, by or under a teacher, with goggles and gloves
  3. It is safe if the water is cold
  4. Vinegar makes it safe