Soap Lye Calculator
This precision lye calculator computes the exact alkali and liquid measurements needed for any batch size. Whether you need a NaOH calculator for soap making (sodium hydroxide) bar batches or a KOH calculator for liquid soap (potassium hydroxide) pastes, dial in your oil weights below for safe, balanced saponification every time.
Understanding Saponification (SAP) Values by Oil Weight
Saponification is the chemical reaction between base triglycerides (vegetable oils, animal fats, plant butters) and a strong alkali solution. Every fat features a distinct fatty acid distribution, meaning each oil needs a specific quantity of alkali molecules to turn into soap and natural glycerin.
The saponification value (SAP value) represents the milligrams of potassium hydroxide (KOH) or sodium hydroxide (NaOH) needed to completely turn one gram of oil into soap. A balanced oil/fat blend matches fast-absorbing oils with hard butters:
- Coconut Oil: High SAP value (0.183 NaOH) — provides quick lather and high cleansing power.
- Olive Oil: Moderate SAP value (0.134 NaOH) — delivers deep conditioning and a smooth, gentle bar.
- Palm Oil: Medium SAP value (0.142 NaOH) — adds long-lasting hardness and stable lather.
- Shea Butter: Lower SAP value (0.128 NaOH) — enriches the bar with silky unsaponifiable fats.
How to Calculate Lye for Soap Making: The Formula
To calculate lye for soap making, multiply each oil weight by its unique SAP value, sum those values, and discount the total by your superfat percentage. This yields the exact dry alkali weight required for complete, safe saponification.
Total Lye Weight = [∑ (Individual Oil Weight × Specific SAP Value)] × (1 - Superfat %)Worked Step-by-Step Example (1,000g Batch, 5% Superfat):
1. Olive Oil: 500g × 0.134 = 67.00g NaOH
2. Coconut Oil: 300g × 0.183 = 54.90g NaOH
3. Shea Butter: 200g × 0.128 = 25.60g NaOH
4. Raw Lye Total = 67.00 + 54.90 + 25.60 = 147.50g NaOH
5. Apply 5% Superfat = 147.50g × (1 - 0.05) = 140.13g NaOH
For a KOH calculator for liquid soap (potassium hydroxide), adjust the theoretical requirement to account for the standard 90% purity of commercial KOH flakes:
Actual KOH Weight = [Theoretical KOH × (1 - Superfat %)] / 0.90Sodium Hydroxide (NaOH) vs. Potassium Hydroxide (KOH)
The alkali you choose defines the physical structure of your soap. Sodium hydroxide (NaOH) creates rigid crystalline structures, making it the standard choice for solid bar soap. Potassium hydroxide (KOH) contains larger potassium molecules that stay loose and highly soluble, making it the go-to base for liquid soap, paste, and cream bases.
Cold Process vs. Hot Process Soap: Both methods follow identical base lye weights. Cold process relies on the natural heat generated during mixing to cure over 4 to 6 weeks. Hot process applies external heat in a slow cooker to complete saponification before molding, letting you unmold and use the soap sooner.
Dual-Lye Formulations: Specialty recipes like shaving soaps blend both alkalis (commonly 60% KOH to 40% NaOH). KOH gives the soap quick-foaming lather, while NaOH adds stability and body to the foam.
Lye Water Calculator for Beginners: Ratios & Superfat
1. Superfat Percentage (Lye Discount): Setting a 5% to 8% superfat leaves a small portion of free oils unreacted. This guarantees your batch will never be lye-heavy if your digital scale is off by a fraction of a gram, while giving the finished soap a gentle, skin-nourishing feel.
2. Water-to-Lye Ratio / Lye Concentration (%): Skip outdated methods that calculate water purely as a flat percentage of oils. A fixed 2:1 water-to-lye ratio (33.3% lye concentration) dissolves the alkali cleanly, prevents soda ash, eliminates glycerin rivers, and speeds up mold release.
3. Safe Mixing Protocol: Always slowly add dry lye crystals into cold distilled water—never pour water onto dry lye, which can cause caustic volcanic eruptions. Work in a well-ventilated space with eye protection and gloves.
Frequently Asked Questions
How do you calculate lye for soap making?
Multiply the weight of each oil by its specific SAP value, sum those values, and multiply by (1 - Superfat percentage). For example, 500g of olive oil with an NaOH SAP of 0.134 at a 5% superfat requires 63.65g of pure sodium hydroxide.
What is the ratio of lye to water for soap?
A standard water-to-lye ratio is 2:1 by weight (two parts water to one part lye), representing a 33.3% lye concentration. Beginners can safely work between 2:1 and 2.5:1 to keep trace manageable without overextending bar cure times.
Is it safe to use a lye calculator for cold process soap?
Yes, using a dedicated soap lye calculator by oil weight is the safest approach to formulation. It removes math mistakes, accounts for individual SAP values across complex oil blends, and factors in a safety superfat buffer to guarantee no active lye remains in the finished bar.
Why do you superfat soap and how much lye do you subtract?
Superfatting leaves a controlled percentage of unreacted oils in the bar for extra skin conditioning and protects against slight measuring discrepancies. Most cold process soap recipes subtract between 5% and 8% of the total lye requirement.
Can you use the same lye calculator for liquid and bar soap?
Yes, as long as your calculator supports both NaOH (for solid bars) and KOH (for liquid soaps). Because potassium has a higher molecular weight and commercial KOH is typically 90% pure, the required weight for liquid soap will be roughly 1.4 to 1.5 times higher than bar soap for the same oil base.
Soap Lye & SAP Calculator
Olive Oil
SAP: 0.135 NaOH | 0.19 KOH
Coconut Oil (76°F)
SAP: 0.183 NaOH | 0.257 KOH
Shea Butter
SAP: 0.128 NaOH | 0.18 KOH
Palm Oil
SAP: 0.142 NaOH | 0.199 KOH
Castor Oil
SAP: 0.128 NaOH | 0.18 KOH
Distilled Water Required
NaOH (Solid Lye)
139.32 g
* Saponification values (SAP) are standardized averages. Always use protective gear when handling lye (NaOH/KOH), verify your specific oil batch values, and measure ingredients precisely by weight rather than volume.
Check out 4 similar collection of Everyday Life calculators