Lye is caustic. Wear gloves and eye protection, and pour the lye into the water, never water into lye. Work with good ventilation: the solution gets hot and gives off fumes. Mix in heat-safe stainless steel or PP (polypropylene), not aluminum, and keep children and pets away. If lye gets on your skin, rinse with plenty of water. Use lye sold as 100% sodium hydroxide (or potassium hydroxide for liquid soap), not a drain cleaner with additives. Run any recipe through a lye calculator before you make it; this guide shows how the numbers are worked out and does not replace your own check of your recipe.

Step 1: find the SAP value of each oil

The SAP (saponification) value says how much lye one gram of an oil takes to turn into soap. Tables list it as mg of KOH per g of oil. For sodium hydroxide, convert by the weights of the two molecules: NaOH SAP = KOH SAP × 39.997 ÷ 56.106 ÷ 1000. For KOH, the SAP value ÷ 1000 is already grams per gram.

Oil or fatSAP (mg KOH per g)NaOH per g of oilNaOH for 100 g at 5% superfat (g)KOH (90%) for 100 g at 5% superfat (g)
Olive oil1900.135412.8720.06
Coconut oil256.50.182917.3727.07
Palm oil199.50.142213.5121.06
Palm kernel oil2420.172516.3925.54
Castor oil181.50.129412.2919.16
Shea butter *177.50.126512.0218.74
Cocoa butter191.50.136512.9720.21
Sweet almond oil *1950.139013.2120.58
Avocado oil *1860.132612.6019.63
Sunflower oil190.50.135812.9020.11
Sunflower oil, high oleic1880.134012.7319.84
Canola oil187.50.133712.7019.79
Rice bran oil *189.50.135112.8320.00
Soybean oil1920.136913.0020.27
Safflower oil1920.136913.0020.27
Safflower oil, high oleic1900.135412.8720.06
Sesame oil190.50.135812.9020.11
Peanut oil191.50.136512.9720.21
Corn oil1910.136212.9420.16
Cottonseed oil193.50.137913.1020.43
Grapeseed oil1910.136212.9420.16
Babassu oil250.50.178616.9626.44
Lard197.50.140813.3820.85
Tallow (beef)1960.139713.2720.69
Argan oil194.050.138313.1420.48
Camellia oil1930.137613.0720.37
Stearic acid2030.144713.7521.43
Mango butter191.50.136512.9720.21
Beeswax *900.06426.109.50
Jojoba oil *950.06776.4310.03
Hemp seed oil1870.133312.6619.74
Macadamia nut oil1950.139013.2120.58
Horse oil *2000.142613.5421.11
Apricot kernel oil194.250.138513.1620.50
Hazelnut oil1930.137613.0720.37
Linseed (flax) oil1910.136212.9420.16
Walnut oil193.50.137913.1020.43

SAP values are the middle of the ranges published in the Codex Alimentarius standards, pharmacopoeias and similar sources, the same values Lyeria uses. Oils vary by origin and harvest, so yours can differ a little, and other calculators' tables can list a few percent more or less for some oils; covering that margin is part of what the superfat is for. Oils marked * (shea butter, sweet almond oil, avocado oil, rice bran oil, beeswax, jojoba oil, horse oil) have a wide range in the sources (the low end is 5% or more below the middle); see Step 3.

Step 2: add up the lye for the whole recipe

Multiply each oil's weight by its NaOH SAP value, then add the results. This is the lye that would turn every gram of oil into soap, with none left over (0% superfat):

OilWeight (g)NaOH per gNaOH (g)
Olive oil2500.135433.86
Coconut oil1250.182922.86
Shea butter1000.126512.65
Castor oil250.12943.23
Total50072.61

Each row is rounded to 0.01 g; the total is added before rounding.

Step 3: take off the superfat

The superfat is the share of oil you leave unsaponified on purpose, so the bar is milder and a small difference in SAP value or weighing does not leave extra lye in the soap. Multiply by (1 − superfat ÷ 100): 72.61 × 0.95 = 69.0 g of NaOH at 5%. For the same 500 g of oils:

SuperfatNaOH (g)NaOH (oz)
0%72.612.56
3%70.432.48
5%68.982.43
7%67.522.38
10%65.352.31

Oils whose SAP value varies widely

Some oils, like shea butter, have a wide range in the sources. Lyeria and this guide use the middle of the range, 177.5 for shea, but the low end is 160. If your shea is at the low end, it needs less lye than calculated, so the recipe above has a real superfat of 3.3% instead of 5%. The larger the share of such an oil, the bigger the gap. At 5% superfat, a recipe of 40% shea and 60% olive oil drops to 1.3% with shea at its low end (olive at the middle), and shea butter alone to −5.4%: below 0 means more lye than the oils can use, so lye is left in the bar. When a wide-range oil is a large part of your recipe, raise the superfat or work the recipe out with the low end of the range (or the SAP value from your supplier). Lyeria checks this for oils whose low end is more than 5% below the middle, such as shea butter: when the low end would bring the superfat below 3%, it shows that figure, and below 0% it warns you to raise the superfat or check your supplier's SAP value.

