How to calculate lye for soap
A practical framework for calculating oil SAP values, alkali weight, superfat, and water for cold-process bars and liquid soap—without treating the calculator as a black box.
Quick answer: Multiply each oil's weight by its NaOH (bar soap) or KOH (liquid soap) SAP value, add the results, then multiply the total by (1 − superfat). In the worked example below, 1,000 g of olive, coconut and castor oils at 5% superfat needs 140.3 g NaOH and 330 g water.
Skip the arithmetic: use the free soap calculator
Core equation: Total alkali = Σ (oil weight × oil SAP). Reference NaOH SAP values: olive oil ≈ 0.134, coconut oil 76° ≈ 0.190, castor oil ≈ 0.128.
Saponification (SAP) values
Saponification is the reaction between triglycerides and a strong alkali. An oil's SAP value expresses how much NaOH or KOH is required to saponify one gram of that oil.
Because fatty-acid profiles differ, every oil has its own value. The calculator multiplies each oil weight by its matching SAP value, then adds those results to determine the theoretical alkali requirement.
Reference values vary slightly by dataset and natural raw-material variation.
Superfat and alkali discount
A zero-superfat calculation uses the full theoretical alkali amount. Formulators commonly reduce that amount to leave a controlled fraction of oils unsaponified.
Superfat improves mildness and provides a practical margin, but it does not replace accurate weighing or process control.
At 5% superfat, multiply the theoretical alkali by 0.95.
Common working range; 5% is a frequent starting point.
Higher excess oil may cloud or separate from the soap.
Water and concentration
Water dissolves the alkali and changes handling behavior. The calculator's “water as % of oils” setting relates liquid weight to total oil weight. At 33%, a 1,000 g oil batch begins with 330 g of liquid before any water-replacement ingredients are considered.
330 g liquid per 1,000 g oils.
Faster trace and earlier unmolding; use with experience.
Longer working time with slower initial firming.
Do not reduce liquid below the amount needed to fully dissolve the alkali. Temperatures, additives, fragrance, and fatty-acid profile also affect trace speed.
NaOH versus KOH
The chosen alkali determines the soap format and the SAP table used. KOH SAP values are approximately 1.403 times the corresponding NaOH values, reflecting their different molar masses.
Worked example: a 1,000 g bar soap batch
A cold-process bar with 70% olive oil, 25% coconut oil 76° and 5% castor oil, at 5% superfat and water at 33% of oil weight.
| Oil | Weight | NaOH SAP | NaOH |
|---|---|---|---|
| Olive oil | 700 g | × 0.134 | 93.8 g |
| Coconut oil 76° | 250 g | × 0.190 | 47.5 g |
| Castor oil | 50 g | × 0.128 | 6.4 g |
| Total alkali at 0% superfat | 147.7 g | ||
NaOH at 5% superfat: 147.7 g × 0.95 = 140.3 g. Water at 33% of oils: 1,000 g × 0.33 = 330 g (lye concentration about 29.8%). Batch weight before cure: 1,470.3 g (oils + lye + water, before fragrance and additives).
Values are illustrative reference figures. For real batches, use your supplier's SAP values or the calculator's oil database, and correct for alkali purity where needed (for example, divide KOH by 0.90 at 90% purity).
Putting the calculation together
A complete calculation starts with four decisions: oil blend and weight, soap method and alkali, superfat, and water setting. Once those inputs are fixed, the arithmetic is deterministic; the calculator keeps units, method-specific SAP values, purity corrections, and rounding consistent.
- 01 Set the oil blend and total batch weight
- 02 Select Cold Process (NaOH) or Liquid Soap (KOH)
- 03 Choose superfat and the water setting
- 04 Review alkali, liquid, yield, and quality values
Ready to calculate a formula?
Use the live calculator, then save the result to your formula library.
Working on emulsions next? Read the HLB calculator guide.
Lye calculation questions
What is a SAP value in soap making?
The saponification (SAP) value of an oil is the amount of lye needed to fully convert 1 gram of that oil into soap. Every oil has its own NaOH and KOH SAP value. A soap calculator sums (weight × SAP) across all oils to get the total lye required.
What does superfat mean?
Superfat is the percentage of oils intentionally left unsaponified. A 5% superfat reduces the calculated alkali by 5%. Cold-process bars commonly use 3–8%; liquid soap commonly uses 0–3% because excess unsaponified oil can cloud or separate from the finished soap.
What is water discount or water as % of oils?
Water as a percentage of oils sets how concentrated the lye solution is. 33% water of oils is a common default. Lower values (25–28%) speed trace and unmold time; higher values (35–38%) give more working time.
Should I use NaOH or KOH?
NaOH (sodium hydroxide) is used for cold-process bar soap. KOH (potassium hydroxide) is used for liquid soap. Their SAP values differ, so the calculator must know which alkali you are using before it can compute the correct amount.
Enter your own oils in the soap calculator or get only the NaOH or KOH amount with the lye calculator.