You rub soap on your hands, add water, and get almost no lather. A scum floats on top instead of bubbles. Switch to a detergent in the same water and it foams at once. Nothing is wrong with the soap, and nothing is wrong with the water. The explanation is a small piece of chemistry about calcium and magnesium.

This guide explains what soaps and detergents are, why hard water defeats one and not the other, how both clean in the same way, and which to use when.

What Soaps and Detergents Actually Are

A soap is a sodium or potassium salt of a long-chain carboxylic acid (a fatty acid). It is made by heating a fat or oil with sodium hydroxide, a reaction called saponification:

Fat or oil + sodium hydroxide → soap + glycerol

A detergent is a synthetic cleansing agent. Most are sodium salts of sulphonic acids (or ammonium salts with chlorides or bromides), made from petroleum-based chemicals instead of from fats. Detergents look chemically different from soaps, but they have the same two-part design: a long hydrocarbon tail and a charged head.

Why Hard Water Defeats Soap

Hard water contains dissolved salts of calcium and magnesium (chlorides, sulphates and bicarbonates). When soap meets those ions, the soap’s sodium is swapped for calcium or magnesium, and the new compound does not dissolve:

2C₁₇H₃₅COONa + CaCl₂ → (C₁₇H₃₅COO)₂Ca↓ + 2NaCl

The insoluble calcium soap is the scum that floats on the water. It has two costs. A lot of soap is used up before any lather forms, and the scum sticks to clothes and skin, leaving them dull and sticky.

Detergents avoid the problem because their calcium and magnesium salts are soluble in water. No scum forms, so the detergent stays free to clean, and it lathers in hard water as easily as in soft water.

The Same Cleaning Trick

Once there is no scum in the way, soaps and detergents clean in exactly the same way. The tail is attracted to oil and grease, and the head is attracted to water. In water, the molecules cluster into micelles, with the tails pointing into a droplet of oily dirt and the heads facing outward. The dirt is trapped inside the micelle and rinsed away. If you want to practise the labelling for this picture, see the diagram guide in common diagram questions in carbon and its compounds.

Side by Side

FeatureSoapDetergent
Made fromFats and oils with sodium or potassium hydroxidePetroleum-based chemicals (synthetic)
Chemical natureSodium or potassium salt of a fatty acidUsually a sodium salt of a sulphonic acid, or an ammonium salt
In hard waterForms insoluble scum with calcium and magnesium ionsForms soluble compounds, so no scum
Lather in hard waterPoorGood
Cleaning methodMicellesMicelles
BiodegradabilityEasily broken down by bacteriaDepends on the structure. Straight-chain detergents are broken down far more easily than the old branched-chain ones
Typical useBathing, general washing in soft waterWashing clothes and utensils, especially in hard water

A Quick Experiment

Take two samples of water: distilled (or rainwater) and hard water such as well or borewell water. Add the same amount of soap solution to each, shake and compare. The soft water lathers readily. The hard water gives scum and little lather. Repeat with a detergent solution, and both samples lather. Seeing the two results next to each other is the clearest way to remember the difference.

Which Should You Use?

  • Soft water, bathing: soap works well, is gentle, and breaks down easily after use.
  • Hard water, washing clothes: a detergent saves soap and avoids scum on fabric.
  • Environment: choose products whose detergents are biodegradable, because persistent detergents can build up in rivers and lakes, and some contain nutrients that cause excess algae growth.

Hard Water, Properly Understood

Hard water is not dirty water. It is water that contains dissolved salts of calcium and magnesium, picked up as it flows over rocks and through the ground. There are two kinds.

Temporary hardnessPermanent hardness
Caused byCalcium and magnesium bicarbonatesCalcium and magnesium chlorides and sulphates
Removed by boiling?YesNo
What happens on boilingThe bicarbonate breaks down: Ca(HCO₃)₂ → CaCO₃↓ + H₂O + CO₂Nothing, because these salts do not break down
Everyday signWhite scale inside kettles and pansPoor lather that boiling does not fix

The white crust you see inside a kettle is calcium carbonate, left behind when hard water is boiled. It is the same insoluble substance, and the same chemistry, that forms the scum when soap meets hard water.

How Hard Water Is Softened

Softening means removing or neutralising the calcium and magnesium ions.

  • Boiling removes temporary hardness only.
  • Washing soda (sodium carbonate) removes both kinds, because the carbonate ions combine with calcium and magnesium to form insoluble carbonates that settle out. For example, CaSO₄ + Na₂CO₃ → CaCO₃↓ + Na₂SO₄.
  • Ion-exchange resins, used in many water softeners, swap the calcium and magnesium ions for sodium ions, which do not form scum.
  • Using a detergent does not soften the water, but it removes the trouble that hardness causes with soap, because detergent does not form scum.

How Soap Is Made

