Crafts, Textiles, 3D Printing & Photography Resin, Candles, Soap & Ceramics Published saponification values (SAP), AOCS Cd 3-25 method

Soap Lye & Saponification Calculator

Enter the oils in your recipe by weight and this calculator returns the exact mass of sodium hydroxide (for bar soap) or potassium hydroxide (for liquid soap) needed to saponify them, the water to dissolve that lye at your chosen solution strength, and the finished batch weight. It applies your superfat as a lye discount, converts NaOH to KOH at the 1.403 molar-mass ratio and corrects for flake KOH purity, and reports the effective superfat if you override the lye amount. Every oil carries its published saponification value, so the arithmetic matches what a soap-making reference table would give you by hand.

Calculator

This calculator runs in your browser. Enable JavaScript for live results — the inputs, formula and worked example below remain fully readable without it.

Inputs this calculator takes, with typical values
InputWhat to enterExample
Oil 1Pick the oil; its published saponification value is applied automatically.Olive oil
Oil 1 weightWeigh oils on a scale — never measure soap oils by volume.600 g
Oil 2Set to (none) if your recipe uses fewer oils.Coconut oil (76 deg)
Oil 2 weightLeave at zero if oil 2 is unused.250 g
Oil 3Butters and specialty oils usually sit here at 5-20% of the oil weight.Shea butter
Oil 3 weightLeave at zero if oil 3 is unused.150 g
Oil 4A fourth slot for castor or another small-percentage oil.(none)
Oil 4 weightLeave at zero if oil 4 is unused.0 g
Lye typeNaOH makes hard bars; KOH makes soft paste and liquid soap.Sodium hydroxide (NaOH) - bar soap
Superfat (lye discount)The share of oils left unsaponified; 5% is the usual cold-process default.5 %
Lye solution concentrationLye as a percent of the lye-plus-water solution; 33% is the common full-water default.33 %
KOH purityFlake KOH is usually sold at 90%; read the assay on your supplier's label.90 %
Fragrance or essential oilPercent of the oil weight; fragrance is added after trace and is not saponified.3 %
Override lye weightEnter a lye weight from an existing recipe to see what superfat it really gives; leave at 0 to calculate it.0 g

It returns

  • Lye required — Weigh this to 0.1 g or better on a digital scale.
  • Water
  • Lye solution total
  • Effective superfat
  • Fragrance / essential oil
  • Water : lye ratio
  • Finished batch weight

The formula

mlye=(imiSAPi)(1s)
mKOH=mNaOH1.403p
mwater=mlye(100C1)

In plain text: NaOH = Σ(mᵢ · SAPᵢ) · (1 − superfat); water = NaOH · (100/C − 1)

  • m_lyeMass of sodium hydroxide required (g)
  • m_iMass of oil i in the recipe (g)
  • SAP_iSaponification value of oil i, as grams of NaOH per gram of oil (g/g)
  • sSuperfat expressed as a decimal fraction (decimal)
  • CLye concentration: lye as a percent of the finished solution (%)

Published SAP values are averages for a commodity oil; a specific lot can vary by a few percent, which is one reason a superfat margin exists.

Updated Category Resin, Candles, Soap & Ceramics Verified against published test cases Reading time 12 min

What saponification actually is, and why the lye number is not negotiable

Soap is the salt of a fatty acid. When you mix a triglyceride with a strong hydroxide, the ester bonds break and each fatty acid chain pairs with a sodium or potassium ion, releasing glycerol. Sodium hydroxide gives a hard, water-tolerant salt that you can cut into bars. Potassium hydroxide gives a much softer, far more soluble salt, which is why liquid and paste soaps are made with KOH.

Every oil demands a different amount of hydroxide because every oil is a different mixture of fatty acids with different chain lengths. Coconut oil is dominated by short lauric and myristic chains, so a gram of it contains more ester bonds than a gram of long-chain olive oil, and needs about 41% more sodium hydroxide. That per-gram demand is the saponification value, and it is measured in a laboratory by the standard AOCS titration method (Cd 3-25), which reports milligrams of KOH consumed per gram of fat. Divide that published figure by 1,403 and you have the grams of NaOH per gram of oil that this calculator uses.

You cannot round the lye figure. Too little hydroxide leaves the batch oily and soft; too much leaves free caustic in the finished bar, which will burn skin. The whole method exists to keep you on the safe side of that line with a deliberate margin.

The formula, term by term

You calculate the lye demand oil by oil, then discount it. For each oil, multiply its weight by its SAP value in grams of NaOH per gram of oil, and add the results. That sum is the lye needed to convert every last ester bond in the pot — a zero-superfat recipe.

Superfat is the deliberate shortfall. A 5% superfat means you supply only 95% of the theoretical lye, so roughly 5% of the oil weight survives unsaponified and stays in the bar as free oil. Soapmakers also call this a lye discount, and the two terms mean the same arithmetic from opposite ends. It exists for three reasons: published SAP values are lot averages rather than measurements of your specific bottle, scales have tolerance, and a small oil surplus improves the feel of the bar.

Lye concentration sets the water. A 33% solution means the lye is 33% of the combined lye-plus-water weight, so the water is the other 67%. That gives water = lye × (100/33 − 1) = lye × 2.030. Older recipes state the same thing as a water-to-lye ratio — a 2:1 ratio is a 33.3% solution — or as a percentage of oil weight, which is the least reliable of the three because it ignores how much lye the oils actually demand.

KOH conversion. Potassium's molar mass is 39.10 g/mol against sodium's 22.99, so KOH (56.11 g/mol) is 1.403 times heavier than NaOH (39.997 g/mol) for the same number of hydroxide ions. Multiply the NaOH figure by 1.403. Then divide by the purity, because flake KOH is typically sold at an assay of 90%: to deliver 100 g of active KOH from a 90% flake you must weigh 111.1 g.

Worked example: a 1,000 g three-oil bar recipe

Take 600 g olive oil, 250 g coconut oil and 150 g shea butter, at 5% superfat, a 33% lye solution and 3% fragrance.

  1. Lye demand per oil. Olive: 600 × 0.1345 = 80.70 g NaOH. Coconut: 250 × 0.1900 = 47.50 g. Shea: 150 × 0.1280 = 19.20 g.
  2. Sum. 80.70 + 47.50 + 19.20 = 147.40 g of NaOH at zero superfat.
  3. Apply the 5% superfat. 147.40 × 0.95 = 140.03 g NaOH. That is what you weigh.
  4. Water for a 33% solution. 140.03 × (100/33 − 1) = 140.03 × 2.0303 = 284.30 g water. The solution weighs 424.33 g and is 33% lye by weight.
  5. Fragrance. 3% of the 1,000 g oil weight = 30 g, stirred in at light trace.
  6. Batch weight. 1,000 + 140.03 + 284.30 + 30 = 1,454.3 g of raw soap into the mould, before any water evaporates during cure.

Run the same recipe as liquid soap and step 3 becomes 147.40 × 1.403 ÷ 0.90 = 229.8 g of 90% KOH flake at zero superfat. Liquid soapmakers usually run 0-3% superfat, because free oil clouds a finished liquid soap.

How to read the numbers you get back

Superfat. Cold-process bars are almost always made at 5%, with 1-2% for laundry and salt-free castile bars that want maximum hardness and 8% for facial bars. Above about 12% the surplus oil starts to soften the bar and shorten shelf life, because the free oil is the part that oxidises and produces the orange rancidity spots soapmakers call dreaded orange spots. Below zero the recipe is lye-heavy and should not be used at all.

Water. The water only carries the lye; none of it stays in the finished bar. A 33% solution is the safe default. Experienced makers run a water discount at 35-40% solution to firm the bar up faster and cut cure time, but a stronger solution reaches a higher temperature when mixed and accelerates trace, which leaves less working time for swirls. Below 25% solution the extra water lengthens the cure and the bar shrinks noticeably in the mould.

Batch weight. Use it to size your mould. Cold-process soap has a density near 0.9 g/cm³ once poured, so a 1,454 g batch fills roughly 1,600 cm³ — near enough a standard 10-inch silicone loaf mould. Expect the cured bars to weigh 10-15% less than the poured batch as water leaves over four to six weeks.

If you are costing bars for sale, feed the finished batch weight and your oil prices into the cost per unit calculator and check your listing fees with the Etsy fee calculator before you set a price.

Saponification values for common soaping oils

