How to use the lye calculator
List your oils first. Type a name and pick it from the suggestions (47 oils, butters and fats are built in), then enter each one's weight in grams, ounces or pounds. If your recipe is written as percentages, switch to Percentages and give the total oil weight; the percentages must add up to 100.
Then choose the lye. NaOH (sodium hydroxide) makes hard bar soap; KOH (potassium hydroxide) makes soft and liquid soap, and Both splits the lye between them. KOH is usually about 90 % pure, so the calculator divides by the purity you enter. Superfat is the share of oil deliberately left without enough lye to turn it into soap: a margin for SAP values that vary and scales that read a little high.
The water can be set in three ways that describe the same thing: lye concentration (lye ÷ lye plus water), water as a percentage of the oils (38 % is SoapCalc's default) or a water : lye ratio. Fragrance is optional, as a percentage of the oils or in ounces per pound of oils (1 ppo = 6.25 %).
Worked example
Olive oil's SAP value is 190 mg KOH per gram. Multiply by 40.00 ÷ 56.11 (the molar masses of NaOH and KOH) to get 0.1354 g NaOH per gram of oil, so 1000 g of olive oil needs 135.4 g NaOH. With a 5 % superfat you weigh 95 % of that: 128.7 g NaOH. At a 33 % lye concentration the water is 128.7 × 67 ÷ 33 = 261.3 g.
When the numbers look right, print the recipe card (it carries the safety notes), copy or download it, or save it in this browser.
What the bar numbers mean
The seven numbers under the recipe were popularised by SoapCalc. Each is simple arithmetic on the fatty acids of your oils, weighted by how much of each oil you use:
- Hardness: lauric + myristic + palmitic + stearic, the saturated acids.
- Cleansing: lauric + myristic, the short chains that make coconut, palm kernel and babassu soaps strip oil well.
- Conditioning: oleic + linoleic + linolenic + ricinoleic, the unsaturated acids. It describes the oils, not an effect on skin.
- Bubbly: lauric + myristic + ricinoleic. Creamy: palmitic + stearic + ricinoleic.
- Iodine and INS: weighted averages of each oil's own values. A high iodine value means more double bonds: a softer bar that is more prone to going rancid.
The shaded band is the range SoapCalc suggests comparing against: hardness 29–54, cleansing 12–22, conditioning 44–69, bubbly 14–46, creamy 16–48, iodine 41–70 and INS 136–165. SoapCalc itself calls these guidelines, and traditional soaps sit well outside them: a 100 % olive oil (castile) bar scores hardness 17 and cleansing 0. Use the numbers to compare two versions of a recipe, not as a grade. They ignore superfat, water, additives and any fatty acid outside the eight tracked, such as the palmitoleic acid in macadamia oil or the long-chain wax esters in jojoba and beeswax.
Where the SAP values come from, and why they vary
A saponification (SAP) value is the number of milligrams of potassium hydroxide that turn one gram of a fat into soap. Lab tables give it in mg KOH/g; soap calculators often write the same figure as a fraction (0.190 for olive oil) and convert it to sodium hydroxide with the ratio of the molar masses, 40.00 ÷ 56.11 ≈ 0.713 (0.135 for olive oil).
The SAP values, fatty-acid profiles, iodine and INS figures here are the typical values in SoapCalc's oil list, which many hobby soap calculators share. They are averages. Real oils vary with plant variety, climate, refining and age: published saponification values run from 184 to 196 mg KOH/g for olive oil, 248 to 265 for coconut oil and 170 to 190 for shea butter, and the olive oil trade standard allows anything from 55 % to 85 % oleic acid. That spread is one reason soapmakers keep a few per cent of superfat. If your supplier gives a SAP value or a certificate of analysis for the batch you bought, add it as a custom oil. The oil properties chart lists every oil with its published range where one exists.
Lye safety in full
Sodium hydroxide and potassium hydroxide are corrosive. NIOSH lists eye and skin burns among their effects, and poison centres treat a splash in the eye as an emergency. Soap made with the right amount of lye and left to cure is no longer caustic, but the dry lye, the lye solution and fresh soap batter are.
Before you start
- Read the safety data sheet (SDS) for the exact product you bought, and ask your supplier for it if it did not come with the order.
- Wear splash-proof goggles (ordinary glasses leave gaps), chemical-resistant gloves such as nitrile, long sleeves and closed shoes.
- Keep children and pets out of the room until everything is cleaned up, and store lye in its labelled, closed container out of their reach.
- Use heat-resistant stainless steel or sturdy polypropylene (PP, recycling code 5) containers. NIOSH lists aluminium, tin and zinc as incompatible with sodium hydroxide.
Mixing the lye solution
- Weigh cold water into the jug first, then pour the lye into the water slowly while stirring. Always add lye to water, never water to lye: dissolving lye releases a lot of heat, and water poured onto solid lye can boil and spatter.
- The solution gets very hot and gives off fumes for the first minute or so. Mix outdoors or beside an open window or extractor fan, and don't lean over the jug.
- Keep acids such as vinegar or citric acid away from the lye: they react violently with it.
If something goes wrong
- On skin: take off soaked clothing and rinse with plenty of cool or lukewarm running water for at least 15 minutes (the NHS advises about an hour for chemical burns), then get medical advice. Don't put vinegar, creams or anything else on it.
- In the eyes: rinse straight away with lots of room-temperature water for at least 15 to 20 minutes, holding the eyelids open and taking out contact lenses, and get emergency medical help.
- Swallowed: don't make the person vomit. Call a poison centre or your emergency number at once.
- Who to call: in the US, Poison Control on 1-800-222-1222 (or its webPOISONCONTROL online tool); in the UK, 999 in an emergency or NHS 111 for advice; in the EU, 112; elsewhere, your local emergency number or poison centre.