Organic Chemistry · Biomolecules: Lipids
Soap
On this page 9 sections
In 30 seconds
Soap is one of the oldest deliberately made chemicals — and one of the best illustrations of structure determining function. saponification Base-promoted hydrolysis of a triacylglycerol into glycerol + fatty-acid salts Full entry → (from Latin sapo, soap) is the base-promoted hydrolysis of a triacylglycerol: heating fat with aqueous sodium or potassium hydroxide cleaves the three ester bonds, producing glycerol and three fatty acid salts — the molecules we call soap.
A soap molecule has a split personality. One end, the carboxylate group COO-, is ionic and strongly attracted to water (hydrophilic — "water-loving"). The other end, a long hydrocarbon chain like CH3(CH2)16-, is nonpolar and attracted to grease (hydrophobic — "water-fearing"). This amphiphilic Having both polar and nonpolar regions Full entry → (both-loving) structure is why soap can do something neither water nor oil alone can: lift grease off a surface and suspend it in water. This topic covers the saponification reaction, the micelle Spherical cluster of soap molecules with tails in, heads out Full entry → model of cleaning, and why soap fails in hard water Water containing Ca2+ and Mg2+ Full entry → — and how synthetic detergents were designed to fix that.
Why this matters
Soap chemistry is hygiene. The SARS-CoV-2 and influenza viruses are enveloped — their outer lipid bilayer can be disrupted by soap micelles, which is why plain soap and water inactivates them, not just rinses them away. Soap formulation is also industrial chemistry: toilet soaps use sodium salts (harder bars), liquid soaps use potassium salts (softer), and modern detergents are sulfonate/sulfate surfactants engineered to survive hard water and acidic conditions. Understanding the micelle explains why soapy water feels slippery, why hard water leaves a gray "bathtub ring," and why detergents advertise water-softening "builders." For the exam, saponification is also the archetype of ester hydrolysis — the same nucleophilic acyl substitution mechanism recurs throughout carbonyl chemistry.
The college version
Core Concepts
The saponification reaction
A triacylglycerol reacts with three equivalents of strong base:
(RCOO)3C3H5 + 3 NaOH ⟶ 3 RCOO-Na+ + C3H5(OH)3
The products are three soap molecules (fatty acid salts) and one glycerol. With potassium hydroxide, the products are softer potassium soaps. The reaction is an ester hydrolysis driven by base: hydroxide attacks the carbonyl carbon of each ester, a tetrahedral intermediate forms and collapses, and the alkoxide expelled is protonated to glycerol while the carboxylate is trapped as its salt. The carboxylate salt is the product because the fatty acid (pKa ≈ 5) is fully deprotonated in the strongly basic medium. Soapmaking from scratch (fats + lye) is exactly this reaction.
Structure of a soap molecule: head and tail
Sodium stearate, the classic soap from beef tallow, is CH3(CH2)16COO-Na+. The 18-carbon tail is nonpolar; the carboxylate head is an ion that hydrates strongly. Because the head carries a full negative charge, soap solutions are basic (RCOO- is a weak base). The balance between the big nonpolar tail and the small charged head determines how the molecule assembles in water.
Micelles: how soap actually cleans
In water, soap molecules cannot simply dissolve. Instead, they aggregate into micelles — roughly spherical clusters with tails tucked inward (shielding each other from water) and carboxylate heads on the surface, where they can hydrogen-bond and ion-dipole interact with water. Grease and oil, being nonpolar, are thermodynamically happier inside the micelle core than on the fabric or skin. The process:
- Soap tail dissolves into the grease droplet.
- The droplet becomes coated with soap molecules, heads outward.
- Agitation breaks the coated droplet into smaller droplets, each stabilized by a soap shell.
- The resulting emulsion Suspension of one liquid as droplets in another Full entry → — oil droplets dispersed in water — rinses away.
Micelles are dynamic, constantly exchanging molecules with solution, but their net effect is to make oil "water-soluble" without any covalent bonds between oil and soap.
Hard water: why soap fails
Hard water contains dissolved Ca2+ and Mg2+ ions. These divalent cations displace sodium from the soap:
2 RCOO-Na+ + Ca2+ ⟶ (RCOO)2Ca ↓+ 2 Na+
The calcium/magnesium soap is insoluble — it precipitates as gray scum (the bathtub ring) and is useless for cleaning. This is why hard water wastes soap and why water softeners exchange Ca2+/Mg2+ for Na+ before the water reaches the washing machine.
Detergents: soaps with better heads
Synthetic detergents replace the carboxylate head with a sulfate or sulfonate, e.g., sodium lauryl sulfate, CH3(CH2)11OSO3-Na+, or a sulfonate RSO3-Na+. The alkyl sulfate/sulfonate salts of Ca2+ and Mg2+ stay soluble, so detergents work in hard water and in acid (carboxylate soaps would protonate to insoluble fatty acids below pH ~5). This head-group swap is the entire chemical difference between "soap" and "detergent Synthetic surfactant with sulfate/sulfonate head Full entry →."
How It Works / Step-by-Step Process
Calculating soap yield from a fat:
- Write the balanced saponification: 1 triacylglycerol + 3 NaOH → 3 soap + 1 glycerol.
- Compute the molar mass of the triacylglycerol from its fatty-acid chains.
- Convert the mass of fat to moles: n = m/M.
- Apply the mole ratio (3 soap per 1 fat) to get moles of soap.
- Convert to mass with the soap's molar mass; the ratio of masses is the theoretical yield.
Mechanism (in words): hydroxide attacks the ester carbonyl carbon → tetrahedral intermediate → collapse re-forms C=O and expels the alkoxide → alkoxide picks up a proton to give glycerol; the carboxylate stays deprotonated as the salt. No arrow-pushing diagram needed for the exam, but you should be able to name each step.
Common Confusions
| Common Confusion | Correct Understanding |
|---|---|
| "Soap is a salt of a strong acid." | Soap is a salt of a weak carboxylic acid; its aqueous solutions are basic, not neutral. |
| "Soap breaks grease into smaller molecules (digests it)." | Soap does not react with grease — micelles physically emulsify it. No covalent bonds are broken or formed with the oil. |
| "Detergent is just a brand-name soap." | Detergents are synthetic surfactants with sulfate/sulfonate heads; true soaps are carboxylate salts. |
| "Hard water is bad because it won't lather." | Hard water does lather — the soap is consumed precipitating calcium/magnesium scum before any can form micelles. |
| "Saponification is acid-catalyzed ester hydrolysis." | Saponification is base-promoted; acid-catalyzed hydrolysis would return the free fatty acid, not the salt. |
| "Soap kills bacteria directly." | Soap works mainly mechanically (micelles lift and rinse microbes); it is not a disinfectant. |

