How to Calculate Lye for Soap

Every soap recipe needs the right balance of oils and lye. The oils you choose determine how much lye the recipe needs.

If you use too much lye, the finished soap can become lye-heavy and unsafe to use, while too little lye can leave you with a gloppy mess.

Because the balance matters, this guide will show you how to find the correct amount of lye, check an existing recipe, and recalculate safely whenever you change an oil.

Soapmaking workspace with oils, a scale, mixing bowl, safety goggles, gloves, and finished soap
Before you mix anything, list your oils, weigh them carefully, and prepare a safe workspace.

1. What happens when oils and lye react?

When oils and lye are mixed in the correct amounts, they react together and form soap and glycerin through a process called saponification.

Oils + fatsYour ingredients
NaOH or KOHThe lye
Soap + glycerolAfter the reaction

For example, 100 g of olive oil and 100 g of coconut oil need different amounts of lye, and soapmakers record this difference using SAP values.

2. What is a SAP value?

A SAP value tells you how much lye a particular oil needs, and because every oil has a different value, you must choose the correct one. Use the NaOH value when making firm bar soap and the KOH value when making soft or liquid soap.

Using an illustrative NaOH SAP value of 0.134 for 500 g of olive oil:

Change either number, and the lye amount will update straight away.

Lye needed67.0 g NaOHbefore superfat

In this example, 500 g of olive oil needs about 67 g of NaOH before superfat, although SAP values can differ slightly between trusted sources. You can browse the soapmaking oils library and SAP values to compare the oils available in the calculator, or read more in the guide to soap SAP values.

Once you know how to calculate one oil from its SAP value, you can use the same method for every oil in a larger recipe.

3. Calculating a recipe containing multiple oils

Now that the basic calculation is clear, let's use it in a recipe made with three different oils.

A soapmaker pouring oil into a container on a digital scale
Each oil is weighed and calculated separately because each one has its own SAP value.

Work out each oil separately by multiplying its weight by its SAP value, and then add the three answers together to find the total amount of lye.

Try the calculation

Change any weight or SAP value, and the answer will update instantly.

Olive oil
Lye needed67.0 g
Coconut oil
Lye needed54.9 g
Shea butter
Lye needed25.6 g

Multiply each oil's weight by its SAP value, and then add the three answers together.

1,000 g of oils147.5 g NaOHbefore superfat

Together, the three oils need 147.5 g of NaOH before superfat, so the next step is to reduce that amount according to the superfat you want.

4. Adjusting the lye for superfat

Superfat means using slightly less lye than the oils would need for a complete reaction, which leaves a small amount of oil in the finished soap. Try the control below to see how a 5% superfat changes the lye amount.

Use this much NaOH140.1 g7.4 g less lye

A higher superfat uses less lye, so at 5% you keep 95% of the original 147.5 g.

At 5% superfat, the recipe uses about 140.1 g of NaOH because we reduced the lye by 5% rather than adding 5% more oil. The superfat guide explains the distinction in more detail.

This gives us the adjusted lye amount, but it assumes that the NaOH is completely pure, which is not always true for the product you buy.

5. Accounting for alkali purity

A bag of NaOH or KOH may not be completely pure, so you may need to adjust the amount you weigh. For example, if the recipe needs 140.1 g of pure NaOH but your product is only 98% pure, you will need to weigh a little more.

Amount to weigh143.0 gat 98% purity

However, you should only make this change if your calculator has not already included purity, or you will adjust the amount twice. Since NaOH and KOH also use different SAP values, see the NaOH versus KOH guide.

After checking purity, you have the final amount of lye to weigh, and you can now work out how much water is needed to dissolve it.

6. Calculating the water

After you know the correct lye amount, you can calculate how much water is needed to dissolve it, and the slider below shows how different concentrations change that amount.

Water needed284.5 gwith 140.1 g NaOH

At 33% concentration, 140.1 g of NaOH needs about 284.5 g of water, although this is only an example and may not suit every recipe. Because the best amount also depends on your process and experience, learn more about lye concentration and water ratios.

Now that the full calculation is complete, it helps to look at the common mistakes that can change an otherwise correct answer.

7. Common mistakes

Always recalculate after changing an oil because even an equal-weight substitution can alter the lye amount. For example, replacing 100 g of olive oil with 100 g of coconut oil changes the calculation because the two oils have different SAP values.

  • Confusing grams and ounces.
  • Using KOH SAP values for an NaOH calculation, or the reverse.
  • Applying a purity correction twice.
  • Assuming water changes how much alkali the oils need.

A correct calculation protects the recipe, but careful handling protects you, so the final step before making the batch is preparing a safe workspace.

8. Safety before making a batch

Because NaOH and KOH can cause serious burns to your skin and eyes, always wear safety goggles and chemical-resistant gloves, and work with an accurate scale, lye-safe containers, and plenty of fresh air. You should also keep children and pets well away from the work area.

When preparing the solution, always add the lye slowly to the water because pouring water onto dry lye can cause a dangerous reaction. You should also read your supplier's current safety sheet and the NIOSH safety information for sodium hydroxide and potassium hydroxide and follow the supplier's current safety data sheet.

Set up first.Do not open or measure alkali until the workspace is ready.
Eye protectionChemical-resistant glovesAccurate scaleCompatible containersVentilated workspace

With both the calculation and the safety setup covered, we can bring the complete method together in one simple order.

Key takeaway

The calculation follows a clear order: list every oil and choose its correct SAP value, calculate each oil separately, add the results together, and then reduce the lye for superfat. You should adjust for purity only when necessary, while the water should always be calculated separately.

Once you understand these connected steps, you can spot mistakes more easily and know exactly what a calculator is doing, so when you are ready to check your own recipe, use the free NaOH and KOH soap calculator. Read the story behind the tool in the ButtahBalm FormuMate article.

The short exercise below lets you use that same order yourself and check whether each step has become clear.

Test what you learned

Use the same steps with a new recipe, and if your first answer is not correct, try again until the calculation makes sense.

Your turn

How much NaOH should this recipe use?

Work out each oil and add the answers together, then reduce the total by 5%.

Olive oil600 g · NaOH SAP 0.134
Coconut oil400 g · NaOH SAP 0.183

Choose the final NaOH amount after 5% superfat:

Common questions

How do I calculate lye for soap making?

Multiply the weight of each oil by its NaOH or KOH SAP value. Add the answers, then reduce the total for your chosen superfat. Adjust for purity only if your calculator has not already done it.

What is the formula for calculating lye?

For each oil, multiply its weight by its SAP value. Add the results for all oils, then reduce the total by your superfat percentage.

Why must each oil be calculated separately?

Every oil has a different SAP value, so each oil needs its own calculation. Add the amounts together afterward.

What is a saponification value and why does it matter?

A SAP value tells you how much lye an oil needs. Different oils have different values, so a soap calculator uses them to find the lye needed for your blend.

What superfat percentage should I use for cold process soap?

Many cold process recipes start at 5% superfat, but the right amount depends on the recipe and how the soap will be used. A higher superfat means less lye and more oil left in the finished soap.

What is the difference between NaOH and KOH soap?

NaOH is normally used for solid bar soap. KOH is normally used for liquid or soft soap. They use different SAP values, so choose the value that matches your lye.

Can I measure lye by volume?

No. Weigh lye, oils, and water with an accurate scale. Cups and spoons are not accurate enough for making soap safely.