How-to GuidePublished 14 min read

How to Calculate Lye for Handmade Soap: Using SAP Values, Setting the Superfat (Lye Discount), Purity and Water, Converting to Potassium Hydroxide, and How Much Oil Fits in a Milk Carton

When you adapt a handmade soap recipe to your own oils and batch size, the questions that cause the most trouble are “how many grams of lye?” and “how many grams of water?”. Too much sodium hydroxide makes a harsh soap, and too little makes a soft, greasy one, so the standard approach is to calculate from each oil's SAP value rather than guess or scale a book recipe in proportion. This article covers the formula for lye using SAP values, a worked example with the basic olive, coconut and palm recipe, how to apply the superfat and lye purity, the three ways of setting the water and how to convert between them, converting to potassium hydroxide for liquid soap, how much oil fits in a milk carton or other mold, how to read hardness, cleansing and INS values, and common calculation mistakes. Every figure is calculated with the same SAP values and formulas as the Soap Lye Calculator.

The short answer: lye = Σ(oil weight × SAP value) × (1 − superfat) ÷ purity

Soap forms when oils (fats) react with sodium hydroxide (lye). The number of grams of sodium hydroxide needed to turn 1 g of oil into soap is its SAP value, and each oil has its own. Work out “oil weight × SAP value” for every oil and add them up to get the lye for 100% saponification, then take off the superfat (the share of oil left unsaponified) and divide by the purity to get the amount to weigh.

OilWeightSAP value (NaOH)Sodium hydroxide for 100% saponification
Olive oil250g0.13433.50g
Coconut oil125g0.18322.88g
Palm oil125g0.14217.75g
Total500g-74.13g
7% superfat (× 0.93)--68.9g (amount to weigh)
Distilled water (2.5 times the lye)--172.3g

This is the same recipe as the Soap Lye Calculator's defaults (the basic three oils, 500 g of oil, 7% superfat, 100% purity, water at 2.5 times the lye). Oils, lye and water together make 741.3 g of batter, and the lye solution concentration is 68.9 ÷ (68.9 + 172.3) ≈ 28.6%.

What a SAP value is: written either as “g of NaOH” or “mg of KOH”

A SAP (saponification) value is the amount of alkali needed to turn 1 g of oil completely into soap. Books and websites write it in two different ways, and mixing them up throws the whole calculation off.

  • The form used in soap-making books and calculators: g of sodium hydroxide (NaOH) per 1 g of oil. For olive oil it is a number around 0.1, such as 0.134
  • The form used in chemistry and oil standards: mg of potassium hydroxide (KOH) per 1 g of oil. For olive oil it is a number in the high 100s, around 188
  • Conversion: mg of KOH ÷ 1000 × 40.00 ÷ 56.11 = g of NaOH. 188 ÷ 1000 × 0.7129 ≈ 0.134
  • For potassium hydroxide, the SAP value is the sodium hydroxide value × 56.11 ÷ 40.00 (≈ 1.403). For olive oil, 0.134 × 1.403 ≈ 0.188
Oil or fatSAP value (NaOH)100 g, 0%100 g, 5%100 g, 7%100 g, 10%
Olive oil0.13413.4g12.7g12.5g12.1g
Coconut oil0.18318.3g17.4g17.0g16.5g
Palm oil0.14214.2g13.5g13.2g12.8g
Rice bran oil0.12812.8g12.2g11.9g11.5g
Shea butter0.12812.8g12.2g11.9g11.5g
Castor oil0.12812.8g12.2g11.9g11.5g
Camellia oil0.13613.6g12.9g12.6g12.2g
Sweet almond oil0.13613.6g12.9g12.6g12.2g
Lard0.13813.8g13.1g12.8g12.4g
Beef tallow0.14114.1g13.4g13.1g12.7g

“100 g, 7%” is the sodium hydroxide (100% pure) to weigh when making soap from 100 g of that oil at a 7% superfat. The SAP values in the table are typical figures; even olive oil varies by a few percent between brands and origins. The other oils (20 in total, including palm kernel oil, cocoa butter and avocado oil) are listed in the tool's SAP value chart tab.

