WaterCalculator
Water Treatment

Grains per Gallon vs PPM: Water Hardness Units

Softener dealers talk in grains, labs and utilities in ppm or mg/L. They measure the same thing; here is how to move between them without the common mistakes.

A water test report showing hardness in mg/L next to a softener control set in grains per gallon
Labs report hardness in mg/L; softeners are set in grains per gallon. The bridge between them is 17.1.

One grain per gallon (gpg) equals 17.1 parts per million (ppm), which is the same as 17.1 milligrams per liter (mg/L). Both units measure the same thing, the amount of dissolved hardness minerals expressed as calcium carbonate, so converting is a single step: divide ppm by 17.1 to get gpg, or multiply gpg by 17.1 to get ppm. Water at 10 gpg is 171 ppm; water at 250 ppm is about 14.6 gpg. Below is where the 17.1 comes from, a full conversion chart, the other hardness units you’ll meet, and how to turn separate calcium and magnesium results into one hardness number.

Skip the math Hardness PPM to GPG Calculator Open →

The conversion at a glance

gpg = ppm (mg/L) ÷ 17.1   |   ppm = gpg × 17.1 Both sides assume hardness is reported "as calcium carbonate (CaCO₃)," the standard convention on test reports and softener settings.
Grains per gallon to ppm (mg/L) hardness conversion chart.
Grains per gallonppm / mg/LClass
117Soft
351Soft
586Moderately hard
7120Moderately hard
10171Hard
12205Very hard
15257Very hard
20342Very hard
25428Very hard
30514Very hard

Classes follow the U.S. Geological Survey: soft up to 60 mg/L, moderately hard 61–120, hard 121–180, very hard above 180.

Where 17.1 comes from

The number falls straight out of the unit definitions:

  • A grain is 1/7,000 of a pound: 64.8 milligrams.
  • A US gallon is 3.785 liters.

So one grain dissolved in one gallon is 64.8 mg ÷ 3.785 L = 17.1 mg/L. And because a liter of water weighs about a kilogram (a million milligrams), 1 mg/L is 1 part per million. That is all there is to it.

Watch for imperial gallons. A UK (imperial) gallon is 4.546 liters, so 1 "Clark degree" or grain per imperial gallon is 14.3 mg/L, not 17.1. US softener settings always use US gallons.

Why two units exist

Laboratories and utilities report almost everything in mg/L, so hardness appears that way on water quality reports and lab results. The water softener industry works in grains because capacity is rated in grains: a 32,000-grain softener can remove 32,000 grains of hardness before it must regenerate. Set its control to your hardness in gpg and it simply divides:

gallons between regenerations = usable capacity (grains) ÷ hardness (gpg) 32,000 grains ÷ 16 gpg = 2,000 gallons. At 300 gallons a day, that's a regeneration roughly every 6–7 days.

That’s why the first thing a softener needs is your hardness in gpg, and why getting the conversion right matters. Our guides to what size water softener you need and how often a softener should regenerate build on this.

Other hardness units you might see

Common water hardness units and their mg/L (ppm as CaCO₃) equivalents.
UnitWhere it's usedEquals (mg/L as CaCO₃)In gpg
mg/L or ppm as CaCO₃US labs, utilities10.058
Grain per US gallon (gpg)US softeners17.11
German degree (°dH)Germany, appliance manuals17.81.04
Clark / English degree (°e)UK (older)14.30.83
French degree (°f)France, Belgium100.58
mmol/LEU lab reports1005.85

Dishwashers and coffee machines sold internationally often ask for °dH; at 1.04 gpg per °dH, the setting is almost the same number as your gpg.

Converting calcium and magnesium to hardness

Some lab reports list calcium and magnesium separately in mg/L rather than total hardness. You can’t just add them, because hardness is expressed as calcium carbonate, which weighs more per ion. Use these factors:

total hardness (mg/L as CaCO₃) = (Ca mg/L × 2.497) + (Mg mg/L × 4.118) Example: Ca = 64 mg/L, Mg = 18 mg/L → (64 × 2.497) + (18 × 4.118) = 160 + 74 = 234 mg/L ÷ 17.1 = 13.7 gpg.

