A lye calculator answers one question: how much sodium hydroxide turns this weight of these oils into soap? Every oil needs a different amount, and the number that says how much is its saponification value. Multiply each oil's weight by its value, add them up, and that's the lye for complete saponification. Then take a little off, the superfat, so the bar is never lye-heavy. Online calculators do this in a second and you should use one. The reason to understand the sum, and to have it in a sheet of your own, is that soap is a product where a typing mistake gives you either forty greasy bars or forty that burn. A second calculation that agrees with the first is the cheapest check there is. Below is the sum, a three-oil batch worked through, the safety that goes with it, and the file.
The short version
- Each oil has a saponification value: the potassium hydroxide, in milligrams, that saponifies a gram of it.
- For bar soap made with sodium hydroxide, divide that value by 1.403.
- Lye for each oil = its weight × its value ÷ 1.403 ÷ 1,000. Add the oils up.
- Take off a superfat, commonly around 5%, so some oil is left unreacted.
- Water is a ratio to the lye, set by your method.
- Use the value from your own supplier's sheet. Published figures are ranges.
- TaroStack scales a recipe to a batch and records the lots each batch used. More below.
The sum
Saponification value is defined as the number of milligrams of potassium hydroxide (KOH) needed to saponify one gram of a fat. Bar soap is made with sodium hydroxide (NaOH), which is a lighter molecule, so less of it is needed: divide the KOH value by 1.403, the ratio of the two molecular weights.
NaOH for one gram of oil = saponification value ÷ 1.403 ÷ 1,000.
Published values are ranges, because oils are natural products. From the table read for this page:
| Oil or fat | Saponification value, mg KOH per g |
|---|---|
| Olive oil | 184 to 196 |
| Coconut oil | 248 to 265 |
| Palm oil | 190 to 209 |
| Palm kernel oil | 230 to 254 |
| Shea butter | 170 to 190 |
| Sunflower oil | 189 to 195 |
| Lard | 192 to 203 |
| Cocoa butter | 192 to 200 |
Coconut oil needs about a third more lye than olive oil for the same weight. Swap one for the other without recalculating and the batch is wrong.
A batch
A kilogram of oils. The values used are from the middle of the ranges above, to show the sum. For a real batch, use the figure on each oil's specification sheet from your supplier.
| Oil or fat | Weight, g | Saponification value, mg KOH per g | Sodium hydroxide per g of oil | Sodium hydroxide to turn all of it to soap, g |
|---|---|---|---|---|
| Olive oil | 500 | 190 | 0.1354 | 67.71 |
| Coconut oil | 300 | 257 | 0.1832 | 54.95 |
| Palm oil | 200 | 200 | 0.1426 | 28.51 |
| Amount | |
|---|---|
| Oils in all | 1,000 g |
| Sodium hydroxide to turn all the oil to soap | 151.18 g |
| Superfat | 5% |
| Sodium hydroxide to use | 143.62 g |
| Water to lye, by weight | 2 to 1 |
| Water | 287.23 g |
| Batch weight before cure | 1,430.85 g |
151.18 g would saponify every gram of oil. Nobody aims for that. At a 5% superfat the batch uses 143.62 g, leaving about 5% of the oil unreacted. That margin is what protects against a scale that reads a little light or an oil at the high end of its range.
The range matters. Take the coconut oil. At 248 it needs 53.03 g for 300 g of oil. At 265 it needs 56.66 g. That's a spread of 3.6 g on one oil in a one-kilogram batch, which is about half of the whole superfat. It's why the midpoint of a published range is for teaching, and the supplier's number is for making.
Scaling is multiplication, and that's the point. Ten kilograms of oils in the same proportions needs ten times everything. The trigger for this page was a batch doubled by hand with one number left behind. Change the weights in the sheet and let it do the rest.
Superfat and water
Superfat is the share of oil deliberately left as oil. Around 5% is a common choice for body bars. Higher makes a milder, softer bar that keeps less well, since free oil can go rancid. It's your recipe's decision. What it must never be is negative.
Water carries the lye and is mostly gone by the end of the cure. Makers express it as a ratio to the lye or as a share of the oils. The 2 to 1 here is this maker's own. Milk soaps replace some or all of the water with milk, which changes handling and temperature, not the lye sum: the lye is worked out from the oils. Check, though, whether your calculator counts the fat in the milk.
Hot process and cold process use the same lye sum. They differ in what happens after.
Safety, which isn't optional
- Sodium hydroxide burns skin and eyes, and the solution gets very hot when mixed. Goggles and gloves, long sleeves, and nobody else at the bench.
- Add the lye to the water. Never water to lye.
- Mix in a container that can take the heat, with air moving. Don't breathe the fumes.
- Weigh the lye on a scale that reads to the gram or better, and check it: see scale calibration log.
- Run the recipe through a second calculator and compare before making it.
- Keep lye locked up, labeled, and away from anything that looks like food.
This page explains arithmetic. It isn't a safety course, and it isn't a substitute for the instructions on your lye's own label and safety data sheet.
From the sum to the business
The lye sum fixes the recipe. Costing it, sizing it to your mold and keeping the record are separate jobs: see soap making cost calculator, soap batch calculator and soap making log. Making it in quantity is in how to make soap in bulk.
Get the calculator
Download the lye calculator. Two sheets and a read-me: each oil's weight and saponification value on the first, with the sodium hydroxide worked out, and the batch added up on the second with superfat and water. Replace the example values with your suppliers' own. It's an ordinary Excel file with no macros, and it works in Google Sheets, LibreOffice and Numbers.
Where this stops working
The sheet is right for the oils it was told about. Then the usual coconut oil is out of stock and a drum from another supplier arrives, with its own saponification value on a sheet nobody reads, and the recipe card still says 257. The bars from that drum cure a little different, and a month later nobody can say which batches it went into.
How TaroStack does it
TaroStack ties each batch to the exact oils it was made from.
Each delivery is received with its supplier's lot. Your own fields on the lot hold the saponification value from that drum's specification sheet.
Versioned recipes with unit conversion, and a production order that scales every ingredient, lye included, to the batch you're making.
Recording a batch takes the oils and lye off stock and notes which lots were used, automatically. Actual amounts can be changed on the batch.
Batch record forms carry your own fields with limits and sign-off: lye weighed by, checked by, temperature at trace.
A lot goes on hold in one step, for a new drum waiting for its paperwork.
One report from a supplier's lot to every batch it went into, and every customer who got those bars.
| The job | Recipe card | In TaroStack |
|---|---|---|
| Scale the batch | By hand | The production order |
| Which drum of coconut oil went in | Unknown | The lots on the batch |
| That drum's saponification value | A sheet in a folder | A field on the lot |
| Who checked the lye weight | Nobody | A signed field on the batch |
TaroStack doesn't calculate lye or judge a recipe's safety: the sheet above, and a second calculator, do that. Recipes, batches and lots are on every plan, from $9.99 a month (5 recipes) or $39 a month (50 recipes). The first 14 days are free, with no credit card. If you'd like a hand setting up, ask, and we'll do it with you.