Working it out by hand: a five-oil palm-free recipe in five steps

Adding more oils does not change the method. Let us calculate the tool's “Palm-free (with shea butter)” preset, 45% olive, 25% coconut, 15% rice bran, 10% shea butter and 5% castor oil, for 500 g of oil.

  1. 1

    Turn the percentages into grams

    500 g × each percentage gives 225 g olive, 125 g coconut, 75 g rice bran, 50 g shea butter and 25 g castor oil.

  2. 2

    Work out “weight × SAP value” for each oil

    225 × 0.134 = 30.15 g, 125 × 0.183 = 22.88 g, 75 × 0.128 = 9.60 g, 50 × 0.128 = 6.40 g, 25 × 0.128 = 3.20 g.

  3. 3

    Add them up for 100% saponification

    30.15 + 22.88 + 9.60 + 6.40 + 3.20 ≈ 72.23 g. This is the sodium hydroxide needed to saponify all the oil.

  4. 4

    Apply the superfat and purity

    At a 7% superfat and 100% purity, 72.23 × 0.93 ≈ 67.2 g. This is the lye to weigh.

  5. 5

    Set the water and check

    At 2.5 times the lye, 67.2 × 2.5 ≈ 167.9 g (calculated from the unrounded value). The concentration is about 28.6% and the batter weighs about 735 g.

Choosing the superfat (lye discount): 5 to 10% for skin

The superfat is the share of oil deliberately left unsaponified. Some recipes instead state the saponification rate, the lye used as a percentage of the amount for 100% saponification; the two always add up to 100%, so “90% saponification” and “10% superfat” mean the same thing. For the basic three oils at 500 g, the lye and water (2.5 times) for each superfat are as follows.

SuperfatSaponification rateSodium hydroxideWater (2.5 times)What the tool shows
0%100%74.1g185.3gBelow-3% warning (red)
3%97%71.9g179.8g-
5%95%70.4g176.0g-
7%93%68.9g172.3g- (default)
10%90%66.7g166.8g-
15%85%63.0g157.5g-
20%80%59.3g148.3gAbove-15% caution
  • In this recipe, each 1% change in superfat changes the lye by about 0.74 g
  • Below 3%, variations in SAP values or weighing errors can leave excess lye and make a harsh soap
  • Above 15%, the soap is soft and melts quickly, and the leftover oil tends to go rancid
  • Bar soap for skin usually uses 5 to 10%; liquid soap made with potassium hydroxide usually uses 0 to 3%

The superfat is also a safety margin that absorbs errors in SAP values. If an oil's real SAP value is 3% lower than the table, a recipe calculated at a 7% superfat actually leaves only 1 − 0.93 ÷ 0.97 ≈ 4.1% of the oil unsaponified. Calculated at 0%, the same oil would leave about 3% more lye than it can use.

Allowing for purity: divide by the purity and weigh a little more

Containers of sodium hydroxide state its purity (assay). At 95% purity, only 95% of the beads you weigh are sodium hydroxide, so you divide the calculated amount by 0.95 and weigh a little more. For the basic three oils at 500 g and a 7% superfat, the 68.94 g changes with purity as follows.

PuritySodium hydroxide to weighWater (2.5 times)
100%68.94g172.3g
99%69.63g174.1g
98%70.34g175.9g
95%72.56g181.4g

When you set the water as a multiple of the lye, it is based on the amount you weigh after dividing by the purity, so the water goes up slightly too. The tool calculates in the same order. If you do not know the purity, leaving it at 100% is fine: the difference between 95 and 99% falls within the superfat, so the soap just comes out slightly softer and never ends up with excess lye.

Setting the water: as a multiple, a percentage of the oils or a concentration, and converting between them

Unlike the lye, the water is not fixed by a SAP value. It is there to dissolve the lye and make the batter easier to mix. Recipes express it in three ways that all describe the same thing. Compared for the basic three oils at 500 g and a 7% superfat (68.9 g of lye):

