TikoTools

Soap Lye Calculator (NaOH & KOH)

Calculate how much sodium hydroxide (NaOH) or potassium hydroxide (KOH) and water your soap recipe needs. Add each oil and its weight, set your superfat and water method, and get exact lye, water and batch totals.

Formula checked 23 Oct 2026 Free · no sign-up
Was this calculator helpful?

Found a bug or have a suggestion?

Leave it here and we will fix it and reply to you.

Embed this calculator on your website (free)

Copy this code into your page. It stays free and updates automatically.

How to use the soap lye calculator

  1. Choose NaOH for bar soap or KOH for liquid soap.
  2. Add each oil or fat and its weight. If your supplier gives a SAP value, type it in the “Own SAP” box.
  3. Set the superfat (5% is a safe default for bars) and the lye purity (90% for most KOH).
  4. Choose a water method: lye concentration (30–33% is typical), water:lye ratio, or water as % of oils.
  5. Optionally add fragrance as a % of oils. Weigh everything on a digital scale.

Lye calculation formula

Lye (0% superfat) = Σ (oil weight × NaOH SAP value) NaOH needed = Lye × (1 − superfat %) KOH needed = NaOH needed × 1.4027 ÷ KOH purity Water (at concentration C) = Lye ÷ C − Lye

Worked example

700 g olive oil and 300 g coconut oil at 5% superfat, with a 2:1 water:lye ratio:

  • Olive: 700 × 0.135 = 94.5 g; coconut: 300 × 0.183 = 54.9 g; total 149.4 g
  • 5% superfat: 149.4 × 0.95 = 141.9 g NaOH
  • Water: 141.9 × 2 = 283.9 g
  • Batch weight ≈ 1,000 + 141.9 + 283.9 = 1,426 g

Common NaOH SAP values

OilNaOH SAPOilNaOH SAP
Olive0.135Shea butter0.128
Coconut (76°)0.183Cocoa butter0.137
Palm0.141Sweet almond0.139
Castor0.129Avocado0.138
Lard0.138Beef tallow0.140
Sunflower0.136Babassu0.179

For KOH, multiply the NaOH value by 1.4027 (before allowing for purity).

Making liquid soap with KOH

Liquid soap uses potassium hydroxide, which makes a soft paste instead of a hard bar. Most liquid soap makers use a 0–3% superfat (extra oil can make diluted soap cloudy) and enter the KOH purity from the label, usually 90%. The paste is then diluted with water to the thickness you like. Because KOH is heavier per mole than NaOH, a liquid soap recipe needs about 1.4 times more lye by weight than the same oils made into bar soap.

Lye safety

Sodium and potassium hydroxide are caustic. Wear splash goggles, gloves and long sleeves. Always add lye to water — never water to lye — in a heat-proof container, in a ventilated space, away from children and pets. Keep vinegar away from skin burns; rinse with plenty of cool water and seek medical help for eye contact.

Tips for better soap

  • Balance hard and soft oils. Coconut, palm and butters make a hard, bubbly bar; olive and liquid oils make it gentle. Many recipes keep coconut at 15–30% of oils.
  • Castor oil at 5–10% boosts lather; more makes bars sticky.
  • Cure bars for 4–6 weeks so water evaporates and the bar becomes milder and harder.
  • Test pH with strips after curing if you want reassurance; a well-made bar is typically pH 9–10.

Frequently asked questions

How do you calculate lye for soap?

Multiply the weight of each oil by its saponification (SAP) value for NaOH, add them up, then reduce by your superfat. For 500 g of olive oil: 500 × 0.135 = 67.5 g NaOH, and with a 5% superfat 67.5 × 0.95 = 64.1 g.

What is superfat?

Superfat is the percentage of oils left unsaponified (not turned into soap). It makes bars milder and gives a safety margin for weighing errors and SAP variation. 5% is a common default for bar soap; liquid soap is usually made at 0–3%.

How much water do I use?

A lye concentration of 30–33% is a reliable starting point for cold process soap. At 33%, water = lye ÷ 0.33 − lye, about 2 parts water to 1 part lye. Less water speeds up trace and unmolding; more water slows it down.

What is the difference between NaOH and KOH?

Sodium hydroxide (NaOH) makes hard bar soap. Potassium hydroxide (KOH) makes soft or liquid soap. KOH has a higher molecular weight, so you need about 1.4 times as much by weight, and most KOH flakes are only about 90% pure.

Where do the SAP values come from?

They are averages from published soap-making references (From Nature With Love’s chart and SoapCalc). Real oils vary by a few percent. If your supplier lists a SAP value, enter it in the “Own SAP” box for that oil.

Is it safe to rely on one lye calculator?

Double-check every new recipe with a second calculator. Weigh lye, water and oils on a digital scale, never by volume. Wear goggles and gloves, add lye to water (never water to lye) and work in a ventilated area.

How we checked this calculator

We test this tool against worked examples before every release (last check: 23 Oct 2026, version 1.0.0). Results are estimates for planning — confirm critical figures with your supplier or a qualified professional.

References: