Lye calculator for cold process soap

This lye calculator works out how much sodium hydroxide (NaOH) or potassium hydroxide (KOH) and water your soap recipe needs. For 700 g olive oil and 300 g coconut oil with 5 % superfat you need 142.2 g NaOH and 288.7 g water at a 33 % lye solution. The saponification values come from the Codex Alimentarius standards for edible oils and fats.

Source: Codex Alimentarius – CODEX STAN 210-1999 Standard for Named Vegetable Oils, amended 2015, Table 2: saponification value (read 09.10.2026). Updated: .

mg KOH/g
From the supplier’s data sheet
%
Share of oil left unsaponified
%
From the label; KOH is often sold below 100 %
%
Lye ÷ (lye + water); 33 % is a common starting value
My ToolboxYour inputs are saved in this browser only.

Result

Lye and water
142.2 g NaOH + 288.7 g water
Recipe
OilAmountSAP (mg KOH/g)NaOH
olive oil (virgin)700 g184–19690.1 g
coconut oil300 g248–26552.1 g
Total1,000 g142.2 g
Water288.7 g
With the lowest and highest Codex SAP values the NaOH would be 137.6–146.8 g. Estimate from average saponification values – check your recipe with a second lye calculator before you start. Lye is caustic: wear goggles and gloves and always add lye to water, never water to lye.

How it is calculated

Lye = oil × SAP value × (1 − superfat). The saponification (SAP) value says how many milligrams of potassium hydroxide one gram of oil binds. For sodium hydroxide multiply by 39.997 ÷ 56.106 = 0.7129 – the ratio of the molar masses of NaOH and KOH.

SAP values of common oils

Oil or fatSAP value (Codex range)NaOH per 100 g oil (mid value)
Olive oil (virgin)184–196 mg KOH/g13.54 g
Coconut oil248–265 mg KOH/g18.29 g
Palm oil190–209 mg KOH/g14.22 g
Sunflower oil188–194 mg KOH/g13.62 g
Lard192–203 mg KOH/g14.08 g
Tallow190–202 mg KOH/g13.97 g

The ranges are from Codex Alimentarius: CXS 210-1999 for named vegetable oils, the Codex olive oil standard and CXS 211-1999 for lard and tallow. Natural oils vary, so the calculator uses the middle of each range and shows the lye amount for the lowest and highest values. A superfat of a few percent leaves some oil free – it covers that variation and makes the soap milder.

Examples

To scale a recipe up or down, the proportion calculator helps; the mass percent calculator shows the strength of a solution.

Safety and limits

Sodium and potassium hydroxide burn skin and eyes. Wear goggles and gloves, work in a ventilated room, pour the lye slowly into cold water and keep children and pets away. The SAP values describe food-grade oils; fragrance oils, additives and oils not listed (such as castor or shea butter) need the value from your supplier. Use the result as an estimate and check it before you make soap.

Frequently asked questions

How do I calculate lye for soap?

Multiply each oil by its SAP value, add them up, convert to NaOH with 0.7129 and subtract the superfat. 1000 g olive oil with 5 % superfat needs 128.7 g NaOH.

What is the SAP value of olive oil?

Codex gives 184–196 mg KOH per gram for virgin olive oil; the middle value 190 equals 0.1354 g NaOH per gram of oil.

How much water do I use with lye?

With a 33 % lye solution, water = lye × 67 ÷ 33 – about twice the lye. 142.2 g NaOH takes 288.7 g water.

What superfat should I use?

Follow your recipe; the calculator starts at 5 %. A superfat leaves part of the oil free and also covers the natural spread of the SAP values.

NaOH or KOH?

Sodium hydroxide makes hard bar soap, potassium hydroxide soft or liquid soap. KOH needs about 1.4 times as much as NaOH by weight.

Why does the calculator show a range?

Codex lists each oil as a range. With the lowest and highest values, 700 g olive and 300 g coconut oil need 137.6–146.8 g NaOH.

Sources and legal basis

As of: · Editorial policy

Related tools