Grams of hydroxide per gram of oil. The KOH column is the NaOH column × 1.403 and assumes 100% pure KOH; divide by your flake assay (usually 0.90) to get the weight to put on the scale.
Oil or fatNaOH (g/g)KOH, 100% (g/g)Typical role in a recipe
Coconut oil, 76 deg0.19000.2666Hardness and lather, 15-30%
Palm kernel oil0.15600.2189Coconut substitute, 15-25%
Palm oil0.14100.1978Hardness, 20-35%
Beef tallow0.14050.1971Traditional hardness, 20-50%
Lard0.13800.1936Creamy bar, 20-50%
Cocoa butter0.13700.1922Brittle hardness, 5-15%
Mango butter0.13700.1922Conditioning butter, 5-15%
Sweet almond oil0.13600.1908Conditioning, 5-15%
Olive oil0.13450.1887Base oil, up to 100%
Sunflower oil0.13400.1880Base oil, up to 20%
Avocado oil0.13300.1866Conditioning, 5-20%
Canola oil0.13240.1858Economy base oil, up to 25%
Castor oil0.12860.1804Lather booster, 3-8%
Shea butter0.12800.1796Conditioning butter, 5-20%
Rice bran oil0.12800.1796Olive substitute, up to 30%
Jojoba0.06900.0968Wax ester, 1-5%

These are the mid-range published averages used across soapmaking references. A specific lot can differ by a few percent, which is exactly what your superfat margin absorbs.

Handling hydroxide safely

Solid NaOH and KOH are corrosive solids that cause deep, painful burns and permanent eye injury. Wear splash goggles and nitrile gloves every time. Always add the lye to the water, never water to the lye — the reaction is strongly exothermic and a solution flashing to boiling in a jug throws caustic droplets. Mix in a heat-tolerant HDPE or stainless vessel, never aluminium, which reacts with hydroxide and releases hydrogen. Work where the vapour can escape, and keep the batch away from children and pets until it is fully saponified.

Mistakes that ruin a batch

  • Measuring oils by volume. A cup of coconut oil and a cup of olive oil have different masses and very different lye demands. Everything in soapmaking is weighed.
  • Using a NaOH figure for KOH. Missing the 1.403 factor underdoses the lye by 29% and leaves you with an oily sludge that never traces.
  • Forgetting the KOH assay. Weighing 90% flake as if it were pure underdoses the active hydroxide by 10%, which is a hidden extra superfat on top of the one you chose.
  • Counting fragrance, additives or lye water in the oil weight. Superfat and fragrance percentages are both taken on the oil weight alone. Sodium lactate, clays and colourants do not saponify and do not change the lye figure.
  • Substituting an oil without recalculating. Swapping shea for coconut at the same weight raises the lye demand by 48% for that portion of the recipe, which turns a 5% superfat into a lye-heavy bar.
  • Trusting an old recipe's lye weight. Enter it in the override field and read the effective superfat before you use it; recipes copied between sites frequently carry the wrong figure.

Where this fits: cold process, hot process, liquid and dual lye

The lye arithmetic is identical for cold and hot process. The difference is only in how the reaction is driven: cold process relies on the heat of the reaction itself and a four-to-six week cure, while hot process cooks the batch until saponification finishes in the pot, so the soap is technically usable the next day but still benefits from a cure for hardness. Neither changes the amount of hydroxide the oils demand.

Liquid soap uses KOH and normally a 0% superfat, then a dilution step afterwards: the cooked paste is thinned with distilled water at roughly one part paste to one part water, adjusted to taste. Because dilution comes later, this calculator's water figure covers only the water needed to dissolve the lye for the cook.

Some makers use a dual lye blend — say 90% NaOH and 10% KOH — to get a slightly softer, more soluble bar with better lather. Calculate each hydroxide separately at its share of the total demand and add them. Cream soaps and shaving soaps push that further, running KOH shares of 30-60%.

Two things this calculator deliberately does not do. It does not check whether your oil blend makes a good bar — the fatty-acid profile that controls hardness, lather and conditioning is a separate question from lye demand, and a 100% coconut bar at 5% superfat is perfectly saponified and still harsh on skin. And it does not compute lye for melt-and-pour bases, which are already saponified; you add nothing caustic to those at all. If you are working with other studio chemistry, the pH calculator is a useful companion when you test a cured bar, and the salt percentage calculator covers brine soaps where a saturated salt solution replaces part of the water.

Key terms

SAP value
The saponification value of a fat: the mass of hydroxide needed to saponify one unit mass of it. Laboratories publish it as mg KOH per g of fat; soapmakers usually use the g NaOH per g form, which is the published figure divided by 1,403.
Superfat
The percentage of oils left deliberately unsaponified by supplying less lye than the theoretical demand. Also called a lye discount.
Lye concentration
Lye as a percentage of the lye-plus-water solution by weight. A 33% solution is the common default; 40% is a water discount.
Trace
The point at which the emulsion thickens enough that a drizzle from the stick blender leaves a visible trail on the surface. It marks the end of the mixing window.
Zap test
Touching a cured bar to the tongue. A sharp electric sting means free hydroxide remains and the bar is lye-heavy. A safe bar tastes only of soap.

