Soap Calculator: Lye, Water & Blend Comparison

Understand how each entered oil and alkali assumption affects a soap formulation. Build a blend by reference masses or percentages, scale it to your target oil weight, and compare pure sodium, pure potassium or mixed hydroxide equivalents. The workspace shows weighed alkali products, added water, ingredient costs and the theoretical lye-discount range implied by your oil SAP values. Save an alternative, inspect oil-composition and sensitivity charts, and export exact quantities. Grams, ounces and pounds share one quantity-preserving model. Example oils and prices are illustrative: use actual supplier specifications. This is formulation accounting, not a finished-soap safety assessment or a prediction of lather, hardness, pH, cure time or skin suitability.

SOAP FORMULATION

Understand every gram in your blend.

Scale a recipe, compare alkalis and see how SAP uncertainty changes the calculated lye discount.

The example oils and prices are illustrative inputs. Replace them with your oil supplier’s SAP specifications and the stated purity of your alkali. This estimates formulation quantities, not finished-soap safety, skin suitability or cured yield.

Recipe updated. Oil mass 1,000 g; material cost $5.08.

1. Build the oil blend

Only oils, before alkali and water. Reference masses are rescaled to this total.

Unit and entry-basis changes preserve the recipe. Exact fractions may appear after conversion; these prevent rounding drift. SAP always uses mg KOH per gram of oil, including when weighing in ounces.

Oil 1
Oil 2

2. Set alkali and water assumptions

0–20%. Often called superfat, but actual free oil is not measured here.

100 = sodium only; 0 = potassium only. A 50/50 split does not mean equal weighed masses.

Use the actual product assay; 97% is an editable example.

Product mass ÷ (product mass + added water), 10–50%.

Water settings refer to the combined weighed alkali products, including impurities. They are not the active hydroxide concentration. This does not model impurity composition, dissolution or a preparation procedure. Read the manufacturer’s protection and ventilation guidance before handling alkali.

Material prices (USD/kg)

No fragrance, other additives, labor, packaging, tax or curing losses are included.

3. Calculated batch ingredients

Weigh NaOH product

149.413 g

Weigh KOH product

0 g

Added water

303.353 g

Material cost

$5.08

Oil mass 1,000 g · total uncured input mass 1,452.766 g · $3.5 per kg of input batch. Displayed quantities are approximate; CSV retains exact arithmetic.

SAP uncertainty at the current dose

The entered SAP interval implies a theoretical lye discount from 0.343% to 9.241%, versus the nominal 5%.

This is an input sensitivity range, not a confidence interval or finished-product safety test.

Oil composition

Bar length represents the proportion of target oil mass. Exact values are included in the ingredient ledger.

1. Example oil A60% · 600 g
2. Example oil B40% · 400 g

Lye-discount sensitivity

Each line spans the calculated discount across your SAP interval. The vertical marker is zero. Negative endpoints imply excess alkali at that endpoint. No row is automatically recommended.

Nominal 0%-4.902% to 4.464%
Nominal 2%-2.804% to 6.375%
Nominal 5% · current0.343% to 9.241%
Nominal 8%3.49% to 12.107%
Nominal 10%5.588% to 14.018%
Nominal 15%10.833% to 18.795%
Nominal 20%16.078% to 23.571%

Ingredient ledger

Current batch ingredients, displayed mass and material cost in USD
IngredientMass (g)Cost (USD)
Example oil A6003
Example oil B4001.6
NaOH product149.4130.45
KOH product00
Added water303.3530.03
Total input batch1,452.7665.08

Weighed-product concentration: 33%. Water/product ratio: 2.03. Calculated active hydroxide mass fraction of products plus added water: 32.01%.

Sensitivity quantities and costs
Discount (%)NaOH (g)KOH (g)Water (g)Cost (USD)
0157.2770319.3195.1
2154.1310312.9335.09
5149.4130303.3535.08
8144.6950293.7745.06
10141.5490287.3875.05
15133.6850271.4215.03
20125.8210255.4555

Keep an alternative for comparison

Save the current recipe, then edit the blend or assumptions. The saved comparison stays unchanged in this page session; export it before leaving.

Export the calculation

Includes displayed and canonical inputs, exact rational results, all sensitivity rows and the saved comparison. Negative cells are protected as text for spreadsheet use. Pricing is in USD.

How to use this calculator

  1. Start with Illustrative oil blend or Mixed-alkali example. Set Mass units and Target oil mass; this target includes oils only. The example oils are placeholders rather than supplier specifications.
  2. Enter each Oil / supplier name, reference mass or percentage, lower/nominal/upper SAP in mg KOH/g, and oil price in USD/kg. In percentage mode the entries must sum to exactly 100. Add or remove rows as needed.
  3. Set Lye discount and NaOH share of hydroxide equivalents. Enter the assay purity of each active alkali product. A mixed equivalent share does not represent a weighed-mass share.
  4. Choose Weighed-product concentration or Water-to-product ratio. Switching a complete recipe converts the setting without changing its water quantity. Open Material prices to edit alkali and water costs.
  5. Inspect the calculated ingredients, SAP uncertainty, oil-composition chart, sensitivity intervals and ingredient ledger. Save current recipe, then edit assumptions to compare against that saved alternative.
  6. Download soap CSV or open Selectable CSV to preserve canonical inputs and exact results. Saved comparisons last only for the current page session. Review supplier specifications and appropriate handling guidance before any real preparation.

