Home › Calculators › Soap Lye Calculator

Soap Lye Calculator

Build a soap recipe from up to eight oils and butters. The calculator uses each oil's saponification (SAP) value to work out the sodium hydroxide (NaOH) or potassium hydroxide (KOH) and water you need at your chosen superfat, and estimates hardness, cleansing, lather and conditioning.

Last updated:

Lye type
%
Oils and butters
Water

Common: 33–38% of oils, 30–35% lye concentration, or 2 : 1 to 2.5 : 1.

Enter your values to see the result.
Advertisement
Advertisement

How to use the Soap Lye Calculator

  1. Choose NaOH or KOH: sodium hydroxide makes bar soap, potassium hydroxide makes soft or liquid soap.
  2. Select your oils and enter the weight of each in grams, ounces or pounds.
  3. Set the superfat (5% is a common starting point for bar soap).
  4. Choose how to set the water and enter the value.
  5. Weigh the lye and water shown, check the bar properties, and double-check your recipe before making soap.

The lye calculation

  • Lye for each oil = oil weight × SAP value (NaOH or KOH)
  • Total lye = sum of all oils × (1 − superfat), divided by purity for KOH 90%
  • Water = oils × water % of oils, or lye × (100 − concentration) ÷ concentration, or lye × water : lye ratio
  • KOH SAP = NaOH SAP × 1.403 (the ratio of their molar masses, 56.11 ÷ 40.00)

Example: 400 g olive, 250 g coconut, 200 g palm, 50 g castor and 100 g shea need 400 × 0.1354 + 250 × 0.1832 + 200 × 0.1418 + 50 × 0.1283 + 100 × 0.1276 = 147.5 g NaOH for full saponification. At 5% superfat that is 140.1 g NaOH, and at 33% of oils, 330 g of water.

SAP values used

Average saponification values (grams of lye per gram of oil) and iodine values. Values from different sources differ slightly.

Oil / butterSAP NaOHSAP KOHIodine
Olive oil0.1350.19085
Coconut oil (76°F)0.1830.25710
Palm oil0.1420.19953
Palm kernel oil0.1760.24720
Castor oil0.1280.18086
Shea butter0.1280.17959
Cocoa butter0.1380.19437
Mango butter0.1370.19245
Sweet almond oil0.1370.19299
Avocado oil0.1330.18786
Sunflower oil0.1350.189133
Sunflower oil, high oleic0.1350.18983
Canola (rapeseed) oil0.1330.186110
Rice bran oil0.1280.180100
Grapeseed oil0.1290.181131
Soybean oil0.1350.190131
Peanut oil0.1360.19192
Apricot kernel oil0.1390.195100
Argan oil0.1360.19195
Hemp seed oil0.1380.193165
Safflower oil, high oleic0.1350.19093
Macadamia nut oil0.1390.19576
Babassu oil0.1750.24515
Lard (pork fat)0.1410.19857
Tallow (beef)0.1430.20045
Jojoba oil (liquid wax)0.0660.09280
Beeswax0.0670.09410

Bar property ranges (hardness 29–54, cleansing 12–22, conditioning 44–69, bubbly 14–46, creamy 16–48, iodine 41–70, INS 136–170) are the commonly used guideline ranges for bar soap.

Frequently asked questions

How do you calculate how much lye to use in soap?

Multiply each oil's weight by its SAP value (the grams of lye needed to saponify one gram of that oil), add them up, then reduce the total by your superfat percentage. For 1,000 g of olive oil: 1,000 × 0.1354 = 135.4 g NaOH, and at 5% superfat 135.4 × 0.95 ≈ 128.7 g.

What is superfat in soap making?

Superfat is the percentage of oil left unsaponified because you use slightly less lye than needed. It makes the bar milder and gives a safety margin for SAP values that vary. Bar soap is commonly made at 3–8% superfat; liquid soap is often 0–3%.

How much water should I use?

Common settings are water at 33–38% of the oil weight, a lye concentration of 28–35%, or a water : lye ratio between 2 : 1 and 2.5 : 1. Less water (a stronger lye solution) speeds up trace and shortens cure time; more water gives more working time.

What is the difference between NaOH and KOH?

Sodium hydroxide (NaOH) makes hard bar soap. Potassium hydroxide (KOH) makes soft or liquid soap. KOH SAP values are about 1.403 times the NaOH values because of its higher molecular weight. Most KOH sold is about 90% pure, so the calculator divides by 0.9 for KOH 90%.

What do the bar property numbers mean?

They are estimates from typical fatty acid profiles. Hardness and cleansing come from lauric, myristic, palmitic and stearic acids; conditioning from oleic, linoleic, linolenic and ricinoleic acids. Recipes inside the typical ranges usually make a balanced bar, but they are guidance, not rules.