Frequently asked questions

What superfat should I use for cold process soap?

Use 5% unless you have a reason not to. That margin absorbs the natural variation in published SAP values, small scale errors and any moisture in your oils, while leaving the bar firm and long-lived. Drop to 1-3% for laundry bars, salt bars and 100% olive castile, where you want maximum hardness. Go up to 8% for facial and shaving bars. Above 12% the free oil softens the bar and shortens its shelf life.

Why is the KOH amount so much bigger than the NaOH amount?

Because potassium is a heavier atom. KOH has a molar mass of 56.11 g/mol against NaOH's 39.997, so delivering the same number of hydroxide ions takes 1.403 times the mass. On top of that, flake KOH is normally sold at 90% assay rather than pure, so the weight on your scale is another 11% higher again. A recipe needing 100 g of NaOH needs about 156 g of 90% KOH flake.

Can I use tap water for the lye solution?

Use distilled water. Tap water carries calcium and magnesium ions that react with soap to form insoluble scum, and iron traces that accelerate rancidity and can create orange spots in the cured bar. Distilled water costs very little relative to a batch of oils and removes an entire class of unexplained failures. Milk, beer, tea and aloe juice can all replace water, but they add sugars that heat the batch and can scorch.

What does lye concentration change in practice?

It changes working time and cure time, not the chemistry. A stronger solution — 38-40% lye — carries less water, so the batch traces faster, firms up sooner, unmoulds earlier and loses less weight during cure. A weaker solution near 28% gives you a longer, calmer window for swirls and layered pours but a softer bar for longer. The finished soap is the same either way once the water has gone.

How do I know if my finished soap is lye-heavy?

Do the zap test after a week: touch a dry finger to the bar, then to your tongue. A distinct electric sting means free hydroxide is present. A pH strip reading is a weaker signal, since all true soap is alkaline — a good cured bar reads roughly pH 9-10, and a reading of 11 or above suggests a problem. If a bar zaps, either rebatch it with more oil or discard it; do not sell or gift it.

Do fragrance oils, clays and sodium lactate change the lye amount?

No. None of them saponify, so none of them consume hydroxide. Add fragrance at 3-5% of the oil weight, clay at about a teaspoon per 500 g of oils, and sodium lactate at 1-3% of the oil weight, all after the lye figure is settled. The one common additive that does change the calculation is any extra fat you add at trace for a targeted superfat, which is oil and belongs in the oil column.

My recipe lists water as a percentage of oils. How do I convert it?

Calculate the lye first, then divide it by the water weight that percentage gives to find the real concentration. If a 1,000 g recipe calls for 38% water — 380 g — and needs 140 g of lye, the solution is 140 ÷ (140 + 380) = 26.9% lye. Water as a percentage of oils is the least reliable convention because it ignores how much lye the specific oil blend actually demands; concentration is the number to record.

Can I substitute one oil for another at the same weight?

Only after recalculating. SAP values across common soaping oils range from 0.069 to 0.190 g NaOH per gram, a factor of nearly three. Swapping 150 g of shea butter (0.1280) for coconut oil (0.1900) raises that portion's lye demand from 19.2 g to 28.5 g. If you keep the old lye weight the effective superfat rises sharply; if you keep the same oil quantities but change the type, always rerun the numbers.

Why does the batch weigh less after curing?

Because the water evaporates. None of the water you added stays in the finished soap chemically — it exists only to dissolve the lye and let the reaction proceed evenly. A cold-process bar typically loses 10-15% of its poured weight over four to six weeks at a 33% solution, and less than that at a 40% solution because there was less water to begin with. Weigh bars after cure when you set a sale weight.

References

  • Official Methods and Recommended Practices, Method Cd 3-25 (Saponification Value of Fats and Oils) — AOCS Press (American Oil Chemists' Society)
  • Bailey's Industrial Oil and Fat Products, 6th ed. — Wiley-Interscience
  • Soap Manufacturing Technology, 2nd ed. — AOCS Press
  • Sodium hydroxide and potassium hydroxide safety data (corrosivity, exothermic dissolution) — U.S. National Institute for Occupational Safety and Health (NIOSH) Pocket Guide to Chemical Hazards