Chemistry making soap

Making soap is one chemical reaction: saponification, where a fat reacts with a strong base and splits into soap and glycerol. The hydroxide from the lye attacks the ester bonds holding a fat molecule together, and each fat yields one glycerol plus three soap molecules.

The base is not a helper you rinse out later. It is consumed and built into the soap, which is exactly why you have to weigh the lye to the gram and why leftover lye burns. I have made soap for years while thinking about the reaction under my hands, and understanding the chemistry is what turned my ruined early batches into ones I could repeat.

What the chemistry of soap taught me

Every bar of real soap is the salt of a fatty acid, made when an alkali meets an oil. The reason recipes work or fail traces back to that reaction, so the chemistry is worth understanding before the pretty swirls.

Here is the batch that made the chemistry concrete for me. I swapped shea butter for palm oil in a recipe without recalculating, assuming one fat was much like another. The lye amount stayed the same, but shea and palm have different saponification values.

A fat is a triglyceride: three fatty acid chains bonded to a single glycerol backbone through ester bonds. Each fat has its own fatty acid makeup, so each needs a specific amount of lye to react completely, a figure called its saponification value.

Because shea saponifies with less lye than palm, my recipe ended lye-heavy. The cured bars gave a sharp zap on the tongue, the signal that free hydroxide remained and the pH sat above 11. I recalculated the lye against each oil’s own value, dropped the sodium hydroxide, and rebatched. One triglyceride molecule reacts with three sodium hydroxide to yield one glycerol and three soap molecules. That 3 to 1 ratio is the whole reason a lye calculator exists.

What this craft really entails

Soap making is the alkaline hydrolysis of an ester, which chemists also call saponification, from the Latin sapo for soap and facere for to make. A fat reacts with sodium hydroxide, the ester bonds break, and the products are glycerol and the sodium salts of the fatty acids, which are soap.

The mechanism has a name worth knowing because it explains the timing. Saponification is a nucleophilic acyl substitution: the hydroxide ion attacks the carbonyl carbon of each ester bond, forms a short-lived tetrahedral intermediate, and that intermediate collapses and cleaves the bond, releasing glycerol and a fatty acid carboxylate. In the 1820s the French chemist Michel Eugene Chevreul showed that fats are built from glycerol and fatty acids, and that discovery is what let soapers calculate lye instead of guessing from wood ash strength.

Have you ever cured a bar for weeks and still felt a battery-like sting when you touched it to your tongue? That zap is unreacted hydroxide, meaning the reaction ran short of fat or long on lye, and no amount of extra curing fixes a stoichiometry error.

Core skills are reading saponification values, calculating lye for a blend, and recognizing trace, the thickening that shows the reaction has begun in earnest. The craft suits anyone willing to respect the base, since sodium hydroxide is caustic and the reaction is strongly exothermic, throwing the lye solution up to 200 degrees Fahrenheit when it dissolves. Water gets a mention here too, because it never appears in the reaction equation. It only dissolves the sodium hydroxide so it can split into sodium and hydroxide ions.

Two failure modes come straight from the chemistry. Did your batter seize into a false trace before the reaction had really started? Hard oils that resolidified can fake the thickness. And did your bars sprout orange spots months later? That is the unsaturated fatty acids oxidizing, a separate reaction from saponification that keeps running long after the soap is made.

Against modern syndet bars, which are built from synthetic detergents rather than saponified fats, true soap is chemically simpler and leaves glycerol behind. That glycerol is a humectant, and keeping it is one reason handmade cold process soap feels different from mass-produced bars that salt it out and sell it separately.

Essential reactants and tools

Soap needs two reactants and a solvent, plus the tools to measure them. Costs are approximate United States retail as of mid 2026.

Item categorySpecifications
Fats and oilsTriglycerides supplying fatty acids. Each has a SAP value setting its lye need. Blend hard and soft oils. 6 to 30 dollars per pound depending on oil.
Sodium hydroxideNaOH, 99 percent purity, for solid bars. Strong base, absorbs air moisture, store sealed. 8 to 15 dollars.
Potassium hydroxideKOH, for liquid and soft soap. Needs about 40 percent more than NaOH for the same oils. 10 to 18 dollars.
Water or other liquidSolvent only, at roughly 28 to 33 percent lye concentration. Dissociates the base into ions. Cost negligible.
Digital scaleReads to 0.1 gram. The reaction is stoichiometric, so weight accuracy is the whole game. 15 to 30 dollars.
pH strips or meterTo confirm finished soap near pH 9 to 10 and reject anything above 11. 8 to 40 dollars.
ThermometerReads 90 to 210 F, to track the exotherm and soaping range. 10 to 18 dollars.
Stick blender and safety gearImmersion blender, goggles, nitrile gloves, ventilation for the caustic step. 40 to 70 dollars combined.