Water: three ways to set it

Water dissolves the lye; it does not change how much lye the oils need. Recipes give it in one of three ways, and for the 500 g recipe with 69.0 g of NaOH they work out like this:

MethodFormulaSettingWater
% of oilsoils × %33%165.0 g
Lye concentrationlye × (100 − c) ÷ c33%140.0 g
Water : lye ratiolye × ratio2 : 1138.0 g

The same recipe can be read either way: 165.0 g of water with 69.0 g of NaOH is a lye concentration of 29.5%, or a water : lye ratio of 2.39 : 1. Concentration and ratio are counted against the lye you actually weigh.

KOH for liquid soap, and NaOH + KOH together

For potassium hydroxide, use the SAP value ÷ 1000 as it is: the 500 g recipe needs 101.8 g of pure KOH at 0% superfat and 96.8 g at 5%. KOH is usually sold at less than 100% purity, so divide by the purity: at 90%, 107.5 g of KOH. Lyeria uses 90% for KOH and 100% for NaOH unless you change them; enter the purity on your container.

Dual lye. Some bar recipes replace part of the NaOH with KOH. Split the lye before you convert it: with 20% of the lye as KOH (90% purity) and 5% superfat, the 500 g recipe takes 55.2 g of NaOH and 21.5 g of KOH.

How much oil fits your mold

Work from the inside size of the mold. The batch is oil + lye + water, and each has its own density, so the oil that fills a mold depends on the recipe. For the recipe above (33% water), it comes to 0.694 g of oil per cm³, or 0.40 oz per cubic inch:

Scale every oil by the same factor and run the lye again for the new total.

Mistakes that change the lye

Do it at the bench: Lyeria

Lyeria is a free Android app that does every step above: pick your oils, enter grams, ounces or percentages, and it gives you the NaOH, KOH and water to weigh.

The first screenshot at the bottom of this page is the 500 g recipe from this guide in ounces: NaOH 2.43 oz (69.0 g), water 5.82 oz (165.0 g), the same as the hand calculation above. The second is the same oils entered by percent. Get Lyeria free on Google Play (Android).

Frequently asked questions

How much lye do I need for 500 g of oil?

It depends on the oils. For 250 g olive, 125 g coconut, 100 g shea butter and 25 g castor oil, the oils take 72.61 g of NaOH, so at 5% superfat you weigh 69.0 g of NaOH. Multiply each oil's weight by its NaOH SAP value, add them up, and take off the superfat.

How do I convert a KOH SAP value to NaOH?

Multiply by 39.997 ÷ 56.106 and divide by 1000. Olive oil at 190 mg KOH/g is 0.1354 g of NaOH per g of oil.

What superfat should I use for soap?

Many cold-process recipes use about 5%, which is what this guide uses; follow the superfat your recipe gives. For the 500 g example, 0% is 72.61 g of NaOH and 5% is 69.0 g.

How much water do I need for cold process soap?

Recipes set it as a % of the oils, a lye concentration or a water : lye ratio. For 500 g of oils, 33% of the oils is 165.0 g of water; a 33% lye concentration is 140.0 g; a 2 : 1 ratio is 138.0 g.

How much KOH do I need for liquid soap?

Use the KOH SAP value ÷ 1000 for each oil, take off the superfat, then divide by the purity. For the 500 g example at 5% superfat, that is 96.8 g of pure KOH, or 107.5 g at 90% purity.

How much oil do I need for my soap mold?

Measure the inside of the mold. For a recipe with water at 33% of the oils, the oils are about 0.694 g per cm³ (0.40 oz per cubic inch), so a 20 × 8 × 7 cm mold takes 777 g of oils.

Is there a free app that calculates lye for soap?

Lyeria is a free Android app (with ads) that gives the NaOH, KOH and water for your oils, with superfat, purity, water three ways and a weighing-order checklist, in grams or ounces. It needs no account and works offline.

Before you make it. Results are a guide: oils vary by origin and harvest, and lye by purity. Wear gloves and eye protection, pour lye into water (never water into lye), work with ventilation, mix in stainless steel or PP rather than aluminum, keep children and pets away, rinse any splash on your skin with plenty of water, use 100% sodium or potassium hydroxide rather than drain cleaner, and check your recipe before you make it.

Related