• Foundation
  • About 15 min
  • 5 practice questions

Soaps and detergents: how cleaning works

Explain how soap is made and how it removes grease, why soap fails in hard water, and how synthetic detergents solve that problem.

If something looks wrong, please tell us.

Washing clothes, dishes and hands is chemistry in action. Soaps and detergents both clean by the same trick, a molecule with two different ends, but they behave very differently in hard water. This last lesson explains why, and completes our tour of chemicals in daily life.

What soap is and how it is made

Soaps are the sodium or potassium salts of long-chain fatty acids, such as sodium stearate. They are made by heating fats or oils with sodium hydroxide solution. The fat (an ester of glycerol with fatty acids) breaks up into soap and glycerol. This reaction is called saponification. Common salt is then added to make the soap separate out as a solid. Sodium soaps are hard; potassium soaps are softer and gentler on the skin.

How soap removes grease

A soap molecule has two parts. The long hydrocarbon tail is hydrophobic: it dislikes water and dissolves in oil and grease. The ionic head (–COO⁻ Na⁺) is hydrophilic: it likes water. When soap meets a greasy cloth, the tails dig into the grease and the heads stay in the water. Many molecules together surround a droplet of grease, forming a ball called a micelle, with the grease inside and the charged heads outside. The micelles wash away in the rinse water, taking the grease with them.

Why soap fails in hard water

Hard water contains calcium and magnesium ions. These ions react with soap to form insoluble calcium and magnesium salts of the fatty acids, which appear as a sticky white scum. Soap used up this way does not clean, so more soap is wasted, and the scum sticks to clothes.

Synthetic detergents

Synthetic detergents have the same head-and-tail design but a different head group. Their calcium and magnesium salts are soluble, so they work even in hard water and do not form scum. There are three kinds.

Kinds of synthetic detergent
TypeHead groupExamples and uses
AnionicNegative, usually a sulphonate or sulphateSodium dodecylbenzenesulphonate in household detergents; sodium lauryl sulphate in toothpastes
CationicPositive, a quaternary ammonium groupCetyltrimethylammonium bromide in hair conditioners; germ-killing but costly
Non-ionicNo chargeLiquid dishwashing detergents

Detergents with long branched hydrocarbon chains are not easily broken down by bacteria and can cause foam in rivers. Detergents with less branched (straight) chains are broken down more easily, so they cause less pollution.

Worked example 1: predicting scum

Two buckets: one of soft rainwater, one of well water containing calcium ions. Soap is added to each. Where will scum form? Step 1: scum forms when calcium or magnesium ions meet soap. Step 2: only the well water has calcium ions. So scum forms in the well water, and the soap lathers well in the rainwater. With a detergent instead of soap, neither bucket forms scum.

Worked example 2: identifying the type

A hair conditioner lists a compound with a positively charged nitrogen head and a long carbon tail. Which kind of detergent is it? Step 1: a positive head means cationic. Step 2: quaternary ammonium compounds such as cetyltrimethylammonium bromide are the classic cationic detergents and are used in conditioners. Answer: cationic.

Soap = sodium or potassium salt of a fatty acid, made by saponification. Tails grab grease, heads hold water, micelles carry dirt away. Hard water ions make soap scum; detergents do not.

Key takeaways

  • Saponification: fat + sodium hydroxide → soap + glycerol.
  • Micelles trap grease with tails inward and heads outward.
  • Calcium and magnesium ions in hard water form insoluble scum with soap.
  • Detergents are anionic, cationic or non-ionic; branched chains are not easily biodegradable.

Check your understanding

  1. 1. Heating fat with sodium hydroxide to make soap is called:

    1. Esterification
    2. Saponification
    3. Vulcanisation
    4. Hydrogenation
    Show answer

    Answer: B. Saponification is the alkaline hydrolysis of fats, giving soap and glycerol.

  2. 2. Soap forms scum in hard water because of:

    1. Sodium ions
    2. Chloride ions
    3. Calcium and magnesium ions
    4. Dissolved oxygen
    Show answer

    Answer: C. Calcium and magnesium ions form insoluble salts with the fatty acid part of soap, which is the scum.

  3. 3. In a micelle, the hydrocarbon tails of soap molecules point:

    1. Inward, into the grease
    2. Outward, into the water
    3. Randomly
    4. Towards each other's heads
    Show answer

    Answer: A. The water-hating tails go into the grease at the centre; the charged heads face the water outside.

  4. 4. Cetyltrimethylammonium bromide is:

    1. An anionic detergent
    2. A soap
    3. A non-ionic detergent
    4. A cationic detergent
    Show answer

    Answer: D. It has a positively charged quaternary ammonium head, so it is cationic; it is used in hair conditioners.

  5. 5. Which detergents cause foam in rivers because bacteria cannot easily break them down?

    1. Those with straight chains
    2. Those with highly branched chains
    3. All soaps
    4. Non-ionic liquid detergents only
    Show answer

    Answer: B. Highly branched hydrocarbon chains resist breakdown by bacteria, so they persist and cause foaming.

Privacy · Terms · Refunds · Delivery