Last updated: July 3, 2026
Water Hardness Calculator
Creators
Dharmendra SinghReviewers

Creators
Dharmendra SinghReviewers
Quick Answer
This water hardness calculator estimates total hardness as CaCO₃ from calcium and magnesium concentrations using 2.497×Ca + 4.118×Mg, then converts the result to grains per gallon, German degrees, French degrees, and a soft-to-very-hard classification.
Water hardness as calcium carbonate equals 2.497 times calcium in milligrams per litre plus 4.118 times magnesium in milligrams per litre. Values above 180 milligrams per litre as calcium carbonate are classified as very hard.
Key Takeaways
- Total hardness as CaCO₃ is calculated from calcium and magnesium equivalents.
- Use H = 2.497 × Ca + 4.118 × Mg when Ca and Mg are in mg/L as ions.
- One grain per gallon equals 17.1 mg/L as CaCO₃.
- Water above 180 mg/L as CaCO₃ is commonly classified as very hard.
- Hardness and TDS are related water-quality ideas but are not the same measurement.
Creators
Dharmendra SinghReviewers

Creators
Dharmendra SinghReviewers
Formula
Hardness (mg/L as CaCO3) = 2.497 × [Ca mg/L] + 4.118 × [Mg mg/L]
Where:
- H=Total hardness as calcium carbonate(mg/L as CaCO₃)
- [Ca²⁺]=Calcium ion concentration(mg/L)
- [Mg²⁺]=Magnesium ion concentration(mg/L)
- 2.497=Calcium-to-CaCO₃ equivalent factor(mg CaCO₃ per mg Ca)
- 4.118=Magnesium-to-CaCO₃ equivalent factor(mg CaCO₃ per mg Mg)
Worked Examples
Very hard groundwater from calcium and magnesium
A sample contains 80 mg/L calcium and 25 mg/L magnesium.
- 1Convert calcium to CaCO₃ equivalent: 2.497 × 80 = 199.76 mg/L.
- 2Convert magnesium to CaCO₃ equivalent: 4.118 × 25 = 102.95 mg/L.
- 3Add both contributions: 199.76 + 102.95 = 302.71 mg/L as CaCO₃.
Convert a lab hardness report to grains per gallon
A report gives total hardness directly as 171 mg/L as CaCO₃.
- 1Use the known hardness value because calcium and magnesium are not entered.
- 2Convert to grains per gallon: 171 ÷ 17.1 = 10 gpg.
- 3The same water is about 9.61 °dH and 17.1 °fH.
Calcium-only hardness check
A water sample has 100 mg/L calcium and negligible magnesium.
- 1Calcium contribution: 2.497 × 100 = 249.7 mg/L as CaCO₃.
- 2Magnesium contribution is 0 because magnesium is not present.
- 3249.7 mg/L is above 180 mg/L, so the sample is very hard.
Introduction
Water hardness is the concentration of dissolved multivalent metal ions, chiefly calcium and magnesium, expressed as an equivalent amount of calcium carbonate. This calculator converts measured Ca²⁺ and Mg²⁺ in mg/L into total hardness as CaCO₃ and also reports grains per gallon, German degrees, and French degrees. It complements broader dissolved-solids checks such as the TDS calculator and solution-strength tools such as the mass percent calculator. The equivalent-weight method follows long-standing water-analysis practice described by Standard Methods and public-health guidance from the World Health Organization.
What is water hardness?
Hardness is not a single compound; it is a water-quality convention that expresses calcium, magnesium, and sometimes other divalent ions as mg/L of CaCO₃. Reporting everything as CaCO₃ makes ions with different molar masses comparable on an equivalent-charge basis. In most natural waters, calcium and magnesium dominate the value, so their two terms are enough for a practical total hardness estimate.
- Soft:
less than 60 mg/L as CaCO₃.
- Moderately hard:
60–120 mg/L as CaCO₃.
- Hard:
120–180 mg/L as CaCO₃.
- Very hard:
more than 180 mg/L as CaCO₃.
Water hardness formula explained
The calculator uses H = 2.497 × Ca + 4.118 × Mg, where Ca and Mg are ion concentrations in mg/L. The multipliers are 50 divided by each ion's equivalent weight: calcium has an equivalent weight of about 20.04 mg/meq and magnesium about 12.15 mg/meq. The factor 50 comes from the equivalent weight of CaCO₃, so each ion is converted into a CaCO₃-equivalent mass concentration before summing.
Use concentrations reported as the ions Ca²⁺ and Mg²⁺. If a lab already reports calcium hardness or magnesium hardness as CaCO₃, do not multiply those values again.
Converting mg/L as CaCO₃ to common hardness units
Water softener sizing, aquarium care, and European lab reports often use units other than mg/L as CaCO₃. The calculator applies the common conversions: 1 grain per gallon = 17.1 mg/L as CaCO₃, German degrees °dH = mg/L ÷ 17.8, and French degrees °fH = mg/L ÷ 10.
| Unit | Conversion from mg/L as CaCO₃ | Typical use |
|---|---|---|
| gpg | mg/L ÷ 17.1 | Water softeners and household treatment |
| °dH | mg/L ÷ 17.8 | German and aquarium hardness reporting |
| °fH | mg/L ÷ 10 | French degree hardness |
| mg/L as CaCO₃ | base unit | Laboratory and regulatory water reports |
How to calculate hardness step by step
Begin with calcium and magnesium measurements in mg/L from an ion-specific lab report, ICP result, or water-quality certificate. Multiply calcium by 2.497 and magnesium by 4.118, then add the two equivalent contributions. For example, 80 mg/L calcium gives 199.76 mg/L as CaCO₃ and 25 mg/L magnesium gives 102.95 mg/L as CaCO₃, totaling 302.71 mg/L.
Confirm Ca and Mg are reported in mg/L as ions, not as CaCO₃.
Calculate calcium hardness = 2.497 × Ca.
Calculate magnesium hardness = 4.118 × Mg.
Add the two values for total hardness.
Compare the total with the soft-to-very-hard classification bands.
Water hardness vs. TDS, alkalinity, and concentration
Hardness is often confused with total dissolved solids, but they measure different things. Hardness focuses on equivalent concentrations of Ca²⁺ and Mg²⁺, while TDS includes sodium, chloride, sulfate, bicarbonate, silica, and many other dissolved species. Hardness also differs from alkalinity, which measures acid-neutralizing capacity. For prepared solutions rather than natural water, use concentration tools such as the molarity calculator or percent-solution calculations.
A water sample can have high TDS but modest hardness if much of the dissolved material is sodium chloride rather than calcium or magnesium salts.
Practical interpretation and limitations
Hard water is not usually a health hazard, but it can form scale in heaters, boilers, pipes, and laboratory glassware. It also consumes soap and can affect taste, brewing, aquariums, and industrial processes. The calcium-plus-magnesium equation is a high-quality estimate for most waters, but specialist analyses may include iron, manganese, strontium, or carbonate speciation. For official decisions, follow validated methods such as EDTA titration or instrumental analysis and local guidance such as USGS water science resources.
Quick Reference Card
Water hardness quick reference
Quick reference • Water Hardness Calculator
Hardness = 2.497×Ca + 4.118×Mg (mg/L as CaCO₃)Valid range: Use non-negative calcium, magnesium, or known hardness values; typical natural waters range from near 0 to several hundred mg/L as CaCO₃.
Common Values
⚠ Watch Out
- •Do not multiply values already reported as CaCO₃ equivalents.
- •Check whether calcium and magnesium are reported as ions, salts, or hardness fractions.
- •The calculation ignores minor hardness contributors such as iron or manganese unless included separately by the lab.
- •Use validated laboratory methods for compliance, treatment design, or legal reporting.
Pro Tips
- →Use the known hardness input when a lab report already gives total hardness as CaCO₃.
- →For water softener sizing, convert mg/L as CaCO₃ to gpg by dividing by 17.1.
- →Compare hardness with TDS to infer whether dissolved solids are mostly hardness minerals or other salts.
- →Track hardness before and after treatment to quantify softener or demineralizer performance.
FAQs
How do I calculate water hardness from calcium and magnesium?
Multiply calcium in mg/L by 2.497, multiply magnesium in mg/L by 4.118, and add the two results. The sum is total hardness in mg/L as CaCO₃.
Why is hardness reported as CaCO₃?
CaCO₃ equivalent units put different divalent ions on the same equivalent-charge basis. This convention lets calcium and magnesium contributions be added directly and compared across water reports.
What is considered hard water?
A common classification is: soft below 60 mg/L, moderately hard from 60 to 120 mg/L, hard from 120 to 180 mg/L, and very hard above 180 mg/L as CaCO₃.
How many mg/L as CaCO₃ are in one grain per gallon?
One grain per US gallon is commonly taken as 17.1 mg/L as CaCO₃, so divide mg/L by 17.1 to get gpg.
Is hardness the same as TDS?
No. Hardness mainly represents calcium and magnesium equivalents, while TDS is the total mass concentration of dissolved substances. Sodium chloride can raise TDS without adding much hardness.
Can I enter a known hardness value instead of calcium and magnesium?
Yes. If calcium and magnesium are not entered, use the known hardness input to convert mg/L as CaCO₃ into gpg, °dH, °fH, and a hardness class.