The Formula

The mathematical logic powering this calculation is:

Scale each reference oil amount aᵢ to mass wᵢ = target oil mass × aᵢ / sum(a). Percentage entry must total exactly 100%; incomplete percentages are not normalized. Pure KOH-equivalent demand S = sum(wᵢ × SAPᵢ / 1000), where SAP is entered in mg KOH/g oil. With lye discount d and NaOH equivalent share f expressed as fractions, pure NaOH = S(1−d)f × 39.9971/56.1056 and pure KOH = S(1−d)(1−f). These pinned nominal molecular weights come from NIST. Divide each pure alkali amount by its own entered purity fraction to obtain weighed product mass. A 50/50 equivalent split does not mean equal weighed masses.
Let L be the combined weighed alkali products. Added water = L(100/C−1) for weighed-product concentration C%, or L × R for water/product ratio R. C counts product impurities in its numerator; it is not active hydroxide concentration. Impurity composition is unknown. Input batch mass = target oil mass + weighed alkali products + added water; this is not cured yield. Ingredient material costs = mass in grams × entered USD/kg / 1000.
For the same nominal dose, theoretical lye discount at a SAP endpoint Sₓ is 100[1−Snominal(1−d)/Sₓ]. Lower and upper endpoints describe sensitivity to entered SAP values, not statistical confidence or an assay of free oil. Negative values imply excess alkali relative to the endpoint’s estimated demand. Do not interpret a nonnegative result as finished-product safety.
Use 1–20 oils, target oil mass 10–1,000,000g, lye discount 0–20%, NaOH equivalent share 0–100%, active product purities 50–100%, SAP values 10–400mg KOH/g with lower ≤ nominal ≤ upper, and prices 0–10,000USD/kg. Concentration is 10–50% or water/product ratio 1–9. These are calculation bounds, not preparation recommendations. Active fields accept nonnegative decimals up to six places/twelve significant digits or bounded exact fractions; missing values invalidate current output. Internal rational arithmetic is exact for the entered assumptions, while physical SAP values, purity and molecular weights remain approximate.

Worked Example

If you input:

  • Oil blend: 600g Example oil A; 400g Example oil B
  • Oil A SAP / price: 180–200, nominal190 mg KOH/g; $5/kg
  • Oil B SAP / price: 240–260, nominal250 mg KOH/g; $4/kg
  • Target oil mass: 1,000g
  • Lye discount / NaOH equivalent share: 5% / 100%
  • NaOH purity / price: 97% / $3 per kg
  • Water setting / price: 33% weighed-product concentration / $0.10 per kg

Result:

The blend requires 214g of pure KOH-equivalent alkali before discount and conversion. With a 5% lye discount, all-NaOH equivalents and 97% purity, weighed NaOH is approximately 149.413g and added water 303.353g. KOH is 0g. Total uncured input mass is 1,452.766g and material cost is $5.08 (unrounded 5.078573872 USD). The entered SAP interval implies a theoretical discount of 0.343% to 9.241% at the same dose. These example inputs do not certify a real formulation.

Frequently Asked Questions

Is lye discount the same as actual superfat?

The calculator reduces theoretical alkali demand by your entered percentage. This is commonly called superfat, but actual unsaponified oil depends on the materials and process. The model does not measure free oil, finished pH or product safety.

Where do I get SAP values?

Use the relevant supplier specification or measurement and confirm its units. This workspace expects mg KOH per gram of oil, not grams NaOH per gram. Enter lower, nominal and upper values explicitly. The illustrative example oils are not a named-oil database or a substitute for your supplier’s data.

Why does alkali purity change the weighed amount?

Only the active fraction supplies the modeled hydroxide demand, so weighed product mass is pure alkali mass divided by purity. The unused portion is not automatically treated as water or a harmless substance. Verify the actual product assay rather than assuming the example purity.

How is a mixed NaOH/KOH recipe defined?

The NaOH percentage is its share of hydroxide equivalents. The remaining equivalents use KOH. Because the molecular weights and product purities differ, equal equivalent shares generally produce unequal weighed product masses.

What does a negative uncertainty endpoint mean?

The nominal dose exceeds the estimated stoichiometric demand at that entered SAP endpoint. The sign is preserved so uncertainty is visible. This is not a measurement of residual alkali, and a positive endpoint does not establish finished-soap safety.

Does the water concentration include impurities?

Yes. The water setting uses total weighed alkali products divided by those products plus added water. The model separately reports active hydroxide mass fraction, but does not characterize impurities, model dissolution or infer process suitability.

Can this predict cured bars, hardness or lather?

No. The total is uncured input mass from oils, alkali products and added water. Fragrance, other additives, evaporation, cure time, mold volume, finished bar count, hardness and lather are outside this model. Costs exclude labor, packaging and tax.

Why do exact fractions appear after changing units?

Some unit and percentage conversions have repeating decimal expansions. Retaining a fraction prevents repeated conversions from changing the underlying quantity. Display cards use readable approximations, while CSV retains exact rational values for the entered assumptions.

Similar Calculators