Recalculate the lye every time you change an oil, even a small substitution. Each fat carries its own saponification value, so swapping coconut for olive or shea for palm shifts how much hydroxide the batch consumes, and a copied lye weight leaves you caustic or greasy.

To turn a set of oils and their saponification values into an exact lye weight at your chosen superfat, run the blend through a lye calculator rather than reusing a number from another recipe.

Loading calculator...

Key techniques and skills

Work these in order. The chemistry sets the sequence, and skipping a step usually means an incomplete or unsafe reaction.

  • Reading SAP values: look up each oil’s saponification value before you weigh anything.
  • Calculating lye: multiply each oil’s weight by its SAP value, sum them, then apply a superfat discount.
  • Setting superfat: discount the lye by 5 percent so a little fat stays unsaponified and no free hydroxide remains.
  • Dissolving the base: add sodium hydroxide to water, never the reverse, and expect the solution to heat toward 200 F.
  • Matching temperatures: cool lye and oils to about 120 to 130 F and within 10 degrees of each other.
  • Blending to trace: pulse the stick blender to drive the fats and hydroxide together until the batter trails.
  • Reaching gel or not: insulate to push the exotherm through gel phase, or refrigerate to prevent it.
  • Curing for weeks: rack bars 4 to 6 weeks so water evaporates and the crystal structure sets, though saponification itself finishes within about 48 hours.
  • Testing pH: check a cured bar reads near 9 to 10, and zap test for stray hydroxide.
  • Adjusting for KOH: use about 40 percent more potassium hydroxide than sodium hydroxide for liquid soap.

Discount your lye by 5 percent as a superfat, and the batch forgives small measuring errors. That buffer leaves a fraction of the fat unreacted so there is no leftover hydroxide, which is the single habit that keeps a bar gentle instead of caustic.

Common mistakes and how to avoid them

Each of these is a chemistry error wearing a practical disguise.

  1. Reusing a lye weight after a substitution. Different oils have different SAP values, so the reaction needs a different amount of base. Recalculate every blend.
  2. Treating lye as optional or interchangeable. The lye is a reactant, consumed and built into the soap, not a catalyst you can wash out. No lye means no saponification and no soap.
  3. Running zero superfat. With no discount, a tiny scale error can leave free hydroxide and a bar above pH 11. Hold superfat near 5 percent.
  4. Adding water to lye. Pouring water onto solid sodium hydroxide can boil up and spit caustic. Add lye into water instead.
  5. Soaping too cold. Below the range where hard oils stay melted, resolidified fat fakes a false trace before the reaction is real. Keep oils near 120 F.
  6. Ignoring oxidation. Unsaturated fatty acids keep reacting with oxygen after cure, causing orange spots. Limit high-linoleic oils and store bars dry.
  7. Skipping the pH check. A bar that zaps or reads above 11 is lye-heavy and unsafe. Test before using or selling.

Never use soap that zaps or tests above pH 11. Free sodium hydroxide left in a lye-heavy bar is caustic and can chemically burn skin, and unlike a fragrance flaw, this one is a genuine safety failure that no curing time will correct.

Why soap actually cleans

The reaction explains how soap is made, but a second piece of chemistry explains why it works. The soap molecule has two ends that behave in opposite ways.

One end is a carboxylate head, charged and water-loving. The other is a long hydrocarbon tail, oily and water-fearing. That split personality lets soap surround grease in tiny spheres called micelles, tails pointed inward at the oil and heads facing the water, so a rinse carries the whole bundle away. This is the property chemists call amphipathic, and it is why soap lifts oils that plain water slides right over.

The limitation of traditional soap is hard water. The carboxylate heads bond with calcium and magnesium ions to form an insoluble scum, the grey ring on a bathtub, which is why soap lathers poorly in mineral-rich water while synthetic detergents do not.

Glycerol is the quiet second product of every batch. Each triglyceride that reacts releases one glycerol molecule, a humectant that draws water to the skin. Commercial makers often salt it out with sodium chloride and sell it, while cold process soap keeps it, which is a chemical difference you can feel on your hands.

Understanding the reaction also carries a cost angle worth weighing. Oils are the bulk of a batch’s price, and the lye and water cost little, so price a recipe by its oils before you scale it up for sale.

Final thoughts

The chemistry of soap rewards a maker who respects two numbers: the saponification value that sets the lye, and the superfat that protects against error. Learn what the hydroxide is doing to the ester bonds, weigh your reactants like the stoichiometry it is, and most beginner failures disappear. The swirls and scents are the easy, creative part that sits on top of a reaction you can trust.

What I would do differently, thinking back to that lye-heavy shea batch, is treat every oil as its own reactant with its own appetite for lye, rather than a generic fat. The reaction does not care what the recipe card says. It only balances if the base and the fatty acids are matched, and once you internalize that, soap making stops being a gamble and becomes something you can repeat on purpose.

Rate article
My imagine space
Add a comment