Gootree Tools

Soap Lye Calculator (NaOH & KOH)

Calculate the lye and water for cold process bar soap (NaOH) or liquid soap (KOH) from your oils, superfat and water setting.

Safety first: lye burns skin and eyes.

  • Wear splash-proof goggles, chemical-resistant gloves and long sleeves.
  • Always add lye to water, never water to lye. Stir until it dissolves; the solution gets very hot.
  • Mix in a well-ventilated place and don’t breathe the fumes.
  • Keep children and pets out of the room. Store lye sealed, labeled and out of reach.
  • Use stainless steel or polypropylene (#5 PP) containers, never aluminum.
  • If lye touches skin or eyes, flush with running water right away. For eyes, keep rinsing and get medical help.
  • Double-check the result in a second lye calculator before you make soap, and weigh everything on a digital scale.
Type of soap
Enter oils as
5% is typical.
Check your lye’s label.
38% is SoapCalc’s default.

What to weigh out

ozg
Sodium hydroxide (NaOH)
Water
Oils
Total batch

Per oil

Oil % of oilsWeightLye

Before you make soap, enter the same recipe in a second lye calculator, such as SoapCalc, and compare. Differences of 1–3% are normal because calculators use slightly different SAP values; a bigger gap usually means something was entered wrong.

How this calculator works

Each oil needs a fixed amount of lye to turn completely into soap. That amount is its saponification (SAP) value: grams of lye per gram of oil. The calculator multiplies each oil’s weight by its SAP value, adds them up, takes off the superfat and adjusts for lye purity. Then it works out the water from the method you chose.

lye = Σ(oil weight × SAP) × (1 − superfat) ÷ purity
water, % of oils:  water = total oils × water %
water, concentration c: water = lye × (1 − c) ÷ c
water, ratio r : 1:  water = lye × r
batch = oils + lye + water

SAP values are published as milligrams of potassium hydroxide per gram of oil. For sodium hydroxide they are multiplied by 39.997 ÷ 56.106 (about 0.713), the ratio of the two molar masses. The value used for each oil is the median of three soapmaking charts (SoapCalc, From Nature With Love and Certified Lye), checked against the Codex Alimentarius range where one exists. Values outside the Codex range were left out. The water is based on the weighed lye, as in SoapCalc, and the three water methods are equivalent: a 33% lye concentration is about a 2:1 water-to-lye ratio.

Worked example

A 2 lb bar soap recipe: 15 oz olive oil, 9 oz coconut oil (76°), 6 oz shea butter and 2 oz castor oil, with a 5% superfat, 100% sodium hydroxide and water at 38% of the oils.

Before the superfat the oils need 4.7076 oz of lye (15 × 0.1354 + 9 × 0.1832 + 6 × 0.1283 + 2 × 0.1290). Taking off 5% gives 4.47 oz (126.8 g) of sodium hydroxide. The water is 32 oz × 0.38 = 12.16 oz (344.7 g), which makes a 26.9% lye solution. The whole batch weighs 48.63 oz (1,378.7 g).

SAP values used (31 oils, grams of lye per gram of oil)
OilNaOHKOH
Apricot kernel oil0.13830.194
Argan oil0.13540.190
Avocado oil0.13260.186
Babassu oil0.17540.246
Beef tallow0.14260.200
Beeswax0.06700.094
Canola oil0.13260.186
Castor oil0.12900.181
Cocoa butter0.13830.194
Coconut oil, 76° or 92°0.18320.257
Corn oil0.13690.192
Grapeseed oil0.13260.186
Hemp seed oil0.13760.193
Jojoba oil0.06560.092
Lard (pork fat)0.14040.197
Macadamia nut oil0.13900.195
Mango butter0.13620.191
Neem oil0.13760.193
Olive oil0.13540.190
Palm kernel oil0.17610.247
Palm oil0.14190.199
Peanut oil0.13690.192
Rice bran oil0.13330.187
Safflower oil (high linoleic)0.13690.192
Safflower oil, high oleic0.13690.192
Sesame oil0.13400.188
Shea butter0.12830.180
Soybean oil0.13620.191
Sunflower oil (regular)0.13620.191
Sunflower oil, high oleic0.13470.189
Sweet almond oil0.13900.195

This calculator gives lye and water for the oils only. Fragrance, colorants and additives such as milk, sugar or salt are not included. Weigh lye and oils on a scale; never measure them by volume.

FAQ

What superfat should I use?

About 5% is the usual starting point for bar soap. SoapCalc recommends at least 5% because SAP values are averages and real oils vary from batch to batch. A higher superfat (8–10%) gives a softer, more conditioning bar. This calculator accepts 0–20% and warns below 3%, where there is little margin for weighing or SAP errors.

Why does another lye calculator give a slightly different answer?

Calculators use slightly different SAP values for the same oil, because oils vary with the crop, climate and processing. Differences of 1–3% are normal and are covered by the superfat. If two calculators disagree by more than about 5%, recheck the oils, weights, units and lye type you entered.

What lye purity should I enter?

Use the purity on your lye’s label or the supplier’s data sheet. The calculator starts at 100% for sodium hydroxide, as SoapCalc does, and at 90% for potassium hydroxide, because most KOH sold for soapmaking is about 90% pure. A lower purity means more lye to weigh out.

Which water setting should I use?

All three set the same thing: how strong the lye solution is. Water at 38% of the oil weight is SoapCalc’s beginner-friendly default; experienced soapers often use about 32–33%. A 33% lye concentration is about the same as a 2:1 water-to-lye ratio. Avoid solutions stronger than 40% lye, where saponification may not complete and the batter can overheat.

Can I swap one oil for another in a recipe?

Not without recalculating. Every oil needs a different amount of lye: coconut oil needs about a third more than olive oil. A swap changes how much lye the recipe needs, so run the new recipe through a lye calculator before you make it.

How do I use this for liquid soap?

Choose potassium hydroxide (KOH). Liquid soap is usually cooked as a thick paste that is diluted later, and it is usually made with more water than bar soap, for example a 3:1 water-to-lye ratio. The calculator covers the paste; follow your recipe for diluting it.

Sources