The factors are the molar mass of calcium carbonate (100.09) divided by the mass of each ion (40.08 for calcium, 24.31 for magnesium). Reading “calcium 64 mg/L” as “hardness 64 mg/L” would understate this water’s hardness by nearly four times, and undersize a softener badly.

Common mistakes

  • Treating TDS as hardness. A TDS reading in ppm includes sodium, chloride, sulfate and more. Our guide to conductivity, TDS and ppm explains the difference.
  • Adding calcium and magnesium directly. Convert each to CaCO₃ first, as above.
  • Confusing grains with grams. A gram is about 15.4 grains.
  • Forgetting iron. If you’re sizing a softener, add roughly 3 to 5 gpg for every 1 mg/L of dissolved iron, since iron uses up resin capacity too. See how to remove iron from well water.

Utility report: 180 mg/L

10.5 gpg

The top of "hard"; set a softener to 11.

Strip: 15 gpg

257 ppm

Very hard water.

Manual asks °dH; you have 12 gpg

11.5 °dH

12 ÷ 1.04.

Ca 40, Mg 10 mg/L

8.2 gpg

(40 × 2.497 + 10 × 4.118) ÷ 17.1.

The bottom line

Grains per gallon and ppm measure the same thing on different scales: 1 gpg = 17.1 ppm (mg/L) of hardness as calcium carbonate. Divide by 17.1 to go from a lab report to a softener setting, multiply to go back. Convert separate calcium and magnesium results with the 2.497 and 4.118 factors, don’t mistake TDS for hardness, and add iron when sizing a softener.

Convert instantlyHardness PPM to GPG Calculator Open →

Frequently asked questions

How many ppm is 1 grain per gallon?

1 grain per gallon equals 17.1 ppm (17.1 mg/L) of hardness expressed as calcium carbonate. To convert ppm to gpg, divide by 17.1; to convert gpg to ppm, multiply by 17.1.

Is ppm the same as mg/L?

For drinking water, yes. One liter of water weighs about one kilogram, so one milligram per liter is one part per million by weight. Labs and utilities use the two interchangeably.

What is a grain?

A grain is an old unit of weight equal to 1/7,000 of a pound, or about 64.8 milligrams. Grains per gallon means the weight of hardness minerals, expressed as calcium carbonate, dissolved in one US gallon of water.

Why do water softeners use grains per gallon?

Softener capacity is rated in grains (for example, a 32,000-grain softener), so setting hardness in grains per gallon lets the control divide capacity by hardness to find how many gallons it can soften before regenerating.

How do I convert a calcium result to hardness?

Multiply calcium in mg/L by 2.5 and magnesium in mg/L by 4.1, then add them. That gives total hardness in mg/L as calcium carbonate. Divide by 17.1 for grains per gallon.

Is a TDS reading in ppm the same as hardness in ppm?

No. TDS counts every dissolved solid, including sodium, chloride and sulfate, while hardness counts only calcium and magnesium. A TDS of 400 ppm might include anywhere from almost no hardness to most of it.

Sources & references

Unit definitions and hardness classes come from these references:

  1. U.S. Geological Survey — Do you have information about water hardness in the United States? Hardness expressed as mg/L calcium carbonate and classes.
Sarah Bennett, MS
Sarah Bennett, MS

Water Quality & Sustainability Specialist · Portland, Oregon

Sarah covers water quality, treatment, sustainability and household water use on Water Calculator, with a focus on helping people understand what they use and what it costs. Read full bio

MS · Specializes in water usage, cost and conservation

Water Treatment

How to Test Your Water Hardness at Home

Test water hardness at home with strips, a drop titration kit, your utility's report or a lab. How each method works, how accurate it is, and how to read the result. Sarah Bennett, MS··8 min read
Water Treatment

What Is Hard Water? Signs, Causes, and Fixes

Hard water is water high in dissolved calcium and magnesium. Learn the hardness scale, the signs to look for, what it does to pipes and appliances, and which fixes work. Sarah Bennett, MS··8 min read
Water Treatment

What Size Water Softener Do I Need?

Size a water softener in three steps: daily grains (people × gallons × hardness), times days between regenerations, then pick a capacity at an efficient salt setting. Charts inside. Sarah Bennett, MS··9 min read