Lye Calculator for Soap Making
- Coconut oil has a NaOH saponification value of 0.1910 g per gram of oil.
- Full-saponification lye = 500 g x 0.1910 = 95.50 g of sodium hydroxide (NaOH); applying a 5% superfat discount leaves 90.73 g.
- Water: the standard full-water amount is 38% of the oil weight = 190.00 g; a 33% lye solution instead needs 184.20 g of water.
- Always add lye to water (never water to lye), wear eye protection and gloves, and verify any new recipe with the oil blend's combined SAP - blends use the weighted average of each oil.
A lye calculator answers one question before you melt a single oil: exactly how much sodium hydroxide (NaOH) or potassium hydroxide (KOH) a recipe needs to turn those oils into soap. This page's lye calculator works from saponification (SAP) values — the grams of NaOH that one gram of each oil consumes. The values used here are coconut 0.191, olive 0.135, palm 0.142, castor 0.128, sunflower 0.135, lard 0.141, tallow 0.140, shea butter 0.128, cocoa butter 0.137 and canola 0.124. For KOH, each NaOH value is multiplied by 1.403 to account for the heavier potassium ion and typical KOH purity. The calculator also applies your superfat (lye discount), which is 5% for standard bar soap: that guarantees no free lye remains and leaves a little unsaponified oil for skin feel. For example, 500 g of coconut oil with NaOH at a 5% superfat needs 90.73 g of lye and 190.00 g of water at the standard 38% of oil weight; 1,000 g of olive oil with KOH at 5% superfat needs 179.93 g of KOH.
This method is the accepted standard for lye calculations because it is built on published SAP values for each oil rather than on guesswork, so the result can be checked and reproduced by anyone. Every figure the calculator produces follows from those values plus your chosen superfat, with no hidden adjustments. To make that easy to verify, this page shows the formula used, step-by-step workings, worked examples and the sources behind the SAP values, so you can follow each number from oil weight to final lye and water amounts.
Worked examples
500 g coconut oil, NaOH, 5% superfat
Lye (NaOH) required = 90.73 g. Water at 38% of oil weight: 190.00 g; Water for a 33% lye solution: 184.20 g; Total batch weight (38% water): 780.73 g. (Coconut oil · Sodium hydroxide (NaOH) - bar soap · 500 · 5)
| Lye (NaOH) required | 90.73 g |
| Water at 38% of oil weight | 190.00 g |
| Water for a 33% lye solution | 184.20 g |
| Total batch weight (38% water) | 780.73 g |
1,000 g olive oil liquid soap, KOH, 5% superfat
Lye (KOH) required = 179.93 g. Water at 38% of oil weight: 380.00 g; Water for a 33% lye solution: 365.32 g; Total batch weight (38% water): 1,559.93 g. (Olive oil · Potassium hydroxide (KOH) - liquid soap · 1000 · 5)
| Lye (KOH) required | 179.93 g |
| Water at 38% of oil weight | 380.00 g |
| Water for a 33% lye solution | 365.32 g |
| Total batch weight (38% water) | 1,559.93 g |
750 g palm oil, NaOH, 8% superfat
Lye (NaOH) required = 97.98 g. Water at 38% of oil weight: 285.00 g; Water for a 33% lye solution: 198.93 g; Total batch weight (38% water): 1,132.98 g. (Palm oil · Sodium hydroxide (NaOH) - bar soap · 750 · 8)
| Lye (NaOH) required | 97.98 g |
| Water at 38% of oil weight | 285.00 g |
| Water for a 33% lye solution | 198.93 g |
| Total batch weight (38% water) | 1,132.98 g |
The chemistry in one paragraph
Saponification is the reaction that turns fat into soap. Oils and fats are triglycerides, meaning each molecule is a glycerol backbone carrying three fatty acid chains. When a strong alkali meets a triglyceride, it splits those chains off and combines each one with an alkali ion to form soap, while the glycerol left behind becomes glycerin, a valuable byproduct that stays in the finished bar. The alkali can be sodium hydroxide (NaOH) for solid bar soap or potassium hydroxide (KOH) for liquid soap. Either way, the reaction consumes a fixed amount of alkali per gram of each oil, and that fixed amount is what a lye calculator works out for you.
That fixed amount is the saponification value, or SAP value. It is simply how much alkali each oil consumes to convert completely into soap. Because oils differ in the length and type of their fatty acid chains, their SAP values differ too. Measured in grams of NaOH per gram of oil, coconut oil sits at 0.191, palm at 0.142, lard at 0.141, tallow at 0.140, cocoa butter at 0.137, olive and sunflower at 0.135, castor and shea butter at 0.128, and canola at 0.124. Coconut oil needs far more lye per gram than canola, so a recipe's total lye requirement depends on exactly which oils are in it and in what amounts.
If you use KOH instead of NaOH, the values are not the same. Potassium is a heavier ion than sodium, and commercial KOH is not perfectly pure, so the KOH value is the NaOH value multiplied by 1.403. That single factor accounts for both the heavier potassium ion and typical KOH purity, which is why a lye calculator asks which alkali you are using before it does any math.
Getting the number wrong by even a few percent decides the character of the bar. Too much lye and the extra alkali has nothing left to react with, so it stays in the soap and makes a harsh bar. Too little and unsaponified oil is left behind, giving a soft, greasy bar. The standard fix is a superfat, also called a lye discount, of 5% for bar soap. That means you deliberately use 5% less lye than the SAP values call for. It guarantees no free lye remains and leaves a little unsaponified oil for skin feel. The arithmetic is straightforward: 500 g of coconut oil at a 5% superfat needs 90.73 g of NaOH, along with 190.00 g of water at the standard 38% of oil weight. For liquid soap, 1,000 g of olive oil with KOH at a 5% superfat needs 179.93 g of KOH.
A lye calculator exists to do this bookkeeping across a whole recipe, oil by oil, so you never have to trust a single hand-worked figure. Feed it your oils, your weights, your chosen alkali and your superfat percentage, and it returns the lye and water amounts your batch actually needs.
Reading the SAP table
The SAP table is the heart of any lye calculator. Each value tells you how many grams of sodium hydroxide (NaOH) one gram of a given oil will consume during saponification. Coconut oil sits at 0.191, olive oil at 0.135, palm at 0.142, castor at 0.128, sunflower at 0.135, lard at 0.141, tallow at 0.140, shea butter at 0.128, cocoa butter at 0.137, and canola at 0.124. Read the numbers as a ratio: coconut oil demands roughly 0.191 grams of NaOH for every gram of oil, while olive oil demands only 0.135. That gap is why coconut needs noticeably more lye than olive oil for the same weight of oil.
Why the difference? The SAP value reflects the mix of fatty acids in the oil, and coconut oil is rich in short-chain fatty acids that saponify readily and pull more lye into the reaction. Olive oil's fatty acid profile requires less NaOH per gram. This is also why a recipe heavy in coconut oil can feel harsh if you calculate lye as if every oil were olive oil: you would underestimate the lye the coconut consumes, or overestimate it if you reversed the mistake. The table removes the guesswork by giving each oil its own precise figure.
Real recipes rarely use a single oil, so a lye calculator blends the values. For a mix, it multiplies each oil's SAP value by that oil's share of the total weight and adds the results. That weighted average is the effective SAP value for the batch. If half your oils are coconut (0.191) and half are olive (0.135), the blend's value is the average of those two numbers, not one or the other. Change the proportions and the weighted average shifts, which is exactly why the calculator asks for percentages as well as grams.
The table also gives you the KOH side. Potassium hydroxide values are the NaOH value multiplied by 1.403, accounting for the heavier potassium ion and typical KOH purity. So coconut's 0.191 becomes about 0.268 for KOH, and olive's 0.135 becomes about 0.189. Liquid soap makers use these KOH figures the same way bar soap makers use NaOH figures. Once you know which alkali you are using, the table tells you which column to read.
A final check with real numbers shows how the table feeds the math. Take 500 g of coconut oil, NaOH, and a 5% superfat: the calculator returns 90.73 g of lye and 190.00 g of water at the standard 38% of oil weight. Switch to 1,000 g of olive oil with KOH at 5% superfat and you need 179.93 g of KOH. A 5% superfat is standard for bar soap: it guarantees no free lye remains and leaves a little unsaponified oil for skin feel. Treat the SAP table as your reference, and let the lye calculator do the weighted arithmetic for you.
Superfat, explained honestly
Superfat is the oil you deliberately leave unsaponified. When you set a discount in a lye calculator, you are telling it to use less sodium hydroxide than the exact amount needed to convert every gram of fat into soap. The leftover oil stays as oil — in the finished bar, not in the lye solution. That is the whole chemistry: less lye, more free fat. The calculator takes your oil weights, applies the saponification (SAP) values for each oil, and then reduces the lye by your chosen percentage.
The SAP values behind that math are specific to each oil, in grams of NaOH per gram of oil: coconut 0.191, olive 0.135, palm 0.142, castor 0.128, sunflower 0.135, lard 0.141, tallow 0.140, shea butter 0.128, cocoa butter 0.137, and canola 0.124. For potassium hydroxide, the KOH value is the NaOH value multiplied by 1.403, which accounts for the heavier potassium ion and typical KOH purity. A 5% superfat is standard for bar soap: it guarantees no free lye remains and leaves a little unsaponified oil for skin feel. The guarantee matters more than the skin feel — an exact 0% calculation leaves no margin for measurement error or for an oil whose SAP value varies slightly from batch to batch.
Typical ranges run from 0% to 8%, and the ends of that range are for very different products. A 0% superfat suits laundry soap, where you want maximum cleaning power and no oil to stain fabric or go rancid in storage. A bar meant for the face might sit at 8%. Bar soap generally sits at the 5% standard. Where you land between those poles should follow what the bar is for, not a feeling that more conditioning oil must be better.
More is not always better, for two concrete reasons. First, rancidity: unsaponified oils — especially those high in linoleic acid, like sunflower and canola — oxidize over time, and a high superfat gives them more material to work with. A bar can develop orange spots and an off smell before you finish it. Second, softness: free oil does not crystallize into the firm structure that saponified soap does, so a high-superfat bar stays soft, wears down quickly in the shower, and can feel greasy rather than conditioning. The 5% standard exists because it balances a safety margin against those costs.
To see the arithmetic, 500 g of coconut oil with NaOH at a 5% superfat needs 90.73 g of lye and 190.00 g of water at the standard 38% of oil weight. Switch to potassium hydroxide and 1,000 g of olive oil with KOH at 5% superfat needs 179.93 g of KOH. Same principle in both: the discount is subtracted before you weigh anything.
Water amounts and lye concentration
Water is the second half of every lye calculation, and the amount you choose changes how the batch behaves far more than most beginners expect. The traditional starting point is full water: water equal to 38% of the oil weight. In our worked example, 500 g of coconut oil at a 5% superfat needs 90.73 g of lye and 190.00 g of water at that standard 38% of oil weight. A lye calculator will give you this figure automatically, but it is worth understanding what it means before you pour.
The alternative is to think in terms of lye concentration rather than water as a percentage of oils. A 33% lye solution means the lye is one-third of the combined lye-and-water weight, with the remaining two-thirds being water. Compared with full water, a 33% solution uses less water for the same amount of lye, so the batter starts thicker. This is the practical meaning of a water discount: you are deliberately reducing the water to speed up the batch.
What does that do at the mold? Less water means the batter reaches trace sooner, so you have less working time for swirls or intricate designs. It also runs hotter and tends to gel more readily, which can deepen colors and sometimes cause cracking if the batch overheats. On the plus side, discounted water usually shortens the wait before unmolding, because there is less water to evaporate and the bar firms up faster. Full water at 38% is more forgiving: slower trace, cooler reaction, and a longer, softer cure before the soap releases cleanly from the mold. Neither is wrong; the right choice depends on your recipe, your fragrance, and how much time you want at the bench.
Whatever water amount you pick, the safety rules do not move. Lye is caustic, and the calculator only does the arithmetic, not the protecting.
The superfat setting deserves the same care as the water setting. A superfat (lye discount) of 5% is standard for bar soap: it guarantees no free lye remains and leaves a little unsaponified oil for skin feel. Do not treat a higher superfat as a substitute for accurate measurement, and never reduce the superfat to zero in an attempt to make a "stronger" bar.
- Always add lye to water, never water to lye — the reverse can cause a violent, spattering reaction.
- Wear eye protection and gloves, and work in a well-ventilated space.
- Use dedicated containers and utensils that are never used for food.
- Keep lye and raw batter away from children and pets, and label containers clearly.
- Run every recipe through the lye calculator before you melt a single oil, and double-check the units (grams versus ounces) before you weigh.
FAQs
How much lye for 500 g of coconut oil?
At a 5% superfat, you need 90.73 g of NaOH for 500 g of coconut oil. The math is 500 x 0.191 x 0.95: the oil weight times coconut oil's SAP value, then reduced by the superfat discount. This gives you a little unsaponified oil left in the finished bar.
What is a superfat?
A superfat is a deliberate lye discount, meaning you use less lye than full saponification would require, so a little oil remains unsaponified in the finished soap. It adds margin for safety and leaves the bar gentler. 5% is the standard starting point for most recipes.
How much water should I use?
Full water is 38% of the oil weight, which is 190.00 g for 500 g of oil. A 33% lye solution uses less water and speeds trace, so the batter thickens faster. Choose based on how much working time you want before the soap sets.
Can I use KOH in bar soap?
No. KOH makes soft or liquid soap, while bar soap uses NaOH. KOH amounts are the NaOH SAP value times 1.403, which comes to 179.93 g for 1,000 g of olive oil at 5% superfat. Use the right hydroxide for the soap type you want.
What if I use an oil blend?
Add up each oil's contribution: multiply the weight of each oil by its SAP value, sum those results, then apply the superfat discount. This lets you calculate lye for any combination of oils rather than relying on a single-oil figure.
Is lye dangerous?
Yes, lye is caustic. Always add lye to water, never the reverse. Wear eye protection and gloves. Set aside vinegar myths and rinse skin with plain water if you contact lye. Treat every batch with care and keep lye away from children and pets.