This water hardness calculator converts calcium and magnesium concentrations into total hardness — hardness = 2.497 × Ca + 4.118 × Mg (all in mg/L, expressed as CaCO₃) — with the USGS soft-to-very-hard classification and grains per gallon.

–

Two Ions, One Number, Expressed as CaCO₃

"Hardness" is water chemistry's measure of dissolved Ca²⁺ and Mg²⁺ — the ions that precipitate as kettle scale, kill soap lather and spot glassware — standardized onto a single scale by pretending all of it were calcium carbonate: hardness (mg/L as CaCO₃) = 2.497 × Ca (mg/L) + 4.118 × Mg (mg/L). The multipliers are molar-mass ratios (CaCO₃ weighs 100.09 g/mol against Ca's 40.08 and Mg's 24.31), which is why magnesium counts 65% more per milligram — lighter ions deliver more charge per gram, and hardness is fundamentally a charge ledger. The defaults (Ca 40, Mg 12 mg/L — typical of a moderately mineralized municipal supply) return 149.3 mg/L as CaCO₃: squarely "hard" on the USGS scale and about 8.7 grains per gallon, the unit softener manufacturers quote.

The number has direct household consequences at known thresholds: water heaters and boilers accumulate insulating scale measurably above ~120 mg/L; dishwashers start spotting and soaps start failing to lather in the same band; softener sizing is sold in grains (grains/gallon = mg/L ÷ 17.1) multiplied by daily gallons. Two adjacent concepts keep the ledger straight: temporary hardness (the bicarbonate fraction) precipitates on boiling — the kettle fur — while permanent hardness (sulfates, chlorides) survives it; and hardness is not TDS, since sodium, silica and friends add dissolved solids without adding hardness. A water report that lists only "hardness" without Ca and Mg separately can't be decomposed — this calculator exists for the reports (and test kits) that give you the two ions and expect you to do the standard's arithmetic.

Worked Examples (Verified)

  • Defaults: 2.497 × 40 + 4.118 × 12 = 99.9 + 49.4 = 149.3 mg/L → Hard, 8.7 gpg.
  • Soft mountain water: Ca 8, Mg 2 → 20.0 + 8.2 = 28.2 mg/L → Soft.
  • Dolomite well: Ca 60, Mg 30 → 149.8 + 123.5 = 273.3 mg/L → Very hard, 16.0 gpg.
  • Calcium only: Ca 50, Mg 0 → 124.9 mg/L — already "hard" without a trace of magnesium.

Water Hardness Discipline

  • Inputs are the IONS (Ca²⁺, Mg²⁺ in mg/L), not CaCO₃ or CaO figures — European reports quoting °dH convert at 1 °dH = 17.8 mg/L as CaCO₃.
  • Hardness ≠ TDS: a sodium-rich water can test high TDS and zero hardness; a chalk stream is the reverse.
  • gpg (grains per gallon) = mg/L ÷ 17.1 — the softener industry's unit; size softeners in grains removed per day, not by tank color.
  • Test strips estimate ±25 mg/L on a good day; titration kits (EDTA) are the household gold standard for the Ca/Mg inputs this formula deserves.
  • Iron and manganese add "hardness-like" fouling but are not in the standard formula — a separate stain problem with its own treatment.

Related Tools

Frequently Asked Questions

How is water hardness calculated?

From the calcium and magnesium concentrations: hardness (mg/L as CaCO₃) = 2.497 × Ca (mg/L) + 4.118 × Mg (mg/L). The factors convert each ion to its CaCO₃ equivalent (100.09/40.08 and 100.09/24.31). Ca 40 + Mg 12 mg/L gives 149.3 mg/L — classified Hard by the USGS (0–60 soft, 61–120 moderately hard, 121–180 hard, >180 very hard). This calculator also converts to grains per gallon (÷ 17.1) for softener sizing.

What is a good water hardness level?

It depends on the judge: for appliances and plumbing, under 120 mg/L (moderately hard or less) limits scale; for taste, many drinkers prefer 80–150 mg/L — fully soft water tastes flat and slightly slippery feels odd in the shower; for health, the WHO finds no basis for a limit, and hard water contributes useful dietary calcium and magnesium. The common settlement: soften the hot-water line for the heater's sake if you're above ~180 mg/L, and leave drinking water where it is if you like it.

Why is hardness expressed "as CaCO3" when there may be no CaCO3 in the water?

Historical standardization: 19th-century analysts measured hardness by soap consumption and reported it against a familiar reference substance, and CaCO₃ (100 g/mol equivalent-friendly chemistry) became the ledger unit. Expressing every ion "as CaCO₃" lets calcium, magnesium (and in full analyses, strontium and others) add onto one scale — an accounting fiction that survives because it works. The same trick appears across water chemistry: alkalinity and acidity are also reported "as CaCO₃" regardless of what's actually dissolved.

How do I convert mg/L hardness to grains per gallon?

Divide by 17.1: gpg = mg/L ÷ 17.1 (one grain = 64.8 mg, one US gallon = 3.785 L; 64.8/3.785 = 17.1). The defaults' 149.3 mg/L is 8.7 gpg. Softeners are rated in grains of capacity (e.g., 32,000 grains), so daily removal = gpg × gallons/day tells you regeneration frequency: 8.7 gpg × 300 gal/day ≈ 2,610 grains/day against that 32,000-grain tank — roughly a regeneration every 10–12 days at realistic usable capacity.

What's the difference between temporary and permanent hardness?

Temporary hardness is the portion balanced by bicarbonate (HCO₃⁻): boiling converts it to CaCO₃ precipitate — kettle scale — and removes it from the water, hence "temporary." Permanent hardness is balanced by sulfate, chloride and nitrate: boiling changes nothing, and removal needs ion exchange (a softener) or reverse osmosis. A full analysis reports total hardness; the temporary share ≈ the alkalinity (as CaCO₃) when alkalinity < total hardness. This calculator computes the total from Ca and Mg, which is the figure classifications and softener sizing use.

Does hard water damage appliances?

It damages efficiency first and hardware second: scale is a thermal insulator, so water-heater elements and boiler surfaces run hotter to push heat through it — energy use climbs noticeably with even a millimeter or two of scale in hard-water service, and elements in very hard water fail early from overheating. Dishwashers and washing machines suffer spotting, dull laundry and soap scum (hardness ions literally precipitate soap as curd). The effect is gradual, not catastrophic — which is why the softener decision is an economics calculation (heater life + energy + detergent savings vs salt and water for regeneration), not an emergency.

Can I get Ca and Mg from a TDS meter?

No — a TDS meter measures total electrical conductivity converted to an equivalent dissolved-solids number; it cannot distinguish Ca²⁺ and Mg²⁺ from sodium, potassium, bicarbonate or silica. Two waters at 300 ppm TDS can be 250 mg/L hardness or zero. For the inputs this formula needs, use the municipal water-quality report (most publish Ca and Mg or hardness directly) or an EDTA titration drop kit, which measures hardness specifically by chelating exactly these two ions. Test strips split the difference on accuracy: fine for classification, coarse for softener math.

Is this water hardness calculator free?

Yes — free, instant, no sign-up. Enter calcium and magnesium in mg/L for total hardness as CaCO₃, grains per gallon, and the USGS classification.