Physics & Chemistry
Soap Lye Calculator (Cold Process, NaOH or KOH)
Soap is made by saponification, the chemical reaction between fats or oils and a strong alkali. Bar soap is made with sodium hydroxide, NaOH, and soft or liquid soap with potassium hydroxide, KOH. Each oil needs a specific amount of alkali to turn completely into soap, given by its saponification value, often called the SAP value: the grams of lye needed per gram of oil. Coconut oil, rich in short fatty acids, needs about 0.183 grams of sodium hydroxide per gram, while olive oil needs about 0.135 and shea butter about 0.128. Using too much lye leaves free alkali that makes harsh, caustic soap, while too little leaves the bars greasy. To be safe and to make gentler bars, soap makers use a superfat, deliberately reducing the lye so that a few percent of the oil, typically 3 to 8 percent, stays unsaponified. This calculator adds up the lye required by each oil in your recipe using typical SAP values, applies the superfat, and for potassium hydroxide converts the amount using the ratio of the two compounds’ molar masses and an assumed 90 percent purity, which is common for commercial KOH. It then calculates the water from the lye concentration, the share of lye in the lye solution, often around 30 to 35 percent. Real oils vary from batch to batch, so check the SAP values from your supplier and run your recipe through a second calculator before making soap. Lye is highly caustic and can cause severe burns and eye damage: wear goggles and gloves, always add lye to water and never water to lye, work in a ventilated area, use heat-resistant containers and keep children and pets away.
How to use this calculator
- Choose up to three oils and enter their weights in grams.
- Choose sodium hydroxide for bar soap or potassium hydroxide for liquid soap.
- Choose a superfat, typically 5%.
- Choose a lye concentration, typically about 33%.
- Read the lye and water amounts and follow the safety notes.
Choosing oils
Coconut and palm oils produce hard bars with lots of lather, olive oil makes mild, long-lasting bars, and castor oil adds creamy lather in small amounts.
Many recipes blend several oils to balance hardness, cleansing, conditioning and lather, often keeping coconut oil below about 30% to avoid drying the skin.
Curing
Cold process soap is usually cut after a day or two and then cured for about four to six weeks, during which excess water evaporates and the bars become harder and milder.
Test a cured bar before use; a zap test or pH strips can indicate excess lye.
Formula & method
NaOH needed = Σ (oil weight × NaOH SAP value) × (1 − superfat)KOH (90% purity) = NaOH amount × 1.403 ÷ 0.9Water = lye ÷ concentration − lyeSAP values are typical averages; check your supplier’s dataNaOH = Σ (oil weight × SAP) × (1 − superfat). KOH (90%) = NaOH × 1.403 ÷ 0.9. Water = lye ÷ concentration − lye.
Worked example
1,000 g of olive oil with a 5% superfat
- NaOH = 1,000 × 0.135 = 135 g before superfat.
- With 5% superfat: 135 × 0.95 = 128.25 g.
- Water at 33% lye concentration: 128.25 ÷ 0.33 − 128.25 ≈ 260 g.
Answer: Use about 128 g of sodium hydroxide and 260 g of water.
Frequently asked questions
What is superfat?
A deliberate excess of oil left unsaponified, typically 3–8%, which makes the bar milder and provides a safety margin for variations in oils and lye purity.
Is making soap with lye safe?
Sodium and potassium hydroxide are highly caustic. Wear goggles and gloves, add lye to water (never water to lye) in a ventilated area, keep children and pets away, and weigh everything accurately with a digital scale.
Why is KOH more than NaOH?
Potassium hydroxide has a higher molar mass, so more grams are needed for the same reaction, and commercial KOH is usually only about 90% pure.
Can I use cups instead of grams?
No, soap recipes must be weighed with a digital scale for safety and accuracy.
What lye concentration should I use?
About 30–35% is common for cold process soap; higher concentrations trace and harden faster.
Are SAP values exact?
They are typical averages; oils vary, so use your supplier's values and a superfat.