Accurately calculate lye and water requirements for cold process soap making. Our free tool helps you calculate SAP values, superfat percentages, and water ratios.
AI Generation Prompt
Soap Making Lye and Water Discount Calculator
Overview
A high-performance, single-file browser utility designed for artisan soap makers. This tool simplifies the chemistry of cold-process soap making by calculating the precise amount of sodium hydroxide (lye) and water required based on custom oil blends, superfat percentages, and water discounting ratios.
Technical Specifications
- Architecture: Single-file HTML5 document containing all CSS and Vanilla JavaScript.
- Storage: Strictly in-memory. Zero reliance on
localStorage,cookies, or external databases. Fully compatible with sandboxed iframe environments. - Performance: Real-time reactivity. Calculations update instantly as the user modifies input fields.
- Accessibility: Mobile-responsive design, keyboard-navigable inputs, and high-contrast labels for clarity in busy workshop environments.
UI/UX Design
- Aesthetic: A modern, clean, and airy "SaaS" aesthetic. Light mode only, utilizing a professional palette of sage greens, slate grays, and soft whites.
- Layout:
- Header: Clean title with a brief subtitle explaining the tool's purpose.
- Oil Input Section: A dynamic list allowing users to add/remove oil types from a pre-defined database (e.g., Olive, Coconut, Palm, Castor, Shea Butter) and set their specific weights.
- Configuration Section: Simple slider/input components for adjusting the Superfat Percentage (default 5%) and Water as % of Oil or Lye/Water Ratio.
- Results Section: A persistent, sticky-top summary panel that shows real-time calculated values: Total Oil Weight, Total Lye Weight, and Total Water Weight.
Key Features
- Dynamic Oil Database: A searchable dropdown to select oils, which automatically applies the correct SAP value.
- Superfat Adjuster: A range input (0% to 15%) that recalculates lye requirements dynamically.
- Water Discounting: Options to calculate water using a ratio (e.g., 2:1) or as a percentage of the total oil weight.
- Recipe Validation: Visual alerts (styled warnings) if the lye amount results in an unsafe ratio or if the total batch size is zero.
- Print-Friendly View: A specific CSS
@media printstyle that hides the UI controls and exports a clean, readable recipe card.
Visual Elements & Animations
- Micro-interactions: Subtle scale-up effects on input focus. Smooth CSS transitions on all result fields when values update.
- Color Palette:
- Background:
#f8fafc(Cool Gray) - Primary Buttons:
#0f766e(Teal) - Text:
#1e293b(Dark Slate) - Alerts/Warning:
#e11d48(Rose)
- Background:
- Transitions: 200ms ease-in-out transitions for all UI state changes to ensure a premium feel.
Developer Directives
- Strict Vanilla JS: Do not use frameworks. Use standard DOM manipulation (
document.getElementById,addEventListener). - No Dependencies: All logic should be self-contained. Use CSS Grid/Flexbox for the layout to ensure responsiveness.
- No External Writes: You are forbidden from attempting to store data persistently. Keep all state in JS variables/objects.
- Sandboxed Security: Ensure no external API calls (e.g., no Google Analytics, no font loading if possible, or use local fallbacks).
Spread the word
Files being used
Frequently Asked Questions
Everything you need to know about using this application.
Why is a lye calculator necessary for soap making?
Soap making is a precise chemical process involving saponification, where fats react with lye (sodium hydroxide) to form soap. Using a specialized calculator is critical because it ensures the chemical balance between your oils and the lye is exact, preventing the final product from being caustic or excessively oily. Furthermore, calculators enable the use of 'superfatting,' where a percentage of oil is left unsaponified to enhance the moisturizing properties of the soap. Our tool automates the complex math involved in SAP values to ensure your recipe remains safe and consistent every time you craft a batch.
What are the benefits of water discounting?
Water discounting refers to reducing the amount of water used to dissolve your lye compared to standard ratios. This technique can lead to harder soap bars that unmold faster and cure in less time, helping you become more productive with your hobby. Additionally, reduced water can help prevent common soap-making aesthetic issues, such as soda ash formation, and can shorten the trace time of your soap batter. This is particularly helpful when working with oil blends that are slow to trace, allowing for more control over complex designs and swirls.
How does the tool calculate saponification values?
The calculator uses standardized saponification (SAP) constants for various common soap-making oils. SAP value represents the specific amount of lye required to convert a set amount of oil into soap, and every oil type possesses a unique constant. When you input your oil weights, the application multiplies those weights by the specific oil's SAP value to derive the exact amount of sodium hydroxide needed. This ensures high accuracy and eliminates the need for you to manually calculate or look up constants for every ingredient in your recipe.
Can I save my recipes using this tool?
This application is designed as an immediate, in-memory utility, meaning it does not use cookies, local storage, or server-side databases to save data. This approach is intentional, ensuring that your data remains private and that the tool complies with strict browser-based security sandboxes. To keep a record of your successful recipes, we recommend printing the page or taking a screenshot of the results section after you have finalized your calculations. This provides a simple, offline method for maintaining your recipe book without relying on browser-based storage mechanisms.



