Short answerSoap is made by boiling a fat or oil with a strong alkali, usually sodium hydroxide (caustic soda). The alkali breaks the fat, an ester, into glycerol and the sodium salts of fatty acids, which are soap. This reaction is called saponification.

🧪 Try it in the free lab. In the free Soap-making lab you choose the oil, measure the alkali, run a small soap factory and test your soap in soft and hard water.
Open the lab →
The reaction
Fats and oils are triglycerides: esters made from glycerol and three long fatty-acid chains. Hot sodium hydroxide hydrolyses the ester bonds:
fat (triglyceride) + 3 NaOH → glycerol + 3 sodium salts of fatty acids (soap)
For example, glyceryl tristearate + 3NaOH → glycerol + 3 C₁₇H₃₅COO⁻Na⁺ (sodium stearate). Sodium hydroxide gives hard bar soap; potassium hydroxide gives soft or liquid soap.
Making soap in a workshop
- Heat the oil (for example palm oil) gently.
- Add a measured amount of sodium hydroxide solution while stirring, and keep it hot until the mixture thickens.
- Add concentrated salt solution (brine). Soap is less soluble in salty water, so it separates and floats: this is called salting out.
- Collect the soap, add colour or perfume, pour it into moulds and let it cure for some weeks.
Too much alkali leaves the soap caustic and harsh on skin; too little leaves it oily. That is why makers calculate the alkali for each type of oil.
How soap removes grease
A soap particle has two ends. The long hydrocarbon tail is hydrophobic: it dissolves in grease. The charged COO⁻ head is hydrophilic: it stays in the water. Tails push into a drop of grease, the heads face outwards, and the grease is lifted off as a tiny ball called a micelle, which is rinsed away.
Soap and hard water
Hard water contains Ca²⁺ and Mg²⁺ ions. They react with soap to form an insoluble grey scum, so more soap is needed before a lather forms. Soapless detergents do not form scum, which is why they are used in many washing powders.
Safety
Sodium hydroxide is corrosive. It burns skin and can blind. Wear goggles and gloves, add it slowly to water (never water to the solid), and wash any splash with plenty of water.
🧪 Industry lab: making soap · free, works on any phone, with graphs, questions and a lab report.
Start the lab →
Questions people ask
What is the by-product of soap making?
Glycerol, which is used in cosmetics, medicines and food.
Why does soap feel slippery?
Soap solutions are slightly alkaline and the particles form a thin layer between surfaces.
Is soap an ester?
No. Soap is a salt of a fatty acid. The fat it is made from is the ester.
Practise this topic
Written by BIZIYAREMYE Donat, Experienced Physics and STEM Educator, Rwanda. Published 30 November 2026. Found a mistake? Write on WhatsApp 0788 804 242. More explainers · All Interactive Labs