Lye Calculator: Professional Soap Recipe Formulator

Creating safe, high-quality soap requires mathematical precision. Whether you are crafting a moisturizing olive oil bar or a high-cleansing coconut soap, calculating the exact amount of Sodium Hydroxide (NaOH) or Potassium Hydroxide (KOH) is non-negotiable. This tool simplifies the saponification process for you.

Oil Weights:

Total Oil Weight: 0.00
Required Lye: 0.00
Required Water: 0.00
Total Batch Weight: 0.00

Oil Composition Visualization

What is a Lye Calculator?

A lye calculator is a specialized tool used by soap makers to determine the exact amount of alkali (Sodium Hydroxide for bars or Potassium Hydroxide for liquid soap) needed to turn a specific blend of fats and oils into soap. This chemical reaction is known as saponification.

Without a calculator, you risk making "lye heavy" soap, which can burn the skin, or soap that is too soft and greasy because it didn't have enough lye to react with the oils. Our tool ensures your recipe is balanced, safe, and effective.

The Saponification Formula

The math behind soap making relies on "SAP Values" (Saponification values). Each oil has a specific value representing the milligrams of potassium hydroxide required to saponify one gram of that fat.

The basic formula used in this calculator is:

Lye Needed = (Oil Weight × SAP Value) × (1 - Superfat %)
Water Needed = Lye Weight × Water Ratio
                    

For NaOH (bar soap), we adjust the KOH SAP value by dividing it by the ratio of their molecular weights (approximately 1.403).

Oil Type SAP Value (NaOH) Hardness Contribution Lather Quality
Olive Oil 0.135 Low Low/Creamy
Coconut Oil 0.191 High High/Bubbly
Shea Butter 0.128 Medium Stable/Creamy
Castor Oil 0.128 Low High/Booster

Practical Soap Examples

Example 1: The Classic Bastille Bar

A Bastille soap typically uses 70% Olive Oil and 30% Coconut Oil. For a 1000g oil batch with a 5% superfat:

  • Olive Oil: 700g
  • Coconut Oil: 300g
  • Calculated NaOH: ~144g
  • Water (2:1 ratio): 288g

Example 2: Liquid Hand Soap (KOH)

Liquid soaps require Potassium Hydroxide. A simple 100% Coconut Oil liquid soap is highly cleansing. Because KOH is usually sold at 90% purity, calculators often add a 10% buffer to the KOH weight to ensure full saponification.

Step-by-Step Usage Guide

  1. Select your Lye: Choose NaOH for hard bars or KOH for liquid/soft soap.
  2. Set Superfat: Most soap makers use 5%. This leaves 5% of the oils unreacted, providing extra moisture.
  3. Input Oil Weights: Enter the weight of each oil in your recipe. Ensure your units (grams or ounces) are consistent.
  4. Adjust Water: A standard water-to-lye ratio is 2:1 or 2.5:1. More water makes the soap pour easier but takes longer to cure.
  5. Review Results: The calculator updates in real-time. Check the "Total Batch Weight" to ensure it fits your mold.

Key Factors in Soap Chemistry

Several variables can affect the outcome of your soap beyond just the weights:

  • Purity: Lye purity matters. Most NaOH is 99% pure, while KOH is often 90% pure.
  • Temperature: Mixing lye and oils at similar temperatures (usually 100-120°F) helps prevent "false trace."
  • Trace: This is the point where the lye and oils have emulsified. It looks like thin pudding.
  • Curing: Cold process soap must cure for 4-6 weeks to allow water to evaporate and the pH to stabilize.

Frequently Asked Questions

Q: Can I swap oils without recalculating?
A: No. Every oil has a different SAP value. Swapping 100g of Olive Oil for 100g of Coconut Oil requires a different amount of lye.

Q: What happens if I use too much lye?
A: The soap will be "lye heavy," brittle, and potentially caustic to the skin. Always use a superfat to provide a safety margin.

Q: Why is my soap soft?
A: You may have used too much water, too high a superfat, or a high percentage of liquid oils (like sunflower or olive).

Q: What is a "Water Discount"?
A: This is using less water than the standard 3:1 ratio. It speeds up unmolding and curing times.

Q: Is NaOH the same as Drain Cleaner?
A: Some drain cleaners are 100% NaOH, but many contain additives. Always use food-grade or technical-grade pure lye for soap.

Q: Can I use vinegar to neutralize lye?
A: While vinegar neutralizes lye, the reaction is exothermic (produces heat). For skin contact, flushing with cool water is the recommended first aid.

Q: How do I store lye?
A: In an airtight, plastic container (HDPE) in a cool, dry place. Lye absorbs moisture from the air rapidly.

Q: What is the difference between NaOH and KOH?
A: Sodium Hydroxide (NaOH) creates hard bar soap. Potassium Hydroxide (KOH) creates liquid soap or very soft paste soap.