The same reaction that gives soap its name can be done in a small way in a laboratory or on a large scale in a factory.

  1. Heat the fat or oil with a concentrated solution of sodium hydroxide. This is saponification, and it gives soap and glycerol.
  2. Add common salt. The soap is less soluble in salt water, so it separates and floats to the top as a curd. This step is called salting out.
  3. Collect and process the curd, which can be pressed, perfumed and cut into bars.

Sodium hydroxide gives hard soaps, and potassium hydroxide gives softer soaps, which are used in liquid soaps and shaving creams. A neat way to remember is that potassium makes it softer.

Detergents: Choosing What Goes on the Head

A detergent molecule has the same two-part design as soap, but its head is different, and that makes all the difference.

Head typeExamples of useNotes
Sulphonate (a sodium salt of a sulphonic acid)Washing powders, liquid detergents, shampoosCalcium and magnesium salts of these dissolve in water, so no scum forms
Quaternary ammonium (a charged nitrogen)Some conditioners and disinfectant productsCarries a positive charge, which suits fabric softening and cleaning surfaces

A shampoo is a good everyday example. It has to work in any water, including hard water, which is why shampoos are detergents and not true soaps.

Putting It Together in an Answer

If a question asks you to explain why detergents work in hard water, follow this three-line structure and you will cover every mark.

  • State that hard water contains calcium and magnesium ions.
  • State that soap forms an insoluble scum with these ions, so it is wasted and does not lather.
  • State that detergents form soluble compounds with these ions, so they still lather and clean.

Soaps and Detergents in Your Syllabus

This topic belongs to Carbon and Its Compounds, which is Chapter 4 in both the CBSE and the Karnataka SSLC Class 10 Science textbooks. Portions of the soap and detergent section differ by board and by year, so check your own syllabus for what is expected. These notes on soaps and detergents and the chapter notes for Class 10 give the full picture. Hard water and its removal return in later classes, so understanding why calcium and magnesium cause the trouble is useful well beyond this chapter.

Frequently Asked Questions

Q1. What is the main difference between soap and detergent?

Soap is made from natural fats and oils and forms scum with the calcium and magnesium in hard water. A detergent is synthetic and forms soluble compounds with those ions, so it lathers and cleans well in hard water.

Q2. Why does soap form scum in hard water?

Calcium and magnesium ions in hard water react with soap to form insoluble calcium and magnesium salts of the fatty acids. This sticky solid is the scum.

Q3. How do soaps and detergents clean?

Their molecules have a hydrophobic tail that sticks to oil and grease and a hydrophilic head that stays in water. They form micelles around dirt, which are rinsed away with water.

Q4. What is saponification?

Saponification is the reaction in which a fat or oil is heated with sodium hydroxide (or potassium hydroxide) to make soap and glycerol.

Q5. Are detergents bad for the environment?

Older branched-chain detergents broke down very slowly and caused foam in water bodies. Modern straight-chain detergents are more biodegradable, but some still contain nutrients that can cause excess algae growth, so responsible use matters.

Calcium Is the Culprit

The whole story fits in one sentence: soap fails in hard water because calcium and magnesium turn it into scum, and detergents are designed so that they do not. Remember the ions, and the rest of the comparison follows.

Related Topics

Related Posts

[latest_pages_by_parent parent_id="65759" number="10"]
[latest_pages_by_parent parent_id="66155" number="10"]
[latest_pages_by_parent parent_id="66211" number="10"]
[latest_pages_by_parent parent_id="66213" number="10"]

Table of Contents

Join Deeksha Vedantu

> PU + Competitive Exam CoachingPreferred Choice For Toppers25+ Years of Academic Excellence70k+ Success Stories

Related Pages

Latest Posts

  • Why Willpower Alone Doesn’t Fix Phone Distractions (And What Actually Does)

    Why Willpower Alone Doesn’t Fix Phone Distractions (And What Actually Does)

  • The Pressure Parents Don’t Realize They’re Applying

    The Pressure Parents Don’t Realize They’re Applying

  • The Study Technique That Works for Your Friend but Not You

    The Study Technique That Works for Your Friend but Not You

  • What Your Body Is Trying to Tell You: Reading Exam Anxiety Correctly

    What Your Body Is Trying to Tell You: Reading Exam Anxiety Correctly

  • Motivation Won’t Show Up Every Day – Here’s What to Do Instead

    Motivation Won’t Show Up Every Day – Here’s What to Do Instead

  • The PU College Checklist: 10 Questions to Ask on Campus Visit Day

    The PU College Checklist: 10 Questions to Ask on Campus Visit Day

  • PU College Fees in Bangalore – What to Expect

    PU College Fees in Bangalore – What to Expect

  • What Residential PU Brochures Don’t Tell You: Questions to Ask Before Enrolling

    What Residential PU Brochures Don’t Tell You: Questions to Ask Before Enrolling