Soap Recipe Calculator
Multiply each oil's weight by its saponification value, discount the total by your superfat percentage, and that is the lye needed; water is then a chosen ratio of the lye. This soap recipe calculator runs the SAP maths for NaOH bar soap and KOH liquid soap across 24 oils and butters, with the superfat discount and water amount made explicit — and the safety rules up front, because lye is not optional equipment.
Oils & butters
5% is standard for bar soap
2:1 to 3:1 is typical
Recipe
NaOH assumed 100% pure. Weigh everything on a digital scale; never use volume measures for lye.
▸How this was worked out
Olive oil: 500 g × 0.134 SAP × 0.95 superfat = 63.65 g NaOH
Coconut oil (76°): 250 g × 0.19 SAP × 0.95 superfat = 45.13 g NaOH
Palm oil: 150 g × 0.141 SAP × 0.95 superfat = 20.09 g NaOH
Shea butter: 100 g × 0.128 SAP × 0.95 superfat = 12.16 g NaOH
lye total = 141.03 g
water = 141.03 × 2 = 282.1 g
Round lye DOWN to the gram if you must — a slight superfat is safe; excess lye is not. Cure cold-process bars 4–6 weeks before use; test with a pH strip (target 8–10) or the zap test.
Shopping list
- Olive oil500 g
- Coconut oil (76°)250 g
- Palm oil150 g
- Shea butter100 g
- Sodium hydroxide (lye)141 g
- Distilled water282.1 g
CraftCalc · Soap recipe
NaOH at 5% superfat · 2:1 water
Olive oil: 500 g
Coconut oil (76°): 250 g
Palm oil: 150 g
Shea butter: 100 g
NaOH: 141 g · Water: 282.1 g · Batch: 1,423.1 g
Add lye to water, never water to lye. Goggles + gloves. Cure 4–6 weeks.
craftcalc.io — free maker calculators with the arithmetic shown
How is lye calculated from a soap recipe?
Every oil has a saponification value — the grams of lye needed to fully saponify one gram of that oil. Olive oil’s NaOH SAP is 0.134: 500 g of olive oil needs 500 × 0.134 = 67 g of sodium hydroxide to convert completely. A recipe with several oils is the sum of each: lye = Σ (oil weight × its SAP value). KOH values run about 1.4× the NaOH ones because potassium hydroxide is heavier per molecule of lye.
Nobody saponifies completely on purpose — the superfat (lye discount) leaves a measured fraction of the oils untouched, which makes the bar milder and guarantees no free lye remains. A 5% superfat multiplies the lye by 0.95. Water is then a separate choice: a water:lye ratio of 2:1 is the modern default (faster unmoulding, less gel-phase drama), where older recipes quote water as 30–38% of oil weight. Both modes are here; they converge around 2.5–3:1 for typical recipes.
Worked example: a balanced 1 kg bar-soap recipe
A classic trio-and-butter batch: 500 g olive, 250 g coconut (76°), 150 g palm, 100 g shea — 1,000 g of oils at 5% superfat with 2:1 water. Lye per oil: olive 500 × 0.134 = 67.0; coconut 250 × 0.190 = 47.5; palm 150 × 0.141 = 21.2; shea 100 × 0.128 = 12.8. Sum: 148.5 g at zero discount; at 5% superfat: 148.5 × 0.95 = 141 g NaOH. Water at 2:1: 282 g distilled water. Total batch: about 1,423 g — roughly twelve 100 g bars after cure.
Procedure in brief: weigh the water, then slowly add the lye to it (never the reverse) in a ventilated space, stir until dissolved, and let both phases cool to roughly 38–43°C / 100–110°F. Pour the lye solution into the melted oils, stick-blend to a light trace, pour into the mould, insulate for 24 hours, unmould and cut, then cure 4–6 weeks. The SAP values used here match the standard published chart (Bramble Berry / Soap Queen) — see the methodology.
Frequently asked questions
What does superfat actually do?
It withholds a percentage of the oils from saponification, so the finished bar contains free moisturising oils and — more importantly — no free lye. 5% is standard for bar soap; 0–3% for laundry soap; above 8% risks a soft bar that goes rancid (DOS — dreaded orange spots).
Why can't I swap NaOH and KOH?
Sodium hydroxide makes hard bars; potassium hydroxide makes soft or liquid soap. They have different SAP values (KOH's are ~1.4× higher) and different physical results — a bar-soap recipe run with KOH will not harden. Use the lye type the recipe was designed for.
Why add lye to water and not water to lye?
Dissolving lye is violently exothermic. Pouring water onto a pile of lye can flash-boil the surface layer and erupt caustic solution at you. Lye into water, added slowly with stirring, dissipates the heat safely. The mnemonic: 'snow falls on the lake' — lye (snow) onto water (lake).
Does KOH purity really vary?
Yes — flake potassium hydroxide is typically ~90% pure (the rest is water and carbonates), so the calculator divides the KOH amount by 0.90. Sodium hydroxide is sold essentially pure. Check your supplier's certificate of analysis; some KOH suppliers state their purity and you can enter it.
How do I know the soap is safe to use?
After a full 4–6 week cure for cold process, test: a pH strip should read 8–10, or the 'zap test' — touch the tip of your tongue to the bar; a zap like a battery means free lye and more cure time. Properly superfatted, fully saponified soap never zaps.
Can I substitute one oil for another?
Only by re-running the lye math — every oil has its own SAP value, so swapping 100 g of olive for 100 g of coconut changes the lye by nearly half a gram per gram swapped. Change the oil in this calculator and let it recompute; never reuse an old lye number after changing the recipe.
Formulas and standard tables are sourced in the methodology. Results are estimates — measure twice, cut once.