MethodSettingWaterConcentrationMultiple of the lyePercentage of the oils
Multiple of the lye2 times137.9g33.3%2.0027.6%
Multiple of the lye2.5 times (default)172.3g28.6%2.5034.5%
Multiple of the lye3 times206.8g25.0%3.0041.4%
Percentage of the oils33%165.0g29.5%2.3933.0%
Percentage of the oils38%190.0g26.6%2.7638.0%
Lye solution concentration30%160.9g30.0%2.3332.2%
  • Concentration = lye ÷ (lye + water). For a multiple, concentration = 1 ÷ (1 + multiple), so 2 times is 33.3% and 3 times is 25%
  • Water from a concentration: water = lye × (1 − concentration) ÷ concentration. At 30%, 68.9 × 0.7 ÷ 0.3 ≈ 160.9 g
  • Common ranges are 2 to 3 times the lye (25 to 33% concentration) or 30 to 38% of the oils
  • The tool warns that the solution is weak below 22% and too strong above 40%. Four times the lye (20%) or 1.4 times (about 41.7%) triggers a warning

Less water (a stronger solution) brings trace sooner and shortens the time before you can unmold, but the batter can seize suddenly. More water gives you more time to mix, but trace and unmolding take longer and the bars shrink more while curing. Around 2.5 times the lye is an easy place to start.

Potassium hydroxide for liquid soap: SAP value × 1.403, at 85 to 90% purity

Liquid (potash) soap is made with potassium hydroxide. A mole of potassium hydroxide weighs more than a mole of sodium hydroxide (56.11 g/mol against 40.00 g/mol), so saponifying the same oil takes 56.11 ÷ 40.00 ≈ 1.403 times the weight. Most potassium hydroxide sold is 85 to 90% pure; when you choose potassium hydroxide in the tool, the purity switches to 90% and the superfat to 3% or less.

Recipe (500 g of oil)SuperfatPurityPotassium hydroxide for 100% saponificationPotassium hydroxide to weigh
100% olive0%90%93.98g104.4g
100% olive3%90%93.98g101.3g
250 g olive, 250 g coconut3%90%111.17g119.8g
250 g olive, 250 g coconut3%85%111.17g126.9g

Liquid soap made with potassium hydroxide usually uses a 0 to 3% superfat. More can make the soap cloudy or separate, so the tool shows a caution when the superfat is above 5% with potassium hydroxide. The amount to weigh changes by more than 7 g between 90% and 85% purity, so always check the label on the container.

How much oil fits in a mold: about 500 g for one milk carton

If the mold is already decided, work backwards from its volume. Soap batter has a specific gravity of about 1, so volume (ml) ≈ batter weight (g). The batter is the oil plus the lye and water, so dividing the volume by the batter weight per 1 g of oil gives the oil that fits. For the basic three oils at a 7% superfat and 2.5 times the water, each 1 g of oil makes 741.3 ÷ 500 ≈ 1.483 g of batter.

MoldInside size and pour heightVolumeOil that fitsSodium hydroxideWater
Milk cartonAbout 7 cm square, 15 cm high735mlAbout 496 g68.4g171.0g
Milk cartonAbout 7 cm square, 10 cm high490mlAbout 331 g45.7g114.1g
Rectangular mold18 × 7 cm, 5 cm high630mlAbout 425 g58.6g146.5g
Rectangular mold15 × 10 cm, 6 cm high900mlAbout 607 g83.7g209.3g
Round mold8 cm across, 15 cm high754mlAbout 509 g70.2g175.5g
Six round molds6 cm across, 3 cm high509mlAbout 343 g47.3g118.3g

Japanese 1000 ml and 500 ml milk cartons are about 7 cm square inside. Standing a 1000 ml carton upright and filling it to 15 cm takes about 500 g of oil, which cuts into about six bars 2.5 cm thick. The batter per 1 g of oil depends on the recipe: at the same 7% superfat and 2.5 times the water, it is about 1.44 g for 100% olive and about 1.60 g for 100% coconut. Enter your mold in the tool's “Oil from mold size” tab and press “Rebuild the recipe for this amount of oil” to fit the oil total to the mold while keeping the current proportions.