Are SAP values exact?

No. SAP values vary with the source and batch of an oil, which is one reason soap makers use a superfat. This calculator uses widely published average SAP values. Always run a new recipe through a second lye calculator before using it.

Is it safe to make soap at home?

Lye is caustic. Wear goggles and gloves, work in a ventilated area away from children and pets, always add lye to water (not water to lye), and use stainless steel or heat-safe plastic, never aluminium. Cure cold process bars for about 4–6 weeks.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

Candle Wax CalculatorWax and fragrance oil weights for a batch of candles from jar volume or size, plus a wick hint.Grams to OuncesConvert grams to ounces (g to oz) instantly, with formula and chart.Percentage CalculatorWork out percentages, increases and decreases.Ratio CalculatorSimplify, solve and scale ratios with step-by-step working.Molar Mass CalculatorMolar mass of any chemical formula with an element-by-element mass % breakdown.Interactive Periodic TableAll 118 elements with colour modes, filters, search and full element details.Chemical Equation BalancerBalance chemical, ionic and redox equations with the matrix method and steps.Molarity CalculatorSolve mass, volume, molarity or molar mass, and C1V1 = C2V2 dilutions with units.pH CalculatorConvert pH, pOH, [H+] and [OH-], or find the pH of strong and weak acids and bases.Dilution CalculatorSolve C1V1 = C2V2 for any variable: stock volume, final volume or concentration, with units.Percent Yield CalculatorPercent yield from actual and theoretical yield, or theoretical yield from moles and formulas.PPM CalculatorConvert ppm to mg/L, %, ppb and mg/kg, find ppm of a solution, or ppm to mg/m³ for gases.Grams to Moles CalculatorConvert grams to moles and back from a chemical formula, with molar mass and atom counts.Blood Type CalculatorPossible child blood types and their odds from both parents' ABO and Rh types, with Punnett squares.Buffer pH CalculatorBuffer pH from pKa and acid/base concentrations, or the recipe for a target pH.Combined Gas Law CalculatorSolve P1V1/T1 = P2V2/T2 for any variable, with Boyle's, Charles's and Gay-Lussac's modes.Electron Configuration CalculatorFull and noble-gas shorthand electron configuration, orbital diagram and valence electrons.Empirical Formula CalculatorElement percentages or grams to mole ratios, empirical formula and molecular formula.Gibbs Free Energy CalculatorΔG from ΔH, ΔS and temperature, with spontaneity, crossover temperature and K.Mass Percent CalculatorMass percent of a solution, percent composition of a formula, or mass for a target %.Molality CalculatorMolality from grams or moles of solute and solvent mass, or solve for either one.Moles to Atoms CalculatorConvert moles, grams and atoms or molecules with Avogadro's number, atoms per element.Protons Neutrons Electrons CalculatorCount protons, neutrons and electrons for any element, isotope or ion, with isotope notation.Serial Dilution CalculatorConcentration, transfer and diluent volume for every tube of a dilution series.Theoretical Yield CalculatorTheoretical yield in grams and moles from limiting reagent mass and mole ratio.Titration CalculatorAnalyte concentration or equivalence volume from a titration, with pH curve and indicator.Punnett Square CalculatorBuild monohybrid, dihybrid or trihybrid Punnett squares with genotype and phenotype ratios.Stoichiometry CalculatorFrom one known mass or mole amount, get moles and grams of every reactant and product.Six Sigma CalculatorDPMO, yield and sigma level from defects, with the 1.5 sigma shift and a conversion table.Beer-Lambert Law CalculatorSolve A = εlc for absorbance, concentration, molar absorptivity or path length; %T conversion.Boyle's Law CalculatorSolve P1V1 = P2V2 for any missing pressure or volume, with units, gauge option and steps.Centrifuge RPM to RCF CalculatorConvert centrifuge RPM to RCF (× g) or RCF to RPM from rotor radius, with an RPM chart.Charles's Law CalculatorSolve V1/T1 = V2/T2 for volume or temperature, with °C, °F or K converted to kelvin.Hardy-Weinberg CalculatorAllele frequencies, expected genotypes and a chi-square equilibrium test from counts or p, q.Normality CalculatorFind normality from mass or molarity, and how much solid or stock acid makes an N solution.Oxidation Number CalculatorEnter a formula or ion to get the oxidation state of every element, with the rules used.Percent Solution CalculatorHow much solute and solvent for a w/v, w/w or v/v % solution, plus % from amounts and dilutions.Valence Electrons CalculatorValence electrons for any element, ion or molecule formula, with group-by-group working.
See all 35 Chemistry & Biology Calculators →