Eli explains
The same idea, in plain words
Explain it like I’m 10
A soap molecule is like a tiny tadpole with a head that loves water and a tail that loves grease. When you wash your hands, the tails dive into the grease, and the heads stay outside in the water, so the grease gets pulled off your skin and floats away in little soap bubbles. If the water is "hard," it has calcium in it, and the calcium grabs the soap heads to make gray scum — which is why the soap stops working.
Worked example
Example 1: Theoretical yield of soap from 50.0 g of tristearin
Tristearin is (C17H35COO)3C3H5, C57H110O6. How many grams of sodium stearate can 50.0 g of tristearin produce with excess NaOH?
Step 1 — molar masses. Using C = 12.011, H = 1.008, O = 15.999, Na = 22.990 g/mol:
Mtristearin = 57(12.011) + 110(1.008) + 6(15.999) = 891.5 g/mol
Sodium stearate, C18H35O2Na, is stearic acid minus H plus Na:
Msoap = 18(12.011) + 35(1.008) + 2(15.999) + 22.990 = 306.5 g/mol
Step 2 — moles of tristearin:
n = 50.0 g891.5 g/mol = 0.05609 mol
Step 3 — mole ratio 3:1:
nsoap = 3 × 0.05609 mol = 0.1683 mol
Step 4 — mass of soap:
msoap = (0.1683 mol)(306.5 g/mol) = 51.6 g
So 50.0 g of fat yields about 51.6 g of soap plus glycerol — mass grows because each soap gains sodium and oxygens as water is lost. Check: 3(306.5)/891.5 = 1.031 g soap per gram of tristearin. Units: g × (mol/g) × (mol/mol) × (g/mol) = g. ✓
Example 2: Saponification number of tripalmitin
The saponification number is the milligrams of KOH needed to saponify 1 g of fat — a quality-control measure in the food and soap industries (fats with shorter chains give higher numbers). Tripalmitin, C51H98O6, molar mass 807.3 g/mol, needs 3 mol KOH (M = 56.11 g/mol) per mole:
SN = 3 × MKOH × 1000Mtripalmitin
Substituting:
SN = 3 × 56.11 g/mol × 1000 mg/g807.3 g/mol = 208.5 mg KOH per g fat
Unit check: (g/mol)(mg/g)/(g/mol) = mg/g. Tripalmitin's saponification number is about 209; coconut oil, rich in shorter-chain fatty acids, gives higher values (~250), while long-chain beef tallow gives lower ones (~195).
Key takeaways
- Saponification: triacylglycerol + 3 NaOH (or KOH) → 3 fatty-acid salts (soap) + glycerol.
- Soap = amphiphilic: ionic carboxylate head (hydrophilic) + long hydrocarbon tail (hydrophobic).
- Micelles: tails inward, heads outward; they emulsify grease so it rinses away — no covalent bonds needed.
- Hard water (Ca2+, Mg2+) precipitates insoluble calcium/magnesium soaps → scum and wasted soap.
- Detergents (sulfate/sulfonate heads) work in hard water and acid; carboxylate soaps do not.
- Soap solutions are basic because RCOO- is a weak base.
- Soap disrupts lipid envelopes of many viruses and bacteria — the physical chemistry behind handwashing.
Check yourself
5 review questions from the chapter. Try each one, then open the answer.
Write the balanced saponification of a generic triacylglycerol with sodium hydroxide. Name all three product classes.
Show answer
(RCOO)3C3H5 + 3 NaOH ⟶ 3 RCOO-Na+ + C3H5(OH)3: three fatty-acid salts (soap) and one glycerol.
Draw (in words or SMILES-style notation) the structure of sodium stearate and label the hydrophilic and hydrophobic parts.
Show answer
CH3(CH2)16COO-Na+ — the CH3(CH2)16 chain is hydrophobic; the COO- head is hydrophilic.
Why does soap form micelles in water, and which part of the molecule points inward?
Show answer
Water excludes the nonpolar tails, so tails cluster inward to avoid water while the ionic heads face the water; the driving force is the entropy gain of water when nonpolar surfaces are hidden.
What happens when soap is used in hard water, and what is the gray precipitate?
Show answer
Ca2+/Mg2+ replace Na+, forming insoluble calcium/magnesium carboxylates — gray scum that deposits as a ring and removes soap from cleaning duty.
25.0 g of tripalmitin (M = 807.3 g/mol) is saponified with excess NaOH. How many moles of sodium palmitate (M = 278.4 g/mol) form, and what mass is that?
Show answer
n = 25.0/807.3 = 0.03097 mol tripalmitin; nsoap = 3(0.03097) = 0.0929 mol; m = (0.0929)(278.4) = 25.9 g.
Study tools & related lessonsKey vocabulary · Related
Key vocabulary
- saponification
- Base-promoted hydrolysis of a triacylglycerol into glycerol + fatty-acid salts
- fatty acid salt (soap)
- RCOO-Na+, e.g., sodium stearate
- hydrophilic / hydrophobic
- Water-attracted / water-repelling
- amphiphilic
- Having both polar and nonpolar regions
- micelle
- Spherical cluster of soap molecules with tails in, heads out
- emulsion
- Suspension of one liquid as droplets in another
- hard water
- Water containing Ca2+ and Mg2+
- detergent
- Synthetic surfactant with sulfate/sulfonate head
Sources & references
This lesson was adapted from the open educational references above; their licenses and attributions are preserved. See Copyright & Licensing.
Educational content only. It is not medical, legal or professional advice. Found an error? Tell us.

