Soap Ingredients

The Science Behind Handmade Soap Making: A Deep Dive

A plain-language explanation of saponification: how fats and lye react to form soap and glycerin, what fatty acids do, and why the reaction produces heat.

On this page
  1. The reaction in one sentence
  2. What fats and oils are made of
  3. What lye does
  4. Why a soap molecule cleans
  5. Where glycerin comes from
  6. Heat and the gel phase
  7. Superfatting and leftover oil
  8. Why we cure
  9. Cold process and other methods
  10. Keep the chemistry in perspective

The reaction in one sentence

Soap is what you get when a fat or oil reacts with a strong alkali. That reaction is called saponification, from the Latin word for soap. In the usual bar soap recipe, the fat is a plant oil or animal fat, the alkali is sodium hydroxide (lye), and the products are soap and glycerin.

What fats and oils are made of

Most fats and oils are triglycerides. Picture a small backbone molecule called glycerol with three long chains attached, one at each of three points. Those chains are fatty acids. Different oils are made of different fatty acids, which is the whole reason oils behave differently in soap.

Some familiar examples help show how this plays out.

  • Coconut oil is rich in shorter-chain saturated fatty acids such as lauric acid. These tend to form hard soap that lathers quickly and abundantly.
  • Olive oil is rich in oleic acid, a longer-chain unsaturated fatty acid. It tends to form softer, milder soap with a creamier lather.
  • Castor oil is dominated by ricinoleic acid, which is generally linked to its lather-stabilizing effect.
  • Animal fats and palm oil have more palmitic and stearic acid, linked to firmness.

Each oil’s fatty acid profile is a mix, not a single compound, and what ends up in the bar is the blend.

What lye does

Sodium hydroxide, dissolved in water, splits those triglycerides apart. Each of the three fatty acid chains separates from the glycerol backbone and pairs up with sodium. A fatty acid attached to sodium is a soap molecule. In a simplified form, one triglyceride and three sodium hydroxide units yield three soap molecules and one glycerol molecule. That is the heart of saponification.

Potassium hydroxide works in the same way but forms potassium salts of fatty acids, which are softer and more soluble. That is why it is used for liquid soap, a topic covered under understanding liquid soap in general terms.

Because each oil has fatty acid chains of different lengths, each needs a different amount of lye to react completely. That is why published lye values vary by oil, and why a soap calculator is so useful. Guessing is not a safe approach: too much lye leaves free alkali in the bar, and the problem of lye heavy soap is a real one. Lye is caustic and needs protective gear, ventilation and a space free of children and pets. Follow a trusted, tested recipe from a reliable source.

Why a soap molecule cleans

A soap molecule has two ends. One end, the carboxylate head, is attracted to water. The other, the long hydrocarbon tail, is attracted to oils and repelled by water. When you wash, the tails bury themselves in grease and oil on the skin, and the heads face outward into the water. The oil gets surrounded by tiny clusters of soap molecules, called micelles, which can be rinsed away with the water. Bubbles form because the same molecules gather at the surface between air and water and stabilize thin films.

Where glycerin comes from

The glycerol released in the reaction is glycerin. In handmade soap it simply stays in the bar. It attracts moisture from the air, which is one reason homemade bars may feel less drying than some commercial ones, where glycerin is often removed and sold separately, though how much difference it makes to your skin varies. Excess glycerin attracting moisture is also behind the beads on a bar described in the article on sweating soap and humidity.

Heat and the gel phase

Saponification gives off heat, and so does dissolving lye in water. A batch may warm itself once poured into the mold, sometimes becoming translucent and gel-like in the center. That is the gel phase, a stage some makers want and some avoid. Sugars and milks add extra heat. The reaction is mostly finished within a day or two, though soap continues to change during curing as water evaporates.

Superfatting and leftover oil

Makers deliberately use slightly less lye than needed to react with all the oil. The remaining oil is known as the superfat, and it acts as a safety margin and adds a gentler feel. Different bars use different amounts.

Why we cure

Even after saponification is complete, a fresh bar contains a lot of water. Curing lets the water evaporate, so the bar becomes harder, milder and longer-lasting. During the cure, the pH of the bar also tends to settle. Skin sits at a mildly acidic pH, while soap is alkaline, a fact that is the subject of understanding skin pH. This alkalinity is simply the nature of real soap, and it is part of why some people with sensitive skin prefer other kinds of cleanser.

Cold process and other methods

The same reaction underlies cold process, hot process and liquid soap. What changes is how much heat is applied and when the reaction finishes. Melt and pour does not repeat the reaction, because the base soap has already been made.

Keep the chemistry in perspective

The science is reassuring in one way: it explains why a properly formulated, fully reacted and cured bar is safe to wash with even though it starts from a hazardous ingredient. But the chemistry is also unforgiving, so measure by weight, use tested recipes and respect the lye at each step.

The complete guide to soap ingredients

The Power of Natural Ingredients in Handmade Soap
Read the guide

Keep exploring

Guides from other topics

All topics →