Soap Lye Calculator (NaOH & KOH)
Calculate the lye and water for cold process bar soap (NaOH) or liquid soap (KOH) from your oils, superfat and water setting.
Safety first: lye burns skin and eyes.
- Wear splash-proof goggles, chemical-resistant gloves and long sleeves.
- Always add lye to water, never water to lye. Stir until it dissolves; the solution gets very hot.
- Mix in a well-ventilated place and don’t breathe the fumes.
- Keep children and pets out of the room. Store lye sealed, labeled and out of reach.
- Use stainless steel or polypropylene (#5 PP) containers, never aluminum.
- If lye touches skin or eyes, flush with running water right away. For eyes, keep rinsing and get medical help.
- Double-check the result in a second lye calculator before you make soap, and weigh everything on a digital scale.
What to weigh out
| oz | g | |
|---|---|---|
| Sodium hydroxide (NaOH) | ||
| Water | ||
| Oils | ||
| Total batch |
Per oil
| Oil % of oils | Weight | Lye |
|---|
Before you make soap, enter the same recipe in a second lye calculator, such as SoapCalc, and compare. Differences of 1–3% are normal because calculators use slightly different SAP values; a bigger gap usually means something was entered wrong.
How this calculator works
Each oil needs a fixed amount of lye to turn completely into soap. That amount is its saponification (SAP) value: grams of lye per gram of oil. The calculator multiplies each oil’s weight by its SAP value, adds them up, takes off the superfat and adjusts for lye purity. Then it works out the water from the method you chose.
water, % of oils: water = total oils × water %
water, concentration c: water = lye × (1 − c) ÷ c
water, ratio r : 1: water = lye × r
batch = oils + lye + water
SAP values are published as milligrams of potassium hydroxide per gram of oil. For sodium hydroxide they are multiplied by 39.997 ÷ 56.106 (about 0.713), the ratio of the two molar masses. The value used for each oil is the median of three soapmaking charts (SoapCalc, From Nature With Love and Certified Lye), checked against the Codex Alimentarius range where one exists. Values outside the Codex range were left out. The water is based on the weighed lye, as in SoapCalc, and the three water methods are equivalent: a 33% lye concentration is about a 2:1 water-to-lye ratio.
Worked example
A 2 lb bar soap recipe: 15 oz olive oil, 9 oz coconut oil (76°), 6 oz shea butter and 2 oz castor oil, with a 5% superfat, 100% sodium hydroxide and water at 38% of the oils.
Before the superfat the oils need 4.7076 oz of lye (15 × 0.1354 + 9 × 0.1832 + 6 × 0.1283 + 2 × 0.1290). Taking off 5% gives 4.47 oz (126.8 g) of sodium hydroxide. The water is 32 oz × 0.38 = 12.16 oz (344.7 g), which makes a 26.9% lye solution. The whole batch weighs 48.63 oz (1,378.7 g).
SAP values used (31 oils, grams of lye per gram of oil)
| Oil | NaOH | KOH |
|---|---|---|
| Apricot kernel oil | 0.1383 | 0.194 |
| Argan oil | 0.1354 | 0.190 |
| Avocado oil | 0.1326 | 0.186 |
| Babassu oil | 0.1754 | 0.246 |
| Beef tallow | 0.1426 | 0.200 |
| Beeswax | 0.0670 | 0.094 |
| Canola oil | 0.1326 | 0.186 |
| Castor oil | 0.1290 | 0.181 |
| Cocoa butter | 0.1383 | 0.194 |
| Coconut oil, 76° or 92° | 0.1832 | 0.257 |
| Corn oil | 0.1369 | 0.192 |
| Grapeseed oil | 0.1326 | 0.186 |
| Hemp seed oil | 0.1376 | 0.193 |
| Jojoba oil | 0.0656 | 0.092 |
| Lard (pork fat) | 0.1404 | 0.197 |
| Macadamia nut oil | 0.1390 | 0.195 |
| Mango butter | 0.1362 | 0.191 |
| Neem oil | 0.1376 | 0.193 |
| Olive oil | 0.1354 | 0.190 |
| Palm kernel oil | 0.1761 | 0.247 |
| Palm oil | 0.1419 | 0.199 |
| Peanut oil | 0.1369 | 0.192 |
| Rice bran oil | 0.1333 | 0.187 |
| Safflower oil (high linoleic) | 0.1369 | 0.192 |
| Safflower oil, high oleic | 0.1369 | 0.192 |
| Sesame oil | 0.1340 | 0.188 |
| Shea butter | 0.1283 | 0.180 |
| Soybean oil | 0.1362 | 0.191 |
| Sunflower oil (regular) | 0.1362 | 0.191 |
| Sunflower oil, high oleic | 0.1347 | 0.189 |
| Sweet almond oil | 0.1390 | 0.195 |
This calculator gives lye and water for the oils only. Fragrance, colorants and additives such as milk, sugar or salt are not included. Weigh lye and oils on a scale; never measure them by volume.
FAQ
What superfat should I use?
About 5% is the usual starting point for bar soap. SoapCalc recommends at least 5% because SAP values are averages and real oils vary from batch to batch. A higher superfat (8–10%) gives a softer, more conditioning bar. This calculator accepts 0–20% and warns below 3%, where there is little margin for weighing or SAP errors.
Why does another lye calculator give a slightly different answer?
Calculators use slightly different SAP values for the same oil, because oils vary with the crop, climate and processing. Differences of 1–3% are normal and are covered by the superfat. If two calculators disagree by more than about 5%, recheck the oils, weights, units and lye type you entered.
What lye purity should I enter?
Use the purity on your lye’s label or the supplier’s data sheet. The calculator starts at 100% for sodium hydroxide, as SoapCalc does, and at 90% for potassium hydroxide, because most KOH sold for soapmaking is about 90% pure. A lower purity means more lye to weigh out.
Which water setting should I use?
All three set the same thing: how strong the lye solution is. Water at 38% of the oil weight is SoapCalc’s beginner-friendly default; experienced soapers often use about 32–33%. A 33% lye concentration is about the same as a 2:1 water-to-lye ratio. Avoid solutions stronger than 40% lye, where saponification may not complete and the batter can overheat.
Can I swap one oil for another in a recipe?
Not without recalculating. Every oil needs a different amount of lye: coconut oil needs about a third more than olive oil. A swap changes how much lye the recipe needs, so run the new recipe through a lye calculator before you make it.
How do I use this for liquid soap?
Choose potassium hydroxide (KOH). Liquid soap is usually cooked as a thick paste that is diluted later, and it is usually made with more water than bar soap, for example a 3:1 water-to-lye ratio. The calculator covers the paste; follow your recipe for diluting it.
Sources
- SoapCalc – Soap calculator and oil database
- SoapCalc – How to use the calculator (water methods, 90% KOH, 40% lye concentration caution)
- From Nature With Love – Saponification chart
- Certified Lye – Chart of saponification values for making soap
- FAO/WHO Codex Alimentarius – Standards for named vegetable oils (CXS 210) and olive oil (CXS 33), saponification ranges
- FAO/WHO Codex Alimentarius – Standard for named animal fats (CXS 211): lard and tallow
- Soap Queen (Bramble Berry) – Simple & Gentle Cold Process Soap (recipe used to check results)
- Gentle Living Shop – Liquid soap tutorial (KOH formula with purity and superfat)
- CDC/NIOSH Pocket Guide – Sodium hydroxide (hazards and first aid)