Judging a recipe: hardness, cleansing and INS values

Even with the right amount of lye, the choice of oils decides whether the soap is soft and melts quickly or so cleansing that it leaves skin tight. The tool averages each oil's fatty acid profile (lauric, palmitic, oleic acid and so on) by its share of the recipe to estimate the soap's properties, using the same approach and ranges as SoapCalc.

RecipeHardness (29–54)Cleansing (12–22)Conditioning (44–69)Iodine value (41–70)INS value (136–170)
Basic three40175658153
Palm-free (with shea butter)35176166139
Marseille style (72% olive)28.9 (just below)9.5 (below)6870.0 (just above)132 (below)
Rice bran and coconut42215573 (above)126 (below)
100% olive15 (below)0 (below)83 (above)85 (above)105 (below)
100% coconut79 (above)67 (above)10 (below)10 (below)258 (above)
  • Hardness: lauric, myristic, palmitic and stearic acids combined. Low values mean a soft bar that melts quickly
  • Cleansing: lauric and myristic acids (plentiful in coconut and palm kernel oil). Too high strips skin oils and leaves it feeling tight
  • Conditioning: oleic, linoleic and similar acids combined. Higher is gentler on skin but tends to make a softer bar
  • Iodine value: how unsaturated the oils are. High values mean a softer bar that goes rancid more easily
  • INS value: an overall guide calculated from the SAP and iodine values. Between 136 and 170 tends to give a well-balanced bar

Falling outside a range does not make a recipe a failure. A 100% olive castile soap misses every range, yet it has long been made because a long cure gives it a gentle wash. It sets slowly, though, so allow at least six weeks of curing. 100% coconut is very cleansing, so treat it as a soap for cleaning and laundry rather than skin.

Common calculation mistakes and what to check

  • Mixing up mg of KOH (such as 188) with g of NaOH: using 188 where you meant 0.134 throws the decimal point off completely. Divide by 1000 and multiply by 0.7129
  • Using potassium hydroxide SAP values for bar soap: you get 1.403 times the amount and a large excess of sodium hydroxide
  • Taking off the superfat twice: taking another 7% off an amount already calculated at “93% saponification” gives a superfat of about 13.5% (0.93 × 0.93 ≈ 0.865)
  • Multiplying by the purity: purity is divided. Multiplying by 95% gives about 10% less than dividing
  • Using tap water instead of distilled water: minerals and chlorine in tap water can cause discoloration and rancid smells, so use the calculated amount of distilled water
  • Changing an oil without recalculating the lye: swapping olive for coconut leaves you 4.9 g of sodium hydroxide short per 100 g

As important as the maths: handling sodium hydroxide safely

In Japan, sodium hydroxide is a deleterious substance under the Poisonous and Deleterious Substances Control Act. When buying it at a pharmacy, bring photo ID and a personal seal, and write your name, address and purpose on a transfer form. Rules differ by country, but everywhere a correct calculation is no protection against burns or eye injury if you handle it carelessly, so always follow these points.

  • Wear goggles, rubber gloves and long sleeves, and ventilate the room
  • Always add the lye to the water a little at a time, never the other way round. The solution heats up to nearly 80 °C
  • Do not use aluminium tools. Use heat-proof glass, stainless steel or polypropylene containers
  • If it gets on your skin, rinse at once with plenty of running water. If it gets in your eyes, rinse with running water for at least 15 minutes and then see an eye doctor
  • Uncured soap is still strongly alkaline, so do not use it on your skin until at least four weeks have passed
  • Handmade soap is not legally a cosmetic in Japan; selling it requires a cosmetics manufacturing licence and other permits

FAQ

