HomeGuides › Water Hardness Calculator

Water Hardness Calculator

Convert between GPG, PPM, mg/L, and mmol/L — and calculate your water softener hardness setting

Convert Water Hardness Units
GPG
grains per gallon
PPM / mg/L
mg/L as CaCO₃
mmol/L
millimoles per liter
°dH
German degrees
°fH
French degrees
Calculate Water Softener Hardness Setting
Softener Configuration
Iron adds load to softener resin equivalent to 5× its GPG value. Always confirm settings with a hardness test after softener installation. Test regenerated water with a Hach 5-B or 5-EP kit to verify outlet hardness.
Calculate Hardness from Hach 5-B / 5-EP Titration
Total Hardness
grains per gallon
mg/L (PPM)
as CaCO₃
°dH
German degrees
All calculations use exact conversion factors: 1 GPG = 17.118 mg/L = 0.1711 mmol/L = 1.042°dH = 1.7118°fH. Results expressed as CaCO₃ equivalent per standard water treatment convention.

Exact Conversion Factors and Formulas

Water hardness is expressed in multiple units across different industries and countries. All are measuring the same thing — dissolved calcium and magnesium expressed as calcium carbonate (CaCO₃) equivalent — but in different scales.

FromTo GPGTo mg/L (PPM)To mmol/LTo °dHTo °fH
1 GPG1.00017.1180.17111.04201.7118
1 mg/L (PPM)0.058421.0000.010000.060860.10000
1 mmol/L5.842100.091.0006.08610.009
1 °dH0.959117.8480.178481.0001.7848
1 °fH0.584210.0000.100000.56041.000
GPG = grains per gallon (US). mg/L = milligrams per liter as CaCO₃ (= PPM for water). mmol/L = millimoles per liter. °dH = German degrees of hardness (Deutsche Härte). °fH = French degrees of hardness.

The GPG to PPM Formula

The exact conversion is derived from first principles: 1 grain = 64.799 mg, and 1 US gallon = 3,785.41 mL. Therefore 1 grain per gallon = 64.799 ÷ 3,785.41 × 1,000 = 17.118 mg/L. Most water treatment professionals round this to 17.1 for field calculations, which introduces less than 0.1% error — acceptable for all practical applications.

Quick mental math: To convert GPG to PPM, multiply by 17 (close enough for field use). To convert PPM to GPG, divide by 17. For example, a lab report showing 204 mg/L = 204 ÷ 17 = 12 GPG. A water softener set to 25 GPG treats water at approximately 25 × 17 = 425 PPM hardness.

How to Calculate Your Softener Hardness Setting

The hardness setting on a water softener controls when the unit regenerates — it tells the control valve how many grains of hardness the resin is treating per gallon, so it can calculate when the resin bed will be exhausted and schedule regeneration accordingly.

The Iron Compensation Formula

Iron competes with calcium and magnesium for ion exchange sites on softener resin. A standard correction factor accounts for this: add 5 GPG to the hardness setting for every 1 PPM of iron in the feed water.

Softener Setting (GPG) = Total Hardness (GPG) + (Iron PPM × 5)

Example: 15 GPG hardness + 0.8 PPM iron = 15 + (0.8 × 5) = 15 + 4 = 19 GPG softener setting.

Iron above 2 PPM requires pre-treatment before the softener. The iron compensation factor only works for low iron concentrations. Above 2 PPM, iron will foul softener resin permanently — the precipitated iron coats exchange sites that salt brine cannot dissolve. Install a dedicated iron removal system upstream of the softener. See the iron in well water guide for treatment options.

Softener Capacity and Regeneration Frequency

Softener capacity is rated in grains — the total grains of hardness the resin can remove before regeneration. Divide capacity by daily grain demand to get days between regenerations:

Daily Grain Demand = Hardness Setting (GPG) × Daily Water Use (gallons)
Days Between Regens = Softener Capacity (grains) ÷ Daily Grain Demand

Target 5–7 days between regenerations for most commercial applications. More frequent than every 3 days increases salt and water use; less frequent than every 10 days risks hardness breakthrough as the resin bed approaches exhaustion.

US Water Systems Synergy Twin-Tank Softener
Zero hardness breakthrough — sized from 48,000 to 96,000+ grain capacity for commercial applications
Read Full Review →

How to Calculate Hardness from a Titration Test

The Hach 5-B and 5-EP titration kits use EDTA (ethylenediaminetetraacetic acid) to chelate calcium and magnesium ions. Each drop of EDTA titrant neutralizes a fixed amount of hardness ions, and the color change from red to blue marks the endpoint. The number of drops multiplied by the titrant factor gives hardness in GPG.

Standard 5-B Calculation (25 mL sample)

Hardness (GPG) = Number of Drops × Titrant Factor
(For standard 25 mL sample with Hach 5-B: 1 drop = 1 GPG)

If the water is very hard and requires dilution before testing, multiply the result by the dilution factor. For example, if you diluted 5 mL of sample to 25 mL (5× dilution) and used 8 drops, actual hardness = 8 drops × 5 = 40 GPG.

When to Dilute

Dilute the sample when you expect hardness above 25–30 GPG (the upper limit of most titration kits without dilution), or when the endpoint color change is ambiguous because of very high ion concentration. A 2× dilution (12.5 mL sample + 12.5 mL deionized water, brought to 25 mL) doubles the effective range.

Hardness Classification Scale

ClassificationGPGmg/L (PPM)°dHPractical Effect
Soft0–3.50–600–3.7No scaling. Soap lathers freely.
Moderately Hard3.5–761–1203.7–7.3Minor scale on heating elements. Softener beneficial for sensitive equipment.
Hard7–10.5121–1807.3–10.9Visible scale, soap issues, staining. Softener recommended.
Very Hard>10.5>180>10.9Rapid equipment damage. Softener required before RO, boilers, tankless heaters.
Classification per USGS Water Science School. Thresholds for equipment protection may be lower than USGS "hard" threshold — confirm with equipment manufacturer specifications.

FAQ

How do I convert GPG to PPM?

Multiply GPG by 17.118. Example: 10 GPG × 17.118 = 171.2 PPM. For quick field math, multiply by 17. To go the other direction — PPM to GPG — divide by 17.118 (or 17 for quick estimates).

How do I set water softener hardness based on my test result?

Set the hardness setting to your total hardness in GPG, then add 5 GPG per PPM of iron. Use the softener calculator above for the exact figure. The setting controls regeneration timing — if set too low, the resin exhausts before regeneration and hard water breaks through; if set too high, the unit regenerates unnecessarily, wasting salt and water.

What is the difference between total hardness and calcium hardness?

Total hardness = calcium hardness + magnesium hardness, both as CaCO₃ equivalent. Most test kits measure total hardness. Calcium hardness alone matters for pool water Langelier Saturation Index calculations and some industrial processes. For softener sizing and most commercial water treatment purposes, total hardness is the correct value to use.

How many grains per gallon is hard water?

The USGS defines hard water as above 7 GPG (120 mg/L). Very hard water is above 10.5 GPG (180 mg/L). Most US municipal supplies fall between 3 and 15 GPG; well water in limestone areas can exceed 30 GPG. Use the converter above to find the equivalent in whatever unit your test result uses.

What does mmol/L mean on a water hardness report?

Millimoles per liter — the unit used in scientific literature and European lab reports. 1 mmol/L = 100.09 mg/L ≈ 5.84 GPG. If your lab report shows hardness in mmol/L, multiply by 5.84 to get GPG or by 100 to get approximate PPM.

Related Pages