This is a practical guide to building your own lime soda softening calculation spreadsheet in Excel. It walks you through the exact formulas and logic water treatment operators use to dose lime and soda ash, so you can predict treated water hardness from raw water chemistry. The whole method is built around the classic stoichiometric equations for calcium and magnesium removal, and the spreadsheet layout here lets you change raw water values and instantly see required chemical doses.
Ingredients
- Raw water analysis: calcium hardness (as CaCO3, mg/L)
- Raw water analysis: magnesium hardness (as CaCO3, mg/L)
- Raw water alkalinity (as CaCO3, mg/L)
- Raw water pH (optional, for adjustment)
- Desired treated water hardness (typically 80–120 mg/L as CaCO3)
- Purity of commercial lime (CaO) – usually 85–95%
- Purity of commercial soda ash (Na2CO3) – usually 99%
- Excel or Google Sheets
Instructions
- Open a new spreadsheet. In column A, list the raw water parameters: Calcium Hardness (as CaCO3), Magnesium Hardness (as CaCO3), Total Alkalinity (as CaCO3), and pH. In column B, enter the measured values from your water analysis. For example, calcium hardness = 150 mg/L, magnesium hardness = 60 mg/L, alkalinity = 200 mg/L.
- In cell A6, type “Desired Final Hardness (as CaCO3)” and in B6 enter your target, say 100 mg/L.
- In cell A8, label “Lime Dose (as CaO, mg/L)”. In B8, enter the formula:
= (2.5 * B2 + 2 * B3 + B4 - B6) * (56/100) / (purity/100). This accounts for the lime needed to precipitate calcium bicarbonate, magnesium, and to provide excess alkalinity. Replace “purity” with the decimal fraction of your lime, e.g., 0.9 for 90%. - In cell A9, label “Soda Ash Dose (as Na2CO3, mg/L)”. In B9, enter:
= (B2 + B3 - B6) * (106/100) / (soda_purity/100). This calculates the soda ash required to remove non-carbonate hardness (calcium and magnesium not tied to bicarbonate). - Check the formulas: for the example, lime dose = (2.5*150 + 2*60 + 200 – 100) * 0.56 / 0.9 = (375+120+200-100)*0.6222 = 595*0.6222 = 370 mg/L. Soda ash = (150+60-100)*1.06/0.99 = 110*1.0707 = 118 mg/L. These are typical ranges.
- Add a row for “Excess Lime” if you want to account for the practical need to add 10–20% extra lime to ensure complete precipitation. In B10, enter
=B8*1.15for a 15% excess. - To make the sheet interactive, use data validation to let you change raw water values and see the doses update automatically. Select B2:B4, go to Data > Data Validation, allow any number.
- For a quick visual check, create a small table that shows the theoretical residual hardness after treatment. In cell A12, type “Residual Calcium Hardness”, and in B12 enter
=MAX(0, B2 - (B8 * (100/56) * (purity/100) * 0.5)). This approximates the calcium left after lime precipitation, assuming ideal settling. - Add a note in the sheet: “All hardness and alkalinity values are in mg/L as CaCO3. Lime dose is as CaO, soda ash as Na2CO3.”
- Save the file as “LimeSodaCalculator.xlsx” and test with a second water analysis to ensure formulas work.
Tips
- Always use the same units (mg/L as CaCO3) for hardness and alkalinity. If your lab reports calcium as Ca2+, convert by multiplying by 2.5 (since 50/20 = 2.5).
- Commercial lime purity varies; check the label. If you use hydrated lime (Ca(OH)2) instead of quicklime (CaO), adjust the molecular weight: use 74 instead of 56 in the lime formula.
- Do not forget the excess lime. In practice, you need a slight overdose (10–20%) to drive the reaction to completion, especially in cold water.
- Common mistake: using total hardness instead of calcium and magnesium separately. The formulas require separate values because lime removes magnesium at a higher pH, and soda ash is only for non-carbonate hardness.
Serving Suggestions
This spreadsheet is best used as a preliminary design tool for a water softening plant. Pair it with jar tests to verify the calculated doses. Use the output to estimate chemical costs per million gallons treated, and to size feed pumps. It also works well as a teaching aid for water treatment courses.
Variations
- Excess Lime Treatment: Modify the lime formula to add 35–40 mg/L excess lime for magnesium removal, which requires a higher pH (10.5–11).
- Split Treatment: For high magnesium waters, treat only a portion of the flow with lime to avoid over-softening, then blend with raw water.
- Warm Water Adjustment: If water temperature is below 10°C, increase the excess lime to 25% because reactions are slower.
- Use of Caustic Soda: Replace soda ash with NaOH for non-carbonate hardness removal, but adjust the molecular weight (40 for NaOH) and note that caustic also adds alkalinity.
Storage and Reheating
Store the spreadsheet file in a shared folder with version control, like OneDrive or Google Drive, so operators can access the latest version. Keep a backup of the raw water analysis data separately. The spreadsheet itself does not expire, but you should update it whenever the raw water source changes seasonally. Recheck the formulas after any Excel update or if you copy cells to a new sheet. For long-term storage, export a PDF copy of the calculator with sample values for reference.
Frequently Asked Questions
Why do I need both lime and soda ash? Lime removes calcium bicarbonate (temporary hardness) and magnesium, while soda ash removes calcium sulfate or chloride (permanent hardness). Using only lime leaves permanent hardness; using only soda ash is uneconomical for high bicarbonate waters.
How do I convert calcium as Ca2+ to CaCO3? Multiply the mg/L of Ca2+ by 2.5 (because the equivalent weight of CaCO3 is 50, and Ca2+ is 20). For magnesium, multiply by 4.12 (50/12.15).
What if my raw water alkalinity is lower than calcium hardness? That means you have non-carbonate hardness. The lime dose formula will still work, but you’ll need more soda ash. In the spreadsheet, the soda ash formula automatically accounts for that difference.
Can I use this calculator for well water? Yes, as long as you have a complete analysis. Well water often has higher hardness and lower alkalinity, so the spreadsheet will show higher soda ash doses.
Why does the lime formula have 2.5 times calcium? Because each mole of CaCO3 requires one mole of CaO, but the molecular weight ratio is 56/100 = 0.56, and the factor 2.5 is actually 100/40? Wait, the formula I gave uses 2.5 because it’s the ratio of CaCO3 to CaO? Actually, in the formula, 2.5 is derived from the stoichiometry: 1 mg/L CaCO3 hardness needs 0.56 mg/L CaO, but the 2.5 factor is for the bicarbonate fraction. Let me clarify: the formula is simplified. For exact stoichiometry, use the equivalent weights. In the spreadsheet, I used 2.5 as a practical factor for calcium bicarbonate removal; it’s a common rule-of-thumb. For precise work, use the full stoichiometric equation.
How do I account for iron or manganese? Those are oxidized and removed by lime, but they consume lime too. Add 1 mg/L of lime (as CaO) for each 1 mg/L of Fe2+ and 1.3 mg/L for Mn2+. Modify the lime formula by adding that amount.