How do I calculate the lye for soap?
Work out “oil weight (g) × SAP value” for each oil, add them up, multiply by (1 − superfat) and divide by the purity. For 250 g olive, 125 g coconut and 125 g palm, 33.50 + 22.88 + 17.75 = 74.13 g saponifies everything, and at a 7% superfat and 100% purity you weigh about 68.9 g.
Why are some SAP values given as 188 or 190?
Those are SAP values written as mg of potassium hydroxide per 1 g of oil. To convert to g of sodium hydroxide, divide by 1000 and multiply by 40.00 ÷ 56.11 (≈ 0.7129). 188 becomes about 0.134, the value for olive oil.
Is 90% saponification the same as a 10% superfat?
Yes. The saponification rate is the share of the lye for 100% saponification that you use, and the superfat is the share of oil you leave; the two add up to 100%. For the basic three oils at 500 g, both mean 66.7 g of sodium hydroxide.
How much water should I use relative to the lye?
2 to 3 times the lye (a 25 to 33% lye solution) is common, and the tool's default is 2.5 times (about 28.6%). As a percentage of the oils, 30 to 38% is typical. Avoid amounts that take the concentration below 22% or above 40%.
How much oil fits in a milk carton?
A 1000 ml milk carton is about 7 cm square inside, so filling it to 15 cm gives 735 ml. For the basic three oils at a 7% superfat with 2.5 times the water, that holds about 496 g of oil (68.4 g of sodium hydroxide and 171.0 g of water).
How do I work out potassium hydroxide for liquid soap?
Multiply the sodium hydroxide SAP value by 56.11 ÷ 40.00 ≈ 1.403 and divide by the potassium hydroxide purity (often 85 to 90%). For 500 g of olive oil at a 3% superfat and 90% purity, that is about 101.3 g.

Tools in this article

Related articles

How-to Guide11 min read

Full Moon Calendar 2027: Dates, Times and Names | The Supermoon Is January 22, the Strawberry Moon June 18–19, and There Is No Blue Moon

“When is the next full moon?” “What date is the Strawberry Moon this year?” “When can I see the supermoon?” Full moon dates shift every year, and websites name and count supermoons a little differently, so the more you search the more confusing it gets. This article lists all 12 full moons of 2027 in Universal Time (UTC) and US Eastern time, worked out with the same formulas as the Moon Phase Calendar & Birthday Moon tool (Meeus, Astronomical Algorithms, accurate to within a minute), together with their names from the Wolf Moon to the Cold Moon and the distance to the moon. It also explains, with numbers, which full moon is the biggest and smallest of 2027, why 2027 has neither a Blue Moon nor a Corn Moon, which night to look when the exact full moon falls in daytime, and how the date changes between time zones.

Read article →
How It Works11 min read

Born in January or Early February? When Your Yakudoshi Falls, Counting From Risshun, and How to Find Your Nine Star Ki Birth Star and Happo-fusagari Years | In 2027 It Is 9 Purple Fire

“I heard my unlucky years shift by one because I was born in January.” “I was born on Setsubun, so which birth star am I?” “Someone told me my happo-fusagari year and my yakudoshi fall in the same year.” Japanese unlucky years (yakudoshi) and Nine Star Ki are hardest to pin down for people born between January 1 and Setsubun. This article explains how your yakudoshi changes depending on whether a shrine starts the year on New Year’s Day or at Risshun, why Risshun moves between February 3 and 5, how to work out your birth star, which birth years are in happo-fusagari from 2026 to 2029, and why women’s honyaku at 19 and 37 always coincides with happo-fusagari. Every figure was checked with the Yakudoshi Calculator.

Read article →
How-to Guide12 min read

How to Calculate Building Coverage Ratio and Floor Area Ratio in Japan | How Big a House Fits on a 30-Tsubo Plot? Worked Examples for Front Road Width, Setback and Corner Lot Relief

A Japanese land listing may say “coverage ratio 60%, floor area ratio 200%”, but that does not tell you at a glance how big a house you can build. On top of that, the floor area ratio drops when the front road is narrow, and on roads under 4 m wide a setback takes land off the site itself. This article walks through the formulas for building coverage ratio (kenpei-ritsu) and floor area ratio (yoseki-ritsu), a chart of what fits on a 30-tsubo plot, worked examples for the front road, setbacks, corner lot and fire zone relief and the specified road relief, and how much floor area two- and three-storey houses can actually reach, all with figures from the Building Coverage & Floor Area Ratio Calculator.

Read article →